flughaveno-sdk 1.2.18 → 1.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/flughaveno-sdk.js
CHANGED
|
@@ -102,7 +102,7 @@ var N=["جنوری","فروری","مارچ","اپریل","مئی","جون","جو
|
|
|
102
102
|
//! moment.js locale configuration
|
|
103
103
|
var N=M.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(M,N,D){return M<11?"ekuseni":M<15?"emini":M<19?"entsambama":"ebusuku"},meridiemHour:function(M,N){return 12===M&&(M=0),"ekuseni"===N?M:"emini"===N?M>=11?M:M+12:"entsambama"===N||"ebusuku"===N?0===M?0:M+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return N}))},"52d4":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2MC4xICg4ODEzMykgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+cGljdG9ncmFtYXMgLyBCdXMtZ3JhbmRlX1Q8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0icGljdG9ncmFtYXMtLy1CdXMtZ3JhbmRlX1QiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik02Ni4zLDc0IEwxMTEuMyw3NCBMMTExLjMsMzIgTDY2LjMsMzIgTDY2LjMsNzQgWiBNMTUuMywzNC41IEMxNS4zLDMzLjEgMTYuNCwzMiAxNy44LDMyIEw2MC4zLDMyIEw2MC4zLDc0IEwxNS4zLDc0IEwxNS4zLDM0LjUgWiBNNzcuOSwxMTAuNyBDODUuNywxMTAuNyA5MiwxMTcgOTIsMTI0LjggQzkyLDEzMi42IDg1LjcsMTM4Ljg5OSA3Ny45LDEzOC44OTkgQzcwLjEsMTM4Ljg5OSA2My44LDEzMi42IDYzLjgsMTI0LjggQzYzLjgsMTE3LjEgNzAuMSwxMTAuNyA3Ny45LDExMC43IEw3Ny45LDExMC43IFogTTE0NCwzMiBDMTQ0LjcsMzIgMTQ1LjMsMzEuNCAxNDUuMywzMC43IEwxNDUuMywyNy4zIEMxNDUuMywyNi42IDE0NC43LDI2IDE0NCwyNiBMMTQzLjMsMjYgTDE3LjgsMjYgQzEzLjEsMjYgOS4zLDI5LjggOS4zLDM0LjUgTDkuMywxMTQuMSBDOS4zLDEyMy4zOTkgMTYuOCwxMzEgMjYuMSwxMzEgTDU4LjgsMTMxIEM2MS40LDEzOS4xIDY5LDE0NSA3OCwxNDUgQzg2LjksMTQ1IDk0LjUsMTM5IDk3LjIsMTMxIEwxNDIuMywxMzEgTDE0NCwxMzEgQzE0NC43LDEzMSAxNDUuMywxMzAuMzk5IDE0NS4zLDEyOS43IEwxNDUuMywxMjYuMyBDMTQ1LjMsMTI1LjYgMTQ0LjcsMTI1IDE0NCwxMjUgTDE0My4zLDEyNSBMOTgsMTI1IEw5OCwxMjQuOCBDOTgsMTEzLjcgODksMTA0LjcgNzcuOSwxMDQuNyBDNjYuOCwxMDQuNyA1Ny44LDExMy43IDU3LjgsMTI0LjggTDU3LjgsMTI1IEwyNi4xLDEyNSBDMjAuMiwxMjUgMTUuMywxMjAuMSAxNS4zLDExNC4xIEwxNS4zLDgwIEwxNDMuMyw4MCBMMTQ0LDgwIEMxNDQuNyw4MCAxNDUuMyw3OS4zOTkgMTQ1LjMsNzguNyBMMTQ1LjMsNzUuMyBDMTQ1LjMsNzQuNiAxNDQuNyw3NCAxNDQsNzQgTDE0Mi4zLDc0IEwxMTcuMyw3NCBMMTE3LjMsMzIgTDE0Mi4zLDMyIEwxNDQsMzIgWiIgaWQ9IkZpbGwtMSIgZmlsbD0iIzFBMjczMiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4="},"52d8":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wY18yOS1tayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEzNCwxMTkgTDEzNCwzNSBDMTM0LDI2LjcxNjE0NTggMTI3LjI4Mzg1NCwyMCAxMTksMjAgTDM1LDIwIEMyNi43MTYxNDU4LDIwIDIwLDI2LjcxNjE0NTggMjAsMzUgTDIwLDExOSBDMjAsMTI3LjI4Mzg1NCAyNi43MTYxNDU4LDEzNCAzNSwxMzQgTDExOSwxMzQgQzEyNy4yODM4NTQsMTM0IDEzNCwxMjcuMjgzODU0IDEzNCwxMTkgWiIgaWQ9ImJvcmRlLXJlc3BldG8iIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0icG9pLS8tcGNfMjkiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjOEVCQUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik03Mi4zOTg4LDEwOC44NDMzIEM3MS4zMDU4LDExMS42MzUzIDY5LjYzMjgsMTE0LjI1MjMgNjcuMzc1OCwxMTYuNTA4MyBDNTguNjI4OCwxMjUuMjU2MyA0NC40NDc4LDEyNS4yNTYzIDM1LjcwMTgsMTE2LjUwODMgQzI2Ljk1MzgsMTA3Ljc2MjMgMjYuOTUzOCw5My41ODEzIDM1LjcwMTgsODQuODM0MyBDMzcuOTQ5OCw4Mi41ODMzIDQwLjU1NzgsODAuOTE2MyA0My4zMzk4LDc5LjgyMjMgQzQwLjE5NjgsODcuODU3MyA0MS43NzE4LDk3LjQ1ODMgNDguMjYxOCwxMDMuOTQ4MyBDNTQuNzEwOCwxMTAuMzk2MyA2NC4xMTQ4LDExMi4wOTEzIDcyLjExNTgsMTA5LjAyOTMgTDcyLjM5ODgsMTA4Ljg0MzMgWiBNOTguODI2OCwzMC4yOTMzIEMxMTAuODI2OCwzMC4yOTMzIDEyMC41NTU4LDQwLjAyMTMgMTIwLjU1NTgsNTIuMDI0MyBDMTIwLjU1NTgsNjQuMDI0MyAxMTAuODI2OCw3My43NTMzIDk4LjgyNjgsNzMuNzUzMyBDODYuODI0OCw3My43NTMzIDc3LjA5NzgsNjQuMDI0MyA3Ny4wOTc4LDUyLjAyNDMgQzc3LjA5NzgsNDAuMDIxMyA4Ni44MjQ4LDMwLjI5MzMgOTguODI2OCwzMC4yOTMzIEw5OC44MjY4LDMwLjI5MzMgWiBNNDguODg3OCw1MC4zMDkzIEwzNS41MzQ4LDUwLjMwOTMgQzMzLjQxMzgsNTAuMzA5MyAzMS42OTU4LDQ4LjY4NDMgMzEuNjk1OCw0Ni42NzczIEMzMS42OTU4LDQ0LjY3MzMgMzMuNDEzOCw0My4wNDkzIDM1LjUzNDgsNDMuMDQ5MyBMNDguODg5OCw0My4wNDkzIEw0OC44NzQ4LDM0LjE4NDMgQzQ4Ljg3NDgsMzIuMDY1MyA1MC41Mzk4LDMwLjM0NjMgNTIuNTkyOCwzMC4zNDYzIEM1NC42NDY4LDMwLjM0NjMgNTYuMzEwOCwzMi4wNjUzIDU2LjMxMDgsMzQuMTg0MyBMNTYuMzEwOCw0My4wMzIzIEw2OS42NTc4LDQzLjA0OTMgQzcxLjc3ODgsNDMuMDQ5MyA3My40OTY4LDQ0LjY3MzMgNzMuNDk2OCw0Ni42NzczIEM3My40OTY4LDQ4LjY4NDMgNzEuNzc4OCw1MC4zMDkzIDY5LjY1NzgsNTAuMzA5MyBMNTYuMzEwOCw1MC4zMDIzIEw1Ni4zMTA4LDgyLjc3MjMgQzU2LjMxMDgsODQuODkxMyA1NC42NDY4LDg2LjYxMDMgNTIuNTkyOCw4Ni42MTAzIEM1MC41Mzk4LDg2LjYxMDMgNDguODc0OCw4NC44OTEzIDQ4Ljg3NDgsODIuNzcyMyBMNDguODg3OCw1MC4zMDkzIFogTTk5LjU2MDgsMTEyLjE1NjMgTDk5LjU2MDgsMTIzLjU5OTMgQzk5LjU2MDgsMTI2LjAyMTMgOTUuOTI2OCwxMjYuMDIxMyA5NS45MjY4LDEyMy41OTkzIEw5NS45MjY4LDExMi4xMzEzIEM4MS41MDc4LDExMS4xODczIDcwLjExMzgsOTkuMjExMyA3MC4xMTM4LDg0LjU1MjMgQzcwLjExMzgsODIuMTMyMyA3My43NDU4LDgyLjEzMjMgNzMuNzQ1OCw4NC41NTIzIEM3My43NDU4LDk3LjIwMzMgODMuNTE0OCwxMDcuNTYxMyA5NS45MjY4LDEwOC40OTUzIEw5NS45MjY4LDEwMy43ODIzIEM4Ni4xMjg4LDEwMi44NjAzIDc4LjQ2NzgsOTQuNTk0MyA3OC40Njc4LDg0LjU1MjMgQzc4LjQ2NzgsODIuMTMyMyA4Mi4wOTg4LDgyLjEzMjMgODIuMDk4OCw4NC41NTIzIEM4Mi4wOTg4LDkyLjU4ODMgODguMTQ4OCw5OS4yMTEzIDk1Ljk0MDgsMTAwLjExNDMgTDk1LjkyNjgsOTUuMTkxMyBDOTAuODMyOCw5NC4zMjQzIDg2Ljk2NDgsODkuODk1MyA4Ni45NjQ4LDg0LjU1MjMgQzg2Ljk2NDgsODIuMTMyMyA5MC41OTY4LDgyLjEzMjMgOTAuNTk2OCw4NC41NTIzIEM5MC41OTY4LDg3Ljg3OTMgOTIuODYyOCw5MC42NzgzIDk1LjkzMzgsOTEuNDg1MyBMOTUuOTI2OCw4NC41NTIzIEM5NS45MjY4LDgyLjEzMjMgOTkuNTYwOCw4Mi4xMzIzIDk5LjU2MDgsODQuNTUyMyBMOTkuNTczOCw5MS40OTMzIEMxMDIuNjU4OCw5MC42OTEzIDEwNC45MzU4LDg3Ljg4OTMgMTA0LjkzNTgsODQuNTUyMyBDMTA0LjkzNTgsODIuMTMyMyAxMDguNTY3OCw4Mi4xMzIzIDEwOC41Njc4LDg0LjU1MjMgQzEwOC41Njc4LDg5LjkwMjMgMTA0LjY2MzgsOTQuMzM5MyA5OS41NjA4LDk1LjE5ODMgTDk5LjU3ODgsMTAwLjExNjMgQzEwNy4zNzc4LDk5LjIxNzMgMTEzLjQzMzgsOTIuNTkzMyAxMTMuNDMzOCw4NC41NTIzIEMxMTMuNDMzOCw4Mi4xMzIzIDExNy4wNjQ4LDgyLjEzMjMgMTE3LjA2NDgsODQuNTUyMyBDMTE3LjA2NDgsOTQuNjAyMyAxMDkuMzcwOCwxMDIuOTAzMyA5OS41NjA4LDEwMy44MTQzIEw5OS41NzY4LDEwOC41MDUzIEMxMTEuOTk2OCwxMDcuNTc5MyAxMjEuNzg3OCw5Ny4yMTAzIDEyMS43ODc4LDg0LjU1MjMgQzEyMS43ODc4LDgyLjEzMjMgMTI1LjQxODgsODIuMTMyMyAxMjUuNDE4OCw4NC41NTIzIEMxMjUuNDE4OCw5OS4yMTczIDExMy45ODc4LDExMS4yMjQzIDk5LjU2MDgsMTEyLjE1NjMgTDk5LjU2MDgsMTEyLjE1NjMgWiBNMTEwLjI3ODgsMzguMDExMyBDMTA3LjYwMTgsMzUuODIwMyAxMDQuMjg0OCwzNC4zODEzIDEwMC42NTE4LDM0LjAxODMgTDEwMC42NDg4LDQ3LjY0MzMgTDExMC4yNzg4LDM4LjAxMTMgWiBNMTAwLjY0NjgsNTYuMzkzMyBMMTAwLjY1MjgsNzAuMDMwMyBDMTA0LjI4OTgsNjkuNjY2MyAxMDcuNjA4OCw2OC4yMjYzIDExMC4yODY4LDY2LjAyOTMgTDEwMC42NDY4LDU2LjM5MzMgWiBNOTcuMDEzOCw0Ny42MTEzIEw5Ny4wMDk4LDM0LjAxMjMgQzkzLjM3MzgsMzQuMzcyMyA5MC4wODY4LDM1Ljg0NzMgODcuNDA3OCwzOC4wMzgzIEw5Ny4wMTM4LDQ3LjYxMTMgWiBNOTcuMDA5OCw1Ni40MTkzIEw4Ny4zNzg4LDY2LjA0MTMgQzkwLjA2MzgsNjguMjQ0MyA5My4zNjg4LDY5LjY2OTMgOTcuMDE2OCw3MC4wMzIzIEw5Ny4wMDk4LDU2LjQxOTMgWiBNOTQuNDQ4OCw1MC4yMTUzIEw4NC44MDY4LDQwLjU4MTMgQzgyLjYxODgsNDMuMjU2MyA4MS4xODM4LDQ2LjU3MDMgODAuODIwOCw1MC4xOTgzIEw5NC40NDg4LDUwLjIxNTMgWiBNMTAzLjI0MzgsNTAuMTk4MyBMMTE2LjgzMjgsNTAuMTk4MyBDMTE2LjQ2OTgsNDYuNTc1MyAxMTUuMDM3OCw0My4yNjUzIDExMi44NTU4LDQwLjU5MjMgTDEwMy4yNDM4LDUwLjE5ODMgWiBNMTAzLjIwOTgsNTMuODM4MyBMMTEyLjgzMTgsNjMuNDg2MyBDMTE1LjAyOTgsNjAuODAzMyAxMTYuNDcxOCw1Ny40NzczIDExNi44MzQ4LDUzLjgzNDMgTDEwMy4yMDk4LDUzLjgzODMgWiBNOTQuNDYwOCw1My44MzYzIEw4MC44MTg4LDUzLjgzNjMgQzgxLjE3OTgsNTcuNDc2MyA4Mi42MjA4LDYwLjc5OTMgODQuODE0OCw2My40NzczIEw5NC40NjA4LDUzLjgzNjMgWiIgaWQ9IkZpbGwtMSIgZmlsbD0iIzM4MkYyRCI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"},"53a2":function(M,N,D){},"53e2":function(M,N,D){var t=D("07e3"),i=D("241e"),e=D("5559")("IE_PROTO"),j=Object.prototype;M.exports=Object.getPrototypeOf||function(M){return M=i(M),t(M,e)?M[e]:"function"==typeof M.constructor&&M instanceof M.constructor?M.constructor.prototype:M instanceof Object?j:null}},"542c":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzY5IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTg0LjgwMjMsMTA3Ljc5ODggTDk5LjUyNTMsMTA3LjgwMzggQzEwMS4yOTgzLDEwNy44MDM4IDEwMi43MjIzLDEwOS4xNDM4IDEwMi43MjIzLDExMC45Mjg4IEMxMDIuNzIyMywxMTIuNjQ4Mzg2IDEwMS4zOTQ4MTQsMTE0LjE1MDc2NCA5OS43MDc0MjQ4LDExNC4yNTIzMzIgTDk5LjUyNTMsMTE0LjI1NzggTDg0Ljg3MzMsMTE0LjI1NzggQzgzLjEwMTMsMTE0LjI1NzggODEuNTk0MywxMTIuODA5OCA4MS41OTQzLDExMS4wMjU4IEM4MS41OTQzLDEwOS4yNDM4IDgzLjAzMDMsMTA3Ljc5ODggODQuODAyMywxMDcuNzk4OCBaIE04OC4yMTEzLDc5LjI0MTYgTDg4LjIxMTMsODIuNTg2NiBMMTAxLjMzMDMsODIuNjAyNiBDMTAxLjMzMDMsODIuNjAyNiAxMDMuMjExMyw4Mi4zMTI2IDEwNC41NzUzLDg0LjE2NDYgTDEwNC42MDcxOTIsODQuMjA0MjI0MiBDMTA1LjA1NDA4MSw4NC43NDI4OTc1IDExMC4wNDU1NzMsOTAuNTkxOTE4MiAxMTAuMDA5Myw5MC41OTg2IEMxMTAuNDE4Myw5MS4xMzk2IDExMS4wMzkzLDkxLjc5NjYgMTEyLjE0NzMsOTEuNzI5NiBDMTEzLjIwMzk4Miw5MS42NjU2NDU1IDEyMC4wNzc0OSw5MS43MjM3ODYgMTIwLjcwMDE3MSw5MS43MjkyMDM2IEwxMjAuNzQ1Myw5MS43Mjk2IEwxMjAuNzQ1MywxMTQuMDMwNiBMMTA5LjM3NTMsMTE0LjAxODYgQzEwOS4zNzUzLDExNC4wMTg2IDEwNy4xMTUzLDExNC4xNTg2IDEwNi4xMjczLDExMS45NTk2IEMxMDUuNzU0OTM2LDExMS4xMzA1MDkgMTA0LjIxMzc2NSwxMDguMDc2NjM5IDEwMi40MzI5MjcsMTA0LjU5MjQ0OSBMMTAyLjI2NTMsMTA0LjI2NDYgTDEwMS41NjAzLDEwNC4yNjQ2IEwxMDIuMjY1MywxMDQuMjYyNiBDOTkuMzUzMyw5OC41NjQ2IDk1Ljg5NzMsOTEuODc1NiA5NS44OTczLDkxLjg3NTYgQzk1Ljg5NzMsOTEuODc1NiA5NS4zOTY3NzA1LDkwLjUwNDQyNDcgOTMuODQ2NTA2Niw5MC4zOTE5MjAzIEw5My42MzgzLDkwLjM4NDYgTDg4LjIxMTMsOTAuMzgwNiBMODguMjExMyw5Mi40NDg2IEw5MS42OTQzLDkyLjQ0OTYgQzkzLjQ2NzMsOTIuNDQ5NiA5NC44OTEzLDkzLjc5MTYgOTQuODkxMyw5NS41NzY2IEM5NC44OTEzLDk3LjI5NjE4NjIgOTMuNTYzODEzNyw5OC43OTg1NjQzIDkxLjg3NjQyNDgsOTguOTAwMTMxOSBMOTEuNjk0Myw5OC45MDU2IEw4OC4yMTEzLDk4LjkxNTYgTDg4LjIxMTMsMTAwLjEyNTYgTDk1LjYxMDMsMTAwLjEyNjYgQzk3LjM4MTMsMTAwLjEyNjYgOTguODA2MywxMDEuNDY4NiA5OC44MDYzLDEwMy4yNTE2IEM5OC44MDYzLDEwMy42MDE2IDk4Ljc1MTMsMTAzLjk0MTYgOTguNjQ5MywxMDQuMjYyNiBDOTguMjUwNDMwNCwxMDUuNTI2MTY1IDk3LjEzNTE2NzcsMTA2LjQ5NTEyMiA5NS43OTQ0NzMyLDEwNi41NzY5OSBMOTUuNjEwMywxMDYuNTgyNiBMODAuOTU4MywxMDYuNTgyNiBDODAuMDk4OTE1NCwxMDYuNTgyNiA3OS4yOTA2NTUsMTA2LjI0NzczNiA3OC42OTcxMTY2LDEwNS42OTUyMDEgTDc4LjU1MzMsMTA1LjU1MjYgTDMzLjE3NjMsMTA1LjU1MjYgTDMzLjE3NjMsNzkuMjQxNiBMODguMjExMyw3OS4yNDE2IFogTTg1LjYwNTMsODEuODQ4NiBMMzUuNzg0Myw4MS44NDg2IEwzNS43ODQzLDEwMi45NDU2IEw4NS42MDUzLDEwMi45NDU2IEw4NS42MDUzLDkwLjM4MjYgTDgxLjg1NDMsOTAuMzgzNiBDNzkuNzExMyw5MC4zODM2IDc3Ljk3MzMsODguNjM5NiA3Ny45NzMzLDg2LjQ4MzYgQzc3Ljk3MzMsODQuMzk1OTQzOCA3OS42MDQzNzIzLDgyLjY4ODM3MDUgODEuNjU0NjIxLDgyLjU4MzY4NTkgTDgxLjg1NDMsODIuNTc4NiBMODUuNjA1Myw4Mi41ODM2IEw4NS42MDUzLDgxLjg0ODYgWiBNNjAuNjk3MSw4My43NTMzIEM2NS40NzAxLDgzLjc1MzMgNjkuMzQwMSw4Ny42MjMzIDY5LjM0MDEsOTIuMzk3MyBDNjkuMzQwMSw5Ny4xNzIzIDY1LjQ3MDEsMTAxLjA0MDMgNjAuNjk3MSwxMDEuMDQwMyBDNTUuOTIzMSwxMDEuMDQwMyA1Mi4wNTMxLDk3LjE3MjMgNTIuMDUzMSw5Mi4zOTczIEM1Mi4wNTMxLDg3LjYyMzMgNTUuOTIzMSw4My43NTMzIDYwLjY5NzEsODMuNzUzMyBaIE02MS4yMzgxLDg2LjU1NzMgQzU4LjcwNzQ1NDgsODYuNTU3MyA1Ni41NTA0ODI5LDg4LjE1OTY5MzMgNTUuNzI4NzgzNCw5MC40MDgzMTg4IEw1NS42NTExLDkwLjYzNTMgTDU0LjQ2MjEsOTAuNjM4MyBMNTMuNzEwMSw5MS45OTgzIEw1NS40MDAxLDkxLjk5ODMgQzU1LjM4ODc2NjcsOTIuMDg2OTY2NyA1NS4zODA5ODg5LDkyLjE4MDA3NzggNTUuMzc3MDYzLDkyLjI3NTg1NTYgTDU1LjM3NDEsOTIuNDIxMyBMNTUuMzgxMSw5Mi43MDMzIEw1NC4zNjExLDkyLjcwNzMgTDUzLjYwOTEsOTQuMDY2MyBMNTUuNjA0MSw5NC4wNjYzIEM1Ni4zMTQxLDk2LjUwNzMgNTguNTY3MSw5OC4yODczIDYxLjIzODEsOTguMjg3MyBDNjIuNTE5NTI4Niw5OC4yODczIDYzLjYzMTk1NzEsOTcuOTAxMDE0MyA2NC42NDEwMzk1LDk3LjE5MDA5MzQgTDY0Ljg3MjEsOTcuMDIwMyBMNjQuODgzMSw5NC43OTkzIEM2My44NjMxLDk1LjkyNjMgNjIuOTI5MSw5Ni43MjIzIDYxLjIzODEsOTYuNzIyMyBDNTkuNTE3ODkxNyw5Ni43MjIzIDU4LjAzNDYzMTIsOTUuNzE0ODEyMiA1Ny4zNDYzMjUsOTQuMjU2OTYyNSBMNTcuMjYxMSw5NC4wNjQzIEw2Mi44ODgxLDk0LjA2NjMgTDYzLjU1ODEsOTIuNzA3MyBMNTYuOTQ2MSw5Mi43MDUzIEw1Ni45MzYxLDkyLjQyMTMgTDU2Ljk1ODEsOTEuOTg3MyBMNjMuOTQwMSw5MS45OTgzIEw2NC41NzUxLDkwLjYzODMgTDU3LjMzMTEsOTAuNjM1MyBDNTguMDEwMSw4OS4xNTEzIDU5LjUwMDEsODguMTIxMyA2MS4yMzgxLDg4LjEyMTMgQzYyLjc1NDg3NzgsODguMTIxMyA2My43NDk4NSw4OC43ODY3MTM2IDY0LjY4OTcxOCw4OS44MzM2NDQ4IEw2NC44NTUxLDkwLjAyMjMgTDY1LjYyODEsODguNTE0MyBDNjQuNDE2MSw4Ny4yNzYzIDYzLjAwNDEsODYuNTU3MyA2MS4yMzgxLDg2LjU1NzMgWiBNNjkuMTEzNSw2OC42MjQxIEM3MC44ODQ1LDY4LjYyNDEgNzIuMzIyNSw3MC4wNjcxIDcyLjMyMjUsNzEuODUxMSBDNzIuMzIyNSw3My41NzE2NTE3IDcwLjkxNjcwNjksNzQuOTgwODQwOCA2OS4yMjQ4MTc2LDc1LjA3NTk4MDQgTDY5LjA0MjUsNzUuMDgxMSBMNTQuMzkxNSw3NS4wODMxIEM1Mi42MTg1LDc1LjA4MzEgNTEuMTkzNSw3My41MzMxIDUxLjE5MzUsNzEuNzUyMSBDNTEuMTkzNSw3MC4wMzA1ODI4IDUyLjUyMTkxODUsNjguNzIwMTc2MSA1NC4yMDkzNzE3LDY4LjYzMTg1MDIgTDU0LjM5MTUsNjguNjI3MSBMNjkuMTEzNSw2OC42MjQxIFogTTEyMC43NDA0LDQwLjA2NTIgTDEyMC43NDA0LDY2LjM3NjIgTDc1LjM2MzQsNjYuMzc2MiBDNzQuODA0OTM4NSw2Ni45NjUxMjMxIDc0LjAyMTUzMDIsNjcuMzQzNTg0NiA3My4xNzIwNTM2LDY3LjM5ODMyNDcgTDcyLjk1ODQsNjcuNDA1MiBMNTguMzA2NCw2Ny40MDUyIEM1Ni41MzM0LDY3LjQwNTIgNTUuMTA4NCw2NS44NTYyIDU1LjEwODQsNjQuMDc1MiBDNTUuMTA4NCw2Mi4zNTQ2NDgzIDU2LjQzNjgxODUsNjEuMDQzMzQyNyA1OC4xMjQyNzE3LDYwLjk1NDk1MzcgTDU4LjMwNjQsNjAuOTUwMiBMNjUuNzA0NCw2MC45NDgyIEw2NS43MDQ0LDU5LjczODIgTDYyLjIyMTQsNTkuNzI4MiBDNjAuNDQ5NCw1OS43MjgyIDU5LjAyNTQsNTguMTc5MiA1OS4wMjU0LDU2LjM5OTIgQzU5LjAyNTQsNTQuNjc4NjQ4MyA2MC4zNTI4ODYzLDUzLjM2NjQxMDUgNjIuMDM5Mzc1Miw1My4yNzc5NTcxIEw2Mi4yMjE0LDUzLjI3MzIgTDY1LjcwNDQsNTMuMjcxMiBMNjUuNzA0NCw1MS4yMDQyIEw2MC4yNzg0LDUxLjIwNzIgQzU4LjU2NDQsNTEuMjA2MiA1OC4wMTk0LDUyLjY5ODIgNTguMDE5NCw1Mi42OTgyIEM1OC4wMTk0LDUyLjY5ODIgNDguNzc2NCw3MC41ODQyIDQ3Ljc4ODQsNzIuNzgzMiBDNDYuODMxMjc1LDc0LjkxMzQ4MTMgNDQuNjgxMzQ2Myw3NC44NDg2NjU4IDQ0LjU0NzkxMDQsNzQuODQyNTM0NSBMNDQuNTQxNCw3NC44NDIyIEwzMy4xNzE0LDc0Ljg1NTIgTDMzLjE3MTQsNTIuNTUzMiBMMzMuMjcxNDczOCw1Mi41NTIzMjkzIEMzNC4xNjMyMjIzLDUyLjU0NDY4NjYgNDAuNzM3ODc3Myw1Mi40OTA3NjgyIDQxLjc2OTQsNTIuNTUzMiBDNDIuODc3NCw1Mi42MjAyIDQzLjQ5NzQsNTEuOTYxMiA0My45MDc0LDUxLjQyMTIgQzQzLjg2ODQsNTEuNDEzMiA0OS4zNDk0LDQ0Ljk5NTIgNDkuMzQxNCw0NC45ODYyIEM1MC42NjE0LDQzLjE5NTg3NzQgNTIuNDY1NTgzMSw0My40MDc4NDQxIDUyLjU4MDYwODUsNDMuNDIzMzgyNCBMNTIuNTg2NCw0My40MjQyIEw2NS43MDQ0LDQzLjQxMDIgTDY1LjcwNDQsNDAuMDY1MiBMMTIwLjc0MDQsNDAuMDY1MiBaIE0xMTguMTMyNCw0Mi42NzIyIEw2OC4zMDk0LDQyLjY3MjIgTDY4LjMwOTQsNDMuNDA2MiBMNzIuMDYzNCw0My40MDMyIEM3NC4yMDU0LDQzLjQwMzIgNzUuOTQzNCw0NS4xNDkyIDc1Ljk0MzQsNDcuMzA1MiBDNzUuOTQzNCw0OS4zOTQ3OTM4IDc0LjMxMjMyNzcsNTEuMDk4NjczNiA3Mi4yNjI5ODgyLDUxLjIwMzEyNTUgTDcyLjA2MzQsNTEuMjA4MiBMNjguMzA5NCw1MS4yMDUyIEw2OC4zMDk0LDYzLjc2ODIgTDExOC4xMzI0LDYzLjc2ODIgTDExOC4xMzI0LDQyLjY3MjIgWiBNOTYuMjMzNyw0NS45MTgzIEM5Ny40NTE3LDQ1LjkxODMgOTguNDM5Nyw0Ni45MDUzIDk4LjQzOTcsNDguMTIzMyBMOTguNDM5Nyw1Ni4wNjUzIEM5OC40Mzk3LDU3LjExMDMgOTcuNzA5Nyw1Ny45ODkzIDk2LjcyOTcsNTguMjEzMyBMOTkuMjgzNyw2Mi4xMDQzIEw5Ny44MTI3LDYyLjEwNDMgTDk1Ljk3MjcsNTkuMzgzMyBMOTAuNzU4Nyw1OS4zODMzIEw4OC45MTk3LDYyLjEwNDMgTDg3LjQ0ODcsNjIuMTA0MyBMOTAuMDAyNyw1OC4yMTMzIEM4OS4wMjI3LDU3Ljk4OTMgODguMjkyNyw1Ny4xMTAzIDg4LjI5MjcsNTYuMDY1MyBMODguMjkyNyw0OC4xMjMzIEM4OC4yOTI3LDQ2LjkwNTMgODkuMjc5Nyw0NS45MTgzIDkwLjQ5ODcsNDUuOTE4MyBMOTYuMjMzNyw0NS45MTgzIFogTTkwLjU1MzcsNTUuMDcwNCBDODkuOTk1Nyw1NS4wNzA0IDg5LjU0MjcsNTUuNTI1NCA4OS41NDI3LDU2LjA4MzQgQzg5LjU0MjcsNTYuNjQxNCA4OS45OTU3LDU3LjA5NDQgOTAuNTUzNyw1Ny4wOTQ0IEM5MS4xMTE3LDU3LjA5NDQgOTEuNTY0Nyw1Ni42NDE0IDkxLjU2NDcsNTYuMDgzNCBDOTEuNTY0Nyw1NS41MjU0IDkxLjExMTcsNTUuMDcwNCA5MC41NTM3LDU1LjA3MDQgWiBNOTYuMTc4NSw1NS4wNzEyIEM5NS42MjA1LDU1LjA3MTIgOTUuMTY3NSw1NS41MjYyIDk1LjE2NzUsNTYuMDg0MiBDOTUuMTY3NSw1Ni42NDAyIDk1LjYyMDUsNTcuMDkzMiA5Ni4xNzg1LDU3LjA5MzIgQzk2LjczNjUsNTcuMDkzMiA5Ny4xODk1LDU2LjY0MDIgOTcuMTg5NSw1Ni4wODQyIEM5Ny4xODk1LDU1LjUyNjIgOTYuNzM2NSw1NS4wNzEyIDk2LjE3ODUsNTUuMDcxMiBaIE05Ni4xMDUyLDQ4LjE5NzIgTDkwLjYyNzIsNDguMTk3MiBMOTAuNTA5MjA0MSw0OC4yMDM1NTY0IEM5MC4wMDUzMjAzLDQ4LjI1ODE2OCA4OS42MDQyODg2LDQ4LjY1ODQ0MDkgODkuNTQ5NTY5Miw0OS4xNjIyMTY5IEw4OS41NDMyLDQ5LjI4MDIgTDg5LjU0MzIsNTAuNzE2MiBMODkuNTQ5NTY5Miw1MC44MzQxOTU5IEM4OS42MDQyODg2LDUxLjMzODA3OTcgOTAuMDA1MzIwMyw1MS43MzkxMTE0IDkwLjUwOTIwNDEsNTEuNzkzODMwOCBMOTAuNjI3Miw1MS44MDAyIEw5Ni4xMDUyLDUxLjgwMDIgTDk2LjIyMzE5NTksNTEuNzkzODMwOCBDOTYuNzI3MDc5Nyw1MS43MzkxMTE0IDk3LjEyODExMTQsNTEuMzM4MDc5NyA5Ny4xODI4MzA4LDUwLjgzNDE5NTkgTDk3LjE4OTIsNTAuNzE2MiBMOTcuMTg5Miw0OS4yODAyIEw5Ny4xODI4MzA4LDQ5LjE2MjIxNjkgQzk3LjEyMzkwMjIsNDguNjE5Njg4OSA5Ni42NjMzMzMzLDQ4LjE5NzIgOTYuMTA1Miw0OC4xOTcyIFogTTk0LjU3ODYsNDYuMzk3MSBMOTIuMTUyNiw0Ni4zOTcxIEw5Mi4wODI0Nzg5LDQ2LjQwNDE0MSBDOTEuOTQ2NDcxMSw0Ni40MzE4NTU5IDkxLjgzODcyODksNDYuNTM4NjcyMyA5MS44MTA3MjExLDQ2LjY3NjA3NDYgTDkxLjgwMzYsNDYuNzQ3MSBMOTEuODAzNiw0Ny4zNzExIEw5MS44MTA3MjExLDQ3LjQ0MDg5MSBDOTEuODM4NzI4OSw0Ny41NzYzMjQ2IDkxLjk0NjQ3MTEsNDcuNjgzOTg0OCA5Mi4wODI0Nzg5LDQ3LjcxMTk4MDkgTDkyLjE1MjYsNDcuNzE5MSBMOTQuNTc4Niw0Ny43MTkxIEw5NC42NDkzMzgzLDQ3LjcxMTk4MDkgQzk0Ljc4NjMzMDUsNDcuNjgzOTg0OCA5NC44OTM2NTA4LDQ3LjU3NjMyNDYgOTQuOTIxNTE4LDQ3LjQ0MDg5MSBMOTQuOTI4Niw0Ny4zNzExIEw5NC45Mjg2LDQ2Ljc0NzEgTDk0LjkyMTUxOCw0Ni42NzYwNzQ2IEM5NC44ODkwMDYzLDQ2LjUxNTc3MTkgOTQuNzQ4MzUsNDYuMzk3MSA5NC41Nzg2LDQ2LjM5NzEgWiBNOTQuMjg0Nyw0NC40NDczIEM5NC42MzA3LDQ0LjQ0NzMgOTQuOTA5Nyw0NC43MjYzIDk0LjkwOTcsNDUuMDcyMyBDOTQuOTA5Nyw0NS40MTgzIDk0LjYzMDcsNDUuNjk5MyA5NC4yODQ3LDQ1LjY5OTMgQzkzLjkzOTcsNDUuNjk5MyA5My42NTk3LDQ1LjQxODMgOTMuNjU5Nyw0NS4wNzIzIEM5My42NTk3LDQ0LjcyNjMgOTMuOTM5Nyw0NC40NDczIDk0LjI4NDcsNDQuNDQ3MyBaIE05Mi40NDY3LDQ0LjQ0NzMgQzkyLjc5MjcsNDQuNDQ3MyA5My4wNzE3LDQ0LjcyNjMgOTMuMDcxNyw0NS4wNzIzIEM5My4wNzE3LDQ1LjQxODMgOTIuNzkyNyw0NS42OTkzIDkyLjQ0NjcsNDUuNjk5MyBDOTIuMTAwNyw0NS42OTkzIDkxLjgyMTcsNDUuNDE4MyA5MS44MjE3LDQ1LjA3MjMgQzkxLjgyMTcsNDQuNzI2MyA5Mi4xMDA3LDQ0LjQ0NzMgOTIuNDQ2Nyw0NC40NDczIFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbD0iIzM4MkYyRCI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4="},"545e":function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTQiIGhlaWdodD0iMTU0IiB2aWV3Qm94PSIwIDAgMTU0IDE1NCI+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGZpbGw9IiM5MENFMDAiIGQ9Ik0xMzEuOSAxMTAuOGMtLjEuMi0uNC40LS44LjRsLTYuNy4zYy0xIDAtMS45LjUtMi40IDEuNC0uNS44LS42IDEuOC0uMyAyLjcgMi45IDcuNSA0LjEgMTAuNyA0LjYgMTIgMCAuMi4xLjQuMi42LjkgMi4zLS4yIDQuOC0yLjMgNS42LTEgLjQtMi4xLjMtMy4xLS4xLTEuMS0uNS0yLTEuNC0yLjQtMi41bC0uMS0uNGMtLjMtLjgtLjgtMi40LTEuMy0zLjYgMC0uMS0uMS0uMi0uMS0uM2wtMy4zLTguM2MtLjQtLjktMS4xLTEuNi0yLjEtMS44LS45LS4yLTEuOSAwLTIuNy42bC01LjEgNC4zYy0uMy4yLS43LjMtMSAuMS0uMy0uMi0uNS0uNS0uNC0uOWw0LjYtMjYuMXYtLjFjLjItLjcuNy0xLjIgMS40LTEuNS43LS4zIDEuMy0uMiAyIC4ybC4xLjEgMjEgMTYuMmMuNC4zLjQuOC4yIDEuMW0zLjYtNS45bC0yMC42LTE1LjctLjUtLjRjLS4zLS4yLS41LS40LS44LS41LTIuMy0xLjMtNC43LTEuNS03LjEtLjYtMi40LjktNC4xIDIuOC00LjkgNS4yLS4xLjMtLjIuNi0uMi45bC00LjYgMjYuMWMtLjUgMi44LjggNS43IDMuMyA3LjEgMi41IDEuNCA1LjYgMS4yIDcuOC0uN2wyLTEuNyAxLjggNC44YzAgLjEgMCAuMS4xLjEuNCAxLjEuOSAyLjYgMS4yIDMuMy4xLjMuMi41LjIuNSAxIDIuNiAzIDQuNyA1LjYgNS44IDEuMy42IDIuNy45IDQuMS45IDEuMS4xIDIuMy0uMiAzLjUtLjYgNS4xLTIgNy43LTcuNyA1LjktMTIuOXYtLjJjLS4yLS43LS41LTEuMy0uNy0yLjEtLjUtMS40LTEuNC0zLjYtMi43LTYuOWwyLjYtLjFjMi4zLS4xIDQuNC0xLjMgNS42LTMuMiAxLjktMyAxLjItNi45LTEuNi05LjEiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjMUEyNzMyIiBkPSJNODkuNSA1OS40Yy42IDAgMSAuNCAxIDF2NGMtLjEuNi0uNi45LTEuMS45aC04Ljl2MzFjMCAuNi0uNSAxLTEgMWgtNS4xYy0uNiAwLTEtLjUtMS0xdi0zMWgtOC45Yy0uNiAwLTEtLjQtMS0uOXYtNGMwLS42LjUtMSAxLTFoMjV6bTE0LjU4NiA3OC45NjNjLjYwMi44NC0uMzA3IDEuMTItLjMwNyAxLjEyQTY3LjU0IDY3LjU0IDAgMCAxIDc2Ljk5OSAxNDVjLTM3LjQ5NCAwLTY4LTMwLjUwNS02OC02OEM5IDM4LjQxOCA0MS4zIDcuMjM3IDgwLjI3OSA5LjA3N2MzNC4yNDUgMS42MTcgNjIuMjMgMjguOTg3IDY0LjU2IDYzLjE5LjU2IDguMjIyLS4zNTMgMTYuMTYzLTIuNDk4IDIzLjU4Ny0uMTk0LjY3NC0xLjAxNy45MzQtMS41NzMuNTA3bC0yLjkxNS0yLjIzN2ExLjk5OCAxLjk5OCAwIDAgMS0uNzEzLTIuMDhBNjEuNzkgNjEuNzkgMCAwIDAgMTM4Ljk5OSA3N2MwLTM1LjE3LTI5LjQzNC02My41OTUtNjQuOTYzLTYxLjkzLTMxLjczMSAxLjQ4NS01Ny40ODIgMjcuMjM3LTU4Ljk2NyA1OC45N0MxMy40MDcgMTA5LjU2NSA0MS44MzIgMTM5IDc2Ljk5OSAxMzljNi4zMDUgMCAxMi4zODktLjk1NCAxOC4xMjQtMi43MTJhMi4wMjcgMi4wMjcgMCAwIDEgMS40MjkuMTAyIDE3LjA3NiAxNy4wNzYgMCAwIDAgNi4zIDEuNTA1Yy40NTMuMDIuOTcuMSAxLjIzNC40Njh6Ii8+CiAgICA8L2c+Cjwvc3ZnPgo="},5478:function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiM5MENFMDAiPgogIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTY2Ljc5OTgsOTcgQzY2LjA5OTgsOTcgNjUuNDk5OCw5Ny42IDY1LjQ5OTgsOTguMyBMNjUuNDk5OCwxMDEuNyBDNjUuNDk5OCwxMDIuNCA2Ni4wOTk4LDEwMyA2Ni43OTk4LDEwMyBMMTM2LjY5OTgsMTAzIEMxMzguNDAwOCwxMDMgMTM5LjY5OTgsMTAxLjcgMTM5LjY5OTgsMTAwIEwxMzkuNjk5OCw5NC42IEMxMzkuNjk5OCw4OC42IDEzNS4xOTk4LDgzLjQgMTI5LjI5OTgsODIuNSBMNjIuMjk5OCw3Mi43IEM2MC4wOTk4LDcyLjQgNTcuOTk5OCw3MyA1Ni4yOTk4LDc0LjUgQzU0LjY5OTgsNzUuOSA1My42OTk4LDc4IDUzLjY5OTgsODAuMiBMNTMuNjk5OCw5Mi4xIEM1My42OTk4LDk0LjggNTEuNDk5OCw5NyA0OC43OTk4LDk3IEwyMy45OTk4LDk3IEMyMy4yOTk4LDk3IDIyLjY5OTgsOTcuNiAyMi42OTk4LDk4LjMgTDIyLjY5OTgsMTAxLjcgQzIyLjY5OTgsMTAyLjQgMjMuMjk5OCwxMDMgMjMuOTk5OCwxMDMgTDQ4Ljc5OTgsMTAzIEM1NC43OTk4LDEwMyA1OS42OTk4LDk4LjEgNTkuNjk5OCw5Mi4xIEw1OS42OTk4LDgwLjIgQzU5LjY5OTgsNzkuNiA1OS45OTk4LDc5LjIgNjAuMTk5OCw3OS4xIEM2MC4zOTk4LDc4LjkgNjAuNzk5OCw3OC43IDYxLjM5OTgsNzguNyBMMTI4LjQwMDgsODguNSBDMTMxLjQwMDgsODguOSAxMzMuNjk5OCw5MS42IDEzMy42OTk4LDk0LjYgTDEzMy42OTk4LDk3IEw2Ni43OTk4LDk3IFogTTMwLjY5OTgsODAuMyBDMzAuNjk5OCw4My4zIDMzLjE5OTgsODUuOCAzNi4xOTk4LDg1LjggQzM5LjE5OTgsODUuOCA0MS42OTk4LDgzLjMgNDEuNjk5OCw4MC4zIEM0MS42OTk4LDc3LjMgMzkuMTk5OCw3NC44IDM2LjE5OTgsNzQuOCBDMzMuMTk5OCw3NC44IDMwLjY5OTgsNzcuMyAzMC42OTk4LDgwLjMgTDMwLjY5OTgsODAuMyBaIE0yNC42OTk4LDgwLjMgQzI0LjY5OTgsNzMuOSAyOS44OTk4LDY4LjggMzYuMTk5OCw2OC44IEM0Mi41OTk4LDY4LjggNDcuNjk5OCw3NCA0Ny42OTk4LDgwLjMgQzQ3LjY5OTgsODYuNyA0Mi40OTk4LDkxLjggMzYuMTk5OCw5MS44IEMyOS43OTk4LDkxLjggMjQuNjk5OCw4Ni43IDI0LjY5OTgsODAuMyBMMjQuNjk5OCw4MC4zIFogTTE0NC42OTk4LDExOC42IEMxNDQuNjk5OCwxMTQuNCAxNDEuMjk5OCwxMTEgMTM3LjA5OTgsMTExIEwxNC42OTk4LDExMSBMMTQuNjk5OCw3MC4zIEMxNC42OTk4LDY5LjYgMTQuMDk5OCw2OSAxMy4zOTk4LDY5IEw5Ljk5OTgsNjkgQzkuMjk5OCw2OSA4LjY5OTgsNjkuNiA4LjY5OTgsNzAuMyBMOC41OTk4LDE0My43IEM4LjU5OTgsMTQ0LjQgOS4xOTk4LDE0NSA5Ljg5OTgsMTQ1IEwxMy4yOTk4LDE0NSBDMTMuOTk5OCwxNDUgMTQuNTk5OCwxNDQuNCAxNC41OTk4LDE0My43IEwxNC42OTk4LDExNyBMMTM3LjA5OTgsMTE3IEMxMzcuOTk5OCwxMTcgMTM4LjY5OTgsMTE3LjcgMTM4LjY5OTgsMTE4LjYgTDEzOC42OTk4LDE0My43IEMxMzguNjk5OCwxNDQuNCAxMzkuMjk5OCwxNDUgMTM5Ljk5OTgsMTQ1IEwxNDMuNDAwOCwxNDUgQzE0NC4wOTk4LDE0NSAxNDQuNjk5OCwxNDQuNCAxNDQuNjk5OCwxNDMuNyBMMTQ0LjY5OTgsMTE4LjYgWiBNOC44OTk4LDQ1LjkgQzguNTk5OCw0NS4zIDguNzk5OCw0NC41IDkuNDk5OCw0NC4yIEw3NS4zOTk4LDEwLjEgQzc2LjI5OTgsOS43IDc3LjI5OTgsOS43IDc4LjE5OTgsMTAuMSBMMTQzLjk5OTgsNDQuMiBDMTQ0LjU5OTgsNDQuNSAxNDQuOTAwOCw0NS4zIDE0NC41OTk4LDQ1LjkgTDE0Mi45OTk4LDQ4LjkgQzE0Mi42OTk4LDQ5LjUgMTQxLjkwMDgsNDkuOCAxNDEuMjk5OCw0OS41IEw3Ni42OTk4LDE2LjEgTDEyLjE5OTgsNDkuNSBDMTEuNTk5OCw0OS44IDEwLjc5OTgsNDkuNiAxMC40OTk4LDQ4LjkgTDguODk5OCw0NS45IFoiPjwvcGF0aD4KPC9zdmc+"},54780:function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wY180Ni1tayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEzNCwxMTkgTDEzNCwzNSBDMTM0LDI2LjcxNjE0NTggMTI3LjI4Mzg1NCwyMCAxMTksMjAgTDM1LDIwIEMyNi43MTYxNDU4LDIwIDIwLDI2LjcxNjE0NTggMjAsMzUgTDIwLDExOSBDMjAsMTI3LjI4Mzg1NCAyNi43MTYxNDU4LDEzNCAzNSwxMzQgTDExOSwxMzQgQzEyNy4yODM4NTQsMTM0IDEzNCwxMjcuMjgzODU0IDEzNCwxMTkgWiIgaWQ9ImJvcmRlLXJlc3BldG8iIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0icG9pLS8tcGNfNDYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjOEVCQUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0zNi4yNTY0LDk5LjIwMzEgTDEwNS44NjI0LDk5LjIwMzEgTDEwNS44NjI0LDg3Ljk2MDEgTDM2LjI1NjQsODcuOTYwMSBMMzYuMjU2NCw5OS4yMDMxIFogTTEwNy43OTk0LDk5LjIwMzEgTDExMS43MTM0LDk5LjIwMzEgTDExMS43MTM0LDg3Ljk2MDEgTDEwNy43OTk0LDg3Ljk2MDEgTDEwNy43OTk0LDk5LjIwMzEgWiBNMTEzLjY5MTQsOTkuMjAzMSBMMTE3LjYwNTQsOTkuMjAzMSBMMTE3LjYwNTQsODcuOTYwMSBMMTEzLjY5MTQsODcuOTYwMSBMMTEzLjY5MTQsOTkuMjAzMSBaIE0xMTEuNzEzNCw4NS45NjIxIEwxMDcuNzk5NCw4NS45NjIxIEwxMDcuODE5NCw4Mi44ODIxIEMxMDcuODEwNCw4MC4yMTcxIDEwNy44NTI0LDc1Ljg0NDEgMTAyLjM0OTQsNzUuNjQ5MSBDOTEuMzE5NCw3NS4zNzIxIDg2LjI1OTQsNzYuNjM3MSA4My4zNjQ0LDcwLjMyOTEgQzgyLjYzMTQsNjguNjQzMSA4Mi41NDM0LDY2LjI4MDEgODMuMDk1NCw2NC4yNjMxIEM3OC4wNzY0LDYzLjk4NTEgNzIuNDYzNCw2MC4xMTIxIDcyLjQ2MzQsNTIuODgwMSBDNzIuNDYzNCw0NS42NDQxIDc4Ljc4ODQsNDEuNTcxMSA4My42NTE0LDQxLjU3MTEgTDgzLjY1OTQsNDUuNDQ1MSBDODAuNzIzNCw0NS42NjQxIDc3LjY4MDQsNDcuNTAxMSA3Ni44MTE0LDUwLjQ2NzEgQzc1LjkzMDQsNTMuMTA3MSA3Ni4zMjY0LDU1LjkxNjEgNzguMjM1NCw1Ny44OTcxIEM4MS44NzE0LDYxLjkzMDEgODYuNzY5NCw1OS40MzUxIDg3LjUyNDQsNjEuODkyMSBDODguMTU1NCw2My45NDcxIDg1LjgyMzQsNjQuNjU3MSA4Ni43MzQ0LDY4LjEzODEgQzg3LjI0NjQsNjkuNTMyMSA4OC4xOTU0LDcwLjk4MzEgOTAuODg0NCw3MS41NzcxIEM5Ny45NjE0LDcyLjY0NDEgMTA3Ljc3NDQsNjkuMDc3MSAxMTEuMTY0NCw3Ny4yMzAxIEMxMTEuODAxNCw3OS4wMzgxIDExMS43NDk0LDgxLjQ3MzEgMTExLjcxMzQsODMuNDc3MSBMMTExLjcxMzQsODUuOTYyMSBaIE04Ny4zODg0LDQ1LjI4ODEgQzkyLjIzMzQsNDUuMTQxMSA5Ni44MTA0LDQ3Ljc2NTEgOTkuMDEyNCw1Mi4xNjYxIEMxMDAuNDA2NCw1NS4xNzQxIDEwMC42NzI0LDU5LjU5ODEgOTkuMDUxNCw2Mi44MDExIEMxMDYuODQwNCw2Mi44MDExIDExMC42NzQ0LDY0LjUwMDEgMTEzLjc1NzQsNjcuOTQwMSBDMTE3LjM1OTQsNzEuOTU2MSAxMTcuNjA1NCw3Ny44MjIxIDExNy42MDU0LDc5LjQ4NDEgTDExNy42MDU0LDg1Ljk2MjEgTDExMy42OTE0LDg1Ljk2MjEgTDExMy42OTE0LDc5LjUyNDEgQzExMy42OTE0LDY3Ljk0MDEgMTA0LjU4NTQsNjYuNjM2MSAxMDEuMDI4NCw2Ni44MzMxIEM5NS4xMzc0LDY3LjE4ODEgOTQuMTk2NCw2Ni42ODExIDkzLjkxMjQsNjUuMDkyMSBDOTMuNjM1NCw2My41NTMxIDk2LjcyMDQsNjEuNTc2MSA5Ni40MTc0LDU3LjYzNjEgQzk2LjM0NDQsNTQuNjI2MSA5NS4yNTk0LDUyLjU0NDEgOTIuODA2NCw1MC43ODIxIEM5MS4wMTM0LDQ5LjQ5NzEgODkuMTI4NCw0OS4xNjMxIDg3LjM4ODQsNDkuMTYzMSBMODcuMzg4NCw0NS4yODgxIFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"547c":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wcF81MC1tayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEzNCwxMTkgTDEzNCwzNSBDMTM0LDI2LjcxNjE0NTggMTI3LjI4Mzg1NCwyMCAxMTksMjAgTDM1LDIwIEMyNi43MTYxNDU4LDIwIDIwLDI2LjcxNjE0NTggMjAsMzUgTDIwLDExOSBDMjAsMTI3LjI4Mzg1NCAyNi43MTYxNDU4LDEzNCAzNSwxMzQgTDExOSwxMzQgQzEyNy4yODM4NTQsMTM0IDEzNCwxMjcuMjgzODU0IDEzNCwxMTkgWiIgaWQ9ImJvcmRlLXJlc3BldG8iIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0icG9pLS8tcHBfNTAiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMDcuMDA4NywzOC4yOTA1IEMxMDguNzgxNywzOC4yOTA1IDExMC4yMTU3LDM5LjcyMzUgMTEwLjIxNTcsNDEuNTA1NSBMMTEwLjIxNTcsMTA5LjQ0MDUgTDEwNC42MzI3LDEwOS40Mzg1IEwxMDQuNjMyNywxMTMuMTQwNSBDMTA0LjYzMjcsMTE0LjU2MjUgMTAzLjQ3NjcsMTE1LjcxMjUgMTAyLjA2MjcsMTE1LjcxMjUgTDk3LjM1OTcsMTE1LjcxMjUgQzk1LjkzNDcsMTE1LjcxMjUgOTQuNzc3NywxMTQuNTYyNSA5NC43Nzc3LDExMy4xNDA1IEw5NC43Nzc3LDEwOS40Mzg1IEw1OS40OTA3LDEwOS40Mzg1IEw1OS40OTA3LDExMy4xNDA1IEM1OS40OTA3LDExNC41NjI1IDU4LjMzMzcsMTE1LjcxMjUgNTYuOTE5NywxMTUuNzEyNSBMNTIuMjE2NywxMTUuNzEyNSBDNTAuNzgyNywxMTUuNzEyNSA0OS42MzY3LDExNC41NjI1IDQ5LjYzNjcsMTEzLjE0MDUgTDQ5LjYzNDcsMTA5LjQzODUgTDQzLjc4NDcsMTA5LjQ0MDUgTDQzLjc4NDcsNDEuNTA1NSBDNDMuNzg0NywzOS43MjM1IDQ1LjIyODcsMzguMjkwNSA0Ny4wMDM3LDM4LjI5MDUgTDEwNy4wMDg3LDM4LjI5MDUgWiBNNjEuODcwMSw5NC4zODQ2IEw1MS41ODYxLDk0LjM4NDYgQzUwLjUxODEsOTQuMzg0NiA0OS42NjQxLDk1LjI0NjYgNDkuNjY0MSw5Ni4zMDg2IEw0OS42NjQxLDk2LjMwODYgTDQ5LjY2NDEsOTguODcyNiBDNDkuNjY0MSw5OS45NDg2IDUwLjUxODEsMTAwLjgxNzYgNTEuNTg2MSwxMDAuODE3NiBMNTEuNTg2MSwxMDAuODE3NiBMNjEuODcwMSwxMDAuODE3NiBDNjIuOTM5MSwxMDAuODE3NiA2My44MDkxLDk5Ljk0ODYgNjMuODA5MSw5OC44NzI2IEw2My44MDkxLDk4Ljg3MjYgTDYzLjgwOTEsOTYuMzA4NiBDNjMuODA5MSw5NS4yNDY2IDYyLjkzOTEsOTQuMzg0NiA2MS44NzAxLDk0LjM4NDYgTDYxLjg3MDEsOTQuMzg0NiBaIE0xMDIuNDg3MSw5NC4zODQ2IEw5Mi4yMTIxLDk0LjM4NDYgQzkxLjE0MjEsOTQuMzg0NiA5MC4yNzcxLDk1LjI0NjYgOTAuMjc3MSw5Ni4zMDg2IEw5MC4yNzcxLDk2LjMwODYgTDkwLjI3NzEsOTguODcyNiBDOTAuMjc3MSw5OS45NDg2IDkxLjE0MjEsMTAwLjgxNzYgOTIuMjEyMSwxMDAuODE3NiBMOTIuMjEyMSwxMDAuODE3NiBMMTAyLjQ4NzEsMTAwLjgxNzYgQzEwMy41NTMxLDEwMC44MTc2IDEwNC40MTIxLDk5Ljk0ODYgMTA0LjQxMjEsOTguODcyNiBMMTA0LjQxMjEsOTguODcyNiBMMTA0LjQxMjEsOTYuMzA4NiBDMTA0LjQxMjEsOTUuMjQ2NiAxMDMuNTUzMSw5NC4zODQ2IDEwMi40ODcxLDk0LjM4NDYgTDEwMi40ODcxLDk0LjM4NDYgWiBNMTAwLjYwNzksNTMuMzk5OSBMNTMuNjY4OSw1My4zOTk5IEM1Mi42NTg0MjM4LDUzLjM5OTkgNTEuODI5MzUzNSw1NC4xODkwMTU2IDUxLjc1MjY4NTgsNTUuMTgyNDI4OSBMNTEuNzQ2OSw1NS4zMzI5IEw0OS42MDY5LDg2LjY1NzkgQzQ5LjYwNjksODcuNjc1MDQyOSA1MC41MzM4ODQxLDg4LjQ4NTM4MyA1MS40NDc5OTcxLDg4LjU2MDI1MTggTDUxLjU4NDksODguNTY1OSBMMTAyLjUyNDksODguNTg4OSBDMTAzLjY0NDksODguNTg4OSAxMDQuMzgzMDQxLDg3Ljg0Nzg1NjkgMTA0LjQ1MDgsODYuODQ1MjAwNiBMMTA0LjQ1NTksODYuNjkyOSBMMTAyLjUzODksNTUuMjI2OSBDMTAyLjUzODksNTQuMTUxOSAxMDEuNjY1OSw1My4zOTk5IDEwMC42MDc5LDUzLjM5OTkgWiBNMTAwLjYwOSw0Mi44MjE4IEw1My42MzEsNDIuODIxOCBDNTIuNjExLDQyLjgyMTggNTEuNzkwNTQ2NSw0My42MDU0NzM1IDUxLjcxNDcyMSw0NC42MDc4NzA2IEw1MS43MDksNDQuNzU5OCBMNTEuNzA5LDQ2LjgzMjggQzUxLjcwOSw0Ny44NDk5NDI5IDUyLjQ4MDg4MjEsNDguNjgyMDUxNyA1My40Nzk1NjQ3LDQ4Ljc1ODk5MzcgTDUzLjYzMSw0OC43NjQ4IEwxMDAuNjA5LDQ4Ljc2NDggQzEwMS42MTQ3MTQsNDguNzY0OCAxMDIuNDU2MjU2LDQ3Ljk4MTEyNjUgMTAyLjUzNDEyMyw0Ni45ODM5MTI0IEwxMDIuNTQsNDYuODMyOCBMMTAyLjU0LDQ0Ljc1OTggQzEwMi41NCw0My42ODU4IDEwMS42NjUsNDIuODIxOCAxMDAuNjA5LDQyLjgyMTggWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjMzgyRjJEIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="},"549b":function(M,N,D){"use strict";var t=D("d864"),i=D("63b6"),e=D("241e"),j=D("b0dc"),T=D("3702"),g=D("b447"),u=D("20fd"),s=D("7cd6");i(i.S+i.F*!D("4ee1")((function(M){Array.from(M)})),"Array",{from:function(M){var N,D,i,L,I=e(M),A="function"==typeof this?this:Array,z=arguments.length,n=z>1?arguments[1]:void 0,w=void 0!==n,r=0,y=s(I);if(w&&(n=t(n,z>2?arguments[2]:void 0,2)),void 0==y||A==Array&&T(y))for(N=g(I.length),D=new A(N);N>r;r++)u(D,r,w?n(I[r],r):I[r]);else for(L=y.call(I),D=new A;!(i=L.next()).done;r++)u(D,r,w?j(L,n,[i.value,r],!0):i.value);return D.length=r,D}})},"54fb":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wcF8wNS1zZWxtayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTc3LDEzOS43ODkxIEM4OS41NTgsMTM5Ljc4OTEgOTkuNzM3LDE0Mi45NzExIDk5LjczNywxNDYuODk0MSBDOTkuNzM3LDE1MC44MTkxIDg5LjU1OCwxNTQuMDAwMSA3NywxNTQuMDAwMSBDNjQuNDQyLDE1NC4wMDAxIDU0LjI2MywxNTAuODE5MSA1NC4yNjMsMTQ2Ljg5NDEgQzU0LjI2MywxNDIuOTcxMSA2NC40NDIsMTM5Ljc4OTEgNzcsMTM5Ljc4OTEiIGlkPSJzb21icmEtMiIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiM1MjVDNjUiPjwvcGF0aD4KICAgICAgICA8cGF0aCBkPSJNNzcsMTQ1LjQ3MzYgQzgzLjI3OCwxNDUuNDczNiA4OC4zNjgsMTQ2Ljc0NTYgODguMzY4LDE0OC4zMTU2IEM4OC4zNjgsMTQ5Ljg4NTYgODMuMjc4LDE1MS4xNTg2IDc3LDE1MS4xNTg2IEM3MC43MjIsMTUxLjE1ODYgNjUuNjMyLDE0OS44ODU2IDY1LjYzMiwxNDguMzE1NiBDNjUuNjMyLDE0Ni43NDU2IDcwLjcyMiwxNDUuNDczNiA3NywxNDUuNDczNiIgaWQ9InNvbWJyYS0xIiBmaWxsLW9wYWNpdHk9IjAuNCIgZmlsbD0iIzUyNUM2NSI+PC9wYXRoPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xMjIsMTQ5Ljk1IEw3NywxNDkuOTUgTDc2Ljg3OCwxNDkuOTUgQzczLjg4NywxNDkuOTUgNzEuMDY5LDE0OC42NDIgNjkuMTQ2LDE0Ni4zNjIgTDU1LjM0LDEzMCBMMzUsMTMwIEMyNi43MjksMTMwIDIwLDEyMy4yNzEgMjAsMTE1IEwyMCwzMSBDMjAsMjIuNzI5IDI2LjcyOSwxNiAzNSwxNiBMMTE5LDE2IEMxMjcuMjcxLDE2IDEzNCwyMi43MjkgMTM0LDMxIEwxMzQsMTE1IEMxMzQsMTIzLjI3MSAxMjcuMjcxLDEzMCAxMTksMTMwIEw5OC42NiwxMzAgTDg0Ljg1MywxNDYuMzYyIEM4Mi45MzEsMTQ4LjY0MiA4MC4xMTMsMTQ5Ljk1IDc3LjEyMiwxNDkuOTUiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTExOSwxOSBMMzUsMTkgQzI4LjM3MywxOSAyMywyNC4zNzMgMjMsMzEgTDIzLDExNSBDMjMsMTIxLjYyNyAyOC4zNzMsMTI3IDM1LDEyNyBMNTYuNzM0LDEyNyBMNzEuNDM5LDE0NC40MjggQzcyLjg3NCwxNDYuMTI5IDc0LjkzNywxNDYuOTg0IDc3LDE0Ni45NDkwOTEgQzc5LjA2MywxNDYuOTg0IDgxLjEyNiwxNDYuMTI5IDgyLjU2MSwxNDQuNDI4IEw5Ny4yNjYsMTI3IEwxMTksMTI3IEMxMjUuNjI3LDEyNyAxMzEsMTIxLjYyNyAxMzEsMTE1IEwxMzEsMzEgQzEzMSwyNC4zNzMgMTI1LjYyNywxOSAxMTksMTkiIGlkPSJtYXJjYWRvci1pbmRpY2UiIGZpbGw9IiNGRUNCMDAiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0ibWFyY2Fkb3Jlcy0vLXBwXzIwLW1rIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgLTQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsLW9wYWNpdHk9IjAiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPGcgaWQ9InBvaS0vLXBwXzA1Ij4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiNGRUNCMDAiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik00Mi45Nzc3LDI5LjM2NjggQzQyLjk3NzcsMjkuMzY2OCA0Mi45Nzc3LDkwLjI4NDggNDMuMDExNywxMDQuMjg5OCBDNDMuMDE3NywxMDYuMTExOCA0My4wMjQ3LDEwNy4xMzQ4IDQzLjAzMTcsMTA3LjEzNDggQzQxLjM4NzcsMTA3LjY5MzggMzguMzI2NywxMDkuNzY4OCAzOC4zMjY3LDExOC4xNDY4IEMzOC4zMjY3LDExOC43MDU4IDM4LjU5NDcsMTE5LjA4MDggMzguOTUyNywxMTkuMjcxOCBDMzkuNjYyNywxMTkuNjk3OCA0MC43NzE3LDExOS4zNjM4IDQwLjc3MTcsMTE4LjI1ODggQzQwLjc3MTcsMTE2Ljc0OTQyNSA0MS41MDM2NjcsMTE0LjkwMjA3OCA0Mi44MDQ3NzU5LDExNC4yNzQ1OTkgTDQyLjk3NzcsMTE0LjE5OTggTDQyLjk3NzcsMTI0LjYzMzggQzM4LjYxMDcsMTI0LjM1NTggMzQuNzAwNywxMjAuODg4OCAzMi44Nzg3LDEwNC4yNzc4IEMzMi4xODY3LDk3Ljk2ODggMzEuNzk0Nyw4OS43NjQ4IDMxLjc5NDcsNzkuMTE3OCBDMzEuNzk0Nyw0MC45Njk4IDM4LjYwNTcsMzAuMjY1OCA0Mi45Nzc3LDI5LjM2NjggWiBNNDQuMjA1NiwyOS4zNzA2IEM0OC41Nzg2LDMwLjI4MTYgNTUuMzc2Niw0MC45OTc2IDU1LjM3NjYsNzkuMTE4NiBDNTUuMzc2Niw4OS40NzY4NzAzIDU1LjAwNzM5NjIsOTcuNTIzMzU2OCA1NC4zNTA5NjU3LDEwMy43NjI4MTcgTDU0LjI5NTYsMTA0LjI3ODYgQzUyLjQ5MTAxNDEsMTIwLjcwOTkzMyA0OC42NDQzMTY3LDEyNC4yODAwNzkgNDQuMzM3NTgwOSwxMjQuNjIxMTU3IEw0NC4yMDU2LDEyNC42MzA2IEw0NC4yMDU2LDI5LjM3MDYgWiBNNzYuNzYzOSwyOS45NTgxIEM3Ny45MDQ5LDI5Ljk1ODEgNzkuODk1OSwzMi4zNTAxIDc5Ljg5NTksMzkuMjk3MSBDNzkuODk1OSw0Ni4xMzgyMDc3IDc5LjI4OTAxMzQsNjUuMTE2MDc4NSA3OS4yNzAzMzk5LDc2LjExNDQ3MTQgTDc5LjI3MDE4NDMsNzcuMDAzNDU1OSBDNzkuMjc5MDU4LDgzLjA1OTk0OTggNzkuNDk0MDY2Nyw5NC4zOTE2NDE3IDc5LjY4OTksMTA0LjI4NzEgQzc5Ljg1NzksMTEyLjcwNjEgODAuMDEwOSwxMjAuMDc5MSA4MC4wMTA5LDEyMi4yNzYxIEM4MC4wMTA5LDEyMi42ODY3MjUgNzkuNjU5MzM3NSwxMjMuODc5NTc3IDc5LjYxNTM5MjIsMTI0LjAyNzA3OSBMNzkuNjEwOSwxMjQuMDQyMSBMNzUuNTE1OSwxMjQuMDQyMSBMNzUuNjI5OSwxMjMuNjMxMSBDNzUuNjg1OSwxMjMuNDE1MSA3NS43NDE5LDEyMy4xODUxIDc1Ljc4MjksMTIyLjk3OTEgQzc1LjgyMjksMTIyLjc4OTEgNzUuODY4OSwxMjIuNTIwMSA3NS44Njg5LDEyMi4yNzYxIEM3NS44Njg5LDEyMC4xMTc4MjIgNzUuNzIwNTUwOSwxMTIuOTcxNTQ3IDc1LjU1ODEwOSwxMDQuNzUzMzk3IEw3NS41NDg5LDEwNC4yODcxIEw3NC45MzI5LDEwNC4yODIxIEw3NS41NDg5LDEwNC4yNzcxIEM3NS4zNTExMDgzLDk0LjM5MTQzMzMgNzUuMTM3MDE3Niw4My4wNTk5NDU1IDc1LjEyODE4Myw3Ny4wMDM0NTU4IEw3NS4xMjgzMzk5LDc2LjExNDQ3MTQgQzc1LjE0NzAxMzQsNjUuMTE2MDc4NSA3NS43NTM5LDQ2LjEzODIwNzcgNzUuNzUzOSwzOS4yOTcxIEM3NS43NTM5LDM2LjMxODEgNzUuMzc4OSwzMy44ODExIDc0LjczODksMzIuMDk3MSBDNzUuMzgzOSwzMC41NzUxIDc2LjE4NDksMjkuOTU4MSA3Ni43NjM5LDI5Ljk1ODEgWiBNNzEuMzk0OCwyOS45NTgxIEM3Mi41MzQ4LDI5Ljk1ODEgNzQuNTI2OCwzMi4zNTAxIDc0LjUyNjgsMzkuMjk3MSBDNzQuNTI2OCw0Ni4xMzgyMDc3IDczLjkxNzk3NDQsNjUuMTE2MDc4NSA3My44OTkyNDEzLDc2LjExNDQ3MTQgTDczLjg5OTA4NjgsNzcuMDAzNDU1OSBDNzMuOTA4MDQsODMuMDU5OTQ5OCA3NC4xMjQ5NDU4LDk0LjM5MTY0MTcgNzQuMzE5OCwxMDQuMjg3MSBDNzQuNDg4OCwxMTIuNzA2MSA3NC42Mzg4LDEyMC4wNzkxIDc0LjYzODgsMTIyLjI3NjEgQzc0LjYzODgsMTIyLjY4NjcyNSA3NC4yODg5OTUzLDEyMy44Nzk1NzcgNzQuMjQ1MjY5NywxMjQuMDI3MDc5IEw3NC4yNDA4LDEyNC4wNDIxIEw2OC41NDg4LDEyNC4wNDIxIEM2OC41NDg4LDEyNC4wNDIxIDY4LjE1MDgsMTIyLjcxNDEgNjguMTUwOCwxMjIuMjc2MSBMNjguMTUxNDEwNiwxMjIuMDEwNjY4IEM2OC4xNjE3MzM0LDExOS41NzY5NTQgNjguMzAxNDkxNywxMTIuNjYxNDI4IDY4LjQ1OTQ4NiwxMDQuNzUzMzk3IEw2OC40Njg4LDEwNC4yODcxIEw2OC40Njg4LDEwNC4yNzcxIEM2OC42Njk4LDk0LjE4MTEgNjguODg5OCw4Mi41NzcxIDY4Ljg4OTgsNzYuNjI0MSBDNjguODg5OCw2NS43MTIxIDY4LjI2MjgsNDYuMjQ1MSA2OC4yNjI4LDM5LjI5NzEgQzY4LjI2MjgsMzIuMzUwMSA3MC4yNTQ4LDI5Ljk1ODEgNzEuMzk0OCwyOS45NTgxIFogTTEwMS43MzQ4LDcxLjc2NDkgQzEwNy42MDE4LDcxLjc2NDkgMTEyLjM1OTgsNzYuMzkzOSAxMTIuMzU5OCw4Mi4xMDQ5IEMxMTIuMzU5OCw4My4xNjg5IDExMi4xOTQ4LDg0LjE5NzkgMTExLjg4NjgsODUuMTYzOSBDMTE0Ljc0NzgsODUuOTc5OSAxMTcuNTY3OCw4Ni42MTg5IDExOS40MDM4LDg3LjA4NjkgQzEyMC45NjY2OCw4Ny40ODUzIDEyMi4wOTQ1NjUsODguMzMxNTk3NiAxMjIuMTgyMjk1LDg5Ljk3NTI2MzUgTDEyMi4xODc4LDkwLjE4NDkgTDEyMi4xODc4LDkzLjM2NDkgQzEyMi4xODc4LDk0Ljc5NzUgMTIwLjExMTQ2NCw5NC44NDUyNTMzIDExOS45NzMwNDIsOTMuNTA4MTYgTDExOS45NjU4LDkzLjM2NDkgTDExOS45NjU4LDkwLjE4NDkgQzExOS45NjU4LDg5LjUxMjkgMTE5LjQ3MDgsODkuMzk2OSAxMTguODU1OCw4OS4yMzk5IEMxMTguMzM5OCw4OS4xMDg3IDExNy43ODM0OCw4OC45NjcyNiAxMTcuMTc3NjI0LDg4LjgxNjYwNCBMMTE2LjcxMzgsODguNzAxOSBMMTE2LjY4OTgsMTA0LjA4MjkgQzExNi42ODk4LDEwNC4wODI5IDExNy4yNTUxOCwxMDQuMjg5NDUgMTE3LjM5MjMxMywxMDQuMzMwNzYgTDExNy40MjA4LDEwNC4zMzc5IEwxMTcuMzg3OCwxMDEuOTg0OSBDMTE3LjM4NzgsMTAwLjU1MjMgMTE5LjQ2NDEzNiwxMDAuNTA0NTQ3IDExOS42MDI1NTgsMTAxLjg0MTY0IEwxMTkuNjA5OCwxMDEuOTg0OSBMMTE5LjYwOTgsMTA5LjA4MTkgQzExOS42MDk4LDExMC41MTM1MzMgMTE3LjUzMzQ2NCwxMTAuNTYxMjU0IDExNy4zOTUwNDIsMTA5LjIyNTA2MyBMMTE3LjM4NzgsMTA5LjA4MTkgTDExNy4zODA4LDEwNi44Njc5IEwxMTYuNDY3OCwxMDYuNTMyOSBMMTExLjQyNDgsMTA5LjM5OTkgQzExMi4wMjU4LDExMC42OTU5IDExMi4zNTk4LDExMi4xMzU5IDExMi4zNTk4LDExMy42NDg5IEMxMTIuMzU5OCwxMTQuMTEyOSAxMTIuMzI4OCwxMTQuNTY3OSAxMTIuMjY2OCwxMTUuMDE0OSBDMTExLjU4MTgsMTIwLjA4MDkgMTA3LjEyNTgsMTIzLjk5MDkgMTAxLjczNDgsMTIzLjk5MDkgQzk2LjM0MTgsMTIzLjk5MDkgOTEuODg4OCwxMjAuMDgwOSA5MS4yMDM4LDExNS4wMTQ5IEM5MS4xNDI4LDExNC41Njc5IDkxLjEwODgsMTE0LjExMjkgOTEuMTA4OCwxMTMuNjQ4OSBDOTEuMTA4OCwxMDguMzc1MDc1IDk1LjE2OTQ4MDgsMTA0LjAxNDM0OSAxMDAuNDQyMTksMTAzLjM3ODM5IEwxMDAuNzI1OCwxMDMuMzQ3OSBMMTAwLjY5MjgsMTAxLjM4OTkgQzEwMC42OTI4LDk5Ljg0MjkgMTAxLjM2NDgsOTkuMzIzOSAxMDEuOTY1OCw5OC42NDk5IEMxMDIuNDMzNDQ5LDk4LjEyOTE5ODIgMTA4Ljk0MjQxMSw5MC45MTM3MzAxIDExMS44NjM3ODUsODcuNjc4MzU1NCBMMTEyLjAxNjgsODcuNTA4OSBMMTEwLjk3NDgsODcuMjExOSBDMTA5LjE0NzgsOTAuMzM3OSAxMDUuNjkzOCw5Mi40NDQ5IDEwMS43MzQ4LDkyLjQ0NDkgQzk1Ljg2ODgsOTIuNDQ0OSA5MS4xMDg4LDg3LjgxNjkgOTEuMTA4OCw4Mi4xMDQ5IEM5MS4xMDg4LDc2LjM5MzkgOTUuODY4OCw3MS43NjQ5IDEwMS43MzQ4LDcxLjc2NDkgWiBNMTAwLjcyNTgsMTA1LjYwMjkgQzk2LjYxODgsMTA2LjEzNzkgOTMuNDc2OCwxMDkuNTMzOSA5My40NzY4LDExMy42NDU5IEM5My40NzY4LDExNC4xMTQ5IDkzLjUxNzgsMTE0LjU3MjkgOTMuNTk3OCwxMTUuMDE4OSBDOTQuMjY5OCwxMTguODUwOSA5Ny42OTM4LDEyMS43NjI5IDEwMS44MTg4LDEyMS43NjI5IEMxMDUuODUyMTcsMTIxLjc2MjkgMTA5LjIxOTQ3MSwxMTguOTc0MjE5IDEwOS45OTEyMTcsMTE1LjI2NzM2MyBMMTEwLjAzODgsMTE1LjAxODkgQzExMC4xMTY4LDExNC41NzI5IDExMC4xNTY4LDExNC4xMTQ5IDExMC4xNTY4LDExMy42NDU5IEMxMTAuMTU2OCwxMTIuNTU4OSAxMDkuOTM1OCwxMTEuNTI1OSAxMDkuNTM5OCwxMTAuNTc5OSBDMTA2LjE3NTgsMTEyLjU0MzkgMTAyLjc5MDgsMTE0LjUyMjkgMTAyLjQ2MTgsMTE0LjcxOTkgQzEwMS43NzExOTEsMTE1LjEzMzExNyAxMDAuNzgzMjI5LDExNC42Mjc3NDEgMTAwLjY5ODYyNSwxMTMuNzk2MjUxIEwxMDAuNjkyOCwxMTMuNjgwOSBMMTAwLjcyNTgsMTA1LjYwMjkgWiBNMTAzLjAzMzgsMTA1LjYxNTkgQzEwMy4wMjg5NTIsMTA3Ljk3NzExMiAxMDMuMDQ5NDkxLDExMS40MDE4MTcgMTAzLjA1MDc0MSwxMTEuNjA3MjA3IEwxMDMuMDUwOCwxMTEuNjE2OSBMMTA4LjM0MTgsMTA4LjU3NDkgQzEwNy4wNTM4LDEwNy4wMDM5IDEwNS4xNzI4LDEwNS45MTc5IDEwMy4wMzM4LDEwNS42MTU5IFogTTEwMy4wMjU4LDEwMS41NDk5IEwxMDMuMDYyOCwxMDMuMzk5OSBDMTA1LjkwNjA2OSwxMDMuNzM1NDc3IDEwOC4zNzExOTUsMTA1LjE0NzIzNyAxMTAuMDYwNzk2LDEwNy4yMjI2ODcgTDExMC4yNTk4LDEwNy40NzQ5IEwxMTMuNzU2OCwxMDUuNDY0OSBMMTAzLjAyNTgsMTAxLjU0OTkgWiBNMTE0LjI5NTgsODguMzA3OSBMMTA0LjI4NjgsOTkuNTY0OSBMMTE0LjI5NTgsMTAzLjIwODkgTDExNC4yOTU4LDg4LjMwNzkgWiBNMTAxLjgxODgsNzMuOTg1OSBDOTcuMjEyOCw3My45ODU5IDkzLjQ3NjgsNzcuNjE4OSA5My40NzY4LDgyLjEwMDkgQzkzLjQ3NjgsODYuNTgzOSA5Ny4yMTI4LDkwLjIxODkgMTAxLjgxODgsOTAuMjE4OSBDMTA0LjczNzgsOTAuMjE4OSAxMDcuMzA2OCw4OC43NTY5IDEwOC43OTY4LDg2LjU0NDkgQzEwNS42NDc4LDg1LjUxODkgMTAyLjcxMjgsODQuMjU1OSAxMDEuMDUxOCw4Mi42ODg5IEM5OS45NzM4LDgxLjY3MzkgMTAxLjQ5NTgsODAuMDU1OSAxMDIuNTc1OCw4MS4wNzA5IEMxMDQuMDA3OCw4Mi40MjA5IDEwNi43NTk4LDgzLjU2MjkgMTA5Ljc4MDgsODQuNTE3OSBDMTEwLjAyMzgsODMuNzU0OSAxMTAuMTU2OCw4Mi45NDI5IDExMC4xNTY4LDgyLjEwMDkgQzExMC4xNTY4LDc3LjYxODkgMTA2LjQyNDgsNzMuOTg1OSAxMDEuODE4OCw3My45ODU5IFogTTk4LjU4NzQsNTcuOTg1NCBDMTAxLjUyMjQsNTcuOTg1NCAxMDMuOTAyNCw2MC4zNjM0IDEwMy45MDI0LDYzLjMwMTQgQzEwMy45MDI0LDY2LjIzNTQgMTAxLjUyMjQsNjguNjE0NCA5OC41ODc0LDY4LjYxNDQgQzk1LjY1MjQsNjguNjE0NCA5My4yNzI0LDY2LjIzNTQgOTMuMjcyNCw2My4zMDE0IEM5My4yNzI0LDYwLjM2MzQgOTUuNjUyNCw1Ny45ODU0IDk4LjU4NzQsNTcuOTg1NCBaIE0xMTQuNDI5Miw1Ny45ODU0IEMxMTcuMzY2Miw1Ny45ODU0IDExOS43NDYyLDYwLjM2MzQgMTE5Ljc0NjIsNjMuMzAxNCBDMTE5Ljc0NjIsNjYuMjM1NCAxMTcuMzY2Miw2OC42MTQ0IDExNC40MjkyLDY4LjYxNDQgQzExMS40OTYyLDY4LjYxNDQgMTA5LjExNDIsNjYuMjM1NCAxMDkuMTE0Miw2My4zMDE0IEMxMDkuMTE0Miw2MC4zNjM0IDExMS40OTYyLDU3Ljk4NTQgMTE0LjQyOTIsNTcuOTg1NCBaIE0xMDkuNDE1OCwzMC42OTkyIEwxMTUuMTIxOCwzMC42OTkyIEMxMTkuMDEwMDM1LDMwLjY5OTIgMTIyLjE3NzM5NCwzNC4xNjUxNzQ2IDEyMi4zMDAxMDksMzguNDkxNjAyNiBMMTIyLjMwMzgsMzguNzUyMiBMMTIyLjMwMzgsNDYuODA1MiBDMTIyLjMwMzgsNTEuMTY1MDAzOSAxMTkuMjEyNjgxLDU0LjcxNjQ2NDkgMTE1LjM1NDIxLDU0Ljg1NDA2MTcgTDExNS4xMjE4LDU0Ljg1ODIgTDExMC43ODQ4LDU0Ljg1ODIgTDExMC4zNTk4LDU0Ljg2NjIgTDk4Ljc5MjgsNTQuODY2MiBDOTQuNDMwMDU0OSw1NC44NjYyIDkwLjg3ODUzNjMsNTEuNzc1MDgxMiA5MC43NDA5MzgzLDQ3LjkxMjg0MTIgTDkwLjczNjgsNDcuNjgwMiBMOTAuNzM2OCw0My45MzAyIEw5MC43MTY4LDQxLjk4MzIgTDEwOS40MTU4LDQxLjk4MzIgTDEwOS40MTU4LDMwLjY5OTIgTDExNS4xMjE4LDMwLjY5OTIgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjMzgyRjJEIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"551c":function(M,N,D){"use strict";var t,i,e,j,T=D("2d00"),g=D("7726"),u=D("9b43"),s=D("23c6"),L=D("5ca1"),I=D("d3f4"),A=D("d8e8"),z=D("f605"),n=D("4a59"),w=D("ebd6"),r=D("1991").set,y=D("8079")(),c=D("a5b8"),a=D("9c80"),E=D("a25f"),o=D("bcaa"),O="Promise",x=g.TypeError,C=g.process,S=C&&C.versions,l=S&&S.v8||"",k=g[O],Q="process"==s(C),d=function(){},Y=i=c.f,U=!!function(){try{var M=k.resolve(1),N=(M.constructor={})[D("2b4c")("species")]=function(M){M(d,d)};return(Q||"function"==typeof PromiseRejectionEvent)&&M.then(d)instanceof N&&0!==l.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),p=function(M){var N;return!(!I(M)||"function"!=typeof(N=M.then))&&N},h=function(M,N){if(!M._n){M._n=!0;var D=M._c;y((function(){var t=M._v,i=1==M._s,e=0,j=function(N){var D,e,j,T=i?N.ok:N.fail,g=N.resolve,u=N.reject,s=N.domain;try{T?(i||(2==M._h&&v(M),M._h=1),!0===T?D=t:(s&&s.enter(),D=T(t),s&&(s.exit(),j=!0)),D===N.promise?u(x("Promise-chain cycle")):(e=p(D))?e.call(D,g,u):g(D)):u(t)}catch(L){s&&!j&&s.exit(),u(L)}};while(D.length>e)j(D[e++]);M._c=[],M._n=!1,N&&!M._h&&f(M)}))}},f=function(M){r.call(g,(function(){var N,D,t,i=M._v,e=m(M);if(e&&(N=a((function(){Q?C.emit("unhandledRejection",i,M):(D=g.onunhandledrejection)?D({promise:M,reason:i}):(t=g.console)&&t.error&&t.error("Unhandled promise rejection",i)})),M._h=Q||m(M)?2:1),M._a=void 0,e&&N.e)throw N.v}))},m=function(M){return 1!==M._h&&0===(M._a||M._c).length},v=function(M){r.call(g,(function(){var N;Q?C.emit("rejectionHandled",M):(N=g.onrejectionhandled)&&N({promise:M,reason:M._v})}))},B=function(M){var N=this;N._d||(N._d=!0,N=N._w||N,N._v=M,N._s=2,N._a||(N._a=N._c.slice()),h(N,!0))},b=function(M){var N,D=this;if(!D._d){D._d=!0,D=D._w||D;try{if(D===M)throw x("Promise can't be resolved itself");(N=p(M))?y((function(){var t={_w:D,_d:!1};try{N.call(M,u(b,t,1),u(B,t,1))}catch(i){B.call(t,i)}})):(D._v=M,D._s=1,h(D,!1))}catch(t){B.call({_w:D,_d:!1},t)}}};U||(k=function(M){z(this,k,O,"_h"),A(M),t.call(this);try{M(u(b,this,1),u(B,this,1))}catch(N){B.call(this,N)}},t=function(M){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},t.prototype=D("dcbc")(k.prototype,{then:function(M,N){var D=Y(w(this,k));return D.ok="function"!=typeof M||M,D.fail="function"==typeof N&&N,D.domain=Q?C.domain:void 0,this._c.push(D),this._a&&this._a.push(D),this._s&&h(this,!1),D.promise},catch:function(M){return this.then(void 0,M)}}),e=function(){var M=new t;this.promise=M,this.resolve=u(b,M,1),this.reject=u(B,M,1)},c.f=Y=function(M){return M===k||M===j?new e(M):i(M)}),L(L.G+L.W+L.F*!U,{Promise:k}),D("7f20")(k,O),D("7a56")(O),j=D("8378")[O],L(L.S+L.F*!U,O,{reject:function(M){var N=Y(this),D=N.reject;return D(M),N.promise}}),L(L.S+L.F*(T||!U),O,{resolve:function(M){return o(T&&this===j?k:this,M)}}),L(L.S+L.F*!(U&&D("5cc5")((function(M){k.all(M)["catch"](d)}))),O,{all:function(M){var N=this,D=Y(N),t=D.resolve,i=D.reject,e=a((function(){var D=[],e=0,j=1;n(M,!1,(function(M){var T=e++,g=!1;D.push(void 0),j++,N.resolve(M).then((function(M){g||(g=!0,D[T]=M,--j||t(D))}),i)})),--j||t(D)}));return e.e&&i(e.v),D.promise},race:function(M){var N=this,D=Y(N),t=D.reject,i=a((function(){n(M,!1,(function(M){N.resolve(M).then(D.resolve,t)}))}));return i.e&&t(i.v),D.promise}})},"552d":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzAxIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTExOC42MTcyLDcyLjAzOTEgQzEyMS4zNTkyLDcyLjAzOTEgMTIzLjU4MDIsNzQuMjYwMSAxMjMuNTgwMiw3Ny4wMDExIEMxMjMuNTgwMiw3OS43NDExIDEyMS4zNTkyLDgxLjk2MjEgMTE4LjYxNzIsODEuOTYyMSBMODkuMDU1Miw4MS45MjkxIEw2NS41MTIyLDEyMi4zNDExIEw1NS4wODYyLDEyMi4zNDExIEw2Ny40MTYyLDgyLjIwMTEgTDQ1Ljg5MDIsODIuMjAxMSBMMzguNDkxMiw5MS4yODQxIEwzMC40MTkyLDkxLjI4NDEgTDM0LjY4MDIsNzcuMDcwMSBMMzAuNDE5Miw2Mi43MTgxIEwzOC40OTEyLDYyLjcxODEgTDQ1Ljg5MDIsNzEuODAwMSBMNjcuNDE2Miw3MS44MDAxIEw1NS4wODYyLDMxLjY2MTEgTDY1LjUxMjIsMzEuNjYxMSBMODkuMDU1Miw3Mi4wNzMxIEwxMTguNjE3Miw3Mi4wMzkxIFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},5537:function(M,N,D){var t=D("8378"),i=D("7726"),e="__core-js_shared__",j=i[e]||(i[e]={});(M.exports=function(M,N){return j[M]||(j[M]=void 0!==N?N:{})})("versions",[]).push({version:t.version,mode:D("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5559:function(M,N,D){var t=D("dbdb")("keys"),i=D("62a0");M.exports=function(M){return t[M]||(t[M]=i(M))}},"55c9":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
|
|
104
104
|
//! moment.js locale configuration
|
|
105
|
-
var N="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,e=M.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,t){return M?/-MMM-/.test(t)?D[M.month()]:N[M.month()]:N},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return e}))},"55dd":function(M,N,D){"use strict";var t=D("5ca1"),i=D("d8e8"),e=D("4bf8"),j=D("79e5"),T=[].sort,g=[1,2,3];t(t.P+t.F*(j((function(){g.sort(void 0)}))||!j((function(){g.sort(null)}))||!D("2f21")(T)),"Array",{sort:function(M){return void 0===M?T.call(e(this)):T.call(e(this),i(M))}})},5609:function(M,N,D){"use strict";D.d(N,"a",(function(){return t})),D.d(N,"b",(function(){return i})),D.d(N,"c",(function(){return e}));var t={LOAD_FULL_AIRPORT:"loadFullAirport",LOAD_AIRPORT:"loadAirport",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",RESET_BBOX:"resetBBOX",LOAD_POIS_CATALOG:"loadPoisCatalog",LOAD_POIS_LIST:"loadPoisList",LOAD_TILES_BUILDING_FLOOR:"loadTilesBuildingFloor",LOAD_FLOOR:"loadFloor",LOAD_POI:"loadPOI",CLEAR_POI:"clearPOI",LOAD_ROUTE:"loadRoute",REMOVE_STEP:"removeStep",CLEAR_ROUTE:"clearRoute",MOVE_ROUTE:"moveRoute",GET_ROUTE:"getRoute",SET_DESTINATION_NAME:"setDestinationName",GET_LINE_ROUTE:"getLineRoute",LOAD_ACTIVE_FILTERS:"loadActiveFilters",LOAD_VIEW:"loadView",ADD_LAYER:"addLayer",UPDATE_LAYER:"updateLayer",DELETE_LAYER:"deleteLayer",SET_PMR_PROFILE:"setPMRProfile",SET_FEEDBACK:"setFeedback",LOAD_ACCESS_CONTROL_TIME:"loadAccessControlTime",SET_HOME_POSITION:"setHomePosition"},i={GET_DEVICE_WIDTH:"getDeviceWidth",GET_IS_MOBILE:"getIsMobile",GET_ID:"getId",GET_LANGUAGE:"getLanguage",GET_EXPLORERMODE:"getExplorerMode",GET_AIRPORT:"getAirport",GET_AIRPORT_ID:"getAirportId",GET_CARTOGRAPHY_TILES:"getCartographyTiles",GET_FLOOR:"getFloor",GET_CATEGORY:"getCategory",GET_BUILDING_ID:"getBuildingId",GET_FLOOR_ID:"getFloorId",GET_ROUTE_CONFIG:"getRouteConfig",GET_BUILDING:"getBuilding",GET_BUILDINGS:"getBuildings",GET_POI_ID:"getPOIId",GET_POID_ID:"getPOIDId",GET_POI:"getPOI",GET_POI_GROUPED:"getPOIGrouped",GET_BLOCK_BBOX:"getBlockBBOX",GET_BBOX:"getBBOX",GET_COORDINATES:"getCoordinates",GET_ZOOM:"getZoom",GET_ACCESS_TOKEN:"getAccessToken",GET_POIS_CATALOG:"getPoisCatalog",GET_POIS_LIST:"getPoisList",GET_TRANSITION_POIS_LIST:"getTransitionPoisList",GET_UNCATEGORIZED_POIS_LIST:"getuncategorizedPoisList",GET_ACTIVE_FILTERS:"getActiveFilters",GET_ROUTE:"getRoute",IS_ROUTE_MODE:"isRouteMode",HAS_ROUTE:"hasRoute",GET_ROUTE_DEFAULT_LEVEL_BUILDING:"getRouteDefaultLevelBuilding",GET_ORIGIN:"getOrigin",GET_DESTINATION:"getDestination",HAS_NEW_POINT:"hasNewPoint",GET_NEW_POINT:"getNewPoint",GET_VIEW:"getView",GET_LAYER_TREE:"getLayerTree",PMR_CONFIG_VISIBLE:"getPMRConfigVisibility",GET_PMR_PROFILE:"getPRMProfile",GET_DEFAULT_PMR_PROFILE:"getDefaultPRMProfile",GET_FEEDBACK:"getFeedback",GET_ROUTE_COUNT:"getRouteCount",GET_PRINTMODE:"getPrintMode",GET_LONLAT:"getLonLat",GET_INITIAL_BBOX:"getInitialBbox",GET_HOME_POSITION:"getHomePosition",IS_MUPI_MODE:"isMupiMode"},e={SAVE_DEVICE_WIDTH:"saveDeviceWidth",SAVE_IS_MOBILE:"saveIsMobile",SAVE_CONFIG:"saveConfig",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",SAVE_BBOX:"saveBBOX",SAVE_ACCESS_TOKEN:"saveAccessToken",SAVE_AIRPORT:"saveAirport",SAVE_CARTOGRAPHY_TILES:"saveCartographyTiles",SAVE_POIS_CATALOG:"savePoisCatalog",SAVE_POIS_LIST:"savePoisList",SAVE_TRANSITION_POIS_LIST:"saveTransitionPoisList",SAVE_UNCATEGORIZED_POIS_LIST:"saveuncategorizedPoisList",SAVE_POI:"savePoi",CLEAR_POI:"clearPOI",SAVE_TILES_BUILDING_FLOOR:"saveTilesBuildingFloor",SAVE_FLOOR:"saveFloor",SAVE_ACTIVE_FILTERS:"saveActiveFilters",SAVE_LAYER:"saveLayer",SAVE_ROUTE:"saveRoute",SAVE_DESTINATION_NAME_ROUTE:"saveDestinationNameRoute",SAVE_ROUTE_MODE:"saveRouteMode",SAVE_DEFAULT_LEVEL_BUILDING:"saveDefaultLevelBuilding",SAVE_VIEW:"saveView",REMOVE_LAYER:"removeLayer",SAVE_PMR_CONFIG_VISIBILITY:"SavePMRConfigVisibility",SAVE_PMR_PROFILE:"savePMRProfile",SAVE_FEEDBACK:"saveFeedback",SET_ROUTE_COUNT:"setRouteCount",SAVE_HOME_POSITION:"saveHomePosition"}},"568a":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzA3IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTYzLjkyMzEsNjEuOTI4NiBDNzEuODcxMSw2MS45Mjg2IDc0LjQ3OTEsNjcuOTM2NiA3OS4zMjExLDc3LjMyNzYgTDg0LjQ3MzEsODcuNTE5NiBMMTAwLjIyMzEsNzEuODc0NiBDMTAxLjY5NDEsNzAuNDAyNiAxMDMuODQ3MSw2OS45MTQ2IDEwNS43ODYxLDcwLjM2NTYgQzEwNi43ODAxLDcwLjU4NzYgMTA3LjY4MzEsNzEuMDc4NiAxMDguNDk0MSw3MS44Mjk2IEMxMTAuNzMzMSw3NC4wNjc2IDExMC43MzIxLDc3LjY5NTYgMTA4LjQ5NDEsNzkuOTMzNiBMODUuNTE2MSwxMDIuODE4NiBDODQuNjE0MSwxMDMuNzU1NiA4My4wMzcxLDEwNC4yNzI2IDgxLjQwOTEsMTA0LjIxNTYgQzc5LjMxNDEsMTA0LjE0MzYgNzcuNTE5MSwxMDIuOTUxNiA3Ni41ODAxLDEwMS4yMzg2IEw2Ny43NzAxLDgyLjQyMDYgTDY0Ljg2MTEsODIuNDIwNiBMNjQuODU4MSwxMjEuOTUyNiBMMzAuNDQ4MSwxMjEuOTUyNiBMMzAuNDQ3MjA4MiwxMjEuNTU2OTM0IEMzMC40MzYxMDc1LDExNi42MjcwMzUgMzAuMzI1MSw2Ny4xOTYzNSAzMC4zMjUxLDYxLjkyODYgTDYzLjkyMzEsNjEuOTI4NiBaIE0xMTguNjA5NywzOS4xNTkgQzEyMS4wNzg3LDM5LjE1OSAxMjMuMDgwNyw0MS4xNjEgMTIzLjA4MDcsNDMuNjI5IEwxMjMuMTIwNywxMjEuODc0IEw3OC4xNjk3LDEyMS44NzQgTDc4LjE2OTcsMTA0LjQ5NiBDNzkuMTE3NywxMDUuMDM5IDgwLjIwNDcsMTA1LjM3MiA4MS4zNjc3LDEwNS40MTIgQzgzLjIxNTcsMTA1LjQ4IDg1LjE1NDcsMTA0LjkwNiA4Ni4zNjE3LDEwMy42NjggTDEwOS4zNDA3LDgwLjc4NCBDMTEwLjI4NTcsNzkuODM5IDExMC44OTc3LDc4LjY5MiAxMTEuMTc5Nyw3Ny40OCBMMTEzLjQyNjcsNzcuNDggTDExMy40MjY3LDQ3LjE2MiBMOTguNzY4Nyw0Ny4xNjIgTDk4Ljc2ODcsNzEuNjI5IEw4NC43OTg3LDg1LjUwNiBMODAuMzg3Nyw3Ni43ODQgQzc5LjYwMTcsNzUuMjU3IDc4Ljg3MDcsNzMuODE4IDc4LjE2OTcsNzIuNDc5IEw3OC4xNjk3LDQzLjYyOSBDNzguMTY5Nyw0MS4xNjEgODAuMTcxNywzOS4xNTkgODIuNjQwNywzOS4xNTkgTDExOC42MDk3LDM5LjE1OSBaIE0xMTcuMjcxMSw0My4xMTkyIEw4NC4wNzgxLDQzLjExOTIgQzgzLjA5MDEsNDMuMTE5MiA4Mi4yODkxLDQzLjkxOTIgODIuMjg5MSw0NC45MDkyIEw4Mi4yODkxLDY4LjExMTIgQzgyLjI4OTEsNjkuMDk3MiA4My4wOTAxLDY5Ljg5OTIgODQuMDc4MSw2OS44OTkyIEw5Ny41NzAxLDY5Ljg5OTIgTDk3LjU3MDEsNDUuOTYzMiBMMTE0LjYyNTEsNDUuOTYzMiBMMTE0LjYyNTEsNjkuODk5MiBMMTE3LjI3MTEsNjkuODk5MiBDMTE4LjI2MDEsNjkuODk5MiAxMTkuMDYwMSw2OS4wOTcyIDExOS4wNjAxLDY4LjExMTIgTDExOS4wNjAxLDQ0LjkwOTIgQzExOS4wNjAxLDQzLjkxOTIgMTE4LjI2MDEsNDMuMTE5MiAxMTcuMjcxMSw0My4xMTkyIFogTTEwNi4wOTY5LDUyLjk1MjkgQzEwNi40NzI5LDUyLjk1MjkgMTA2Ljc3NTksNTMuMjY2OSAxMDYuNzc1OSw1My42NDA5IEwxMDYuNzcwOSw1Ny42NjE5IEwxMTIuMjgyOSw2MC44NzQ5IEwxMTIuMjgyOSw2Mi4yOTY5IEwxMDYuODA3OSw2MC42MTQ5IEwxMDYuODA3OSw2My41NTE5IEwxMDguMDQ2OSw2NC41NTg5IEwxMDguMDQ2OSw2NS42NjI5IEwxMDYuMTA2OSw2NS4wNzk5IEwxMDQuMTQ4OSw2NS42NjI5IEwxMDQuMTQ4OSw2NC41NTg5IEwxMDUuMzg3OSw2My41NTE5IEwxMDUuMzg3OSw2MC42MTQ5IEw5OS45MTM5LDYyLjI5NjkgTDk5LjkxMzksNjAuODc0OSBMMTA1LjQxOTksNTcuNjYxOSBMMTA1LjQyMTksNTMuNjMwOSBDMTA1LjQyMTksNTMuMjU1OSAxMDUuNzI0OSw1Mi45NTI5IDEwNi4wOTY5LDUyLjk1MjkgWiBNNDcuNDc2MiwzMS44NDUxIEM1NC43NDkyLDMxLjg0NTEgNjAuNjQ2MiwzNy43NDMxIDYwLjY0NjIsNDUuMDE3MSBDNjAuNjQ2Miw1Mi4yOTAxIDU0Ljc0OTIsNTguMTg3MSA0Ny40NzYyLDU4LjE4NzEgQzQwLjIwMDIsNTguMTg3MSAzNC4zMDUyLDUyLjI5MDEgMzQuMzA1Miw0NS4wMTcxIEMzNC4zMDUyLDM3Ljc0MzEgNDAuMjAwMiwzMS44NDUxIDQ3LjQ3NjIsMzEuODQ1MSBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},"569b":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wYXBfMjEtbWsiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPGcgaWQ9InBvaS0vLXBhcF8yMSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTM4LjkwMTksMTE0LjYwMzkgQzM4LjkwMTksMTExLjM5MTkgNDEuNTA1OSwxMDguNzg4OSA0NC43MTY5LDEwOC43ODg5IEM0Ny45Mjg5LDEwOC43ODg5IDUwLjUzMjksMTExLjM5MTkgNTAuNTMyOSwxMTQuNjAzOSBDNTAuNTMyOSwxMTcuODE0OSA0Ny45Mjg5LDEyMC40MTc5IDQ0LjcxNjksMTIwLjQxNzkgQzQxLjUwNTksMTIwLjQxNzkgMzguOTAxOSwxMTcuODE0OSAzOC45MDE5LDExNC42MDM5IEwzOC45MDE5LDExNC42MDM5IFogTTg5LjU5MTksMTE0LjYwMzkgQzg5LjU5MTksMTExLjM5MTkgOTIuMTk1OSwxMDguNzg4OSA5NS40MDc5LDEwOC43ODg5IEM5OC42MTk5LDEwOC43ODg5IDEwMS4yMjI5LDExMS4zOTE5IDEwMS4yMjI5LDExNC42MDM5IEMxMDEuMjIyOSwxMTcuODE0OSA5OC42MTk5LDEyMC40MTc5IDk1LjQwNzksMTIwLjQxNzkgQzkyLjE5NTksMTIwLjQxNzkgODkuNTkxOSwxMTcuODE0OSA4OS41OTE5LDExNC42MDM5IEw4OS41OTE5LDExNC42MDM5IFogTTk5LjQwNzksOTcuMjM5OSBMOTkuNDA3OSw1OC41MDE5IEM5OS40MDc5LDUyLjYxNzkgMTA0LjIxMjksNDguMDE0OSAxMTAuMDk2OSw0OC4wMTQ5IEwxMTYuMTk3OSw0OC4wMTQ5IEMxMTguMjk0OSw0OC4wMTQ5IDExOS45OTU5LDQ5LjcxNTkgMTE5Ljk5NTksNTEuODEyOSBDMTE5Ljk5NTksNTMuOTA5OSAxMTguMzExOSw1NS42MTA5IDExNi4yMTQ5LDU1LjYxMDkgTDExMC44MDE5LDU1LjYxMDkgQzEwOC43MDQ5LDU1LjYxMDkgMTA3LjAwMzksNTcuMjc4OSAxMDcuMDAzOSw1OS4zNzU5IEwxMDcuMDAzOSwxMDQuODIyOSBMMzcuNzkyOSwxMDQuODIyOSBDMzUuNjk0OSwxMDQuODIyOSAzMy45OTM5LDEwMy4xNDc5IDMzLjk5MzksMTAxLjA1MDkgQzMzLjk5MzksOTguOTUyOSAzNS43Mjk5LDk3LjIzOTkgMzcuODI4OSw5Ny4yMzk5IEw5OS40MDc5LDk3LjIzOTkgWiBNNTkuMTM2OSw1Ni4yODQ5IEw1OS4xMzY5LDUyLjA3MzkgQzU5LjEzNjksNTAuMzg4OSA2MC41MDI5LDQ5LjAyMTkgNjIuMTg2OSw0OS4wMjE5IEw3My40MzI5LDQ5LjAyMTkgQzc1LjExNzksNDkuMDIxOSA3Ni40ODI5LDUwLjM4ODkgNzYuNDgyOSw1Mi4wNzM5IEw3Ni40ODI5LDU2LjI4NDkgTDg5LjM0MjksNTYuMjgyOSBDOTIuNzEwOSw1Ni4yODI5IDk1LjQ0MDksNTkuMDEzOSA5NS40NDA5LDYyLjM4MDkgTDk1LjQ0MDksODcuMTYwOSBDOTUuNDQwOSw5MC41Mjk5IDkyLjcxMDksOTMuMjU4OSA4OS4zNDI5LDkzLjI1ODkgTDQ2LjI3NzksOTMuMjU4OSBDNDIuOTA4OSw5My4yNTg5IDQwLjE3ODksOTAuNTI5OSA0MC4xNzg5LDg3LjE2MDkgTDQwLjE3ODksNjIuMzgwOSBDNDAuMTc4OSw1OS4wMTM5IDQyLjkwODksNTYuMjgyOSA0Ni4yNzc5LDU2LjI4MjkgTDU5LjEzNjksNTYuMjg0OSBaIE03My45NjA5LDU2LjI4MjkgTDYxLjcwMTksNTYuMjgyOSBMNjEuNzAxOSw1My4xNjk5IEM2MS43MDE5LDUyLjI3NTkgNjIuNDI2OSw1MS41NTE5IDYzLjMxOTksNTEuNTUxOSBMNzIuMzUzOSw1MS41NTE5IEM3My4yNDc5LDUxLjU1MTkgNzMuOTcwOSw1Mi4yNzU5IDczLjk3MDksNTMuMTY5OSBMNzMuOTYwOSw1Ni4yODI5IFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"56d7":function(M,N,D){"use strict";D.r(N),D.d(N,"AMap",(function(){return PL}));D("6b54"),D("87b3");function t(M,N){if(!(M instanceof N))throw new TypeError("Cannot call a class as a function")}var i=D("454f"),e=D.n(i),j=D("a6fa");function T(M,N){for(var D=0;D<N.length;D++){var t=N[D];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),e()(M,Object(j["a"])(t.key),t)}}function g(M,N,D){return N&&T(M.prototype,N),D&&T(M,D),e()(M,"prototype",{writable:!1}),M}D("28a5"),D("a481"),D("ac6a"),D("f3e2"),D("4917"),D("57e7"),D("cadf"),D("551c"),D("f751"),D("097d"),D("6d93"),D("2ce5");Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function M(){var N=isNaN(arguments[0])?1:Number(arguments[0]);return N?Array.prototype.reduce.call(this,(function(D,t){return Array.isArray(t)?D.push.apply(D,M.call(t,N-1)):D.push(t),D}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(M){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var u=D("a026"),s=function(){var M=this,N=M._self._c;return N("div",{staticClass:"flughaveno-map",class:[M.deviceWidthClass],attrs:{id:M.appId}},[M.isPortrait?N("Modal",{scopedSlots:M._u([{key:"content",fn:function(){return[N("div",{staticClass:"modal-content-wrapper"},[N("Icon",{attrs:{icon:"rotar-tablet.svg",size:"48px",fill:"#ffffff"}}),N("p",[M._v(M._s(M.$t("HORIZONTAL_MESSAGE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeModal}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#ffffff"}})],1)],1)]},proxy:!0}],null,!1,3100628582)}):M._e(),(M.explorerMode||M.routeConfig&&M.routeConfig.info)&&!M.printMode?N("div",{staticClass:"points-wrapper",class:{"route-mode":M.isRouteMode},attrs:{id:"points-wrapper"}},[M.loaded?N("AenaPoints",{on:{toggle:M.onPointsToggle}}):M._e()],1):M._e(),M.explorerMode?[N("div",{staticClass:"terminal-selector-wrapper",class:{top:M.selectedPoi&&M.pointsDetailCollapsed}},[M.loaded?N("AenaTerminalSelector"):M._e()],1),N("div",{staticClass:"home-wrapper"},[N("AenaHomeButton")],1),M.printMode?M._e():N("div",{staticClass:"logo-wrapper"},[N("img",{attrs:{src:D("4c46"),alt:"CARTO logo","aria-roledescription":"logo"}})]),!M.printMode&&M.avaMode?N("div",{staticClass:"qr-wrapper"},[N("img",{staticClass:"qr-image",attrs:{src:D("ecc3"),alt:"qr","aria-roledescription":"qr"}})]):M._e(),"true"===M.pmr_enabled&&M.hasRoute&&!M.printMode?N("div",{staticClass:"pmr-wrapper"},[N("AenaPmr")],1):M._e(),M.printMode?M._e():N("div",{staticClass:"legend-wrapper"},[N("AenaLegend")],1),M.feedback&&!M.printMode?N("div",{staticClass:"feedback-wrapper"},[N("Feedback")],1):M._e(),M.printMode&&M.layers?N("Layers",{attrs:{layers:M.layers},on:{change:M.onLayerChange}}):M._e()]:M._e(),N("div",{staticClass:"map-wrapper"},[N("MapComponent",{ref:"map",attrs:{explorerMode:M.explorerMode,printMode:M.printMode,lat:M.lat,lon:M.lon,full_airport_loaded:M.loaded}})],1),M.loaded?M._e():N("div",{staticClass:"loading-airport"},[M._v("\n "+M._s(M.$t("LOADING_AIRPORT"))+"\n ")])],2)},L=[],I=(D("1c01"),D("58b2"),D("8e6e"),D("d25f"),D("456d"),D("7f7f"),D("6d67"),D("8ea5"),D("bd86")),A=(D("96cf"),D("3b8d")),z=D("4360"),n=D("2f62"),w=function(){var M=this,N=M._self._c;return N("div",{staticClass:"map-component",class:[M.deviceWidthClass]},[N("div",{staticClass:"map-component",attrs:{id:M.id}}),M._m(0)])},r=[function(){var M=this,N=M._self._c;return N("div",{staticClass:"attrib"},[N("div",{staticClass:"mapboxgl-ctrl-attrib-inner"},[M._v("©"),N("a",{attrs:{href:"https://aena.es/",target:"_blank",rel:"noopener"}},[M._v("Aena S.M.E, S.A")]),M._v(" ©"),N("a",{attrs:{href:"https://carto.com/",target:"_blank",rel:"noopener"}},[M._v("CARTO")]),M._v(" ©"),N("a",{attrs:{href:"http://www.openstreetmap.org/about/",target:"_blank"}},[M._v("OpenStreetMap")]),M._v(" contributors")])])}],y=(D("6762"),D("2fdb"),D("7514"),D("6c7b"),D("75fc")),c=(D("0cd8"),D("ffc1"),D("e192"));D("ac6d");function a(M,N){return M.features=M.features.filter((function(M){return M.properties.subcategories.includes(N)})),M}var E=D("4e28");function o(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function O(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?o(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):o(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var x={computed:O({},Object(n["c"])({poisList:z["b"].GET_POIS_LIST,uncategorizedPoisList:z["b"].GET_UNCATEGORIZED_POIS_LIST,hasRoute:z["b"].HAS_ROUTE,routeDefaultLevel:z["b"].GET_ROUTE_DEFAULT_LEVEL_BUILDING})),methods:O(O({},Object(n["b"])([z["a"].LOAD_FLOOR,z["a"].LOAD_POI])),{},{saveFloor:function(M){var N=M.buildingId,D=M.floorId,t=M.force,i=void 0!==t&&t,e=M.airportID,j=M.tag,T=void 0===j?"mapa":j,g=M.event,u=void 0!==g&&g,s=this.buildings.find((function(M){return M.id===N}));if(s){var L=this.routeDefaultLevel[s.id]?this.routeDefaultLevel[s.id]:D,I=!this.hasRoute||i?D:L,A=s.levels.find((function(M){return M.id===I}));if(u){var n="".concat(s.name,". Planta ").concat(A.name),w={eventCategory:T,eventAction:"clic",eventLabel:"".concat(Object(E["a"])(n)),language:this.$i18n.locale,airportID:e};window.digitalChange("event",w)}return this[z["a"].LOAD_FLOOR]({building:s,floor:A})}},findPoi:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));return N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N},savePoi:function(M){var N=M.poiId,D=M.pointGrouped,t=M.airportID,i=M.tag,e=this.findPoi(N),j=e.properties.level,T=e.properties.building;return this.saveFloor({buildingId:T,floorId:j,airportID:t,tag:i}),this[z["a"].LOAD_POI]({poi:e,pointGrouped:D})}})},C=(D("20d6"),D("759f"),D("5609")),S=D("d30b");function l(M,N,D){if(null!==M)for(var t,i,e,j,T,g,u,s,L=0,I=0,A=M.type,z="FeatureCollection"===A,n="Feature"===A,w=z?M.features.length:1,r=0;r<w;r++){u=z?M.features[r].geometry:n?M.geometry:M,s=!!u&&"GeometryCollection"===u.type,T=s?u.geometries.length:1;for(var y=0;y<T;y++){var c=0,a=0;if(j=s?u.geometries[y]:u,null!==j){g=j.coordinates;var E=j.type;switch(L=!D||"Polygon"!==E&&"MultiPolygon"!==E?0:1,E){case null:break;case"Point":if(!1===N(g,I,r,c,a))return!1;I++,c++;break;case"LineString":case"MultiPoint":for(t=0;t<g.length;t++){if(!1===N(g[t],I,r,c,a))return!1;I++,"MultiPoint"===E&&c++}"LineString"===E&&c++;break;case"Polygon":case"MultiLineString":for(t=0;t<g.length;t++){for(i=0;i<g[t].length-L;i++){if(!1===N(g[t][i],I,r,c,a))return!1;I++}"MultiLineString"===E&&c++,"Polygon"===E&&a++}"Polygon"===E&&c++;break;case"MultiPolygon":for(t=0;t<g.length;t++){for(a=0,i=0;i<g[t].length;i++){for(e=0;e<g[t][i].length-L;e++){if(!1===N(g[t][i][e],I,r,c,a))return!1;I++}a++}c++}break;case"GeometryCollection":for(t=0;t<j.geometries.length;t++)if(!1===l(j.geometries[t],N,D))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function k(M,N){if("Feature"===M.type)N(M,0);else if("FeatureCollection"===M.type)for(var D=0;D<M.features.length;D++)if(!1===N(M.features[D],D))break}function Q(M,N){void 0===N&&(N={});var D=0,t=0,i=0;return l(M,(function(M){D+=M[0],t+=M[1],i++}),!0),Object(S["g"])([D/i,t/i],N.properties)}var d=Q,Y=D("4703");function U(M,N,D){void 0===D&&(D=2);var t=Object(Y["a"])(M),i=Object(Y["a"])(N),e=t[0]-i[0],j=t[1]-i[1];return 1===D?Math.abs(e)+Math.abs(j):Math.pow(Math.pow(e,D)+Math.pow(j,D),1/D)}function p(M,N){N=N||{};var D=N.threshold||1e4,t=N.p||2,i=N.binary||!1,e=N.alpha||-1,j=N.standardization||!1,T=[];k(M,(function(M){T.push(d(M))}));for(var g=[],u=0;u<T.length;u++)g[u]=[];for(u=0;u<T.length;u++)for(var s=u;s<T.length;s++){u===s&&(g[u][s]=0);var L=U(T[u],T[s],t);g[u][s]=L,g[s][u]=L}for(u=0;u<T.length;u++)for(s=0;s<T.length;s++){L=g[u][s];0!==L&&(g[u][s]=i?L<=D?1:0:L<=D?Math.pow(L,e):0)}if(j)for(u=0;u<T.length;u++){var I=g[u].reduce((function(M,N){return M+N}),0);for(s=0;s<T.length;s++)g[u][s]=g[u][s]/I}return g}function h(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function f(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?h(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):h(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var m={computed:f({},Object(n["c"])({buildings:C["b"].GET_BUILDINGS})),methods:{getBuilding:function(M){return this.buildings.find((function(N){return N.id===M}))},setLocation:function(){var M=this,N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N.forEach((function(N){N.properties.location=M.getBuilding(N.properties.building)}))}}},v=D("8967");function B(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function b(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?B(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):B(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var P={mixins:[m],computed:b(b({},Object(n["c"])({routeC:C["b"].GET_ROUTE,originC:C["b"].GET_ORIGIN,destinationC:C["b"].GET_DESTINATION,newPoints:C["b"].GET_NEW_POINT,pmrProfile:C["b"].GET_PMR_PROFILE})),{},{steps:{get:function(){return this.routeC.steps},set:function(M){this[C["a"].MOVE_ROUTE]({steps:M})}},route:function(){return this.routeC.route},origin:function(){var M=this.originC;if(M)return this.setLocation([M]),M},destination:function(){var M=this.destinationC;if(M)return this.setLocation([M]),M},duration:function(){return this.routeC.duration},distance:function(){return this.routeC.distance},error:function(){return this.routeC.error},loading:function(){return this.routeC.loading},destinationName:function(){return this.routeC.destinationName},routeCondition:function(){var M,N,D,t,i,e,j="",T="",g="",u=null===this.pmrProfile?"hombre-caminando-t.svg":"pmr-t-green.svg";return this.route.some((function(j){var T=j.instructions.filter((function(M){return v["d"].includes(M.tag.type.toUpperCase())||v["c"].includes(M.tag.type.toUpperCase())||v["b"].includes(M.tag.type.toUpperCase())}));return M=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][0]})).length,D=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][1]})).length,e=T.filter((function(M){return M.tag.type.toUpperCase()===v["b"][0]})).length,N=M>1||M&&D,t=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][0]})).length,i=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][1]})).length,M||N||D||t||i})),N?(j="ROUTE_SECURITY_CONTROL_PLUS",u="icon-seguridad-t.svg"):M?(j="ROUTE_SECURITY_CONTROL",u="icon-seguridad-t.svg"):D&&(j="ROUTE_PASSPORT_CONTROL",u="cruza-el-control-de-pasaporte-jj.svg"),t&&i?(T="ROUTE_MULTI_TRANSPORT",u="transporte-publico-t.svg"):t?(T="ROUTE_TRAIN",u="metro-t.svg"):i&&(T="ROUTE_BUS",u="bus-grande-t.svg"),e&&(g="ROUTE_ONEWAY_NO_RETURN"),j||T||(T=null===this.pmrProfile?"ROUTE_NORMAL":"ROUTE_NORMAL_PMR"),j&&T&&(u="seguridad-transporte.svg"),{msg:j,msg2:T,msg3:g,icon:u,securityControl:!!M||!!D,oneWay:!!e}},iconCondition:function(){return this.routeCondition.icon},z:function(){return this.routeC.z}}),methods:b(b({},Object(n["b"])([C["a"].LOAD_ROUTE,C["a"].CLEAR_ROUTE,C["a"].MOVE_ROUTE,C["a"].SET_DESTINATION_NAME])),{},{moreClose:function(M){var N=M[0];if(this.origin||this.destination){var D={type:"FeatureCollection",features:[this.origin||this.destination].concat(Object(y["a"])(M))},t=p(D),i=t[0];i.shift();var e=Math.max.apply(Math,Object(y["a"])(i)),j=i.findIndex((function(M){return M===e}));N=M[j]}return N},setDestination:function(M){this[C["a"].SET_DESTINATION_NAME](M)}})},Z=D("db49"),G=function(){var M=this,N=M._self._c;return N("ul",{staticClass:"context-menu-container"},[M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"FROM_HERE",expression:"'FROM_HERE'"}],on:{click:function(N){return M.click("origin")}}}):M._e(),M.origin&&M.destination&&M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"ADD_POINT",expression:"'ADD_POINT'"}],on:{click:function(N){return M.click("step")}}}):M._e(),M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"TO_HERE",expression:"'TO_HERE'"}],on:{click:function(N){return M.click("destination")}}}):M._e(),M.debugMode?N("li",{staticClass:"debug-li"},[N("p",{staticClass:"debug-header"},[M._v("EPSG: 4326")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lat:")]),N("input",{ref:"lat",staticClass:"debug-text",domProps:{value:M.coordinates4326[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lat")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lon:")]),N("input",{ref:"lon",staticClass:"debug-text",domProps:{value:M.coordinates4326[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lon")}}},[M._v("copy")])])]):M._e(),M.debugMode?N("li",[N("p",{staticClass:"debug-header"},[M._v("EPSG: 3857")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("x:")]),N("input",{ref:"x",staticClass:"debug-text",domProps:{value:M.coordinates3857[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("x")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("y:")]),N("input",{ref:"y",staticClass:"debug-text",domProps:{value:M.coordinates3857[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("y")}}},[M._v("copy")])])]):M._e()])},R=[],W=(D("c5f6"),function(M){M("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),M("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),M("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),M.WGS84=M["EPSG:4326"],M["EPSG:3785"]=M["EPSG:3857"],M.GOOGLE=M["EPSG:3857"],M["EPSG:900913"]=M["EPSG:3857"],M["EPSG:102113"]=M["EPSG:3857"]}),X=1,H=2,_=3,F=4,V=5,J=6378137,q=6356752.314,K=.0066943799901413165,$=484813681109536e-20,MM=Math.PI/2,NM=.16666666666666666,DM=.04722222222222222,tM=.022156084656084655,iM=1e-10,eM=.017453292519943295,jM=57.29577951308232,TM=Math.PI/4,gM=2*Math.PI,uM=3.14159265359,sM={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},LM={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},IM=/[\s_\-\/\(\)]/g;function AM(M,N){if(M[N])return M[N];var D,t,i=Object.keys(M),e=N.toLowerCase().replace(IM,""),j=-1;while(++j<i.length)if(D=i[j],t=D.toLowerCase().replace(IM,""),t===e)return M[D]}var zM=function(M){var N,D,t,i={},e=M.split("+").map((function(M){return M.trim()})).filter((function(M){return M})).reduce((function(M,N){var D=N.split("=");return D.push(!0),M[D[0].toLowerCase()]=D[1],M}),{}),j={proj:"projName",datum:"datumCode",rf:function(M){i.rf=parseFloat(M)},lat_0:function(M){i.lat0=M*eM},lat_1:function(M){i.lat1=M*eM},lat_2:function(M){i.lat2=M*eM},lat_ts:function(M){i.lat_ts=M*eM},lon_0:function(M){i.long0=M*eM},lon_1:function(M){i.long1=M*eM},lon_2:function(M){i.long2=M*eM},alpha:function(M){i.alpha=parseFloat(M)*eM},gamma:function(M){i.rectified_grid_angle=parseFloat(M)},lonc:function(M){i.longc=M*eM},x_0:function(M){i.x0=parseFloat(M)},y_0:function(M){i.y0=parseFloat(M)},k_0:function(M){i.k0=parseFloat(M)},k:function(M){i.k0=parseFloat(M)},a:function(M){i.a=parseFloat(M)},b:function(M){i.b=parseFloat(M)},r_a:function(){i.R_A=!0},zone:function(M){i.zone=parseInt(M,10)},south:function(){i.utmSouth=!0},towgs84:function(M){i.datum_params=M.split(",").map((function(M){return parseFloat(M)}))},to_meter:function(M){i.to_meter=parseFloat(M)},units:function(M){i.units=M;var N=AM(LM,M);N&&(i.to_meter=N.to_meter)},from_greenwich:function(M){i.from_greenwich=M*eM},pm:function(M){var N=AM(sM,M);i.from_greenwich=(N||parseFloat(M))*eM},nadgrids:function(M){"@null"===M?i.datumCode="none":i.nadgrids=M},axis:function(M){var N="ewnsud";3===M.length&&-1!==N.indexOf(M.substr(0,1))&&-1!==N.indexOf(M.substr(1,1))&&-1!==N.indexOf(M.substr(2,1))&&(i.axis=M)},approx:function(){i.approx=!0}};for(N in e)D=e[N],N in j?(t=j[N],"function"===typeof t?t(D):i[t]=D):i[N]=D;return"string"===typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i},nM=kM,wM=1,rM=2,yM=3,cM=4,aM=5,EM=-1,oM=/\s/,OM=/[A-Za-z]/,xM=/[A-Za-z84_]/,CM=/[,\]]/,SM=/[\d\.E\-\+]/;function lM(M){if("string"!==typeof M)throw new Error("not a string");this.text=M.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=wM}function kM(M){var N=new lM(M);return N.output()}function QM(M,N,D){Array.isArray(N)&&(D.unshift(N),N=null);var t=N?{}:M,i=D.reduce((function(M,N){return dM(N,M),M}),t);N&&(M[N]=i)}function dM(M,N){if(Array.isArray(M)){var D=M.shift();if("PARAMETER"===D&&(D=M.shift()),1===M.length)return Array.isArray(M[0])?(N[D]={},void dM(M[0],N[D])):void(N[D]=M[0]);if(M.length)if("TOWGS84"!==D){if("AXIS"===D)return D in N||(N[D]=[]),void N[D].push(M);var t;switch(Array.isArray(D)||(N[D]={}),D){case"UNIT":case"PRIMEM":case"VERT_DATUM":return N[D]={name:M[0].toLowerCase(),convert:M[1]},void(3===M.length&&dM(M[2],N[D]));case"SPHEROID":case"ELLIPSOID":return N[D]={name:M[0],a:M[1],rf:M[2]},void(4===M.length&&dM(M[3],N[D]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return M[0]=["name",M[0]],void QM(N,D,M);default:t=-1;while(++t<M.length)if(!Array.isArray(M[t]))return dM(M,N[D]);return QM(N,D,M)}}else N[D]=M;else N[D]=!0}else N[M]=!0}lM.prototype.readCharicter=function(){var M=this.text[this.place++];if(this.state!==cM)while(oM.test(M)){if(this.place>=this.text.length)return;M=this.text[this.place++]}switch(this.state){case wM:return this.neutral(M);case rM:return this.keyword(M);case cM:return this.quoted(M);case aM:return this.afterquote(M);case yM:return this.number(M);case EM:return}},lM.prototype.afterquote=function(M){if('"'===M)return this.word+='"',void(this.state=cM);if(CM.test(M))return this.word=this.word.trim(),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in afterquote yet, index '+this.place)},lM.prototype.afterItem=function(M){return","===M?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=wM)):"]"===M?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=wM,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=EM))):void 0},lM.prototype.number=function(M){if(!SM.test(M)){if(CM.test(M))return this.word=parseFloat(this.word),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in number yet, index '+this.place)}this.word+=M},lM.prototype.quoted=function(M){'"'!==M?this.word+=M:this.state=aM},lM.prototype.keyword=function(M){if(xM.test(M))this.word+=M;else{if("["===M){var N=[];return N.push(this.word),this.level++,null===this.root?this.root=N:this.currentObject.push(N),this.stack.push(this.currentObject),this.currentObject=N,void(this.state=wM)}if(!CM.test(M))throw new Error("havn't handled \""+M+'" in keyword yet, index '+this.place);this.afterItem(M)}},lM.prototype.neutral=function(M){if(OM.test(M))return this.word=M,void(this.state=rM);if('"'===M)return this.word="",void(this.state=cM);if(SM.test(M))return this.word=M,void(this.state=yM);if(!CM.test(M))throw new Error("havn't handled \""+M+'" in neutral yet, index '+this.place);this.afterItem(M)},lM.prototype.output=function(){while(this.place<this.text.length)this.readCharicter();if(this.state===EM)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var YM=.017453292519943295;function UM(M,N){var D=N[0],t=N[1];!(D in M)&&t in M&&(M[D]=M[t],3===N.length&&(M[D]=N[2](M[D])))}function pM(M){return M*YM}function hM(M){if("GEOGCS"===M.type?M.projName="longlat":"LOCAL_CS"===M.type?(M.projName="identity",M.local=!0):"object"===typeof M.PROJECTION?M.projName=Object.keys(M.PROJECTION)[0]:M.projName=M.PROJECTION,M.AXIS){for(var N="",D=0,t=M.AXIS.length;D<t;++D){var i=[M.AXIS[D][0].toLowerCase(),M.AXIS[D][1].toLowerCase()];-1!==i[0].indexOf("north")||("y"===i[0]||"lat"===i[0])&&"north"===i[1]?N+="n":-1!==i[0].indexOf("south")||("y"===i[0]||"lat"===i[0])&&"south"===i[1]?N+="s":-1!==i[0].indexOf("east")||("x"===i[0]||"lon"===i[0])&&"east"===i[1]?N+="e":-1===i[0].indexOf("west")&&("x"!==i[0]&&"lon"!==i[0]||"west"!==i[1])||(N+="w")}2===N.length&&(N+="u"),3===N.length&&(M.axis=N)}M.UNIT&&(M.units=M.UNIT.name.toLowerCase(),"metre"===M.units&&(M.units="meter"),M.UNIT.convert&&("GEOGCS"===M.type?M.DATUM&&M.DATUM.SPHEROID&&(M.to_meter=M.UNIT.convert*M.DATUM.SPHEROID.a):M.to_meter=M.UNIT.convert));var e=M.GEOGCS;function j(N){var D=M.to_meter||1;return N*D}"GEOGCS"===M.type&&(e=M),e&&(e.DATUM?M.datumCode=e.DATUM.name.toLowerCase():M.datumCode=e.name.toLowerCase(),"d_"===M.datumCode.slice(0,2)&&(M.datumCode=M.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==M.datumCode&&"new_zealand_1949"!==M.datumCode||(M.datumCode="nzgd49"),"wgs_1984"!==M.datumCode&&"world_geodetic_system_1984"!==M.datumCode||("Mercator_Auxiliary_Sphere"===M.PROJECTION&&(M.sphere=!0),M.datumCode="wgs84"),"_ferro"===M.datumCode.slice(-6)&&(M.datumCode=M.datumCode.slice(0,-6)),"_jakarta"===M.datumCode.slice(-8)&&(M.datumCode=M.datumCode.slice(0,-8)),~M.datumCode.indexOf("belge")&&(M.datumCode="rnb72"),e.DATUM&&e.DATUM.SPHEROID&&(M.ellps=e.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===M.ellps.toLowerCase().slice(0,13)&&(M.ellps="intl"),M.a=e.DATUM.SPHEROID.a,M.rf=parseFloat(e.DATUM.SPHEROID.rf,10)),e.DATUM&&e.DATUM.TOWGS84&&(M.datum_params=e.DATUM.TOWGS84),~M.datumCode.indexOf("osgb_1936")&&(M.datumCode="osgb36"),~M.datumCode.indexOf("osni_1952")&&(M.datumCode="osni52"),(~M.datumCode.indexOf("tm65")||~M.datumCode.indexOf("geodetic_datum_of_1965"))&&(M.datumCode="ire65"),"ch1903+"===M.datumCode&&(M.datumCode="ch1903"),~M.datumCode.indexOf("israel")&&(M.datumCode="isr93")),M.b&&!isFinite(M.b)&&(M.b=M.a);var T=function(N){return UM(M,N)},g=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",pM],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",pM],["x0","false_easting",j],["y0","false_northing",j],["long0","central_meridian",pM],["lat0","latitude_of_origin",pM],["lat0","standard_parallel_1",pM],["lat1","standard_parallel_1",pM],["lat2","standard_parallel_2",pM],["azimuth","Azimuth"],["alpha","azimuth",pM],["srsCode","name"]];g.forEach(T),M.long0||!M.longc||"Albers_Conic_Equal_Area"!==M.projName&&"Lambert_Azimuthal_Equal_Area"!==M.projName||(M.long0=M.longc),M.lat_ts||!M.lat1||"Stereographic_South_Pole"!==M.projName&&"Polar Stereographic (variant B)"!==M.projName?!M.lat_ts&&M.lat0&&"Polar_Stereographic"===M.projName&&(M.lat_ts=M.lat0,M.lat0=pM(M.lat0>0?90:-90)):(M.lat0=pM(M.lat1>0?90:-90),M.lat_ts=M.lat1)}var fM=function(M){var N=nM(M),D=N.shift(),t=N.shift();N.unshift(["name",t]),N.unshift(["type",D]);var i={};return dM(N,i),hM(i),i};function mM(M){var N=this;if(2===arguments.length){var D=arguments[1];"string"===typeof D?"+"===D.charAt(0)?mM[M]=zM(arguments[1]):mM[M]=fM(arguments[1]):mM[M]=D}else if(1===arguments.length){if(Array.isArray(M))return M.map((function(M){Array.isArray(M)?mM.apply(N,M):mM(M)}));if("string"===typeof M){if(M in mM)return mM[M]}else"EPSG"in M?mM["EPSG:"+M.EPSG]=M:"ESRI"in M?mM["ESRI:"+M.ESRI]=M:"IAU2000"in M?mM["IAU2000:"+M.IAU2000]=M:console.log(M);return}}W(mM);var vM=mM;function BM(M){return"string"===typeof M}function bM(M){return M in vM}var PM=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function ZM(M){return PM.some((function(N){return M.indexOf(N)>-1}))}var GM=["3857","900913","3785","102113"];function RM(M){var N=AM(M,"authority");if(N){var D=AM(N,"epsg");return D&&GM.indexOf(D)>-1}}function WM(M){var N=AM(M,"extension");if(N)return AM(N,"proj4")}function XM(M){return"+"===M[0]}function HM(M){if(!BM(M))return M;if(bM(M))return vM[M];if(ZM(M)){var N=fM(M);if(RM(N))return vM["EPSG:3857"];var D=WM(N);return D?zM(D):N}return XM(M)?zM(M):void 0}var _M=HM,FM=function(M,N){var D,t;if(M=M||{},!N)return M;for(t in N)D=N[t],void 0!==D&&(M[t]=D);return M},VM=function(M,N,D){var t=M*N;return D/Math.sqrt(1-t*t)},JM=function(M){return M<0?-1:1},qM=function(M){return Math.abs(M)<=uM?M:M-JM(M)*gM},KM=function(M,N,D){var t=M*D,i=.5*M;return t=Math.pow((1-t)/(1+t),i),Math.tan(.5*(MM-N))/t},$M=function(M,N){for(var D,t,i=.5*M,e=MM-2*Math.atan(N),j=0;j<=15;j++)if(D=M*Math.sin(e),t=MM-2*Math.atan(N*Math.pow((1-D)/(1+D),i))-e,e+=t,Math.abs(t)<=1e-10)return e;return-9999};function MN(){var M=this.b/this.a;this.es=1-M*M,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=VM(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function NN(M){var N,D,t=M.x,i=M.y;if(i*jM>90&&i*jM<-90&&t*jM>180&&t*jM<-180)return null;if(Math.abs(Math.abs(i)-MM)<=iM)return null;if(this.sphere)N=this.x0+this.a*this.k0*qM(t-this.long0),D=this.y0+this.a*this.k0*Math.log(Math.tan(TM+.5*i));else{var e=Math.sin(i),j=KM(this.e,i,e);N=this.x0+this.a*this.k0*qM(t-this.long0),D=this.y0-this.a*this.k0*Math.log(j)}return M.x=N,M.y=D,M}function DN(M){var N,D,t=M.x-this.x0,i=M.y-this.y0;if(this.sphere)D=MM-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var e=Math.exp(-i/(this.a*this.k0));if(D=$M(this.e,e),-9999===D)return null}return N=qM(this.long0+t/(this.a*this.k0)),M.x=N,M.y=D,M}var tN=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],iN={init:MN,forward:NN,inverse:DN,names:tN};function eN(){}function jN(M){return M}var TN=["longlat","identity"],gN={init:eN,forward:jN,inverse:jN,names:TN},uN=[iN,gN],sN={},LN=[];function IN(M,N){var D=LN.length;return M.names?(LN[D]=M,M.names.forEach((function(M){sN[M.toLowerCase()]=D})),this):(console.log(N),!0)}function AN(M){if(!M)return!1;var N=M.toLowerCase();return"undefined"!==typeof sN[N]&&LN[sN[N]]?LN[sN[N]]:void 0}function zN(){uN.forEach(IN)}var nN={start:zN,add:IN,get:AN},wN={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},rN=wN.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function yN(M,N,D,t){var i=M*M,e=N*N,j=(i-e)/i,T=0;t?(M*=1-j*(NM+j*(DM+j*tM)),i=M*M,j=0):T=Math.sqrt(j);var g=(i-e)/e;return{es:j,e:T,ep2:g}}function cN(M,N,D,t,i){if(!M){var e=AM(wN,t);e||(e=rN),M=e.a,N=e.b,D=e.rf}return D&&!N&&(N=(1-1/D)*M),(0===D||Math.abs(M-N)<iM)&&(i=!0,N=M),{a:M,b:N,rf:D,sphere:i}}wN.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var aN={};function EN(M,N,D,t,i,e,j){var T={};return T.datum_type=void 0===M||"none"===M?V:F,N&&(T.datum_params=N.map(parseFloat),0===T.datum_params[0]&&0===T.datum_params[1]&&0===T.datum_params[2]||(T.datum_type=X),T.datum_params.length>3&&(0===T.datum_params[3]&&0===T.datum_params[4]&&0===T.datum_params[5]&&0===T.datum_params[6]||(T.datum_type=H,T.datum_params[3]*=$,T.datum_params[4]*=$,T.datum_params[5]*=$,T.datum_params[6]=T.datum_params[6]/1e6+1))),j&&(T.datum_type=_,T.grids=j),T.a=D,T.b=t,T.es=i,T.ep2=e,T}aN.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},aN.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},aN.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},aN.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},aN.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},aN.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},aN.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},aN.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},aN.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},aN.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},aN.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},aN.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},aN.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},aN.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},aN.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},aN.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},aN.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var oN=EN,ON={};function xN(M,N){var D=new DataView(N),t=kN(D),i=QN(D,t);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var e=YN(D,i,t),j={header:i,subgrids:e};return ON[M]=j,j}function CN(M){if(void 0===M)return null;var N=M.split(",");return N.map(SN)}function SN(M){if(0===M.length)return null;var N="@"===M[0];return N&&(M=M.slice(1)),"null"===M?{name:"null",mandatory:!N,grid:null,isNull:!0}:{name:M,mandatory:!N,grid:ON[M]||null,isNull:!1}}function lN(M){return M/3600*Math.PI/180}function kN(M){var N=M.getInt32(8,!1);return 11!==N&&(N=M.getInt32(8,!0),11!==N&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function QN(M,N){return{nFields:M.getInt32(8,N),nSubgridFields:M.getInt32(24,N),nSubgrids:M.getInt32(40,N),shiftType:dN(M,56,64).trim(),fromSemiMajorAxis:M.getFloat64(120,N),fromSemiMinorAxis:M.getFloat64(136,N),toSemiMajorAxis:M.getFloat64(152,N),toSemiMinorAxis:M.getFloat64(168,N)}}function dN(M,N,D){return String.fromCharCode.apply(null,new Uint8Array(M.buffer.slice(N,D)))}function YN(M,N,D){for(var t=176,i=[],e=0;e<N.nSubgrids;e++){var j=pN(M,t,D),T=hN(M,t,j,D),g=Math.round(1+(j.upperLongitude-j.lowerLongitude)/j.longitudeInterval),u=Math.round(1+(j.upperLatitude-j.lowerLatitude)/j.latitudeInterval);i.push({ll:[lN(j.lowerLongitude),lN(j.lowerLatitude)],del:[lN(j.longitudeInterval),lN(j.latitudeInterval)],lim:[g,u],count:j.gridNodeCount,cvs:UN(T)})}return i}function UN(M){return M.map((function(M){return[lN(M.longitudeShift),lN(M.latitudeShift)]}))}function pN(M,N,D){return{name:dN(M,N+8,N+16).trim(),parent:dN(M,N+24,N+24+8).trim(),lowerLatitude:M.getFloat64(N+72,D),upperLatitude:M.getFloat64(N+88,D),lowerLongitude:M.getFloat64(N+104,D),upperLongitude:M.getFloat64(N+120,D),latitudeInterval:M.getFloat64(N+136,D),longitudeInterval:M.getFloat64(N+152,D),gridNodeCount:M.getInt32(N+168,D)}}function hN(M,N,D,t){for(var i=N+176,e=16,j=[],T=0;T<D.gridNodeCount;T++){var g={latitudeShift:M.getFloat32(i+T*e,t),longitudeShift:M.getFloat32(i+T*e+4,t),latitudeAccuracy:M.getFloat32(i+T*e+8,t),longitudeAccuracy:M.getFloat32(i+T*e+12,t)};j.push(g)}return j}function fN(M,N){if(!(this instanceof fN))return new fN(M);N=N||function(M){if(M)throw M};var D=_M(M);if("object"===typeof D){var t=fN.projections.get(D.projName);if(t){if(D.datumCode&&"none"!==D.datumCode){var i=AM(aN,D.datumCode);i&&(D.datum_params=D.datum_params||(i.towgs84?i.towgs84.split(","):null),D.ellps=i.ellipse,D.datumName=i.datumName?i.datumName:D.datumCode)}D.k0=D.k0||1,D.axis=D.axis||"enu",D.ellps=D.ellps||"wgs84",D.lat1=D.lat1||D.lat0;var e=cN(D.a,D.b,D.rf,D.ellps,D.sphere),j=yN(e.a,e.b,e.rf,D.R_A),T=CN(D.nadgrids),g=D.datum||oN(D.datumCode,D.datum_params,e.a,e.b,j.es,j.ep2,T);FM(this,D),FM(this,t),this.a=e.a,this.b=e.b,this.rf=e.rf,this.sphere=e.sphere,this.es=j.es,this.e=j.e,this.ep2=j.ep2,this.datum=g,this.init(),N(null,this)}else N(M)}else N(M)}fN.projections=nN,fN.projections.start();var mN=fN;function vN(M,N){return M.datum_type===N.datum_type&&(!(M.a!==N.a||Math.abs(M.es-N.es)>5e-11)&&(M.datum_type===X?M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]:M.datum_type!==H||M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]&&M.datum_params[3]===N.datum_params[3]&&M.datum_params[4]===N.datum_params[4]&&M.datum_params[5]===N.datum_params[5]&&M.datum_params[6]===N.datum_params[6]))}function BN(M,N,D){var t,i,e,j,T=M.x,g=M.y,u=M.z?M.z:0;if(g<-MM&&g>-1.001*MM)g=-MM;else if(g>MM&&g<1.001*MM)g=MM;else{if(g<-MM)return{x:-1/0,y:-1/0,z:M.z};if(g>MM)return{x:1/0,y:1/0,z:M.z}}return T>Math.PI&&(T-=2*Math.PI),i=Math.sin(g),j=Math.cos(g),e=i*i,t=D/Math.sqrt(1-N*e),{x:(t+u)*j*Math.cos(T),y:(t+u)*j*Math.sin(T),z:(t*(1-N)+u)*i}}function bN(M,N,D,t){var i,e,j,T,g,u,s,L,I,A,z,n,w,r,y,c,a=1e-12,E=a*a,o=30,O=M.x,x=M.y,C=M.z?M.z:0;if(i=Math.sqrt(O*O+x*x),e=Math.sqrt(O*O+x*x+C*C),i/D<a){if(r=0,e/D<a)return y=MM,c=-t,{x:M.x,y:M.y,z:M.z}}else r=Math.atan2(x,O);j=C/e,T=i/e,g=1/Math.sqrt(1-N*(2-N)*T*T),L=T*(1-N)*g,I=j*g,w=0;do{w++,s=D/Math.sqrt(1-N*I*I),c=i*L+C*I-s*(1-N*I*I),u=N*s/(s+c),g=1/Math.sqrt(1-u*(2-u)*T*T),A=T*(1-u)*g,z=j*g,n=z*L-A*I,L=A,I=z}while(n*n>E&&w<o);return y=Math.atan(z/Math.abs(A)),{x:r,y:y,z:c}}function PN(M,N,D){if(N===X)return{x:M.x+D[0],y:M.y+D[1],z:M.z+D[2]};if(N===H){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],u=D[6];return{x:u*(M.x-g*M.y+T*M.z)+t,y:u*(g*M.x+M.y-j*M.z)+i,z:u*(-T*M.x+j*M.y+M.z)+e}}}function ZN(M,N,D){if(N===X)return{x:M.x-D[0],y:M.y-D[1],z:M.z-D[2]};if(N===H){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],u=D[6],s=(M.x-t)/u,L=(M.y-i)/u,I=(M.z-e)/u;return{x:s+g*L-T*I,y:-g*s+L+j*I,z:T*s-j*L+I}}}function GN(M){return M===X||M===H}var RN=function(M,N,D){if(vN(M,N))return D;if(M.datum_type===V||N.datum_type===V)return D;var t=M.a,i=M.es;if(M.datum_type===_){var e=WN(M,!1,D);if(0!==e)return;t=J,i=K}var j=N.a,T=N.b,g=N.es;if(N.datum_type===_&&(j=J,T=q,g=K),i===g&&t===j&&!GN(M.datum_type)&&!GN(N.datum_type))return D;if(D=BN(D,i,t),GN(M.datum_type)&&(D=PN(D,M.datum_type,M.datum_params)),GN(N.datum_type)&&(D=ZN(D,N.datum_type,N.datum_params)),D=bN(D,g,j,T),N.datum_type===_){var u=WN(N,!0,D);if(0!==u)return}return D};function WN(M,N,D){if(null===M.grids||0===M.grids.length)return console.log("Grid shift grids not found"),-1;for(var t={x:-D.x,y:D.y},i={x:Number.NaN,y:Number.NaN},e=[],j=0;j<M.grids.length;j++){var T=M.grids[j];if(e.push(T.name),T.isNull){i=t;break}if(T.mandatory,null!==T.grid){var g=T.grid.subgrids[0],u=(Math.abs(g.del[1])+Math.abs(g.del[0]))/1e4,s=g.ll[0]-u,L=g.ll[1]-u,I=g.ll[0]+(g.lim[0]-1)*g.del[0]+u,A=g.ll[1]+(g.lim[1]-1)*g.del[1]+u;if(!(L>t.y||s>t.x||A<t.y||I<t.x)&&(i=XN(t,N,g),!isNaN(i.x)))break}else if(T.mandatory)return console.log("Unable to find mandatory grid '"+T.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-t.x*jM+" "+t.y*jM+" tried: '"+e+"'"),-1):(D.x=-i.x,D.y=i.y,0)}function XN(M,N,D){var t={x:Number.NaN,y:Number.NaN};if(isNaN(M.x))return t;var i={x:M.x,y:M.y};i.x-=D.ll[0],i.y-=D.ll[1],i.x=qM(i.x-Math.PI)+Math.PI;var e=HN(i,D);if(N){if(isNaN(e.x))return t;e.x=i.x-e.x,e.y=i.y-e.y;var j,T,g=9,u=1e-12;do{if(T=HN(e,D),isNaN(T.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}j={x:i.x-(T.x+e.x),y:i.y-(T.y+e.y)},e.x+=j.x,e.y+=j.y}while(g--&&Math.abs(j.x)>u&&Math.abs(j.y)>u);if(g<0)return console.log("Inverse grid shift iterator failed to converge."),t;t.x=qM(e.x+D.ll[0]),t.y=e.y+D.ll[1]}else isNaN(e.x)||(t.x=M.x+e.x,t.y=M.y+e.y);return t}function HN(M,N){var D,t={x:M.x/N.del[0],y:M.y/N.del[1]},i={x:Math.floor(t.x),y:Math.floor(t.y)},e={x:t.x-1*i.x,y:t.y-1*i.y},j={x:Number.NaN,y:Number.NaN};if(i.x<0||i.x>=N.lim[0])return j;if(i.y<0||i.y>=N.lim[1])return j;D=i.y*N.lim[0]+i.x;var T={x:N.cvs[D][0],y:N.cvs[D][1]};D++;var g={x:N.cvs[D][0],y:N.cvs[D][1]};D+=N.lim[0];var u={x:N.cvs[D][0],y:N.cvs[D][1]};D--;var s={x:N.cvs[D][0],y:N.cvs[D][1]},L=e.x*e.y,I=e.x*(1-e.y),A=(1-e.x)*(1-e.y),z=(1-e.x)*e.y;return j.x=A*T.x+I*g.x+z*s.x+L*u.x,j.y=A*T.y+I*g.y+z*s.y+L*u.y,j}var _N=function(M,N,D){var t,i,e,j=D.x,T=D.y,g=D.z||0,u={};for(e=0;e<3;e++)if(!N||2!==e||void 0!==D.z)switch(0===e?(t=j,i=-1!=="ew".indexOf(M.axis[e])?"x":"y"):1===e?(t=T,i=-1!=="ns".indexOf(M.axis[e])?"y":"x"):(t=g,i="z"),M.axis[e]){case"e":u[i]=t;break;case"w":u[i]=-t;break;case"n":u[i]=t;break;case"s":u[i]=-t;break;case"u":void 0!==D[i]&&(u.z=t);break;case"d":void 0!==D[i]&&(u.z=-t);break;default:return null}return u},FN=function(M){var N={x:M[0],y:M[1]};return M.length>2&&(N.z=M[2]),M.length>3&&(N.m=M[3]),N},VN=function(M){JN(M.x),JN(M.y)};function JN(M){if("function"===typeof Number.isFinite){if(Number.isFinite(M))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof M||M!==M||!isFinite(M))throw new TypeError("coordinates must be finite numbers")}function qN(M,N){return(M.datum.datum_type===X||M.datum.datum_type===H||M.datum.datum_type===_)&&"WGS84"!==N.datumCode||(N.datum.datum_type===X||N.datum.datum_type===H||N.datum.datum_type===_)&&"WGS84"!==M.datumCode}function KN(M,N,D,t){var i;D=Array.isArray(D)?FN(D):{x:D.x,y:D.y,z:D.z,m:D.m};var e=void 0!==D.z;if(VN(D),M.datum&&N.datum&&qN(M,N)&&(i=new mN("WGS84"),D=KN(M,i,D,t),M=i),t&&"enu"!==M.axis&&(D=_N(M,!1,D)),"longlat"===M.projName)D={x:D.x*eM,y:D.y*eM,z:D.z||0};else if(M.to_meter&&(D={x:D.x*M.to_meter,y:D.y*M.to_meter,z:D.z||0}),D=M.inverse(D),!D)return;if(M.from_greenwich&&(D.x+=M.from_greenwich),D=RN(M.datum,N.datum,D),D)return N.from_greenwich&&(D={x:D.x-N.from_greenwich,y:D.y,z:D.z||0}),"longlat"===N.projName?D={x:D.x*jM,y:D.y*jM,z:D.z||0}:(D=N.forward(D),N.to_meter&&(D={x:D.x/N.to_meter,y:D.y/N.to_meter,z:D.z||0})),t&&"enu"!==N.axis?_N(N,!0,D):(e||delete D.z,D)}var $N=mN("WGS84");function MD(M,N,D,t){var i,e,j;return Array.isArray(D)?(i=KN(M,N,D,t)||{x:NaN,y:NaN},D.length>2?"undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name?"number"===typeof i.z?[i.x,i.y,i.z].concat(D.splice(3)):[i.x,i.y,D[2]].concat(D.splice(3)):[i.x,i.y].concat(D.splice(2)):[i.x,i.y]):(e=KN(M,N,D,t),j=Object.keys(D),2===j.length||j.forEach((function(t){if("undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name){if("x"===t||"y"===t||"z"===t)return}else if("x"===t||"y"===t)return;e[t]=D[t]})),e)}function ND(M){return M instanceof mN?M:M.oProj?M.oProj:mN(M)}function DD(M,N,D){M=ND(M);var t,i=!1;return"undefined"===typeof N?(N=M,M=$N,i=!0):("undefined"!==typeof N.x||Array.isArray(N))&&(D=N,N=M,M=$N,i=!0),N=ND(N),D?MD(M,N,D):(t={forward:function(D,t){return MD(M,N,D,t)},inverse:function(D,t){return MD(N,M,D,t)}},i&&(t.oProj=N),t)}var tD=DD,iD=6,eD="AJSAJS",jD="AFAFAF",TD=65,gD=73,uD=79,sD=86,LD=90,ID={forward:AD,inverse:zD,toPoint:nD};function AD(M,N){return N=N||5,ED(yD({lat:M[1],lon:M[0]}),N)}function zD(M){var N=cD(CD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat,N.lon,N.lat]:[N.left,N.bottom,N.right,N.top]}function nD(M){var N=cD(CD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat]:[(N.left+N.right)/2,(N.top+N.bottom)/2]}function wD(M){return M*(Math.PI/180)}function rD(M){return M/Math.PI*180}function yD(M){var N,D,t,i,e,j,T,g,u,s=M.lat,L=M.lon,I=6378137,A=.00669438,z=.9996,n=wD(s),w=wD(L);u=Math.floor((L+180)/6)+1,180===L&&(u=60),s>=56&&s<64&&L>=3&&L<12&&(u=32),s>=72&&s<84&&(L>=0&&L<9?u=31:L>=9&&L<21?u=33:L>=21&&L<33?u=35:L>=33&&L<42&&(u=37)),N=6*(u-1)-180+3,g=wD(N),D=A/(1-A),t=I/Math.sqrt(1-A*Math.sin(n)*Math.sin(n)),i=Math.tan(n)*Math.tan(n),e=D*Math.cos(n)*Math.cos(n),j=Math.cos(n)*(w-g),T=I*((1-A/4-3*A*A/64-5*A*A*A/256)*n-(3*A/8+3*A*A/32+45*A*A*A/1024)*Math.sin(2*n)+(15*A*A/256+45*A*A*A/1024)*Math.sin(4*n)-35*A*A*A/3072*Math.sin(6*n));var r=z*t*(j+(1-i+e)*j*j*j/6+(5-18*i+i*i+72*e-58*D)*j*j*j*j*j/120)+5e5,y=z*(T+t*Math.tan(n)*(j*j/2+(5-i+9*e+4*e*e)*j*j*j*j/24+(61-58*i+i*i+600*e-330*D)*j*j*j*j*j*j/720));return s<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(r),zoneNumber:u,zoneLetter:aD(s)}}function cD(M){var N=M.northing,D=M.easting,t=M.zoneLetter,i=M.zoneNumber;if(i<0||i>60)return null;var e,j,T,g,u,s,L,I,A,z,n=.9996,w=6378137,r=.00669438,y=(1-Math.sqrt(1-r))/(1+Math.sqrt(1-r)),c=D-5e5,a=N;t<"N"&&(a-=1e7),I=6*(i-1)-180+3,e=r/(1-r),L=a/n,A=L/(w*(1-r/4-3*r*r/64-5*r*r*r/256)),z=A+(3*y/2-27*y*y*y/32)*Math.sin(2*A)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*A)+151*y*y*y/96*Math.sin(6*A),j=w/Math.sqrt(1-r*Math.sin(z)*Math.sin(z)),T=Math.tan(z)*Math.tan(z),g=e*Math.cos(z)*Math.cos(z),u=w*(1-r)/Math.pow(1-r*Math.sin(z)*Math.sin(z),1.5),s=c/(j*n);var E=z-j*Math.tan(z)/u*(s*s/2-(5+3*T+10*g-4*g*g-9*e)*s*s*s*s/24+(61+90*T+298*g+45*T*T-252*e-3*g*g)*s*s*s*s*s*s/720);E=rD(E);var o,O=(s-(1+2*T+g)*s*s*s/6+(5-2*g+28*T-3*g*g+8*e+24*T*T)*s*s*s*s*s/120)/Math.cos(z);if(O=I+rD(O),M.accuracy){var x=cD({northing:M.northing+M.accuracy,easting:M.easting+M.accuracy,zoneLetter:M.zoneLetter,zoneNumber:M.zoneNumber});o={top:x.lat,right:x.lon,bottom:E,left:O}}else o={lat:E,lon:O};return o}function aD(M){var N="Z";return 84>=M&&M>=72?N="X":72>M&&M>=64?N="W":64>M&&M>=56?N="V":56>M&&M>=48?N="U":48>M&&M>=40?N="T":40>M&&M>=32?N="S":32>M&&M>=24?N="R":24>M&&M>=16?N="Q":16>M&&M>=8?N="P":8>M&&M>=0?N="N":0>M&&M>=-8?N="M":-8>M&&M>=-16?N="L":-16>M&&M>=-24?N="K":-24>M&&M>=-32?N="J":-32>M&&M>=-40?N="H":-40>M&&M>=-48?N="G":-48>M&&M>=-56?N="F":-56>M&&M>=-64?N="E":-64>M&&M>=-72?N="D":-72>M&&M>=-80&&(N="C"),N}function ED(M,N){var D="00000"+M.easting,t="00000"+M.northing;return M.zoneNumber+M.zoneLetter+oD(M.easting,M.northing,M.zoneNumber)+D.substr(D.length-5,N)+t.substr(t.length-5,N)}function oD(M,N,D){var t=OD(D),i=Math.floor(M/1e5),e=Math.floor(N/1e5)%20;return xD(i,e,t)}function OD(M){var N=M%iD;return 0===N&&(N=iD),N}function xD(M,N,D){var t=D-1,i=eD.charCodeAt(t),e=jD.charCodeAt(t),j=i+M-1,T=e+N,g=!1;j>LD&&(j=j-LD+TD-1,g=!0),(j===gD||i<gD&&j>gD||(j>gD||i<gD)&&g)&&j++,(j===uD||i<uD&&j>uD||(j>uD||i<uD)&&g)&&(j++,j===gD&&j++),j>LD&&(j=j-LD+TD-1),T>sD?(T=T-sD+TD-1,g=!0):g=!1,(T===gD||e<gD&&T>gD||(T>gD||e<gD)&&g)&&T++,(T===uD||e<uD&&T>uD||(T>uD||e<uD)&&g)&&(T++,T===gD&&T++),T>sD&&(T=T-sD+TD-1);var u=String.fromCharCode(j)+String.fromCharCode(T);return u}function CD(M){if(M&&0===M.length)throw"MGRSPoint coverting from nothing";var N,D=M.length,t=null,i="",e=0;while(!/[A-Z]/.test(N=M.charAt(e))){if(e>=2)throw"MGRSPoint bad conversion from: "+M;i+=N,e++}var j=parseInt(i,10);if(0===e||e+3>D)throw"MGRSPoint bad conversion from: "+M;var T=M.charAt(e++);if(T<="A"||"B"===T||"Y"===T||T>="Z"||"I"===T||"O"===T)throw"MGRSPoint zone letter "+T+" not handled: "+M;t=M.substring(e,e+=2);var g=OD(j),u=SD(t.charAt(0),g),s=lD(t.charAt(1),g);while(s<kD(T))s+=2e6;var L=D-e;if(L%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+M;var I,A,z,n,w,r=L/2,y=0,c=0;return r>0&&(I=1e5/Math.pow(10,r),A=M.substring(e,e+r),y=parseFloat(A)*I,z=M.substring(e+r),c=parseFloat(z)*I),n=y+u,w=c+s,{easting:n,northing:w,zoneLetter:T,zoneNumber:j,accuracy:I}}function SD(M,N){var D=eD.charCodeAt(N-1),t=1e5,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===gD&&D++,D===uD&&D++,D>LD){if(i)throw"Bad character: "+M;D=TD,i=!0}t+=1e5}return t}function lD(M,N){if(M>"V")throw"MGRSPoint given invalid Northing "+M;var D=jD.charCodeAt(N-1),t=0,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===gD&&D++,D===uD&&D++,D>sD){if(i)throw"Bad character: "+M;D=TD,i=!0}t+=1e5}return t}function kD(M){var N;switch(M){case"C":N=11e5;break;case"D":N=2e6;break;case"E":N=28e5;break;case"F":N=37e5;break;case"G":N=46e5;break;case"H":N=55e5;break;case"J":N=64e5;break;case"K":N=73e5;break;case"L":N=82e5;break;case"M":N=91e5;break;case"N":N=0;break;case"P":N=8e5;break;case"Q":N=17e5;break;case"R":N=26e5;break;case"S":N=35e5;break;case"T":N=44e5;break;case"U":N=53e5;break;case"V":N=62e5;break;case"W":N=7e6;break;case"X":N=79e5;break;default:N=-1}if(N>=0)return N;throw"Invalid zone letter: "+M}function QD(M,N,D){if(!(this instanceof QD))return new QD(M,N,D);if(Array.isArray(M))this.x=M[0],this.y=M[1],this.z=M[2]||0;else if("object"===typeof M)this.x=M.x,this.y=M.y,this.z=M.z||0;else if("string"===typeof M&&"undefined"===typeof N){var t=M.split(",");this.x=parseFloat(t[0],10),this.y=parseFloat(t[1],10),this.z=parseFloat(t[2],10)||0}else this.x=M,this.y=N,this.z=D||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}QD.fromMGRS=function(M){return new QD(nD(M))},QD.prototype.toMGRS=function(M){return AD([this.x,this.y],M)};var dD=QD,YD=1,UD=.25,pD=.046875,hD=.01953125,fD=.01068115234375,mD=.75,vD=.46875,BD=.013020833333333334,bD=.007120768229166667,PD=.3645833333333333,ZD=.005696614583333333,GD=.3076171875,RD=function(M){var N=[];N[0]=YD-M*(UD+M*(pD+M*(hD+M*fD))),N[1]=M*(mD-M*(pD+M*(hD+M*fD)));var D=M*M;return N[2]=D*(vD-M*(BD+M*bD)),D*=M,N[3]=D*(PD-M*ZD),N[4]=D*M*GD,N},WD=function(M,N,D,t){return D*=N,N*=N,t[0]*M-D*(t[1]+N*(t[2]+N*(t[3]+N*t[4])))},XD=20,HD=function(M,N,D){for(var t=1/(1-N),i=M,e=XD;e;--e){var j=Math.sin(i),T=1-N*j*j;if(T=(WD(i,j,Math.cos(i),D)-M)*(T*Math.sqrt(T))*t,i-=T,Math.abs(T)<iM)return i}return i};function _D(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=RD(this.es),this.ml0=WD(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function FD(M){var N,D,t,i=M.x,e=M.y,j=qM(i-this.long0),T=Math.sin(e),g=Math.cos(e);if(this.es){var u=g*j,s=Math.pow(u,2),L=this.ep2*Math.pow(g,2),I=Math.pow(L,2),A=Math.abs(g)>iM?Math.tan(e):0,z=Math.pow(A,2),n=Math.pow(z,2);N=1-this.es*Math.pow(T,2),u/=Math.sqrt(N);var w=WD(e,T,g,this.en);D=this.a*(this.k0*u*(1+s/6*(1-z+L+s/20*(5-18*z+n+14*L-58*z*L+s/42*(61+179*n-n*z-479*z)))))+this.x0,t=this.a*(this.k0*(w-this.ml0+T*j*u/2*(1+s/12*(5-z+9*L+4*I+s/30*(61+n-58*z+270*L-330*z*L+s/56*(1385+543*n-n*z-3111*z))))))+this.y0}else{var r=g*Math.sin(j);if(Math.abs(Math.abs(r)-1)<iM)return 93;if(D=.5*this.a*this.k0*Math.log((1+r)/(1-r))+this.x0,t=g*Math.cos(j)/Math.sqrt(1-Math.pow(r,2)),r=Math.abs(t),r>=1){if(r-1>iM)return 93;t=0}else t=Math.acos(t);e<0&&(t=-t),t=this.a*this.k0*(t-this.lat0)+this.y0}return M.x=D,M.y=t,M}function VD(M){var N,D,t,i,e=(M.x-this.x0)*(1/this.a),j=(M.y-this.y0)*(1/this.a);if(this.es)if(N=this.ml0+j/this.k0,D=HD(N,this.es,this.en),Math.abs(D)<MM){var T=Math.sin(D),g=Math.cos(D),u=Math.abs(g)>iM?Math.tan(D):0,s=this.ep2*Math.pow(g,2),L=Math.pow(s,2),I=Math.pow(u,2),A=Math.pow(I,2);N=1-this.es*Math.pow(T,2);var z=e*Math.sqrt(N)/this.k0,n=Math.pow(z,2);N*=u,t=D-N*n/(1-this.es)*.5*(1-n/12*(5+3*I-9*s*I+s-4*L-n/30*(61+90*I-252*s*I+45*A+46*s-n/56*(1385+3633*I+4095*A+1574*A*I)))),i=qM(this.long0+z*(1-n/6*(1+2*I+s-n/20*(5+28*I+24*A+8*s*I+6*s-n/42*(61+662*I+1320*A+720*A*I))))/g)}else t=MM*JM(j),i=0;else{var w=Math.exp(e/this.k0),r=.5*(w-1/w),y=this.lat0+j/this.k0,c=Math.cos(y);N=Math.sqrt((1-Math.pow(c,2))/(1+Math.pow(r,2))),t=Math.asin(N),j<0&&(t=-t),i=0===r&&0===c?0:qM(Math.atan2(r,c)+this.long0)}return M.x=i,M.y=t,M}var JD=["Fast_Transverse_Mercator","Fast Transverse Mercator"],qD={init:_D,forward:FD,inverse:VD,names:JD},KD=function(M){var N=Math.exp(M);return N=(N-1/N)/2,N},$D=function(M,N){M=Math.abs(M),N=Math.abs(N);var D=Math.max(M,N),t=Math.min(M,N)/(D||1);return D*Math.sqrt(1+Math.pow(t,2))},Mt=function(M){var N=1+M,D=N-1;return 0===D?M:M*Math.log(N)/D},Nt=function(M){var N=Math.abs(M);return N=Mt(N*(1+N/($D(1,N)+1))),M<0?-N:N},Dt=function(M,N){var D,t=2*Math.cos(2*N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return N+D*Math.sin(2*N)},tt=function(M,N){var D,t=2*Math.cos(N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return Math.sin(N)*D},it=function(M){var N=Math.exp(M);return N=(N+1/N)/2,N},et=function(M,N,D){var t,i,e=Math.sin(N),j=Math.cos(N),T=KD(D),g=it(D),u=2*j*g,s=-2*e*T,L=M.length-1,I=M[L],A=0,z=0,n=0;while(--L>=0)t=z,i=A,z=I,A=n,I=u*z-t-s*A+M[L],n=s*z-i+u*A;return u=e*g,s=j*T,[u*I-s*n,u*n+s*I]};function jt(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(qD.init.apply(this),this.forward=qD.forward,this.inverse=qD.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var M=this.es/(1+Math.sqrt(1-this.es)),N=M/(2-M),D=N;this.cgb[0]=N*(2+N*(-2/3+N*(N*(116/45+N*(26/45+N*(-2854/675)))-2))),this.cbg[0]=N*(N*(2/3+N*(4/3+N*(-82/45+N*(32/45+N*(4642/4725)))))-2),D*=N,this.cgb[1]=D*(7/3+N*(N*(-227/45+N*(2704/315+N*(2323/945)))-1.6)),this.cbg[1]=D*(5/3+N*(-16/15+N*(-13/9+N*(904/315+N*(-1522/945))))),D*=N,this.cgb[2]=D*(56/15+N*(-136/35+N*(-1262/105+N*(73814/2835)))),this.cbg[2]=D*(-26/15+N*(34/21+N*(1.6+N*(-12686/2835)))),D*=N,this.cgb[3]=D*(4279/630+N*(-332/35+N*(-399572/14175))),this.cbg[3]=D*(1237/630+N*(N*(-24832/14175)-2.4)),D*=N,this.cgb[4]=D*(4174/315+N*(-144838/6237)),this.cbg[4]=D*(-734/315+N*(109598/31185)),D*=N,this.cgb[5]=D*(601676/22275),this.cbg[5]=D*(444337/155925),D=Math.pow(N,2),this.Qn=this.k0/(1+N)*(1+D*(1/4+D*(1/64+D/256))),this.utg[0]=N*(N*(2/3+N*(-37/96+N*(1/360+N*(81/512+N*(-96199/604800)))))-.5),this.gtu[0]=N*(.5+N*(-2/3+N*(5/16+N*(41/180+N*(-127/288+N*(7891/37800)))))),this.utg[1]=D*(-1/48+N*(-1/15+N*(437/1440+N*(-46/105+N*(1118711/3870720))))),this.gtu[1]=D*(13/48+N*(N*(557/1440+N*(281/630+N*(-1983433/1935360)))-.6)),D*=N,this.utg[2]=D*(-17/480+N*(37/840+N*(209/4480+N*(-5569/90720)))),this.gtu[2]=D*(61/240+N*(-103/140+N*(15061/26880+N*(167603/181440)))),D*=N,this.utg[3]=D*(-4397/161280+N*(11/504+N*(830251/7257600))),this.gtu[3]=D*(49561/161280+N*(-179/168+N*(6601661/7257600))),D*=N,this.utg[4]=D*(-4583/161280+N*(108847/3991680)),this.gtu[4]=D*(34729/80640+N*(-3418889/1995840)),D*=N,this.utg[5]=D*(-20648693/638668800),this.gtu[5]=.6650675310896665*D;var t=Dt(this.cbg,this.lat0);this.Zb=-this.Qn*(t+tt(this.gtu,2*t))}function Tt(M){var N=qM(M.x-this.long0),D=M.y;D=Dt(this.cbg,D);var t=Math.sin(D),i=Math.cos(D),e=Math.sin(N),j=Math.cos(N);D=Math.atan2(t,j*i),N=Math.atan2(e*i,$D(t,i*j)),N=Nt(Math.tan(N));var T,g,u=et(this.gtu,2*D,2*N);return D+=u[0],N+=u[1],Math.abs(N)<=2.623395162778?(T=this.a*(this.Qn*N)+this.x0,g=this.a*(this.Qn*D+this.Zb)+this.y0):(T=1/0,g=1/0),M.x=T,M.y=g,M}function gt(M){var N,D,t=(M.x-this.x0)*(1/this.a),i=(M.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,t/=this.Qn,Math.abs(t)<=2.623395162778){var e=et(this.utg,2*i,2*t);i+=e[0],t+=e[1],t=Math.atan(KD(t));var j=Math.sin(i),T=Math.cos(i),g=Math.sin(t),u=Math.cos(t);i=Math.atan2(j*u,$D(g,u*T)),t=Math.atan2(g,u*T),N=qM(t+this.long0),D=Dt(this.cgb,i)}else N=1/0,D=1/0;return M.x=N,M.y=D,M}var ut=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],st={init:jt,forward:Tt,inverse:gt,names:ut},Lt=function(M,N){if(void 0===M){if(M=Math.floor(30*(qM(N)+Math.PI)/Math.PI)+1,M<0)return 0;if(M>60)return 60}return M},It="etmerc";function At(){var M=Lt(this.zone,this.long0);if(void 0===M)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(M)-183)*eM,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,st.init.apply(this),this.forward=st.forward,this.inverse=st.inverse}var zt=["Universal Transverse Mercator System","utm"],nt={init:At,names:zt,dependsOn:It},wt=function(M,N){return Math.pow((1-M)/(1+M),N)},rt=20;function yt(){var M=Math.sin(this.lat0),N=Math.cos(this.lat0);N*=N,this.rc=Math.sqrt(1-this.es)/(1-this.es*M*M),this.C=Math.sqrt(1+this.es*N*N/(1-this.es)),this.phic0=Math.asin(M/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+TM)/(Math.pow(Math.tan(.5*this.lat0+TM),this.C)*wt(this.e*M,this.ratexp))}function ct(M){var N=M.x,D=M.y;return M.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*D+TM),this.C)*wt(this.e*Math.sin(D),this.ratexp))-MM,M.x=this.C*N,M}function at(M){for(var N=1e-14,D=M.x/this.C,t=M.y,i=Math.pow(Math.tan(.5*t+TM)/this.K,1/this.C),e=rt;e>0;--e){if(t=2*Math.atan(i*wt(this.e*Math.sin(M.y),-.5*this.e))-MM,Math.abs(t-M.y)<N)break;M.y=t}return e?(M.x=D,M.y=t,M):null}var Et=["gauss"],ot={init:yt,forward:ct,inverse:at,names:Et};function Ot(){ot.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function xt(M){var N,D,t,i;return M.x=qM(M.x-this.long0),ot.forward.apply(this,[M]),N=Math.sin(M.y),D=Math.cos(M.y),t=Math.cos(M.x),i=this.k0*this.R2/(1+this.sinc0*N+this.cosc0*D*t),M.x=i*D*Math.sin(M.x),M.y=i*(this.cosc0*N-this.sinc0*D*t),M.x=this.a*M.x+this.x0,M.y=this.a*M.y+this.y0,M}function Ct(M){var N,D,t,i,e;if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,e=Math.sqrt(M.x*M.x+M.y*M.y)){var j=2*Math.atan2(e,this.R2);N=Math.sin(j),D=Math.cos(j),i=Math.asin(D*this.sinc0+M.y*N*this.cosc0/e),t=Math.atan2(M.x*N,e*this.cosc0*D-M.y*this.sinc0*N)}else i=this.phic0,t=0;return M.x=t,M.y=i,ot.inverse.apply(this,[M]),M.x=qM(M.x+this.long0),M}var St=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],lt={init:Ot,forward:xt,inverse:Ct,names:St};function kt(M,N,D){return N*=D,Math.tan(.5*(MM+M))*Math.pow((1-N)/(1+N),.5*D)}function Qt(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&(this.k0=.5*(1+JM(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=iM&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&(this.k0=.5*this.cons*VM(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/KM(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=VM(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-MM,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function dt(M){var N,D,t,i,e,j,T=M.x,g=M.y,u=Math.sin(g),s=Math.cos(g),L=qM(T-this.long0);return Math.abs(Math.abs(T-this.long0)-Math.PI)<=iM&&Math.abs(g+this.lat0)<=iM?(M.x=NaN,M.y=NaN,M):this.sphere?(N=2*this.k0/(1+this.sinlat0*u+this.coslat0*s*Math.cos(L)),M.x=this.a*N*s*Math.sin(L)+this.x0,M.y=this.a*N*(this.coslat0*u-this.sinlat0*s*Math.cos(L))+this.y0,M):(D=2*Math.atan(this.ssfn_(g,u,this.e))-MM,i=Math.cos(D),t=Math.sin(D),Math.abs(this.coslat0)<=iM?(e=KM(this.e,g*this.con,this.con*u),j=2*this.a*this.k0*e/this.cons,M.x=this.x0+j*Math.sin(T-this.long0),M.y=this.y0-this.con*j*Math.cos(T-this.long0),M):(Math.abs(this.sinlat0)<iM?(N=2*this.a*this.k0/(1+i*Math.cos(L)),M.y=N*t):(N=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*t+this.cosX0*i*Math.cos(L))),M.y=N*(this.cosX0*t-this.sinX0*i*Math.cos(L))+this.y0),M.x=N*i*Math.sin(L)+this.x0,M))}function Yt(M){var N,D,t,i,e;M.x-=this.x0,M.y-=this.y0;var j=Math.sqrt(M.x*M.x+M.y*M.y);if(this.sphere){var T=2*Math.atan(j/(2*this.a*this.k0));return N=this.long0,D=this.lat0,j<=iM?(M.x=N,M.y=D,M):(D=Math.asin(Math.cos(T)*this.sinlat0+M.y*Math.sin(T)*this.coslat0/j),N=Math.abs(this.coslat0)<iM?this.lat0>0?qM(this.long0+Math.atan2(M.x,-1*M.y)):qM(this.long0+Math.atan2(M.x,M.y)):qM(this.long0+Math.atan2(M.x*Math.sin(T),j*this.coslat0*Math.cos(T)-M.y*this.sinlat0*Math.sin(T))),M.x=N,M.y=D,M)}if(Math.abs(this.coslat0)<=iM){if(j<=iM)return D=this.lat0,N=this.long0,M.x=N,M.y=D,M;M.x*=this.con,M.y*=this.con,t=j*this.cons/(2*this.a*this.k0),D=this.con*$M(this.e,t),N=this.con*qM(this.con*this.long0+Math.atan2(M.x,-1*M.y))}else i=2*Math.atan(j*this.cosX0/(2*this.a*this.k0*this.ms1)),N=this.long0,j<=iM?e=this.X0:(e=Math.asin(Math.cos(i)*this.sinX0+M.y*Math.sin(i)*this.cosX0/j),N=qM(this.long0+Math.atan2(M.x*Math.sin(i),j*this.cosX0*Math.cos(i)-M.y*this.sinX0*Math.sin(i)))),D=-1*$M(this.e,Math.tan(.5*(MM+e)));return M.x=N,M.y=D,M}var Ut=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],pt={init:Qt,forward:dt,inverse:Yt,names:Ut,ssfn_:kt};function ht(){var M=this.lat0;this.lambda0=this.long0;var N=Math.sin(M),D=this.a,t=this.rf,i=1/t,e=2*i-Math.pow(i,2),j=this.e=Math.sqrt(e);this.R=this.k0*D*Math.sqrt(1-e)/(1-e*Math.pow(N,2)),this.alpha=Math.sqrt(1+e/(1-e)*Math.pow(Math.cos(M),4)),this.b0=Math.asin(N/this.alpha);var T=Math.log(Math.tan(Math.PI/4+this.b0/2)),g=Math.log(Math.tan(Math.PI/4+M/2)),u=Math.log((1+j*N)/(1-j*N));this.K=T-this.alpha*g+this.alpha*j/2*u}function ft(M){var N=Math.log(Math.tan(Math.PI/4-M.y/2)),D=this.e/2*Math.log((1+this.e*Math.sin(M.y))/(1-this.e*Math.sin(M.y))),t=-this.alpha*(N+D)+this.K,i=2*(Math.atan(Math.exp(t))-Math.PI/4),e=this.alpha*(M.x-this.lambda0),j=Math.atan(Math.sin(e)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(e))),T=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(e));return M.y=this.R/2*Math.log((1+Math.sin(T))/(1-Math.sin(T)))+this.y0,M.x=this.R*j+this.x0,M}function mt(M){var N=M.x-this.x0,D=M.y-this.y0,t=N/this.R,i=2*(Math.atan(Math.exp(D/this.R))-Math.PI/4),e=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(t)),j=Math.atan(Math.sin(t)/(Math.cos(this.b0)*Math.cos(t)-Math.sin(this.b0)*Math.tan(i))),T=this.lambda0+j/this.alpha,g=0,u=e,s=-1e3,L=0;while(Math.abs(u-s)>1e-7){if(++L>20)return;g=1/this.alpha*(Math.log(Math.tan(Math.PI/4+e/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),s=u,u=2*Math.atan(Math.exp(g))-Math.PI/2}return M.x=T,M.y=u,M}var vt=["somerc"],Bt={init:ht,forward:ft,inverse:mt,names:vt},bt=1e-7;function Pt(M){var N=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],D="object"===typeof M.PROJECTION?Object.keys(M.PROJECTION)[0]:M.PROJECTION;return"no_uoff"in M||"no_off"in M||-1!==N.indexOf(D)}function Zt(){var M,N,D,t,i,e,j,T,g,u,s,L=0,I=0,A=0,z=0,n=0,w=0,r=0;this.no_off=Pt(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var c=!1;if("rectified_grid_angle"in this&&(c=!0),y&&(r=this.alpha),c&&(L=this.rectified_grid_angle*eM),y||c)I=this.longc;else if(A=this.long1,n=this.lat1,z=this.long2,w=this.lat2,Math.abs(n-w)<=bt||(M=Math.abs(n))<=bt||Math.abs(M-MM)<=bt||Math.abs(Math.abs(this.lat0)-MM)<=bt||Math.abs(Math.abs(w)-MM)<=bt)throw new Error;var a=1-this.es;N=Math.sqrt(a),Math.abs(this.lat0)>iM?(T=Math.sin(this.lat0),D=Math.cos(this.lat0),M=1-this.es*T*T,this.B=D*D,this.B=Math.sqrt(1+this.es*this.B*this.B/a),this.A=this.B*this.k0*N/M,t=this.B*N/(D*Math.sqrt(M)),i=t*t-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=t,this.E*=Math.pow(KM(this.e,this.lat0,T),this.B)):(this.B=1/N,this.A=this.k0,this.E=t=i=1),y||c?(y?(s=Math.asin(Math.sin(r)/t),c||(L=r)):(s=L,r=Math.asin(t*Math.sin(s))),this.lam0=I-Math.asin(.5*(i-1/i)*Math.tan(s))/this.B):(e=Math.pow(KM(this.e,n,Math.sin(n)),this.B),j=Math.pow(KM(this.e,w,Math.sin(w)),this.B),i=this.E/e,g=(j-e)/(j+e),u=this.E*this.E,u=(u-j*e)/(u+j*e),M=A-z,M<-Math.pi?z-=gM:M>Math.pi&&(z+=gM),this.lam0=qM(.5*(A+z)-Math.atan(u*Math.tan(.5*this.B*(A-z))/g)/this.B),s=Math.atan(2*Math.sin(this.B*qM(A-this.lam0))/(i-1/i)),L=r=Math.asin(t*Math.sin(s))),this.singam=Math.sin(s),this.cosgam=Math.cos(s),this.sinrot=Math.sin(L),this.cosrot=Math.cos(L),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(t*t-1)/Math.cos(r))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*s,this.v_pole_n=this.ArB*Math.log(Math.tan(TM-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(TM+i))}function Gt(M){var N,D,t,i,e,j,T,g,u={};if(M.x=M.x-this.lam0,Math.abs(Math.abs(M.y)-MM)>iM){if(e=this.E/Math.pow(KM(this.e,M.y,Math.sin(M.y)),this.B),j=1/e,N=.5*(e-j),D=.5*(e+j),i=Math.sin(this.B*M.x),t=(N*this.singam-i*this.cosgam)/D,Math.abs(Math.abs(t)-1)<iM)throw new Error;g=.5*this.ArB*Math.log((1-t)/(1+t)),j=Math.cos(this.B*M.x),T=Math.abs(j)<bt?this.A*M.x:this.ArB*Math.atan2(N*this.cosgam+i*this.singam,j)}else g=M.y>0?this.v_pole_n:this.v_pole_s,T=this.ArB*M.y;return this.no_rot?(u.x=T,u.y=g):(T-=this.u_0,u.x=g*this.cosrot+T*this.sinrot,u.y=T*this.cosrot-g*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u}function Rt(M){var N,D,t,i,e,j,T,g={};if(M.x=(M.x-this.x0)*(1/this.a),M.y=(M.y-this.y0)*(1/this.a),this.no_rot?(D=M.y,N=M.x):(D=M.x*this.cosrot-M.y*this.sinrot,N=M.y*this.cosrot+M.x*this.sinrot+this.u_0),t=Math.exp(-this.BrA*D),i=.5*(t-1/t),e=.5*(t+1/t),j=Math.sin(this.BrA*N),T=(j*this.cosgam+i*this.singam)/e,Math.abs(Math.abs(T)-1)<iM)g.x=0,g.y=T<0?-MM:MM;else{if(g.y=this.E/Math.sqrt((1+T)/(1-T)),g.y=$M(this.e,Math.pow(g.y,1/this.B)),g.y===1/0)throw new Error;g.x=-this.rB*Math.atan2(i*this.cosgam-j*this.singam,Math.cos(this.BrA*N))}return g.x+=this.lam0,g}var Wt=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"],Xt={init:Zt,forward:Gt,inverse:Rt,names:Wt};function Ht(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<iM)){var M=this.b/this.a;this.e=Math.sqrt(1-M*M);var N=Math.sin(this.lat1),D=Math.cos(this.lat1),t=VM(this.e,N,D),i=KM(this.e,this.lat1,N),e=Math.sin(this.lat2),j=Math.cos(this.lat2),T=VM(this.e,e,j),g=KM(this.e,this.lat2,e),u=KM(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>iM?this.ns=Math.log(t/T)/Math.log(i/g):this.ns=N,isNaN(this.ns)&&(this.ns=N),this.f0=t/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function _t(M){var N=M.x,D=M.y;Math.abs(2*Math.abs(D)-Math.PI)<=iM&&(D=JM(D)*(MM-2*iM));var t,i,e=Math.abs(Math.abs(D)-MM);if(e>iM)t=KM(this.e,D,Math.sin(D)),i=this.a*this.f0*Math.pow(t,this.ns);else{if(e=D*this.ns,e<=0)return null;i=0}var j=this.ns*qM(N-this.long0);return M.x=this.k0*(i*Math.sin(j))+this.x0,M.y=this.k0*(this.rh-i*Math.cos(j))+this.y0,M}function Ft(M){var N,D,t,i,e,j=(M.x-this.x0)/this.k0,T=this.rh-(M.y-this.y0)/this.k0;this.ns>0?(N=Math.sqrt(j*j+T*T),D=1):(N=-Math.sqrt(j*j+T*T),D=-1);var g=0;if(0!==N&&(g=Math.atan2(D*j,D*T)),0!==N||this.ns>0){if(D=1/this.ns,t=Math.pow(N/(this.a*this.f0),D),i=$M(this.e,t),-9999===i)return null}else i=-MM;return e=qM(g/this.ns+this.long0),M.x=e,M.y=i,M}var Vt=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"],Jt={init:Ht,forward:_t,inverse:Ft,names:Vt};function qt(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function Kt(M){var N,D,t,i,e,j,T,g=M.x,u=M.y,s=qM(g-this.long0);return N=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),D=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/N)-this.s45),t=-s*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(D)+Math.sin(this.ad)*Math.cos(D)*Math.cos(t)),e=Math.asin(Math.cos(D)*Math.sin(t)/Math.cos(i)),j=this.n*e,T=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),M.y=T*Math.cos(j)/1,M.x=T*Math.sin(j)/1,this.czech||(M.y*=-1,M.x*=-1),M}function $t(M){var N,D,t,i,e,j,T,g,u=M.x;M.x=M.y,M.y=u,this.czech||(M.y*=-1,M.x*=-1),j=Math.sqrt(M.x*M.x+M.y*M.y),e=Math.atan2(M.y,M.x),i=e/Math.sin(this.s0),t=2*(Math.atan(Math.pow(this.ro0/j,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),N=Math.asin(Math.cos(this.ad)*Math.sin(t)-Math.sin(this.ad)*Math.cos(t)*Math.cos(i)),D=Math.asin(Math.cos(t)*Math.sin(i)/Math.cos(N)),M.x=this.long0-D/this.alfa,T=N,g=0;var s=0;do{M.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(N/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(T))/(1-this.e*Math.sin(T)),this.e/2))-this.s45),Math.abs(T-M.y)<1e-10&&(g=1),T=M.y,s+=1}while(0===g&&s<15);return s>=15?null:M}var Mi=["Krovak","krovak"],Ni={init:qt,forward:Kt,inverse:$t,names:Mi},Di=function(M,N,D,t,i){return M*i-N*Math.sin(2*i)+D*Math.sin(4*i)-t*Math.sin(6*i)},ti=function(M){return 1-.25*M*(1+M/16*(3+1.25*M))},ii=function(M){return.375*M*(1+.25*M*(1+.46875*M))},ei=function(M){return.05859375*M*M*(1+.75*M)},ji=function(M){return M*M*M*(35/3072)},Ti=function(M,N,D){var t=N*D;return M/Math.sqrt(1-t*t)},gi=function(M){return Math.abs(M)<MM?M:M-JM(M)*Math.PI},ui=function(M,N,D,t,i){var e,j;e=M/N;for(var T=0;T<15;T++)if(j=(M-(N*e-D*Math.sin(2*e)+t*Math.sin(4*e)-i*Math.sin(6*e)))/(N-2*D*Math.cos(2*e)+4*t*Math.cos(4*e)-6*i*Math.cos(6*e)),e+=j,Math.abs(j)<=1e-10)return e;return NaN};function si(){this.sphere||(this.e0=ti(this.es),this.e1=ii(this.es),this.e2=ei(this.es),this.e3=ji(this.es),this.ml0=this.a*Di(this.e0,this.e1,this.e2,this.e3,this.lat0))}function Li(M){var N,D,t=M.x,i=M.y;if(t=qM(t-this.long0),this.sphere)N=this.a*Math.asin(Math.cos(i)*Math.sin(t)),D=this.a*(Math.atan2(Math.tan(i),Math.cos(t))-this.lat0);else{var e=Math.sin(i),j=Math.cos(i),T=Ti(this.a,this.e,e),g=Math.tan(i)*Math.tan(i),u=t*Math.cos(i),s=u*u,L=this.es*j*j/(1-this.es),I=this.a*Di(this.e0,this.e1,this.e2,this.e3,i);N=T*u*(1-s*g*(1/6-(8-g+8*L)*s/120)),D=I-this.ml0+T*e/j*s*(.5+(5-g+6*L)*s/24)}return M.x=N+this.x0,M.y=D+this.y0,M}function Ii(M){M.x-=this.x0,M.y-=this.y0;var N,D,t=M.x/this.a,i=M.y/this.a;if(this.sphere){var e=i+this.lat0;N=Math.asin(Math.sin(e)*Math.cos(t)),D=Math.atan2(Math.tan(t),Math.cos(e))}else{var j=this.ml0/this.a+i,T=ui(j,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(T)-MM)<=iM)return M.x=this.long0,M.y=MM,i<0&&(M.y*=-1),M;var g=Ti(this.a,this.e,Math.sin(T)),u=g*g*g/this.a/this.a*(1-this.es),s=Math.pow(Math.tan(T),2),L=t*this.a/g,I=L*L;N=T-g*Math.tan(T)/u*L*L*(.5-(1+3*s)*L*L/24),D=L*(1-I*(s/3+(1+3*s)*s*I/15))/Math.cos(T)}return M.x=qM(D+this.long0),M.y=gi(N),M}var Ai=["Cassini","Cassini_Soldner","cass"],zi={init:si,forward:Li,inverse:Ii,names:Ai},ni=function(M,N){var D;return M>1e-7?(D=M*N,(1-M*M)*(N/(1-D*D)-.5/M*Math.log((1-D)/(1+D)))):2*N},wi=1,ri=2,yi=3,ci=4;function ai(){var M,N=Math.abs(this.lat0);if(Math.abs(N-MM)<iM?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(N)<iM?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=ni(this.e,1),this.mmf=.5/(1-this.es),this.apa=Qi(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),M=Math.sin(this.lat0),this.sinb1=ni(this.e,M)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*M*M)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Ei(M){var N,D,t,i,e,j,T,g,u,s,L=M.x,I=M.y;if(L=qM(L-this.long0),this.sphere){if(e=Math.sin(I),s=Math.cos(I),t=Math.cos(L),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(D=this.mode===this.EQUIT?1+s*t:1+this.sinph0*e+this.cosph0*s*t,D<=iM)return null;D=Math.sqrt(2/D),N=D*s*Math.sin(L),D*=this.mode===this.EQUIT?e:this.cosph0*e-this.sinph0*s*t}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(t=-t),Math.abs(I+this.lat0)<iM)return null;D=TM-.5*I,D=2*(this.mode===this.S_POLE?Math.cos(D):Math.sin(D)),N=D*Math.sin(L),D*=t}}else{switch(T=0,g=0,u=0,t=Math.cos(L),i=Math.sin(L),e=Math.sin(I),j=ni(this.e,e),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(T=j/this.qp,g=Math.sqrt(1-T*T)),this.mode){case this.OBLIQ:u=1+this.sinb1*T+this.cosb1*g*t;break;case this.EQUIT:u=1+g*t;break;case this.N_POLE:u=MM+I,j=this.qp-j;break;case this.S_POLE:u=I-MM,j=this.qp+j;break}if(Math.abs(u)<iM)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:u=Math.sqrt(2/u),D=this.mode===this.OBLIQ?this.ymf*u*(this.cosb1*T-this.sinb1*g*t):(u=Math.sqrt(2/(1+g*t)))*T*this.ymf,N=this.xmf*u*g*i;break;case this.N_POLE:case this.S_POLE:j>=0?(N=(u=Math.sqrt(j))*i,D=t*(this.mode===this.S_POLE?u:-u)):N=D=0;break}}return M.x=this.a*N+this.x0,M.y=this.a*D+this.y0,M}function oi(M){M.x-=this.x0,M.y-=this.y0;var N,D,t,i,e,j,T,g=M.x/this.a,u=M.y/this.a;if(this.sphere){var s,L=0,I=0;if(s=Math.sqrt(g*g+u*u),D=.5*s,D>1)return null;switch(D=2*Math.asin(D),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(I=Math.sin(D),L=Math.cos(D)),this.mode){case this.EQUIT:D=Math.abs(s)<=iM?0:Math.asin(u*I/s),g*=I,u=L*s;break;case this.OBLIQ:D=Math.abs(s)<=iM?this.lat0:Math.asin(L*this.sinph0+u*I*this.cosph0/s),g*=I*this.cosph0,u=(L-Math.sin(D)*this.sinph0)*s;break;case this.N_POLE:u=-u,D=MM-D;break;case this.S_POLE:D-=MM;break}N=0!==u||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(g,u):0}else{if(T=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(g/=this.dd,u*=this.dd,j=Math.sqrt(g*g+u*u),j<iM)return M.x=this.long0,M.y=this.lat0,M;i=2*Math.asin(.5*j/this.rq),t=Math.cos(i),g*=i=Math.sin(i),this.mode===this.OBLIQ?(T=t*this.sinb1+u*i*this.cosb1/j,e=this.qp*T,u=j*this.cosb1*t-u*this.sinb1*i):(T=u*i/j,e=this.qp*T,u=j*t)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(u=-u),e=g*g+u*u,!e)return M.x=this.long0,M.y=this.lat0,M;T=1-e/this.qp,this.mode===this.S_POLE&&(T=-T)}N=Math.atan2(g,u),D=di(Math.asin(T),this.apa)}return M.x=qM(this.long0+N),M.y=D,M}var Oi=.3333333333333333,xi=.17222222222222222,Ci=.10257936507936508,Si=.06388888888888888,li=.0664021164021164,ki=.016415012942191543;function Qi(M){var N,D=[];return D[0]=M*Oi,N=M*M,D[0]+=N*xi,D[1]=N*Si,N*=M,D[0]+=N*Ci,D[1]+=N*li,D[2]=N*ki,D}function di(M,N){var D=M+M;return M+N[0]*Math.sin(D)+N[1]*Math.sin(D+D)+N[2]*Math.sin(D+D+D)}var Yi=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Ui={init:ai,forward:Ei,inverse:oi,names:Yi,S_POLE:wi,N_POLE:ri,EQUIT:yi,OBLIQ:ci},pi=function(M){return Math.abs(M)>1&&(M=M>1?1:-1),Math.asin(M)};function hi(){Math.abs(this.lat1+this.lat2)<iM||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=VM(this.e3,this.sin_po,this.cos_po),this.qs1=ni(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=VM(this.e3,this.sin_po,this.cos_po),this.qs2=ni(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=ni(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>iM?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function fi(M){var N=M.x,D=M.y;this.sin_phi=Math.sin(D),this.cos_phi=Math.cos(D);var t=ni(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*t)/this.ns0,e=this.ns0*qM(N-this.long0),j=i*Math.sin(e)+this.x0,T=this.rh-i*Math.cos(e)+this.y0;return M.x=j,M.y=T,M}function mi(M){var N,D,t,i,e,j;return M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns0>=0?(N=Math.sqrt(M.x*M.x+M.y*M.y),t=1):(N=-Math.sqrt(M.x*M.x+M.y*M.y),t=-1),i=0,0!==N&&(i=Math.atan2(t*M.x,t*M.y)),t=N*this.ns0/this.a,this.sphere?j=Math.asin((this.c-t*t)/(2*this.ns0)):(D=(this.c-t*t)/this.ns0,j=this.phi1z(this.e3,D)),e=qM(i/this.ns0+this.long0),M.x=e,M.y=j,M}function vi(M,N){var D,t,i,e,j,T=pi(.5*N);if(M<iM)return T;for(var g=M*M,u=1;u<=25;u++)if(D=Math.sin(T),t=Math.cos(T),i=M*D,e=1-i*i,j=.5*e*e/t*(N/(1-g)-D/e+.5/M*Math.log((1-i)/(1+i))),T+=j,Math.abs(j)<=1e-7)return T;return null}var Bi=["Albers_Conic_Equal_Area","Albers","aea"],bi={init:hi,forward:fi,inverse:mi,names:Bi,phi1z:vi};function Pi(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Zi(M){var N,D,t,i,e,j,T,g,u=M.x,s=M.y;return t=qM(u-this.long0),N=Math.sin(s),D=Math.cos(s),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,j>0||Math.abs(j)<=iM?(T=this.x0+this.a*e*D*Math.sin(t)/j,g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)/j):(T=this.x0+this.infinity_dist*D*Math.sin(t),g=this.y0+this.infinity_dist*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function Gi(M){var N,D,t,i,e,j;return M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,(N=Math.sqrt(M.x*M.x+M.y*M.y))?(i=Math.atan2(N,this.rc),D=Math.sin(i),t=Math.cos(i),j=pi(t*this.sin_p14+M.y*D*this.cos_p14/N),e=Math.atan2(M.x*D,N*this.cos_p14*t-M.y*this.sin_p14*D),e=qM(this.long0+e)):(j=this.phic0,e=0),M.x=e,M.y=j,M}var Ri=["gnom"],Wi={init:Pi,forward:Zi,inverse:Gi,names:Ri},Xi=function(M,N){var D=1-(1-M*M)/(2*M)*Math.log((1-M)/(1+M));if(Math.abs(Math.abs(N)-D)<1e-6)return N<0?-1*MM:MM;for(var t,i,e,j,T=Math.asin(.5*N),g=0;g<30;g++)if(i=Math.sin(T),e=Math.cos(T),j=M*i,t=Math.pow(1-j*j,2)/(2*e)*(N/(1-M*M)-i/(1-j*j)+.5/M*Math.log((1-j)/(1+j))),T+=t,Math.abs(t)<=1e-10)return T;return NaN};function Hi(){this.sphere||(this.k0=VM(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function _i(M){var N,D,t=M.x,i=M.y,e=qM(t-this.long0);if(this.sphere)N=this.x0+this.a*e*Math.cos(this.lat_ts),D=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var j=ni(this.e,Math.sin(i));N=this.x0+this.a*this.k0*e,D=this.y0+this.a*j*.5/this.k0}return M.x=N,M.y=D,M}function Fi(M){var N,D;return M.x-=this.x0,M.y-=this.y0,this.sphere?(N=qM(this.long0+M.x/this.a/Math.cos(this.lat_ts)),D=Math.asin(M.y/this.a*Math.cos(this.lat_ts))):(D=Xi(this.e,2*M.y*this.k0/this.a),N=qM(this.long0+M.x/(this.a*this.k0))),M.x=N,M.y=D,M}var Vi=["cea"],Ji={init:Hi,forward:_i,inverse:Fi,names:Vi};function qi(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Ki(M){var N=M.x,D=M.y,t=qM(N-this.long0),i=gi(D-this.lat0);return M.x=this.x0+this.a*t*this.rc,M.y=this.y0+this.a*i,M}function $i(M){var N=M.x,D=M.y;return M.x=qM(this.long0+(N-this.x0)/(this.a*this.rc)),M.y=gi(this.lat0+(D-this.y0)/this.a),M}var Me=["Equirectangular","Equidistant_Cylindrical","eqc"],Ne={init:qi,forward:Ki,inverse:$i,names:Me},De=20;function te(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ti(this.es),this.e1=ii(this.es),this.e2=ei(this.es),this.e3=ji(this.es),this.ml0=this.a*Di(this.e0,this.e1,this.e2,this.e3,this.lat0)}function ie(M){var N,D,t,i=M.x,e=M.y,j=qM(i-this.long0);if(t=j*Math.sin(e),this.sphere)Math.abs(e)<=iM?(N=this.a*j,D=-1*this.a*this.lat0):(N=this.a*Math.sin(t)/Math.tan(e),D=this.a*(gi(e-this.lat0)+(1-Math.cos(t))/Math.tan(e)));else if(Math.abs(e)<=iM)N=this.a*j,D=-1*this.ml0;else{var T=Ti(this.a,this.e,Math.sin(e))/Math.tan(e);N=T*Math.sin(t),D=this.a*Di(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+T*(1-Math.cos(t))}return M.x=N+this.x0,M.y=D+this.y0,M}function ee(M){var N,D,t,i,e,j,T,g,u;if(t=M.x-this.x0,i=M.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=iM)N=qM(t/this.a+this.long0),D=0;else{var s;for(j=this.lat0+i/this.a,T=t*t/this.a/this.a+j*j,g=j,e=De;e;--e)if(s=Math.tan(g),u=-1*(j*(g*s+1)-g-.5*(g*g+T)*s)/((g-j)/s-1),g+=u,Math.abs(u)<=iM){D=g;break}N=qM(this.long0+Math.asin(t*Math.tan(g)/this.a)/Math.sin(D))}else if(Math.abs(i+this.ml0)<=iM)D=0,N=qM(this.long0+t/this.a);else{var L,I,A,z,n;for(j=(this.ml0+i)/this.a,T=t*t/this.a/this.a+j*j,g=j,e=De;e;--e)if(n=this.e*Math.sin(g),L=Math.sqrt(1-n*n)*Math.tan(g),I=this.a*Di(this.e0,this.e1,this.e2,this.e3,g),A=this.e0-2*this.e1*Math.cos(2*g)+4*this.e2*Math.cos(4*g)-6*this.e3*Math.cos(6*g),z=I/this.a,u=(j*(L*z+1)-z-.5*L*(z*z+T))/(this.es*Math.sin(2*g)*(z*z+T-2*j*z)/(4*L)+(j-z)*(L*A-2/Math.sin(2*g))-A),g-=u,Math.abs(u)<=iM){D=g;break}L=Math.sqrt(1-this.es*Math.pow(Math.sin(D),2))*Math.tan(D),N=qM(this.long0+Math.asin(t*L/this.a)/Math.sin(D))}return M.x=N,M.y=D,M}var je=["Polyconic","poly"],Te={init:te,forward:ie,inverse:ee,names:je};function ge(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function ue(M){var N,D=M.x,t=M.y,i=t-this.lat0,e=D-this.long0,j=i/$*1e-5,T=e,g=1,u=0;for(N=1;N<=10;N++)g*=j,u+=this.A[N]*g;var s,L,I=u,A=T,z=1,n=0,w=0,r=0;for(N=1;N<=6;N++)s=z*I-n*A,L=n*I+z*A,z=s,n=L,w=w+this.B_re[N]*z-this.B_im[N]*n,r=r+this.B_im[N]*z+this.B_re[N]*n;return M.x=r*this.a+this.x0,M.y=w*this.a+this.y0,M}function se(M){var N,D,t,i=M.x,e=M.y,j=i-this.x0,T=e-this.y0,g=T/this.a,u=j/this.a,s=1,L=0,I=0,A=0;for(N=1;N<=6;N++)D=s*g-L*u,t=L*g+s*u,s=D,L=t,I=I+this.C_re[N]*s-this.C_im[N]*L,A=A+this.C_im[N]*s+this.C_re[N]*L;for(var z=0;z<this.iterations;z++){var n,w,r=I,y=A,c=g,a=u;for(N=2;N<=6;N++)n=r*I-y*A,w=y*I+r*A,r=n,y=w,c+=(N-1)*(this.B_re[N]*r-this.B_im[N]*y),a+=(N-1)*(this.B_im[N]*r+this.B_re[N]*y);r=1,y=0;var E=this.B_re[1],o=this.B_im[1];for(N=2;N<=6;N++)n=r*I-y*A,w=y*I+r*A,r=n,y=w,E+=N*(this.B_re[N]*r-this.B_im[N]*y),o+=N*(this.B_im[N]*r+this.B_re[N]*y);var O=E*E+o*o;I=(c*E+a*o)/O,A=(a*E-c*o)/O}var x=I,C=A,S=1,l=0;for(N=1;N<=9;N++)S*=x,l+=this.D[N]*S;var k=this.lat0+l*$*1e5,Q=this.long0+C;return M.x=Q,M.y=k,M}var Le=["New_Zealand_Map_Grid","nzmg"],Ie={init:ge,forward:ue,inverse:se,names:Le};function Ae(){}function ze(M){var N=M.x,D=M.y,t=qM(N-this.long0),i=this.x0+this.a*t,e=this.y0+this.a*Math.log(Math.tan(Math.PI/4+D/2.5))*1.25;return M.x=i,M.y=e,M}function ne(M){M.x-=this.x0,M.y-=this.y0;var N=qM(this.long0+M.x/this.a),D=2.5*(Math.atan(Math.exp(.8*M.y/this.a))-Math.PI/4);return M.x=N,M.y=D,M}var we=["Miller_Cylindrical","mill"],re={init:Ae,forward:ze,inverse:ne,names:we},ye=20;function ce(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=RD(this.es)}function ae(M){var N,D,t=M.x,i=M.y;if(t=qM(t-this.long0),this.sphere){if(this.m)for(var e=this.n*Math.sin(i),j=ye;j;--j){var T=(this.m*i+Math.sin(i)-e)/(this.m+Math.cos(i));if(i-=T,Math.abs(T)<iM)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;N=this.a*this.C_x*t*(this.m+Math.cos(i)),D=this.a*this.C_y*i}else{var g=Math.sin(i),u=Math.cos(i);D=this.a*WD(i,g,u,this.en),N=this.a*t*u/Math.sqrt(1-this.es*g*g)}return M.x=N,M.y=D,M}function Ee(M){var N,D,t,i;return M.x-=this.x0,t=M.x/this.a,M.y-=this.y0,N=M.y/this.a,this.sphere?(N/=this.C_y,t/=this.C_x*(this.m+Math.cos(N)),this.m?N=pi((this.m*N+Math.sin(N))/this.n):1!==this.n&&(N=pi(Math.sin(N)/this.n)),t=qM(t+this.long0),N=gi(N)):(N=HD(M.y/this.a,this.es,this.en),i=Math.abs(N),i<MM?(i=Math.sin(N),D=this.long0+M.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(N)),t=qM(D)):i-iM<MM&&(t=this.long0)),M.x=t,M.y=N,M}var oe=["Sinusoidal","sinu"],Oe={init:ce,forward:ae,inverse:Ee,names:oe};function xe(){}function Ce(M){var N=M.x,D=M.y,t=qM(N-this.long0),i=D,e=Math.PI*Math.sin(D);while(1){var j=-(i+Math.sin(i)-e)/(1+Math.cos(i));if(i+=j,Math.abs(j)<iM)break}i/=2,Math.PI/2-Math.abs(D)<iM&&(t=0);var T=.900316316158*this.a*t*Math.cos(i)+this.x0,g=1.4142135623731*this.a*Math.sin(i)+this.y0;return M.x=T,M.y=g,M}function Se(M){var N,D;M.x-=this.x0,M.y-=this.y0,D=M.y/(1.4142135623731*this.a),Math.abs(D)>.999999999999&&(D=.999999999999),N=Math.asin(D);var t=qM(this.long0+M.x/(.900316316158*this.a*Math.cos(N)));t<-Math.PI&&(t=-Math.PI),t>Math.PI&&(t=Math.PI),D=(2*N+Math.sin(2*N))/Math.PI,Math.abs(D)>1&&(D=1);var i=Math.asin(D);return M.x=t,M.y=i,M}var le=["Mollweide","moll"],ke={init:xe,forward:Ce,inverse:Se,names:le};function Qe(){Math.abs(this.lat1+this.lat2)<iM||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ti(this.es),this.e1=ii(this.es),this.e2=ei(this.es),this.e3=ji(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=VM(this.e,this.sinphi,this.cosphi),this.ml1=Di(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<iM?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=VM(this.e,this.sinphi,this.cosphi),this.ml2=Di(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Di(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function de(M){var N,D=M.x,t=M.y;if(this.sphere)N=this.a*(this.g-t);else{var i=Di(this.e0,this.e1,this.e2,this.e3,t);N=this.a*(this.g-i)}var e=this.ns*qM(D-this.long0),j=this.x0+N*Math.sin(e),T=this.y0+this.rh-N*Math.cos(e);return M.x=j,M.y=T,M}function Ye(M){var N,D,t,i;M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns>=0?(D=Math.sqrt(M.x*M.x+M.y*M.y),N=1):(D=-Math.sqrt(M.x*M.x+M.y*M.y),N=-1);var e=0;if(0!==D&&(e=Math.atan2(N*M.x,N*M.y)),this.sphere)return i=qM(this.long0+e/this.ns),t=gi(this.g-D/this.a),M.x=i,M.y=t,M;var j=this.g-D/this.a;return t=ui(j,this.e0,this.e1,this.e2,this.e3),i=qM(this.long0+e/this.ns),M.x=i,M.y=t,M}var Ue=["Equidistant_Conic","eqdc"],pe={init:Qe,forward:de,inverse:Ye,names:Ue};function he(){this.R=this.a}function fe(M){var N,D,t=M.x,i=M.y,e=qM(t-this.long0);Math.abs(i)<=iM&&(N=this.x0+this.R*e,D=this.y0);var j=pi(2*Math.abs(i/Math.PI));(Math.abs(e)<=iM||Math.abs(Math.abs(i)-MM)<=iM)&&(N=this.x0,D=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*j):this.y0+Math.PI*this.R*-Math.tan(.5*j));var T=.5*Math.abs(Math.PI/e-e/Math.PI),g=T*T,u=Math.sin(j),s=Math.cos(j),L=s/(u+s-1),I=L*L,A=L*(2/u-1),z=A*A,n=Math.PI*this.R*(T*(L-z)+Math.sqrt(g*(L-z)*(L-z)-(z+g)*(I-z)))/(z+g);e<0&&(n=-n),N=this.x0+n;var w=g+L;return n=Math.PI*this.R*(A*w-T*Math.sqrt((z+g)*(g+1)-w*w))/(z+g),D=i>=0?this.y0+n:this.y0-n,M.x=N,M.y=D,M}function me(M){var N,D,t,i,e,j,T,g,u,s,L,I,A;return M.x-=this.x0,M.y-=this.y0,L=Math.PI*this.R,t=M.x/L,i=M.y/L,e=t*t+i*i,j=-Math.abs(i)*(1+e),T=j-2*i*i+t*t,g=-2*j+1+2*i*i+e*e,A=i*i/g+(2*T*T*T/g/g/g-9*j*T/g/g)/27,u=(j-T*T/3/g)/g,s=2*Math.sqrt(-u/3),L=3*A/u/s,Math.abs(L)>1&&(L=L>=0?1:-1),I=Math.acos(L)/3,D=M.y>=0?(-s*Math.cos(I+Math.PI/3)-T/3/g)*Math.PI:-(-s*Math.cos(I+Math.PI/3)-T/3/g)*Math.PI,N=Math.abs(t)<iM?this.long0:qM(this.long0+Math.PI*(e-1+Math.sqrt(1+2*(t*t-i*i)+e*e))/2/t),M.x=N,M.y=D,M}var ve=["Van_der_Grinten_I","VanDerGrinten","vandg"],Be={init:he,forward:fe,inverse:me,names:ve};function be(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function Pe(M){var N,D,t,i,e,j,T,g,u,s,L,I,A,z,n,w,r,y,c,a,E,o,O,x=M.x,C=M.y,S=Math.sin(M.y),l=Math.cos(M.y),k=qM(x-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=iM?(M.x=this.x0+this.a*(MM-C)*Math.sin(k),M.y=this.y0-this.a*(MM-C)*Math.cos(k),M):Math.abs(this.sin_p12+1)<=iM?(M.x=this.x0+this.a*(MM+C)*Math.sin(k),M.y=this.y0+this.a*(MM+C)*Math.cos(k),M):(y=this.sin_p12*S+this.cos_p12*l*Math.cos(k),w=Math.acos(y),r=w?w/Math.sin(w):1,M.x=this.x0+this.a*r*l*Math.sin(k),M.y=this.y0+this.a*r*(this.cos_p12*S-this.sin_p12*l*Math.cos(k)),M):(N=ti(this.es),D=ii(this.es),t=ei(this.es),i=ji(this.es),Math.abs(this.sin_p12-1)<=iM?(e=this.a*Di(N,D,t,i,MM),j=this.a*Di(N,D,t,i,C),M.x=this.x0+(e-j)*Math.sin(k),M.y=this.y0-(e-j)*Math.cos(k),M):Math.abs(this.sin_p12+1)<=iM?(e=this.a*Di(N,D,t,i,MM),j=this.a*Di(N,D,t,i,C),M.x=this.x0+(e+j)*Math.sin(k),M.y=this.y0+(e+j)*Math.cos(k),M):(T=S/l,g=Ti(this.a,this.e,this.sin_p12),u=Ti(this.a,this.e,S),s=Math.atan((1-this.es)*T+this.es*g*this.sin_p12/(u*l)),L=Math.atan2(Math.sin(k),this.cos_p12*Math.tan(s)-this.sin_p12*Math.cos(k)),c=0===L?Math.asin(this.cos_p12*Math.sin(s)-this.sin_p12*Math.cos(s)):Math.abs(Math.abs(L)-Math.PI)<=iM?-Math.asin(this.cos_p12*Math.sin(s)-this.sin_p12*Math.cos(s)):Math.asin(Math.sin(k)*Math.cos(s)/Math.sin(L)),I=this.e*this.sin_p12/Math.sqrt(1-this.es),A=this.e*this.cos_p12*Math.cos(L)/Math.sqrt(1-this.es),z=I*A,n=A*A,a=c*c,E=a*c,o=E*c,O=o*c,w=g*c*(1-a*n*(1-n)/6+E/8*z*(1-2*n)+o/120*(n*(4-7*n)-3*I*I*(1-7*n))-O/48*z),M.x=this.x0+w*Math.sin(L),M.y=this.y0+w*Math.cos(L),M))}function Ze(M){var N,D,t,i,e,j,T,g,u,s,L,I,A,z,n,w,r,y,c,a,E,o,O,x;if(M.x-=this.x0,M.y-=this.y0,this.sphere){if(N=Math.sqrt(M.x*M.x+M.y*M.y),N>2*MM*this.a)return;return D=N/this.a,t=Math.sin(D),i=Math.cos(D),e=this.long0,Math.abs(N)<=iM?j=this.lat0:(j=pi(i*this.sin_p12+M.y*t*this.cos_p12/N),T=Math.abs(this.lat0)-MM,e=Math.abs(T)<=iM?this.lat0>=0?qM(this.long0+Math.atan2(M.x,-M.y)):qM(this.long0-Math.atan2(-M.x,M.y)):qM(this.long0+Math.atan2(M.x*t,N*this.cos_p12*i-M.y*this.sin_p12*t))),M.x=e,M.y=j,M}return g=ti(this.es),u=ii(this.es),s=ei(this.es),L=ji(this.es),Math.abs(this.sin_p12-1)<=iM?(I=this.a*Di(g,u,s,L,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),A=I-N,j=ui(A/this.a,g,u,s,L),e=qM(this.long0+Math.atan2(M.x,-1*M.y)),M.x=e,M.y=j,M):Math.abs(this.sin_p12+1)<=iM?(I=this.a*Di(g,u,s,L,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),A=N-I,j=ui(A/this.a,g,u,s,L),e=qM(this.long0+Math.atan2(M.x,M.y)),M.x=e,M.y=j,M):(N=Math.sqrt(M.x*M.x+M.y*M.y),w=Math.atan2(M.x,M.y),z=Ti(this.a,this.e,this.sin_p12),r=Math.cos(w),y=this.e*this.cos_p12*r,c=-y*y/(1-this.es),a=3*this.es*(1-c)*this.sin_p12*this.cos_p12*r/(1-this.es),E=N/z,o=E-c*(1+c)*Math.pow(E,3)/6-a*(1+3*c)*Math.pow(E,4)/24,O=1-c*o*o/2-E*o*o*o/6,n=Math.asin(this.sin_p12*Math.cos(o)+this.cos_p12*Math.sin(o)*r),e=qM(this.long0+Math.asin(Math.sin(w)*Math.sin(o)/Math.cos(n))),x=Math.sin(n),j=Math.atan2((x-this.es*O*this.sin_p12)*Math.tan(n),x*(1-this.es)),M.x=e,M.y=j,M)}var Ge=["Azimuthal_Equidistant","aeqd"],Re={init:be,forward:Pe,inverse:Ze,names:Ge};function We(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Xe(M){var N,D,t,i,e,j,T,g,u=M.x,s=M.y;return t=qM(u-this.long0),N=Math.sin(s),D=Math.cos(s),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,(j>0||Math.abs(j)<=iM)&&(T=this.a*e*D*Math.sin(t),g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function He(M){var N,D,t,i,e,j,T;return M.x-=this.x0,M.y-=this.y0,N=Math.sqrt(M.x*M.x+M.y*M.y),D=pi(N/this.a),t=Math.sin(D),i=Math.cos(D),j=this.long0,Math.abs(N)<=iM?(T=this.lat0,M.x=j,M.y=T,M):(T=pi(i*this.sin_p14+M.y*t*this.cos_p14/N),e=Math.abs(this.lat0)-MM,Math.abs(e)<=iM?(j=this.lat0>=0?qM(this.long0+Math.atan2(M.x,-M.y)):qM(this.long0-Math.atan2(-M.x,M.y)),M.x=j,M.y=T,M):(j=qM(this.long0+Math.atan2(M.x*t,N*this.cos_p14*i-M.y*this.sin_p14*t)),M.x=j,M.y=T,M))}var _e=["ortho"],Fe={init:We,forward:Xe,inverse:He,names:_e},Ve={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Je={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function qe(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=MM-TM/2?this.face=Ve.TOP:this.lat0<=-(MM-TM/2)?this.face=Ve.BOTTOM:Math.abs(this.long0)<=TM?this.face=Ve.FRONT:Math.abs(this.long0)<=MM+TM?this.face=this.long0>0?Ve.RIGHT:Ve.LEFT:this.face=Ve.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Ke(M){var N,D,t,i,e,j,T={x:0,y:0},g={value:0};if(M.x-=this.long0,N=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(M.y)):M.y,D=M.x,this.face===Ve.TOP)i=MM-N,D>=TM&&D<=MM+TM?(g.value=Je.AREA_0,t=D-MM):D>MM+TM||D<=-(MM+TM)?(g.value=Je.AREA_1,t=D>0?D-uM:D+uM):D>-(MM+TM)&&D<=-TM?(g.value=Je.AREA_2,t=D+MM):(g.value=Je.AREA_3,t=D);else if(this.face===Ve.BOTTOM)i=MM+N,D>=TM&&D<=MM+TM?(g.value=Je.AREA_0,t=-D+MM):D<TM&&D>=-TM?(g.value=Je.AREA_1,t=-D):D<-TM&&D>=-(MM+TM)?(g.value=Je.AREA_2,t=-D-MM):(g.value=Je.AREA_3,t=D>0?-D+uM:-D-uM);else{var u,s,L,I,A,z,n;this.face===Ve.RIGHT?D=Nj(D,+MM):this.face===Ve.BACK?D=Nj(D,+uM):this.face===Ve.LEFT&&(D=Nj(D,-MM)),I=Math.sin(N),A=Math.cos(N),z=Math.sin(D),n=Math.cos(D),u=A*n,s=A*z,L=I,this.face===Ve.FRONT?(i=Math.acos(u),t=Mj(i,L,s,g)):this.face===Ve.RIGHT?(i=Math.acos(s),t=Mj(i,L,-u,g)):this.face===Ve.BACK?(i=Math.acos(-u),t=Mj(i,L,-s,g)):this.face===Ve.LEFT?(i=Math.acos(-s),t=Mj(i,L,u,g)):(i=t=0,g.value=Je.AREA_0)}return j=Math.atan(12/uM*(t+Math.acos(Math.sin(t)*Math.cos(TM))-MM)),e=Math.sqrt((1-Math.cos(i))/(Math.cos(j)*Math.cos(j))/(1-Math.cos(Math.atan(1/Math.cos(t))))),g.value===Je.AREA_1?j+=MM:g.value===Je.AREA_2?j+=uM:g.value===Je.AREA_3&&(j+=1.5*uM),T.x=e*Math.cos(j),T.y=e*Math.sin(j),T.x=T.x*this.a+this.x0,T.y=T.y*this.a+this.y0,M.x=T.x,M.y=T.y,M}function $e(M){var N,D,t,i,e,j,T,g,u,s,L,I,A={lam:0,phi:0},z={value:0};if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,D=Math.atan(Math.sqrt(M.x*M.x+M.y*M.y)),N=Math.atan2(M.y,M.x),M.x>=0&&M.x>=Math.abs(M.y)?z.value=Je.AREA_0:M.y>=0&&M.y>=Math.abs(M.x)?(z.value=Je.AREA_1,N-=MM):M.x<0&&-M.x>=Math.abs(M.y)?(z.value=Je.AREA_2,N=N<0?N+uM:N-uM):(z.value=Je.AREA_3,N+=MM),u=uM/12*Math.tan(N),e=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),j=Math.atan(e),t=Math.cos(N),i=Math.tan(D),T=1-t*t*i*i*(1-Math.cos(Math.atan(1/Math.cos(j)))),T<-1?T=-1:T>1&&(T=1),this.face===Ve.TOP)g=Math.acos(T),A.phi=MM-g,z.value===Je.AREA_0?A.lam=j+MM:z.value===Je.AREA_1?A.lam=j<0?j+uM:j-uM:z.value===Je.AREA_2?A.lam=j-MM:A.lam=j;else if(this.face===Ve.BOTTOM)g=Math.acos(T),A.phi=g-MM,z.value===Je.AREA_0?A.lam=-j+MM:z.value===Je.AREA_1?A.lam=-j:z.value===Je.AREA_2?A.lam=-j-MM:A.lam=j<0?-j-uM:-j+uM;else{var n,w,r;n=T,u=n*n,r=u>=1?0:Math.sqrt(1-u)*Math.sin(j),u+=r*r,w=u>=1?0:Math.sqrt(1-u),z.value===Je.AREA_1?(u=w,w=-r,r=u):z.value===Je.AREA_2?(w=-w,r=-r):z.value===Je.AREA_3&&(u=w,w=r,r=-u),this.face===Ve.RIGHT?(u=n,n=-w,w=u):this.face===Ve.BACK?(n=-n,w=-w):this.face===Ve.LEFT&&(u=n,n=w,w=-u),A.phi=Math.acos(-r)-MM,A.lam=Math.atan2(w,n),this.face===Ve.RIGHT?A.lam=Nj(A.lam,-MM):this.face===Ve.BACK?A.lam=Nj(A.lam,-uM):this.face===Ve.LEFT&&(A.lam=Nj(A.lam,+MM))}0!==this.es&&(s=A.phi<0?1:0,L=Math.tan(A.phi),I=this.b/Math.sqrt(L*L+this.one_minus_f_squared),A.phi=Math.atan(Math.sqrt(this.a*this.a-I*I)/(this.one_minus_f*I)),s&&(A.phi=-A.phi));return A.lam+=this.long0,M.x=A.lam,M.y=A.phi,M}function Mj(M,N,D,t){var i;return M<iM?(t.value=Je.AREA_0,i=0):(i=Math.atan2(N,D),Math.abs(i)<=TM?t.value=Je.AREA_0:i>TM&&i<=MM+TM?(t.value=Je.AREA_1,i-=MM):i>MM+TM||i<=-(MM+TM)?(t.value=Je.AREA_2,i=i>=0?i-uM:i+uM):(t.value=Je.AREA_3,i+=MM)),i}function Nj(M,N){var D=M+N;return D<-uM?D+=gM:D>+uM&&(D-=gM),D}var Dj=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],tj={init:qe,forward:Ke,inverse:$e,names:Dj},ij=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],ej=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],jj=.8487,Tj=1.3523,gj=jM/5,uj=1/gj,sj=18,Lj=function(M,N){return M[0]+N*(M[1]+N*(M[2]+N*M[3]))},Ij=function(M,N){return M[1]+N*(2*M[2]+3*N*M[3])};function Aj(M,N,D,t){for(var i=N;t;--t){var e=M(i);if(i-=e,Math.abs(e)<D)break}return i}function zj(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function nj(M){var N=qM(M.x-this.long0),D=Math.abs(M.y),t=Math.floor(D*gj);t<0?t=0:t>=sj&&(t=sj-1),D=jM*(D-uj*t);var i={x:Lj(ij[t],D)*N,y:Lj(ej[t],D)};return M.y<0&&(i.y=-i.y),i.x=i.x*this.a*jj+this.x0,i.y=i.y*this.a*Tj+this.y0,i}function wj(M){var N={x:(M.x-this.x0)/(this.a*jj),y:Math.abs(M.y-this.y0)/(this.a*Tj)};if(N.y>=1)N.x/=ij[sj][0],N.y=M.y<0?-MM:MM;else{var D=Math.floor(N.y*sj);for(D<0?D=0:D>=sj&&(D=sj-1);;)if(ej[D][0]>N.y)--D;else{if(!(ej[D+1][0]<=N.y))break;++D}var t=ej[D],i=5*(N.y-t[0])/(ej[D+1][0]-t[0]);i=Aj((function(M){return(Lj(t,M)-N.y)/Ij(t,M)}),i,iM,100),N.x/=Lj(ij[D],i),N.y=(5*D+i)*eM,M.y<0&&(N.y=-N.y)}return N.x=qM(N.x+this.long0),N}var rj=["Robinson","robin"],yj={init:zj,forward:nj,inverse:wj,names:rj};function cj(){this.name="geocent"}function aj(M){var N=BN(M,this.es,this.a);return N}function Ej(M){var N=bN(M,this.es,this.a,this.b);return N}var oj=["Geocentric","geocentric","geocent","Geocent"],Oj={init:cj,forward:aj,inverse:Ej,names:oj},xj={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Cj={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Sj(){if(Object.keys(Cj).forEach(function(M){if("undefined"===typeof this[M])this[M]=Cj[M].def;else{if(Cj[M].num&&isNaN(this[M]))throw new Error("Invalid parameter value, must be numeric "+M+" = "+this[M]);Cj[M].num&&(this[M]=parseFloat(this[M]))}Cj[M].degrees&&(this[M]=this[M]*eM)}.bind(this)),Math.abs(Math.abs(this.lat0)-MM)<iM?this.mode=this.lat0<0?xj.S_POLE:xj.N_POLE:Math.abs(this.lat0)<iM?this.mode=xj.EQUIT:(this.mode=xj.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var M=this.tilt,N=this.azi;this.cg=Math.cos(N),this.sg=Math.sin(N),this.cw=Math.cos(M),this.sw=Math.sin(M)}function lj(M){M.x-=this.long0;var N,D,t,i,e=Math.sin(M.y),j=Math.cos(M.y),T=Math.cos(M.x);switch(this.mode){case xj.OBLIQ:D=this.sinph0*e+this.cosph0*j*T;break;case xj.EQUIT:D=j*T;break;case xj.S_POLE:D=-e;break;case xj.N_POLE:D=e;break}switch(D=this.pn1/(this.p-D),N=D*j*Math.sin(M.x),this.mode){case xj.OBLIQ:D*=this.cosph0*e-this.sinph0*j*T;break;case xj.EQUIT:D*=e;break;case xj.N_POLE:D*=-j*T;break;case xj.S_POLE:D*=j*T;break}return t=D*this.cg+N*this.sg,i=1/(t*this.sw*this.h1+this.cw),N=(N*this.cg-D*this.sg)*this.cw*i,D=t*i,M.x=N*this.a,M.y=D*this.a,M}function kj(M){M.x/=this.a,M.y/=this.a;var N,D,t,i={x:M.x,y:M.y};t=1/(this.pn1-M.y*this.sw),N=this.pn1*M.x*t,D=this.pn1*M.y*this.cw*t,M.x=N*this.cg+D*this.sg,M.y=D*this.cg-N*this.sg;var e=$D(M.x,M.y);if(Math.abs(e)<iM)i.x=0,i.y=M.y;else{var j,T;switch(T=1-e*e*this.pfact,T=(this.p-Math.sqrt(T))/(this.pn1/e+e/this.pn1),j=Math.sqrt(1-T*T),this.mode){case xj.OBLIQ:i.y=Math.asin(j*this.sinph0+M.y*T*this.cosph0/e),M.y=(j-this.sinph0*Math.sin(i.y))*e,M.x*=T*this.cosph0;break;case xj.EQUIT:i.y=Math.asin(M.y*T/e),M.y=j*e,M.x*=T;break;case xj.N_POLE:i.y=Math.asin(j),M.y=-M.y;break;case xj.S_POLE:i.y=-Math.asin(j);break}i.x=Math.atan2(M.x,M.y)}return M.x=i.x+this.long0,M.y=i.y,M}var Qj=["Tilted_Perspective","tpers"],dj={init:Sj,forward:lj,inverse:kj,names:Qj};function Yj(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var M=1-this.es,N=1/M;this.radius_p=Math.sqrt(M),this.radius_p2=M,this.radius_p_inv2=N,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function Uj(M){var N,D,t,i,e=M.x,j=M.y;if(e-=this.long0,"ellipse"===this.shape){j=Math.atan(this.radius_p2*Math.tan(j));var T=this.radius_p/$D(this.radius_p*Math.cos(j),Math.sin(j));if(D=T*Math.cos(e)*Math.cos(j),t=T*Math.sin(e)*Math.cos(j),i=T*Math.sin(j),(this.radius_g-D)*D-t*t-i*i*this.radius_p_inv2<0)return M.x=Number.NaN,M.y=Number.NaN,M;N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/$D(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/$D(t,N)))}else"sphere"===this.shape&&(N=Math.cos(j),D=Math.cos(e)*N,t=Math.sin(e)*N,i=Math.sin(j),N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/$D(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/$D(t,N))));return M.x=M.x*this.a,M.y=M.y*this.a,M}function pj(M){var N,D,t,i,e=-1,j=0,T=0;if(M.x=M.x/this.a,M.y=M.y/this.a,"ellipse"===this.shape){this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*$D(1,T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*$D(1,j));var g=T/this.radius_p;if(N=j*j+g*g+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e),M.y=Math.atan(this.radius_p_inv2*Math.tan(M.y))}else if("sphere"===this.shape){if(this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*Math.sqrt(1+T*T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*Math.sqrt(1+j*j)),N=j*j+T*T+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e)}return M.x=M.x+this.long0,M}var hj=["Geostationary Satellite View","Geostationary_Satellite","geos"],fj={init:Yj,forward:Uj,inverse:pj,names:hj},mj=function(M){M.Proj.projections.add(qD),M.Proj.projections.add(st),M.Proj.projections.add(nt),M.Proj.projections.add(lt),M.Proj.projections.add(pt),M.Proj.projections.add(Bt),M.Proj.projections.add(Xt),M.Proj.projections.add(Jt),M.Proj.projections.add(Ni),M.Proj.projections.add(zi),M.Proj.projections.add(Ui),M.Proj.projections.add(bi),M.Proj.projections.add(Wi),M.Proj.projections.add(Ji),M.Proj.projections.add(Ne),M.Proj.projections.add(Te),M.Proj.projections.add(Ie),M.Proj.projections.add(re),M.Proj.projections.add(Oe),M.Proj.projections.add(ke),M.Proj.projections.add(pe),M.Proj.projections.add(Be),M.Proj.projections.add(Re),M.Proj.projections.add(Fe),M.Proj.projections.add(tj),M.Proj.projections.add(yj),M.Proj.projections.add(Oj),M.Proj.projections.add(dj),M.Proj.projections.add(fj)};tD.defaultDatum="WGS84",tD.Proj=mN,tD.WGS84=new tD.Proj("WGS84"),tD.Point=dD,tD.toPoint=FN,tD.defs=vM,tD.nadgrid=xN,tD.transform=KN,tD.mgrs=ID,tD.version="__VERSION__",mj(tD);var vj=tD,Bj={name:"app-contextMenu",components:{},props:{coordinates:{type:Array,required:!0},origin:{type:Object},destination:{type:Object},building:{type:Number,required:!0},floor:{type:Number,required:!0},floorName:{type:String,required:!0},loadRoute:{type:Function},setLocation:{type:Function},addContextMenuMarkerSelected:{type:Function},hasGraph:{type:Boolean}},data:function(){return{debugMode:!1,has_graph:this.hasGraph}},computed:{coordinates4326:function(){var M=Number(this.coordinates[1].toFixed(5)),N=Number(this.coordinates[0].toFixed(5));return[M,N]},coordinates3857:function(){var M=vj("EPSG:4326","EPSG:3857",[this.coordinates[0],this.coordinates[1]]);return[Number(M[0].toFixed(0)),Number(M[1].toFixed(0))]}},methods:{click:function(M){var N,D={geometry:{coordinates:this.coordinates,type:"Point"},properties:{level:this.floor,levelName:this.floorName,building:this.building,icon:"marcadores/pp_00-mk.svg"},type:"Feature",mode:"point"};this.setLocation([D]),this.loadRoute((N={i18n:this.$i18n},Object(I["a"])(N,M,D),Object(I["a"])(N,"contextual",!0),Object(I["a"])(N,"routeMode",!0),N)),this.addContextMenuMarkerSelected(D),this.close()},close:function(){this.$emit("close")},copyText:function(M){var N="";switch(M){case"lat":N=this.$refs.lat;break;case"lon":N=this.$refs.lon;break;case"x":N=this.$refs.x;break;case"y":N=this.$refs.y;break}N.select(),document.execCommand("copy")}}},bj=Bj,Pj=(D("39ac"),D("2877")),Zj=Object(Pj["a"])(bj,G,R,!1,null,"a15696fc",null),Gj=Zj.exports,Rj=D("bd28"),Wj=D("dfa0"),Xj=D("595b"),Hj=D("7618");function _j(M){var N=M&&"object"===Object(Hj["a"])(M);return N&&(M._isVue=!0,M.$options={},M.$refs={},M._data={}),M}var Fj=D("a09f");function Vj(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Jj(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Vj(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Vj(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var qj={name:"MapComponent",mixins:[x,P,m,Fj["a"]],components:{},props:{full_airport_loaded:!1,explorerMode:{type:Boolean,default:!1},printMode:{type:Boolean,default:!1},lat:{require:!1,type:String,default:""},lon:{require:!1,type:String,default:""}},data:function(){return{map:void 0,mapLoaded:!1,flying:!1,loaded:!1,popup:void 0,mapCanvas:void 0,contextMenuMarker:void 0,contextMenuMarkerSelected:[],contextMenuPopup:void 0,popupActive:!1,debugMode:!1,buildingId:this.$root.$data.building,floorId:this.$root.$data.floor}},mounted:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){var N,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return N=new c["Map"]({container:this.id,style:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",center:[0,0],zoom:2}),N.fitBounds(this.initialBbox),t=new c["NavigationControl"]({showCompass:!1}),N.addControl(t,"bottom-left"),_j(N),this.map=N,document.querySelectorAll(".mapboxgl-ctrl").forEach((function(M){return M.setAttribute("aria-hidden",!0)})),i=D("040e"),e=Object.entries(D("c68e")),M.next=11,new Promise((function(M){var N=new Image;N.src=i,N.onload=function(){var D=document.createElement("canvas");D.width=N.width,D.height=N.height,D.getContext("2d").drawImage(N,0,0,N.width,N.height),e.forEach((function(M){var N=D.getContext("2d").getImageData(M[1].x,M[1].y,M[1].width,M[1].height).data;j.map.addImage(M[0],{width:M[1].width,height:M[1].height,data:N},{pixelRatio:window.devicePixelRatio})})),M()}}));case 11:this.map.on("load",Object(A["a"])(regeneratorRuntime.mark((function M(){var N;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:j.mapLoaded=!0,""!==j.lat&&""!==j.lon&&(N=[j.lon,j.lat],j[z["a"].SET_COORDINATES]({coordinates:N,zoom:19}));case 2:case"end":return M.stop()}}),M)})))),this.map.on("movestart",(function(){j.removeContextMenu()})),this.map.on("click",(function(){j.removeContextMenu()})),this.map.on("moveend",(function(){j.flying&&(j.flying=!1,j.existLayer(Z["a"].POI_LIST)&&j.floor&&j.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible"))})),this.map.on("zoomend",(function(){var M=j.map.getZoom();if(!j.floor&&M>="16"){j[z["a"].BLOCK_BBOX](!0);var N=j.map.getBounds(),D=Object(Xj["point"])(N.getCenter().toArray()),t=Object(Xj["featureCollection"])(j.buildings.map((function(M){return Object(Xj["point"])(M.centroid.coordinates,{id:M.id,floor:M.default_level})}))),i=Object(Xj["nearestPoint"])(D,t);j.poi&&i.properties.id!==j.poi.properties.building||j.saveFloor({buildingId:i.properties.id,floorId:i.properties.floor,airportID:j.airportID})}else j.mapLoaded&&j.floor&&j.map.getZoom()<"14"&&!j.isRouteMode&&!j.poi&&j[z["a"].LOAD_FLOOR]()})),this.map.on("contextmenu",(function(M){(j.floor&&j.airport.has_graph&&!j.printMode||j.floor&&j.debugMode&&!j.printMode)&&(j.removeContextMenu(),j.addContextMenuPoint(M))})),window.addEventListener("resize",this.resize);case 18:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),destroyed:function(){window.removeEventListener("resize",this.resize),this.map.remove()},computed:Jj(Jj({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,id:z["b"].GET_ID,bbox:z["b"].GET_BBOX,coordinates:z["b"].GET_COORDINATES,zoom:z["b"].GET_ZOOM,accessToken:z["b"].GET_ACCESS_TOKEN,buildings:z["b"].GET_BUILDINGS,layerTree:z["b"].GET_LAYER_TREE,floor:z["b"].GET_FLOOR,building:z["b"].GET_BUILDING,category:z["b"].GET_CATEGORY,poisCatalog:z["b"].GET_POIS_CATALOG,poiId:z["b"].GET_POI_ID,poiDId:z["b"].GET_POID_ID,routeConfig:z["b"].GET_ROUTE_CONFIG,poi:z["b"].GET_POI,isRouteMode:z["b"].IS_ROUTE_MODE,hasRoute:z["b"].HAS_ROUTE,airportID:z["b"].GET_AIRPORT_ID,airport:z["b"].GET_AIRPORT,initialBbox:z["b"].GET_INITIAL_BBOX,homePosition:z["b"].GET_HOME_POSITION})),{},{mapAirportLoaded:function(){return this.mapLoaded&&this.full_airport_loaded},filterPois:function(){var M=["all"];return M.push(["==",["get","building"],this.building.id]),M.push(["==",["get","level"],this.floor.id]),this.category&&this.map.getSource(Z["a"].POI_LIST)&&this.map.getSource(Z["a"].POI_LIST).setData(this.filterCategoryPois),M},filterCategoryPois:function(){return a(this.poisList,this.category)}}),methods:Jj(Jj({},Object(n["b"])([z["a"].BLOCK_BBOX,z["a"].ADD_LAYER,z["a"].DELETE_LAYER,z["a"].SET_COORDINATES,z["a"].LOAD_TILES_BUILDING_FLOOR,z["a"].LOAD_FLOOR,z["a"].SET_HOME_POSITION,z["a"].LOAD_FLOOR])),{},{loadAirport:function(){this.loaded=!0,this.canvasMap=this.map.getCanvasContainer(),this.$root.$emit("mapLoaded",this.map),this.resize(),this.addPoisLayer(),this.bbox&&this.fitBounds(this.bbox),this.buildings.length&&this.addBuildings(this.buildings),(this.floor||this.category)&&this.setFloor(this.floor),this.poiId&&this.setPoi(this.poiId),this.routeConfig&&this.setContextualRoute()},resize:function(){var M=this,N=20,D=0,t=window.setInterval((function(){D+=N,M.map.resize(),D>=250&&window.clearInterval(t)}),N)},getMap:function(M){var N=this,D=function D(){N.loaded?M():setTimeout(D,50)};D()},fitBounds:function(M){this.flying=!0,this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");var N=document.getElementById("points-wrapper")||{};this.map.fitBounds(M,{padding:{left:this.isMobile?0:N.offsetWidth||0,bottom:64,top:64,right:64},duration:1e3})},flyTo:function(M){this.map.flyTo(Jj(Jj({},M),{},{speed:2.4})),this[z["a"].SET_COORDINATES]({coordinates:void 0})},getLayer:function(M){return this.map.getLayer(M)},setLayoutProperty:function(M,N){return this.map.setLayoutProperty(M,"visibility",N)},existLayer:function(M){return!!this.getLayer(M)},addLayerHandle:function(M){var N=M.id,D=M.source,t=M.data,i=M.url,e=M.layers;"raster"===D?this.addLayerRaster({id:N,source:D,url:i}):"mvt"===D?this.addLayerMVT({id:N,source:D,url:i,layers:e}):this.addLayerVector({id:N,source:D,data:t,url:i,layers:e})},addLayerRaster:function(M){var N=M.id,D=M.source,t=M.url;this.map.addSource(N,{type:D,tiles:[t],tileSize:256}),this.map.addLayer({id:N,type:D,source:N}),this.map.moveLayer(N,Z["a"].POI_LIST),this.existRouteLayer()&&this.moveRouteLayer()},addLayerMVT:function(M){var N=this,D=M.id,t=(M.source,M.url),i=M.layers;this.map.addSource(D,{type:"vector",tiles:t}),i.forEach((function(M){N.map.addLayer(Jj({source:D},M),N.existLayer(Z["a"].POI_LIST)?Z["a"].POI_LIST:null)})),this.existRouteLayer()&&this.moveRouteLayer()},addLayerVector:function(M){var N=this,D=M.id,t=M.source,i=M.url,e=M.data,j=M.layers,T=void 0===j?[]:j;this.existLayer(D)&&(T.forEach((function(M){N.map.removeLayer(M.id||D)})),this.map.removeSource(D));var g={type:t||"vector"},u={};i&&(g.url=i,u["source-layer"]=D),e&&(g.data=e,u["source"]=D),this.map.addSource(D,g),T.forEach((function(M){N.map.addLayer(Jj(Jj(Jj({},u),M),{},{id:M.id||D}))})),T.length||this.map.addLayer(u),this.existLayer(Z["a"].POI_LIST)&&this.map.moveLayer(Z["a"].POI_LIST),this.existLayer(Z["a"].POI_LIST_SELECTED)&&this.map.moveLayer(Z["a"].POI_LIST_SELECTED)},addContextMenuPoint:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:D=document.createElement("div"),D.className="context-menu-marker",this.contextMenuMarker=new c["Marker"](D).setLngLat(N.lngLat).addTo(this.map),t=null,M.prev=4,t=Gj,M.next=12;break;case 8:return M.prev=8,M.t0=M["catch"](4),console.error('[showPopup] Error importing component "context-menu" \n',M.t0),M.abrupt("return");case 12:i=u["a"].extend(Jj(Jj({},t),{},{i18n:this.$i18n})),e="context-menu",j=new i({propsData:{coordinates:[N.lngLat.lng,N.lngLat.lat],origin:this.origin,destination:this.destination,building:this.building.id,floorName:this.floor.name,floor:this.floor.id,loadRoute:this[z["a"].LOAD_ROUTE],addContextMenuMarkerSelected:this.addContextMenuMarkerSelected,setLocation:this.setLocation,hasGraph:this.airport.has_graph}}),this.contextMenuPopup=new c["Popup"]({closeButton:!1,closeOnClick:!0,anchor:"top-left",offset:12,className:"context-menu"}).setLngLat(N.lngLat).setHTML('<div id="'.concat(e,'"></div>')).addTo(this.map),this.contextMenuPopup.vue=j,j.$mount("#".concat(e)),this.contextMenuPopup._update(),j.$on("close",(function(){T.removeContextMenu()}));case 20:case"end":return M.stop()}}),M,this,[[4,8]])})));function N(N){return M.apply(this,arguments)}return N}(),addContextMenuMarkerSelected:function(M){var N=document.createElement("div");N.className="context-menu-marker-selected";var D=new c["Marker"](N,{anchor:"bottom"}).setLngLat(M.geometry.coordinates).addTo(this.map);this.contextMenuMarkerSelected.push(D)},removeContextMenu:function(){this.contextMenuMarker&&(this.contextMenuMarker.remove(),this.contextMenuMarker=void 0),this.contextMenuPopup&&(this.contextMenuPopup.vue.$destroy(),this.contextMenuPopup.remove(),this.contextMenuPopup=void 0)},removeContextMenuSelected:function(){this.contextMenuMarkerSelected.forEach((function(M){M.remove()})),this.contextMenuMarkerSelected=[]},addBuildings:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return D=N.reduce((function(M,N){var D,t=j.generateGeoJsonBuilding(N);return(D=M.features).push.apply(D,Object(y["a"])(t)),M}),{type:"FeatureCollection",features:[]}),t=Z["c"],t.data=D,t.layers[0].filter=!0,this.building&&(t.layers[0].filter=["!=",["get","id"],this.building.id]),this[z["a"].ADD_LAYER](Jj({},t)),i=N.reduce((function(M,N){var D=j.generateGeoJsonBuildingMarker(N);return M.features.push(D),M}),{type:"FeatureCollection",features:[]}),M.next=9,this.addMarkers();case 9:e=Z["d"],e.data=i,e.layers[0].filter=!0,this.building&&(e.layers[0].filter=["!=",["get","id"],this.building.id]),this[z["a"].ADD_LAYER](Jj({},e)),this.explorerMode&&(this.map.on("click",Z["c"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID,tag:"mapa",event:!0}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["c"].id,(function(M){if(!j.popupActive){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new c["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)}})),this.map.on("mouseleave",Z["c"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[24],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[18],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("click",Z["d"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["d"].id,(function(M){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new c["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)})),this.map.on("mouseleave",Z["d"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})));case 15:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),generateGeoJsonBuildingMarker:function(M){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,poi_name:M.short_name+M.color,color:M.color,fontColor:M.font_color},geometry:{type:M.centroid.type,coordinates:M.centroid.coordinates}}},generateGeoJsonBuilding:function(M){return M.bounds.geometries.map((function(N){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,color:M.color},geometry:{type:N.type,coordinates:N.coordinates}}}))},addMarkers:function(){var M=this,N=1===window.devicePixelRatio?1:2;this.buildings.filter((function(N){return N.id!==(M.building||{}).id})).forEach((function(D){var t=D.short_name+D.color;if(!M.map.hasImage(t)){var i="PARKING PUBLICO"===D.category,e=document.createElement("canvas"),j=(i?24:40)*N;e.width=j,e.height=j;var T=e.getContext("2d");T.imageSmoothingEnabled=!1,T.globalAlpha=1;var g=e.height/2;if(T.translate(g,g),g-=8,T.shadowColor="#999",T.shadowBlur=8,i){var u=4,s=2,L=j/2-s;T.moveTo(u-L,0-L),T.lineTo(L-u,0-L),T.arc(L-u,0-L+u,u,1.5*Math.PI,.2*Math.PI),T.moveTo(L,0-L+u+2),T.lineTo(L,L-u),T.arc(L-u,L-u,u,0*Math.PI,.5*Math.PI),T.moveTo(L-u,L),T.lineTo(u-L,L),T.arc(0-L+u,L-u,u,.5*Math.PI,1*Math.PI),T.moveTo(0-L,L-u),T.lineTo(0-L,0-L+u),T.arc(u-L,u-L,u,1*Math.PI,1.5*Math.PI),T.fillStyle=D.color,T.fillRect(0-L+.7,0-L+.5,j-u-1,j-u-1.5)}else T.arc(0,0,g,0,2*Math.PI),T.fillStyle=D.color,T.fill();T.shadowColor="transparent",T.shadowBlur=0,T.lineWidth=N,T.strokeStyle=D.font_color,T.stroke(),T.beginPath(),T.font="600 ".concat(12*N,"px Source Sans Pro"),T.textAlign="center",T.fillStyle=D.font_color,T.fillText(D.short_name,0,0+4*N);var I=e.getContext("2d").getImageData(0,0,j,j).data;M.map.addImage(t,{width:j,height:j,data:I},{pixelRatio:window.devicePixelRatio})}}))},setSelectedPoi:function(M){var N=this;if(this.removeContextMenuSelected(),this.existLayer(Z["a"].POI_LIST_SELECTED)){var D={type:"FeatureCollection",features:[]};if(M){var t=this.poisList.features.find((function(N){return N.properties.id===M}));t||(t=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),D.features.push(t)}this.floor&&this.steps.filter((function(M){return!M.new})).forEach((function(M){"point"!==M.mode?D.features.push(M):N.addContextMenuMarkerSelected(M)})),this.map.getSource(Z["a"].POI_LIST_SELECTED).setData(D),this.map.setLayoutProperty(Z["a"].POI_LIST_SELECTED,"visibility",D.features.length?"visible":"none"),this.map.moveLayer(Z["a"].POI_LIST_SELECTED)}},setPoi:function(M){this.savePoi({poiId:M,airportID:this.airportID,tag:"mapa"}),this.setSelectedPoi(M)},existRouteLayer:function(){return this.existLayer(Z["a"].ROUTES[0])||this.existLayer(Z["a"].ROUTES[1])||this.existLayer(Z["a"].ROUTES[2])},moveRouteLayer:function(){this.map.moveLayer(Z["a"].ROUTES[0]),this.map.moveLayer(Z["a"].ROUTES[1]),this.map.moveLayer(Z["a"].ROUTES[2])},setRouteFloor:function(M){if(this.existRouteLayer()){this.moveRouteLayer(),this.map.setLayoutProperty(Z["a"].ROUTES[0],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[1],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[2],"visibility",M?"visible":"none");var N=Object(Wj["a"])(this.building,this.floor),D=N.layerOpacity,t=N.arrowOpacity,i=["all",["==",["get","level"],this.floor.id],["==",["get","building"],this.building.id]];this.map.setFilter(Z["a"].ROUTES[1],i),this.map.setPaintProperty(Z["a"].ROUTES[0],"line-opacity",D),this.map.setPaintProperty(Z["a"].ROUTES[2],"icon-opacity",t),this.setSelectedPoi()}},setFloor:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:if(this.existLayer(Z["a"].TILES)&&(this.map.removeLayer(Z["a"].TILES),this.map.removeSource(Z["a"].TILES),this[z["a"].DELETE_LAYER](Z["a"].TILES)),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none"),!N){M.next=17;break}if(this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,["!=",["get","id"],this.building.id]),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,["!=",["get","id"],this.building.id]),D=["all",["==",["get","building"],["to-string",this.building.id]],["==",["get","height"],this.floor.id]],this.existLayer(Z["b"].id)){M.next=13;break}return t=Jj({},Z["b"]),t.layers.forEach((function(M){M.filter=D})),M.next=11,this[z["a"].LOAD_TILES_BUILDING_FLOOR](Z["b"]);case 11:M.next=14;break;case 13:Z["b"].layers.forEach((function(M){i.map.setFilter(M.id,D)}));case 14:this.existLayer(Z["a"].POI_LIST)&&(this.map.setFilter(Z["a"].POI_LIST,this.filterPois),this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible")),M.next=21;break;case 17:this.existLayer(Z["b"].id)&&Z["b"].layers.forEach((function(M){i.map.setFilter(M.id,["to-boolean",0])})),this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,!0),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,!0),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");case 21:this.setRouteFloor(!0);case 22:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),addPoisLayer:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){var N,D,t=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:N=Z["e"],D=this.category?this.filterCategoryPois:this.poisList,N.data=Jj({},D),N.data.features=[].concat(Object(y["a"])(N.data.features),Object(y["a"])(this.uncategorizedPoisList.features)),N.layers[0].filter=!!this.floor&&this.filterPois,N.layers[0].layout.visibility=this.floor?"visible":"none",this[z["a"].ADD_LAYER](Jj({},N)),this[z["a"].ADD_LAYER](Z["f"]),this.explorerMode&&this.map.on("click",Z["a"].POI_LIST,(function(M){var N=M.features[0],D=N.properties.id,i=JSON.parse(N.properties.subcategories),e=t.poisList.features.find((function(M){return M.properties.id===D}));e||(e=t.uncategorizedPoisList.features.find((function(M){return M.properties.id===D})));var j="".concat(t.building.name,". Planta ").concat(e.properties.levelName,". ").concat(t.$t(e.properties.attrs.pat_nombre));if(t.isRouteMode){var T,g=(t.destinationName||"").includes("step")?"step":t.destinationName,u=g||(t.destination?"origin":"destination");t.setLocation([N]),t[z["a"].LOAD_ROUTE]((T={i18n:t.$i18n},Object(I["a"])(T,u,{geometry:{coordinates:[M.lngLat.lng,M.lngLat.lat],type:"Point"},properties:Jj(Jj({},N.properties),{},{attrs:JSON.parse(N.properties.attrs),subcategories:i}),type:"Feature"}),Object(I["a"])(T,"routeMode",!0),T))}else{t.setPoi(D);var s={eventCategory:"mapa",eventAction:"clic",eventLabel:Object(E["a"])(j),language:t.$i18n.locale,airportID:t.airportID};window.digitalChange("event",s)}})),this.map.on("mouseover",Z["a"].POI_LIST,(function(M){t.popupActive=!0,t.setPoiTooltip(M)})),this.map.on("mouseleave",Z["a"].POI_LIST,(function(){t.popupActive=!1,t.removePopup()})),this.map.on("mouseleave",Z["a"].POI_LIST_SELECTED,(function(){t.removePopup()})),this.map.on("mouseover",Z["a"].POI_LIST_SELECTED,(function(M){t.setPoiTooltip(M,!0)}));case 13:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),removePopup:function(){this.popup&&this.popup.remove()},setPoiTooltip:function(M,N){this.removePopup();var D=M.features[0],t=JSON.parse(D.properties.subcategories),i=Z["j"][Object(Rj["a"])(t)];this.canvasMap.style.cursor="pointer";var e=D.geometry.coordinates.slice(),j=i?this.$t(i.name):JSON.parse(D.properties.attrs).pat_nombre;this.popup=new c["Popup"]({closeButton:!1,anchor:"bottom",offset:{bottom:[0,N?-25:-10]}}),this.popup.setLngLat(e).setHTML(j).addTo(this.map)},setContextualRoute:function(){var M=this,N=this.poisList.features.filter((function(N){return M.routeConfig.steps.includes(N.properties.id)}));this.setLocation(N),this[z["a"].MOVE_ROUTE]({steps:N})},clearRoute:function(){this.existRouteLayer()&&(this.map.removeLayer(Z["a"].ROUTES[0]),this.map.removeLayer(Z["a"].ROUTES[1]),this.map.removeLayer(Z["a"].ROUTES[2]),this.map.removeSource(Z["a"].ROUTES[0]),this.map.removeSource(Z["a"].ROUTES[2]),this[z["a"].DELETE_LAYER](Z["a"].ROUTES[0]),this[z["a"].DELETE_LAYER](Z["a"].ROUTES[2])),this.setSelectedPoi()}}),watch:{mapAirportLoaded:function(M){M&&this.loadAirport()},bbox:function(M){M&&this.fitBounds(M)},accessToken:function(M){c["accessToken"]=M},layerTree:function(M){var N=this;M.forEach((function(M){N.existLayer(M.id)||N.addLayerHandle(M)}))},buildings:function(M){this.loaded&&this.addBuildings(M)},floor:function(M){this.loaded&&this.setFloor(M)},coordinates:function(M){var N=this;if(M&&(this.flyTo({center:M,zoom:this.zoom}),""!==this.lat&&""!==this.lon)){var D=[this.lon,this.lat],t=document.createElement("div"),i="YOU ARE HERE",e=new c["Popup"]({closeButton:!0,anchor:"bottom"});t.className="context-menu-marker",setTimeout((function(){e.setLngLat(D).setHTML(i).addTo(N.map),new c["Marker"](t).setPopup(e).setLngLat(D).addTo(N.map).togglePopup()}),1500)}},poi:function(M){this.setSelectedPoi(M&&M.properties.id),M&&this[z["a"].SET_COORDINATES]({coordinates:M.geometry.coordinates,zoom:19})},steps:function(){this.setSelectedPoi()},isRouteMode:function(M){M||this.clearRoute()},hasRoute:function(M){M?this.setSelectedPoi():this.clearRoute()},homePosition:function(M){var N=this;if(M&&this.homePosition){var D=this.poisList.features.find((function(M){return M.properties.id===N.homePosition})),t=this.buildings.find((function(M){return M.id===D.properties.building})),i=t.levels.find((function(M){return M.id===N.floorId})),e=[D.geometry.coordinates[0],D.geometry.coordinates[1]];this[z["a"].SET_COORDINATES]({coordinates:e,zoom:19}),this[z["a"].LOAD_FLOOR]({floor:i,building:t}),this.setPoi(this.homePosition),this[z["a"].SET_HOME_POSITION](!1)}}}},Kj=qj,$j=(D("585f"),Object(Pj["a"])(Kj,w,r,!1,null,"5dba0ef4",null)),MT=$j.exports,NT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"layers-container"},[N("DropDown",{ref:"dropdown",attrs:{"click-outside":!1,height:"auto"},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger"},[N("Icon",{attrs:{icon:"icon-layers.svg",size:"20px",fill:"#f6f7f9"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"header"},[N("p",[M._v("Capas")]),N("button",{staticClass:"close",on:{click:M.close}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"20px",fill:"#71777d"}})],1)]),N("div",{staticClass:"layers-wrapper"},M._l(M.layers,(function(D){return"poiList"===D.id?N("div",{key:D.id,staticClass:"layer"},[N("div",{staticClass:"layer-header"},[N("Checkbox",{attrs:{name:D.id,label:D.name},on:{change:M.onCheckboxChange},model:{value:D.active,callback:function(N){M.$set(D,"active",N)},expression:"layer.active"}})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enterLayer,"after-enter":M.afterEnterLayer,leave:M.leaveLayer}},[D.legend&&D.active?N("div",{staticClass:"legend"},[N("div",{staticClass:"wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.legend.title))]),N("div",{staticClass:"chart"},[N("div",{staticClass:"labels"},[N("p",[M._v(M._s(D.legend.range.min))]),N("p",[M._v(M._s(D.legend.range.max))])]),N("div",{staticClass:"bar",style:{"background-image":M.gradient(D.legend.range.range)}})]),N("p",{staticClass:"note"},[M._v(M._s(D.legend.note))])])]):M._e()])],1):M._e()})),0)]},proxy:!0}])})],1)},DT=[],tT={name:"Layers",mixins:[],components:{},props:{layers:{type:Array,required:!0}},data:function(){return{}},computed:{},methods:{close:function(){this.$refs.dropdown.close()},onCheckboxChange:function(M){this.$emit("change",M)},gradient:function(M){return"linear-gradient(to right, ".concat(M.join(",",""),")")},enterLayer:function(M){M.style.height="auto";var N=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=N}))},afterEnterLayer:function(M){M.style.height="auto"},leaveLayer:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}}},iT=tT,eT=(D("92e1"),Object(Pj["a"])(iT,NT,DT,!1,null,"566cf004",null)),jT=eT.exports,TT=(D("386d"),function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"header",ref:"header",staticClass:"headers-wrapper",class:{none:"aena-point-detail"===M.view},attrs:{role:"region"}},[M.search&&!M.isRouteMode?N("AenaSearch",{key:"search",ref:"search",attrs:{hidden:"aena-point-detail"===M.view&&!M.isMobile,search:M.currentProps.activeFilters.search,view:M.view},on:{onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey,onSelect:M.onSelect,onFocus:M.onInputFocus,onBlur:M.onInputBlur,onBack:M.goBack}}):M._e(),M.isRouteMode?N("div",{key:"route-header",staticClass:"aena-route-header"},[M.isMobile?N("button",{staticClass:"btn-back",on:{click:M.closeRoute}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),N("div",{staticClass:"top"},[M.toggleDrag?N("div",{staticClass:"graph absolute inert",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}}),M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M._l(M.stepsAdded,(function(D){return M.isMobile?M._e():[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}}),N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)]})),M.isMobile?M._e():N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}}),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],2):M._e(),M.explorerMode&&!M.isMobile?N("button",{staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE_ROUTE_CONFIG")},on:{click:M.closeRoute}},[N("Tooltip",{attrs:{text:M.$t("CLOSE_ROUTE_CONFIG"),position:"right"}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"30px",fill:"#90ce00"}})],1)],1):M._e(),N("div",{staticClass:"points"},[N("draggable",{attrs:{"ghost-class":"ghost",sort:!!M.explorerMode&&!M.addBlocked,handle:".graph"},on:{start:M.onDrag,end:M.onDrag},model:{value:M.steps,callback:function(N){M.steps=N},expression:"steps"}},[N("transition-group",[N("div",{key:"origin",staticClass:"input origin",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"right"}},[N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)],1),"origin"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(0,"origin")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.origin?["point"===M.origin.mode||void 0===M.origin.properties.attrs?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(M.origin.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.origin.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_ORIGIN",expression:"'SEARCH_ORIGIN'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"origin",attrs:{placeholder:M.origin&&"point"!==M.origin.mode?M.$t("ORIGIN")+". "+M.$t(M.origin.properties.attrs.pat_nombre)+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName+". "+M.$t("SEARCH_ORIGIN"):M.$t("SEARCH_ORIGIN"),name:"origin",autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(0)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP"),position:"right"}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e(),M.blockedPois||M.addBlocked||!M.isMobile||M.stepsAdded.length?M._e():N("button",{staticClass:"btn-add-mobile",on:{click:M.addStep}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1),M._l(M.stepsAdded,(function(D,t){return N("div",{key:"step"+t,staticClass:"input add",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:"Arrastra para reordenar",position:"top-left"}},[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),M.destinationName!=="step"+t?N("div",{staticClass:"input-selected short",class:{static:!M.blockedPois},on:{click:function(N){return M.clearStep(t+1,"step"+t,!0)}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),D.new?N("span",{directives:[{name:"t",rawName:"v-t",value:"SELECT_WAYPOINT",expression:"'SELECT_WAYPOINT'"}],staticClass:"placeholder"}):["point"===D.mode?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(D.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(D.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(D.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(D.properties.levelName)+"\n ")])]],2)]):M._e(),N("Searcher",{ref:"step"+t,refInFor:!0,attrs:{placeholder:D&&"point"!==D.mode&&D.properties?M.$t("WAYPOINT")+". "+M.$t(D.properties.attrs.pat_nombre)+". "+D.properties.location.name+". "+M.$t("FLOOR")+" "+D.properties.levelName+". "+M.$t("SELECT_WAYPOINT"):M.$t("SELECT_WAYPOINT"),name:"step"+t,autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(t+1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)})),N("div",{key:"destination",staticClass:"input destination",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"top-left"}},[N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}})],1),M.isMobile&&M.stepsAdded.length?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),"destination"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(M.steps.length-1,"destination")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.destination?["point"===M.destination.mode?N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates))+"\n ")]):N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.$t(M.destination.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.destination.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_DESTINATION",expression:"'SEARCH_DESTINATION'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"destination",attrs:{placeholder:M.destination&&"point"!==M.destination.mode?M.$t("DESTINATION")+". "+M.$t(M.destination.properties.attrs.pat_nombre)+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName+". "+M.$t("SEARCH_DESTINATION"):M.$t("SEARCH_DESTINATION"),name:"destination"},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(M.steps.length-1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)],2)],1)],1)]),!M.blockedPois&&!M.isMobile&&M.stepsAdded.length<3?N("button",{staticClass:"btn-add",class:{disabled:M.addBlocked},attrs:{"aria-disabled":M.addBlocked},on:{click:M.addStep}},[N("p",[M._v(M._s(M.$t("ADD_WAYPOINT")))]),M.addBlocked?N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}}):N("Tooltip",{attrs:{text:M.$t("ADD_WAYPOINT")}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1):M._e(),"true"===M.pmr_enabled?N("div",{staticClass:"pmr-content"},[N("ToggleSwitch",{attrs:{label:M.$t("ROUTES_NO_BARRIERS"),value:M.pmrActive},on:{change:M.togglePMR}}),N("button",{on:{click:M.showPMRConfig}},[N("span",[M._v(M._s(M.$t("SHOW_PMR")))])])],1):M._e()]):M._e(),M.isRouteMode&&!M.addBlocked?N("div",{key:"time",staticClass:"time",class:{shadow:!M.blockedPois}},[M.error?[N("div",{staticClass:"no-route"},[N("Icon",{staticClass:"clear",attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{staticClass:"top"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"NO_ROUTE",expression:"'NO_ROUTE'"}],staticClass:"description"})]),N("button",{directives:[{name:"t",rawName:"v-t",value:"TRY_AGAIN",expression:"'TRY_AGAIN'"}],staticClass:"btn-route error",attrs:{"aria-haspopup":"true","aria-expanded":"isVisible","aria-controls":"aena-route-container"},on:{click:function(N){return M.clearStep(0,"origin")}}})])],1)]:[M.isMobile?M._e():N("Icon",{staticClass:"clear",attrs:{icon:M.iconCondition,size:"30px",fill:"#1a2732"}}),N("div",{staticClass:"info"},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("div",{staticClass:"top"},[N("h3",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),N("p",{staticClass:"description",attrs:{tabindex:"0"}},[N("span",{staticClass:"security-control"},[M._v(M._s(M.$t(M.routeCondition.msg)))]),N("span",[M._v(M._s(M.$t(M.routeCondition.msg2)))])])]),M.isMobile?M._e():N("button",{directives:[{name:"t",rawName:"v-t",value:"ROUTE",expression:"'ROUTE'"}],staticClass:"btn-route",attrs:{"aria-label":(M.blockedPois?M.$t("CLOSE"):M.$t("VISUALIZE"))+" "+M.$t("ROUTE_SUMMARY"),"aria-hidden":M.blockedPois},on:{click:M.toggleBlocked}})]),M.isMobile?N("div",{staticClass:"buttons"},[N("button",{staticClass:"indications",on:{click:M.toggleBlocked}},[N("p",[M._v(M._s(M.$t("INDICATIONS")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-rating-jj.svg",size:"30px",fill:"#1A2732"}})],1),M.isAndroid||M.isIOS?N("button",{staticClass:"start",on:{click:M.toggleBanner}},[N("p",[M._v(M._s(M.$t("START")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):M._e()],M.loading?N("div",{staticClass:"loading"},[N("svg",{staticClass:"spinner",attrs:{width:"26px",height:"26px",viewBox:"0 0 26 26"}},[N("circle",{staticClass:"path",attrs:{fill:"none","stroke-width":"2","stroke-linecap":"round",cx:"13",cy:"13",r:"12"}})])]):M._e()],2):M._e(),N("transition",{attrs:{appear:"",name:"banner"}},[(M.isAndroid||M.isIOS)&&M.appBanner?N("div",{staticClass:"app-banner"},[N("div",{staticClass:"row"},[N("div",{staticClass:"image-wrapper"},[N("img",{attrs:{src:D("3f3a"),alt:""}})]),N("div",{staticClass:"content-wrapper"},[N("span",[N("h3",[M._v(M._s(M.$t("ASPA")))]),N("p",[M._v("Esta aplicación te ofrece la navegación en tiempo real con instrucciones visuales y por voz.")])])])]),N("div",{staticClass:"buttons"},[N("button",{staticClass:"not",on:{click:M.toggleBanner}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(M.$t("NOT_NOW")))])],1),N("a",{staticClass:"open",attrs:{href:M.appLink}},[N("p",[M._v(M._s(M.$t("OPEN_APP")))])])])]):M._e()])],1),M.addBlocked||M.blockedPois?N("div",{key:"container",ref:"container",staticClass:"aena-points-container",class:[M.deviceWidthClass,{visible:M.isVisible,"detail-mobile":M.isCollapsed}]},[N("transition",{attrs:{name:"fade",mode:"out-in"},on:{"after-enter":M.onTransitionEnter}},[N(M.view,M._b({ref:"component",tag:"component",on:{onSelect:M.onSelect,onFilter:M.onFilter,onCategory:M.onCategory,onCloseRoute:M.toggleBlocked,onCollapsed:M.toggleCollapsed,goBack:M.resetView}},"component",M.currentProps,!1))],1)],1):M._e()])}),gT=[],uT=(D("55dd"),D("5df3"),D("4f7f"),D("3b2b"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-search-container",class:[M.deviceWidthClass,{hidden:M.hidden,focus:M.focus&&"aena-point-detail"!==M.view,active:M.active}]},[N("h1",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SEARCH_PLACEHOLDER")))]),N("Searcher",{attrs:{search:M.search,placeholder:M.$t("SEARCH_PLACEHOLDER")},on:{onActive:M.setActive,focus:M.onFocus,onEnterKey:M.onEnterKey,blur:M.onBlur}}),N("transition",{attrs:{name:"btn-back",appear:""}},[M.isMobile&&M.active&&M.hasRoute?N("button",{staticClass:"btn-back",on:{click:M.goBack}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#598000"}})],1):M._e()]),M.hasRoute?N("button",{staticClass:"btn-route",attrs:{type:"submit",tabindex:"0","aria-hidden":"true","aria-label":M.$t("CONFIG_ROUTE")},on:{click:M.goToRoute}},[N("Tooltip",{attrs:{text:M.$t("CONFIG_ROUTE"),position:"right"}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#525C65"}})],1)],1):M._e()],1)}),sT=[],LT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"input-wrapper",class:[M.deviceWidthClass,{active:M.active}]},[N("input",{directives:[{name:"model",rawName:"v-model",value:M.inputValue,expression:"inputValue"}],ref:"input",attrs:{type:"text",name:"search",autocomplete:"off",placeholder:M.placeholder,"aria-live":"assertive","aria-label":M.placeholder,"aria-labelledby":"search-results",lang:M.$i18n.locale},domProps:{value:M.inputValue},on:{input:[function(N){N.target.composing||(M.inputValue=N.target.value)},M.onInputChange],keypress:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter")?null:M.onEnterKey(N)},focus:M.onFocus,blur:M.onBlur}}),M.active?N("button",{staticClass:"clear",attrs:{type:"reset","aria-label":M.$t("CLEAR_INPUT")},on:{click:function(N){return M.onClear(!0)}}},[N("Icon",{attrs:{icon:"icon-clear-form.svg",size:"30px",fill:"#949d9e"}})],1):M._e(),M.active?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#1a2732","aria-hidden":"true"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#A8ABAD","aria-hidden":"true"}})],1)},IT=[],AT={name:"app-searcher",mixins:[Fj["a"]],components:{},props:{placeholder:{type:String,required:!1},name:{type:String,required:!1},search:{type:String,default:"",required:!1},autofocus:{type:Boolean,default:!1}},data:function(){return{inputValue:this.search}},mounted:function(){this.autofocus&&!this.search&&this.onFocus()},computed:{active:function(){return!!this.inputValue.length}},methods:{onFocus:function(){this.$refs.input.focus(),this.$emit("focus",this.name)},onEnterKey:function(){this.$emit("onEnterKey");var M=document.querySelector("#pois-list");M.focus()},onBlur:function(M){M.target.blur(),this.$emit("blur",this.name)},onInputChange:function(){if(this.$emit("onActive",this.active),!this.inputValue.length)return this.onClear();this.inputValue.length>=2&&(this.$emit("onInputChange",{value:this.inputValue,name:this.name}),this.$parent.$emit("onInputChange",{value:this.inputValue,name:this.name}))},onClear:function(M){return this.inputValue="",M&&this.onFocus(),this.$emit("onInputChange",{name:this.name}),this.$emit("onActive",this.active),this.$parent.$emit("onInputChange",{name:this.name})}},watch:{search:function(M){this.inputValue=M}}},zT=AT,nT=(D("6616"),Object(Pj["a"])(zT,LT,IT,!1,null,"674262d0",null)),wT=nT.exports;function rT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function yT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?rT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):rT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var cT={name:"app-aenaSearch",mixins:[Fj["a"]],components:{Searcher:wT},props:{hidden:{type:Boolean,default:!1},search:{type:String,required:!1},view:{type:String,required:!0}},data:function(){return{active:!1,focus:!1}},computed:yT(yT({},Object(n["c"])({airport:z["b"].GET_AIRPORT,isMobile:z["b"].GET_IS_MOBILE})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{setActive:function(M){this.active=M},onFocus:function(){this.active=!0,this.focus=!0,this.$emit("onFocus")},onEnterKey:function(){this.$emit("onEnterKey")},onBlur:function(){this.isMobile||(this.focus=!1),this.$emit("onBlur")},goToRoute:function(){this.focus=!1,this.$emit("onSelect",{component:"aena-route-pre"})},goBack:function(){this.focus=!1,this.$emit("onBack")}}},aT=cT,ET=(D("eb9c"),Object(Pj["a"])(aT,uT,sT,!1,null,"06365ee2",null)),oT=ET.exports,OT=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-highlighted-points-container",class:[M.deviceWidthClass,M.outdoorActived&&"route-mode"]},[M.outdoorDisabled?N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}}):N("Tabs",[N("Tab",{ref:"mainTab",staticClass:"airport",attrs:{name:M.$t("AIRPORT"),selected:"",id:"airport"}},[N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}})],1),N("Tab",{ref:"outdoorTab",staticClass:"outdoor",attrs:{name:M.$t("OUTDOOR"),disabled:M.outdoorDisabled,id:"outdoor"}},[N("Scrollbar",[N("div",{staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}})]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}}),N("ul",{staticClass:"list",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS")}},M._l(M.outdoorOptions,(function(D){return N("li",{staticClass:"item-wrapper"},[N("a",{staticClass:"item",attrs:{href:D.href,target:"_blank",rel:"noopener noreferrer"},on:{click:M.goToOutdoor}},[N("Icon",{attrs:{icon:D.icon,size:"50px",fill:"#72a300"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.title))])]),N("p",{staticClass:"location"},[N("span",[M._v(M._s(D.subtitle))])])]),N("Icon",{attrs:{icon:"arrow-diagonal-t.svg",size:"30px"}})],1)])})),0)])])],1)],1)],1)},xT=[],CT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-highlighted-points-list-container"},[N("div",{staticClass:"wrapper",class:{"with-tabs":!M.outdoorDisabled}},[N("Scrollbar",[N("div",{ref:"scroller",staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h1",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS_SHORT",expression:"'HIGHLIGHT_POINTS_SHORT'"}],attrs:{lang:M.$i18n.locale}}),M.isMobile?N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_SHORT",expression:"'ALL_SHORT'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS",expression:"'HIGHLIGHT_POINTS'"}],attrs:{lang:M.$i18n.locale,id:"highlighted-points-title"}}),N("ul",{staticClass:"grid",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS"),"aria-labelledby":"highlighted-points-title"}},M._l(M.highlighted,(function(D){return N("li",{staticClass:"item-wrapper"},[N("button",{staticClass:"item",attrs:{"aria-label":D.name},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"50px"}}),N("p",[M._v(M._s(D.name))])],1)])})),0)])])],1),N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1)])},ST=[];function lT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function kT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?lT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):lT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var QT={name:"AenaHighlightedPointsList",mixins:[],components:{},props:{highlighted:{type:Array,required:!0},outdoorDisabled:{type:Boolean,required:!0}},data:function(){return{}},mounted:function(){var M=this;this.$refs.scroller.addEventListener("mouseover",(function(){M.$refs.scroller.style.visibility="visible"})),this.$refs.scroller.addEventListener("mouseout",(function(){M.$refs.scroller.style.visibility="hidden"}))},computed:kT({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE})),methods:{selectPoint:function(M){this.$emit("onSelectPoint",M)},allPoints:function(){this.$emit("onAllPoints")}}},dT=QT,YT=(D("271e"),Object(Pj["a"])(dT,CT,ST,!1,null,"dddfb318",null)),UT=YT.exports;function pT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function hT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?pT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):pT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var fT={name:"app-aenaHighlightedPoints",mixins:[Fj["a"]],components:{AenaHighlightedPointsList:UT},props:{highlighted:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:hT(hT({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,airportID:z["b"].GET_AIRPORT_ID,isRoute:z["b"].IS_ROUTE_MODE,pois:z["b"].GET_POIS_LIST,transitionPoisList:z["b"].GET_TRANSITION_POIS_LIST,destinationC:z["b"].GET_DESTINATION,route:z["b"].GET_ROUTE,buildings:z["b"].GET_BUILDINGS})),{},{outdoorOptions:function(){var M=this,N="https://www.google.com/maps/dir",D="",t="";if(this.destinationC){var i=this.buildings.find((function(N){return N.id===M.destinationC.properties.building})).levels.find((function(N){return N.id===M.destinationC.properties.level})).oit_point,e=this.transitionPoisList.find((function(M){return M.properties.id===i}));t=e.geometry.coordinates.slice(0,2).reverse().toString()}return[{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e0"),icon:"car-t.svg",title:this.$t("OUTDOOR_OPTION_1"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")},{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e3"),icon:"Transporte_publico_T.svg",title:this.$t("OUTDOOR_OPTION_2"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")}]},outdoorActived:function(){return this.isRoute&&"origin"===this.route.destinationName},outdoorDisabled:function(){return!this.destinationC}}),methods:hT(hT({},Object(n["b"])([z["a"].LOAD_ROUTE])),{},{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(E["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},allPoints:function(){this.$emit("onSelect",{component:"aena-points-list"})},goToOutdoor:function(M){var N=this,D=this.buildings.find((function(M){return M.id===N.destinationC.properties.building})).levels.find((function(M){return M.id===N.destinationC.properties.level})).oit_point,t=this.transitionPoisList.find((function(M){return M.properties.id===D}));t?(t.mode="point",t.properties.icon="marcadores/pp_00-mk.svg",this[z["a"].LOAD_ROUTE]({origin:t})):console.warn("Destination Poi building (".concat(this.destinationC.properties.location.name,") has no transition poi"))}}),watch:{isRoute:{immediate:!0,handler:function(M){M||this.$refs.mainTab&&(this.$refs.outdoorTab.isActive=!1,this.$refs.mainTab.isActive=!0)}}}},mT=fT,vT=(D("aebe"),Object(Pj["a"])(mT,OT,xT,!1,null,"0a113b08",null)),BT=vT.exports,bT=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-list-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ALL_POINTS")))]),N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("POINTS_OF_INTEREST")},on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"POINTS_OF_INTEREST",expression:"'POINTS_OF_INTEREST'"}]})],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("ul",{attrs:{"aria-label":M.$t("ALL_POINTS")}},M._l(M.points,(function(D){return N("li",[N("button",{on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(D.name))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}})],1)])})),0)])])],1)])},PT=[];function ZT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function GT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ZT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ZT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var RT={name:"app-aenaPointsList",mixins:[Fj["a"]],components:{},props:{points:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:GT({},Object(n["c"])({airportID:z["b"].GET_AIRPORT_ID})),mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},methods:{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(E["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},goBack:function(){this.$emit("onSelect",{component:"aena-highlighted-points"})}}},WT=RT,XT=(D("72d9"),Object(Pj["a"])(WT,bT,PT,!1,null,"5c989fe8",null)),HT=XT.exports,_T=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-categories-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("AenaTerminalsFilter",{attrs:{airport:M.airport,filters:M.filters},on:{onFilterChange:M.setFilter}}),M.isMobile?M._e():N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"24px",fill:"#1A2732"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}]})],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",{ref:"scrollbar",on:{onScroll:M.onScroll}},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[M.showCategories?N("AenaTerminalsCategories",{attrs:{category:M.category,categories:M.categories},on:{onCategoryChange:M.setCategory,goBack:M.goBack}}):M._e(),N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST")))]),M.pois.length?N("ul",{class:{pb:M.search},attrs:{tabindex:"0",id:"pois-list","aria-label":(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST"))+". "+M.points.length+" "+M.$t("RESULTS")+" "+(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))}},M._l(M.pois,(function(D){return N("li",[N("button",{attrs:{"aria-label":M.$t("CATEGORY")+" "+M.getCategoryName(D.properties.subcategories[0])+". "+D.properties.attrs.pat_nombre+". "+D.properties.location.name+"."+M.$t("FLOOR")+". "+D.properties.levelName+". "+(D.total>1?D.total+M.$t("SAME_FLOOR_RESULTS"):"")},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.properties.icon,size:"30px"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.properties.attrs.pat_nombre))]),D.total>1?N("span",{staticClass:"total"},[M._v("("+M._s(D.total)+")")]):M._e()]),N("p",{staticClass:"location"},[N("b",[M._v(M._s(D.properties.location.name)+". ")]),N("span",[M._v(M._s(M.$t("FLOOR"))+" "+M._s(D.properties.levelName))])])])],1)])})),0):[N("div",{staticClass:"no-result"},[N("Icon",{attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{directives:[{name:"t",rawName:"v-t",value:"NO_RESULT_POIS",expression:"'NO_RESULT_POIS'"}],staticClass:"title"})])],1)]],2)])],1),M.isMobile?M._e():N("div",{staticClass:"results",attrs:{id:"search-results","aria-live":"assertive"}},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.points.length)+" "+M._s(M.$t("RESULTS"))+" "+M._s(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))+". "),N("span",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ENTER_TO_RESULTS")))])]),M.goToTopVisible?N("button",{on:{click:function(N){return M.goToTop()}}},[M._v(M._s(M.$t("GO_TO_TOP")))]):M._e()])],1)},FT=[],VT=(D("f400"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-filter-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_RESULTS_BY"))+" "+M._s(M.$t("TERMINALS"))+" "+M._s(M.$t("AND"))+" "+M._s(M.$t("FLOORS")))]),N("div",{ref:"menu",staticClass:"filters-wrapper"},[N("div",{staticClass:"all-filters"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"FILTER",expression:"'FILTER'"}],attrs:{"aria-hidden":"true"}}),N("Tooltip",{attrs:{text:M.$t("AIRPORT_RESULTS")}},[N("button",{staticClass:"filter all",class:{active:!M.activeFilter},attrs:{type:"button","aria-label":M.$t("FILTER_BY")+" "+M.$t("AIRPORT_RESULTS"),"aria-pressed":M.activeFilter?0:-1,tabindex:M.activeFilter?0:-1},on:{click:function(N){return M.setFilter()}}},[M._v("\n "+M._s(M.airport.iata_code)+"\n ")])])],1),N("div",{staticClass:"filter-options"},[N("Tooltip",{attrs:{text:M.$t("TERMINAL_RESULTS")+" "+M.$t("TERMINALS")+" "+M.$t("AND")+" "+M.$t("FLOORS"),"auto-hide":!0,"auto-hide-time":5e3}},[N("Scrollbar",{ref:"scrollbar",attrs:{"vertical-scroll":!1,"horizontal-scroll":!0}},[N("div",{ref:"scrollContent",staticClass:"scroll-content",attrs:{tabindex:"-1"}},[N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("TERMINALS")}},M._l(M.terminals,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter",class:{active:M.activeFilter===D.id},style:{backgroundColor:M.activeFilter===D.id?D.color:"#E9ECEF",color:M.activeFilter===D.id?D.font_color:"#1A2732",borderColor:M.activeFilter===D.id?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.activeFilter===D.id},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n ")])})),0),N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("PARKINGS")}},M._l(M.others,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter square",class:{active:M.isAssociateActive(D.id)},style:{backgroundColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF",color:M.isAssociateActive(D.id)?D.font_color:"#1A2732",borderColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.isAssociateActive(D.id)},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n "),D.color&&D.short_name.length<2?N("span",{staticClass:"triangle",style:{borderRightColor:D.color}}):M._e()])})),0)])])],1)],1)])])}),JT=[];D("2caf");function qT(M){return Array.isArray(M)?M[0]:M}function KT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function $T(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?KT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):KT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Mg={name:"app-aenaTerminalsFilter",mixins:[Fj["a"]],components:{},props:{airport:{type:Object,required:!0},filters:{type:Array,required:!0}},data:function(){return{activeFilter:""}},created:function(){this.activeFilter=this.activeFilterC.building},mounted:function(){var M=this;if(this.activeFilter){var N=qT(this.$refs[this.activeFilter]);this.$refs.scrollbar.scrollTo(N.offsetLeft,0)}this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:$T($T({},Object(n["c"])({activeFilterC:C["b"].GET_ACTIVE_FILTERS})),{},{terminals:function(){return this.filters.filter((function(M){return"TERMINAL"===M.category}))},others:function(){return this.filters.filter((function(M){return"TERMINAL"!==M.category}))},associatedParking:function(){return this.activeFilterC.associatedParking||[]}}),methods:{setFilter:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.activeFilter=M.id,this.$emit("onFilterChange",M.id)},isAssociateActive:function(M){return this.activeFilter===M||(this.activeFilterC.associatedParking||[]).includes(M)}}},Ng=Mg,Dg=(D("47b0"),Object(Pj["a"])(Ng,VT,JT,!1,null,"5aaf0a8d",null)),tg=Dg.exports,ig=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-categories-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_BY_CATEGORIES")))]),M.isMobile?N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),M.isMobile?N("span",{staticClass:"vl"}):M._e(),N("ul",{staticClass:"options",attrs:{role:"menu","aria-label":M.$t("FILTER_BY")+" "+M.$t("CATEGORIES")}},[M.category&&!M.noDuplicate?N("li",{staticClass:"li-all",attrs:{role:"menuitem"}},[N("button",{staticClass:"category all",class:{active:!M.activeCategories.length},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+M.category.name+" "+M.$t("ALL"),"aria-checked":!M.activeCategories.length},on:{click:function(N){return M.onChange()}}},[N("b",[M._v(M._s(M.category.name))]),M._v(" ("+M._s(M.$t("ALL"))+")\n ")])]):M._e(),M._l(M.categoriesVisible,(function(D){return N("li",{key:D.id,attrs:{role:"menuitem"}},[N("button",{staticClass:"category",class:{active:M.isActive(D.id)},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+D.name,"aria-checked":M.isActive(D.id)},on:{click:function(N){return M.onChange(D)}}},[N("p",[M._v(M._s(D.name))])])])}))],2),M.categoriesHidden>0?N("button",{staticClass:"category more",attrs:{"aria-label":M.$t("MORE_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.categoriesHidden)+" "+M._s(M.$t("MORE")))])]):M._e(),M.toggle&&!M.categoriesHidden?N("button",{staticClass:"category less",attrs:{"aria-label":M.$t("LESS_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.$t("LESS_CATEGORIES")))])]):M._e()])},eg=[];function jg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Tg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?jg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):jg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var gg={name:"app-aenaTerminalsCategories",mixins:[Fj["a"]],components:{},props:{category:{type:Object},categories:{type:Array,required:!0}},data:function(){return{activeCategories:[],toggle:!1}},created:function(){this.updateSelected()},destroyed:function(){this.resetCategory()},computed:Tg(Tg({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,activeFilterC:z["b"].GET_ACTIVE_FILTERS,airportID:z["b"].GET_AIRPORT_ID})),{},{categoriesVisible:function(){var M=this.categories;return this.isMobile||(M=this.toggle?M:M.slice(0,6)),M},categoriesHidden:function(){return this.categories.length-this.categoriesVisible.length},noDuplicate:function(){if(this.category&&1===this.categoriesVisible.length&&this.category.name===this.categoriesVisible[0].name)return this.setCategory(this.categoriesVisible[0]),!0}}),methods:{updateSelected:function(){var M=this;this.activeFilterC.subcategories.forEach((function(N){var D=M.categories.find((function(M){return M.id===N}));M.setCategory(D)}))},resetCategory:function(){this.activeCategories=[],this.categories.forEach((function(M){M.active=!1}))},setCategory:function(M){if(M){u["a"].set(M,"active",!M.active);var N=this.activeCategories.includes(M.id);N?this.activeCategories=this.activeCategories.filter((function(N){return N!==M.id})):this.activeCategories.push(M.id)}else this.resetCategory()},onChange:function(M){this.setCategory(M),this.$emit("onCategoryChange",this.activeCategories);var N={eventCategory:"buscador",eventAction:"categoria",eventLabel:"".concat(Object(E["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},onToggle:function(){this.toggle=!this.toggle},isActive:function(M){return this.activeCategories.includes(M)},goBack:function(){this.$emit("goBack")}},watch:{"activeFilterC.subcategories":{handler:function(){this.resetCategory(),this.updateSelected()}}}},ug=gg,sg=(D("29f7"),Object(Pj["a"])(ug,ig,eg,!1,null,"7aa9179d",null)),Lg=sg.exports;function Ig(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Ag(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Ig(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Ig(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var zg={name:"app-aenaPointsCategories",mixins:[m,P,Fj["a"]],components:{AenaTerminalsFilter:tg,AenaTerminalsCategories:Lg},props:{points:{type:Array,required:!0},airport:{type:Object,required:!0},filters:{type:Array,required:!0},activeFilters:{type:Object,required:!0},category:{type:Object},categories:{type:Array,required:!0},search:{type:Boolean,default:!1},headerHeight:{type:Number,required:!0}},data:function(){return{grouped:new Map,goToTopVisible:!1}},created:function(){this.setLocation(this.points)},mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:Ag(Ag({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,isRouteMode:z["b"].IS_ROUTE_MODE,airportID:z["b"].GET_AIRPORT_ID})),{},{showCategories:function(){return this.category||this.categories&&this.categories.length},pois:function(){var M=this,N=new Map;return this.points.forEach((function(D){var t=D.properties.attrs.pat_nombre+D.properties.location.name+D.properties.level,i=N.get(t);if(i){var e=M.grouped.get(i.properties.id);e.push(D),M.grouped.set(i.properties.id,e),i.total++}else M.grouped.set(D.properties.id,[D]),D.total=1,N.set(t,D)})),Object(y["a"])(N.values())}}),methods:{setFilter:function(M){this.$emit("onFilter",M)},setCategory:function(M){this.$emit("onCategory",M),this.updateScrollbar()},selectPoint:function(M){if(this.isRouteMode){var N=this.moreClose(this.grouped.get(M.properties.id));this.$emit("onSelect",{component:"aena-route-poi",pointDetail:N})}else this.$emit("onSelect",{component:"aena-point-detail",pointDetail:M.properties,pointGrouped:this.grouped.get(M.properties.id)});var D="".concat(M.properties.location.name,". planta ").concat(M.properties.levelName,". ").concat(this.$t(M.properties.attrs.pat_nombre)),t={eventCategory:"buscador",eventAction:"buscar",eventLabel:"".concat(Object(E["a"])(D)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",t)},getBuildingName:function(M){return"".concat(this.$t("IN")," ").concat((this.filters.find((function(N){return N.id===M}))||{}).name)},getCategoryName:function(M){return"".concat((this.categories.find((function(N){return N.id===M}))||{}).name)},updateScrollbar:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update()}),360)},onScroll:function(M){M.y>=60?this.goToTopVisible=!0:this.goToTopVisible=!1},goToTop:function(){this.$refs.scrollbar.scrollTo(0,0)},goBack:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"aena-points-list";this.$emit("onSelect",{component:M,search:void 0})}},watch:{points:function(M){this.setLocation(M)}}},ng=zg,wg=(D("5a24"),Object(Pj["a"])(ng,_T,FT,!1,null,"2540be6c",null)),rg=wg.exports,yg=function(){var M=this,N=M._self._c;return N("div",{staticClass:"detail-wrapper",class:[M.deviceWidthClass]},[N("div",{staticClass:"spacer",class:{collapsed:M.isCollapsed}}),N("div",{ref:"section",staticClass:"aena-point-detail-container",class:{collapsed:M.isCollapsed},attrs:{tabindex:"0","aria-label":M.$t("POI_DETAIL")+" "+M.title}},[M.isCollapsed?N("button",{staticClass:"btn-close",on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#71777D"}})],1):M._e(),M.isCollapsed?N("button",{staticClass:"btn-more-info",on:{click:function(N){return M.expand()}}},[N("p",[M._v(M._s(M.$t("MORE_INFO")))])]):M._e(),N("header",{ref:"title",staticClass:"header"},[N("div",{staticClass:"title-wrapper"},[N("button",{staticClass:"back",attrs:{"aria-label":M.$t("GO_BACK")},on:{click:function(N){M.isMobile?M.expand():M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#ffffff"}})],1),N("div",{staticClass:"title"},[N("h2",{attrs:{"aria-label":M.title,lang:M.$i18n.locale}},[M._v(M._s(M.title))])])]),N("Icon",{attrs:{icon:M.icon,size:"50px"}})],1),N("div",{staticClass:"scroll-wrapper"},[M.poisGrouped&&M.poisGrouped.length>1&&!M.isCollapsed?N("Pagination",{ref:"pagination",attrs:{items:M.poisGrouped,"items-per-page":1,placeholder:M.placeholder},on:{change:M.onPaginate}}):M._e(),N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.debugMode&&M.poiID?N("p",{staticClass:"debug"},[M._v("POI ID: "+M._s(M.poiID))]):M._e(),M.showDescriptionBlock?N("div",{staticClass:"content"},[M.description||M.image?N("div",{staticClass:"top"},[M.image?N("img",{staticClass:"image",attrs:{src:M.image,alt:M.$t("STORE_IMAGE")}}):M._e(),N("span",{staticClass:"description"},[N("p",[M._v(M._s(M.description))])])]):M._e(),N("div",{staticClass:"observations"},[M._v(M._s(M.observations))]),N("ul",{staticClass:"categories",attrs:{"aria-label":M.$t("CATEGORIES")}},[M._l(M.subcategories,(function(D){return M.isCollapsed?M._e():N("li",{key:D.id},[N("button",{staticClass:"category",on:{click:function(N){return M.filterBySubcategory(D.id)}}},[N("p",[M._v(M._s(D.name))])])])})),M.isCollapsed?N("div",[N("p",M._l(M.subcategories,(function(D,t){return N("span",{key:D.id},[M._v(M._s(D.name)+M._s(t<M.subcategories.length-1?" · ":""))])})),0)]):M._e()],2),M.mail||M.web||M.time||M.phone?N("div",{staticClass:"hr-big"}):M._e(),M.mail||M.web?N("ul",{staticClass:"info-list",attrs:{role:"list","aria-label":M.$t("BRAND_INFO")}},[M.web?N("li",{staticClass:"web extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("VISIT_WEB"),"data-href":M.web,lang:M.$i18n.locale},on:{click:function(N){return M.visitWeb(M.web)}}},[N("p",[M._v(M._s(M.$t("VISIT_WEB")))]),N("Icon",{attrs:{icon:"icon-flecha-horizontal-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),M.mail?N("li",{staticClass:"mail extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("SEND_EMAIL"),lang:M.$i18n.locale},on:{click:function(N){return M.sendEmail(M.mail)}}},[N("p",[M._v(M._s(M.$t("SEND_EMAIL")))]),N("Icon",{attrs:{icon:"icon-contacto-sobre-de-carta-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e()]):M._e(),(M.mail||M.web)&&(M.time||M.phone)?N("div",{staticClass:"hr"}):M._e(),M.time||M.phone?N("ul",{staticClass:"contact-list",attrs:{role:"list","aria-label":M.$t("STORE_INFO")}},[M.time?N("li",{staticClass:"time extra",attrs:{role:"listitem","aria-labelledby":"time-description"}},[N("Icon",{attrs:{icon:"icon-horarios-mini-jj.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])],1):M._e(),M.phone?N("li",{staticClass:"phone extra",attrs:{role:"listitem","aria-labelledby":"phone-description"}},[N("Icon",{attrs:{icon:"icon-atencion-telefonica-t.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_PHONE")))]),N("p",[M._v(M._s(M.phone))])],1):M._e()]):M._e(),M.isCollapsed?N("div",{staticClass:"contact-list-collapsed"},[N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])]):M._e(),M.lastWait?[N("div",{staticClass:"hr"}),N("div",{staticClass:"wait-time"},[N("Icon",{attrs:{icon:"icon-seguridad-t.svg",size:"30px",fill:"#72A300"}}),N("p",[M._v("Atención: el tiempo estimado del paso de este control es de "),N("span",{staticClass:"strong"},[M._v(M._s(M.durationTime(M.lastWait)))])])],1)]:M._e()],2):M._e()])])],1),N("ul",{staticClass:"location",attrs:{role:"list","aria-label":M.$t("STORE_LOCATION")}},[N("li",{attrs:{"aria-label":M.$t("S_LOCATION")}},[N("div",{staticClass:"terminal"},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#72A300"}}),N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.name)+". ")]),N("b",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.floor))]),M._v(M._s(M.location.more?". "+M.location.more:""))])],1)]),M.isCollapsed?M._e():N("li",[M.hasRoute?N("button",{staticClass:"btn",on:{click:M.calculateRoute}},[N("p",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]}),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:M.hasRoute?"#1A2732":"#888888"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]),M.isCollapsed?N("li",[M.hasRoute?N("button",{staticClass:"btn",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.more?M.location.name+" · "+M.floor+" · ":M.placeholder))]),M._v(M._s(M.location.more?" · "+M.location.more:""))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]):M._e()])])])},cg=[],ag={filters:{capitalize:function(M){return M?(M=M.toString(),M.charAt(0).toUpperCase()+M.slice(1)):""}}};function Eg(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===M&&(M=""),M.replace(/(<([^>]+)>)/gi,"")}var og={methods:{durationTime:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},D=N.abbr,t=void 0===D||D,i=Math.round(parseFloat(M)||1),e=i/60;e=e>=1?Math.round(e):0;var j=Math.floor(e/60);j&&(e-=60*j);var T="".concat(i," ").concat(t?"s":this.$t("SECONDS"));if(e&&(T="".concat(e," ").concat(t?"min":this.$t("MINUTES"))),j){var g=T;T="".concat(j," ").concat(t?"h":this.$t("HOURS")),e&&(T+=" ".concat(g))}return T}}};function Og(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function xg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Og(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Og(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Cg={name:"app-aenaPointDetail",mixins:[m,ag,Fj["a"],og,x],components:{},props:{headerHeight:{type:Number,required:!0}},data:function(){return{placeholder:"",header:0,pagination:0,isCollapsed:!1,debugMode:!1}},mounted:function(){var M=this;if(this.isMupiMode&&this.poiId===this.poi.properties.id)this.calculateRoute();else{var N=this.$t("FLOOR");this.placeholder="".concat(this.location.name,". ").concat(N.charAt(0).toUpperCase()+N.slice(1)," ").concat(this.floor),this.$refs.title.focus(),setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$nextTick((function(){return M.$refs.scrollbar.update()}))}),260)}},destroyed:function(){this[z["a"].CLEAR_POI]()},computed:xg(xg({},Object(n["c"])({isMupiMode:z["b"].IS_MUPI_MODE,poiId:z["b"].GET_POI_ID,poiDId:z["b"].GET_POID_ID,isMobile:z["b"].GET_IS_MOBILE,poi:z["b"].GET_POI,poisGrouped:z["b"].GET_POI_GROUPED,poisCatalog:z["b"].GET_POIS_CATALOG,airportID:z["b"].GET_AIRPORT_ID,airport:z["b"].GET_AIRPORT})),{},{attrs:function(){return this.poi.properties.attrs||{}},title:function(){return this.$t(this.attrs.pat_nombre)},image:function(){var M=this.attrs.pat_imagen_marca_0||this.attrs.pat_imagen_marca_1;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},icon:function(){return this.poi.properties.icon},description:function(){return Eg(this.attrs.pat_descripcion_0||this.attrs.pat_descripcion_1)},subcategories:function(){var M=this;return this.poi.properties.subcategories.reduce((function(N,D){return M.poisCatalog.some((function(M){var t=M.subcategories.find((function(M){return M.id===D}));return t&&N.push(t),!!t})),N}),[])},phone:function(){return Eg(this.attrs.pat_telefono_0||this.attrs.pat_telefono_1)},mail:function(){return Eg(this.attrs.pat_email)},web:function(){return Eg(this.attrs.pat_enlace_0||this.attrs.pat_enlace_1)},moreInformation:function(){var M=this.attrs.pat_url;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},time:function(){return Eg(this.attrs.pat_horario_0||this.attrs.pat_horario_1)},floor:function(){return this.poi.properties.levelName},location:function(){return this.setLocation([this.poi]),this.poi.properties.location},showDescriptionBlock:function(){return this.image||this.description||this.subcategories.length||this.phone||this.mail||this.web||this.time||this.observations},tagLabel:function(){return"".concat(this.poi.properties.location.name,". Planta ").concat(this.poi.properties.levelName,". ").concat(this.$t(this.poi.properties.attrs.pat_nombre))},lastWait:function(){return 2*this.poi.properties.lastWait},hasRoute:function(){return this.airport.has_graph},poiID:function(){return this.poi.properties.id},coordinates:function(){var M=Number(this.poi.geometry.coordinates[1].toFixed(5)),N=Number(this.poi.geometry.coordinates[0].toFixed(5));return[M,N]},observations:function(){return this.attrs.pat_observaciones}}),methods:xg(xg({},Object(n["b"])([z["a"].LOAD_POI,z["a"].CLEAR_POI])),{},{onPaginate:function(M){var N=M[0];N.properties.id!==this.poi.properties.id&&this[z["a"].LOAD_POI]({poi:N,pointGrouped:this.poisGrouped})},filterBySubcategory:function(M){this.$emit("onSelect",{component:"aena-points-categories",subcategories:[M]})},goBack:function(){this.isMobile?this.$emit("goBack"):this.$emit("onSelect",{component:"aena-points-categories"})},calculateRoute:function(){if(this.$emit("onSelect",{pointDetail:this.poi,component:"aena-route-pre"}),this.poiDId){var M=this.findPoi(this.poiDId);this.$emit("onSelect",{pointDetail:M,component:"aena-route-pre"})}},expand:function(){var M=this;this.isCollapsed=!this.isCollapsed,this.$emit("onCollapsed",this.isCollapsed),window.setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$refs.scrollbar.update()}),260)},visitWeb:function(M){var N={eventCategory:"buscador",eventAction:"visitar web",eventLabel:Object(E["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")},sendEmail:function(M){var N={eventCategory:"buscador",eventAction:"enviar email",eventLabel:Object(E["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.location.href="mailto:".concat(M)},moreInfo:function(M){var N={eventCategory:"buscador",eventAction:"mas informacion",eventLabel:Object(E["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")}}),watch:{isMobile:{immediate:!0,handler:function(M){this.isCollapsed=M}}}},Sg=Cg,lg=(D("e182"),Object(Pj["a"])(Sg,yg,cg,!1,null,"0aae3214",null)),kg=lg.exports;function Qg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function dg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Qg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Qg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Yg=function(){var M=this,N=M._self._c;return M.route.length?N("div",{ref:"route",staticClass:"aena-route-container",class:[M.deviceWidthClass],attrs:{id:"aena-route-container",tabindex:"0","aria-label":M.$t("ROUTE_SUMMARY")}},[N("div",{staticClass:"time"},[N("h2",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),M.explorerMode?N("button",{directives:[{name:"t",rawName:"v-t",value:"CLOSE",expression:"'CLOSE'"}],staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE")+". "+M.$t("ROUTE_SUMMARY")},on:{click:M.close}}):M._e()]),N("Scrollbar",{ref:"scrollbar"},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("ul",{staticClass:"content",attrs:{role:"list",tabindex:"0"}},[N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{lang:M.$i18n.locale,"aria-label":M.$t("ORIGIN")+". "+("point"===M.origin.mode?M.$options.filters.displayCoordinates(M.origin.geometry.coordinates):M.$t(M.origin.properties.attrs.pat_nombre))+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName},on:{click:function(N){return M.viewInMap(M.origin.geometry.coordinates,M.origin.properties.building,M.origin.properties.level)}}},[N("Icon",{attrs:{icon:M.origin.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.origin.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.origin.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.origin.properties.levelName))])])],1)]),[M._l(M.route,(function(D,t){return[M._l(D.instructions,(function(i,e){return[i.hidden?M._e():N("li",{class:dg({"security-control":i.securityControl||i.oneWay},i.type),attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.getStepAriaLabel(i)},on:{click:function(N){M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))},keydown:function(N){if(!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter"))return null;M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))}}},[N("Icon",{attrs:{icon:"route-icons/"+i.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[N("p",[M._v(M._s("tag"!==i.type?M.$t("IN_PREPOSITION"):"")+" "),N("b",[M._v(M._s(M.getDistance(i.distance))+" m")])]),N("span",[M._v(M._s(M.$t(i.action,dg({},M.getMsg({destination:i.direction,transport:i.transport}))))+"\n "),"GO_UP"===i.action||"GO_DOWN"===i.action?[M._v(". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor))]:M._e()],2),"tag"!==i.type?N("p",{staticClass:"time"},[M._v(M._s(M.durationTime(i.time)))]):M._e()])],1)]),!i.hidden&&i.msg&&i.msg.label?N("li",{staticClass:"msg",class:{"security-control":i.securityControl||i.oneWay},attrs:{"aria-label":M.$t(i.msg.label,dg({},M.getMsg(i.msg.props))),role:"listitem"}},[N("span",[M._v(M._s(M.$t(i.msg.label,dg({},M.getMsg(i.msg.props)))))])]):M._e(),i.changeFloor||i.changeBuilding?N("li",{staticClass:"change-floor",class:i.type,attrs:{role:"listitem","aria-label":i.building.name+" "+M.$t("FLOOR")+" "+i.currentFloor}},[N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(i.building.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor)+"\n ")])]):M._e()]})),M.newPoints[t]?N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":("point"===M.newPoints[t].mode?M.$options.filters.displayCoordinates(M.newPoints[t].geometry.coordinates):M.$t(M.newPoints[t].properties.attrs.pat_nombre))+". "+M.newPoints[t].properties.location.name+". "+M.$t("FLOOR")+" "+M.newPoints[t].properties.levelName},on:{click:function(N){return M.viewInMap(M.newPoints[t].geometry.coordinates,M.newPoints[t].properties.building,M.newPoints[t].properties.level)}}},[N("Icon",{attrs:{icon:M.newPoints[t].properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.newPoints[t].mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.newPoints[t].geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.newPoints[t].properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.newPoints[t].properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.newPoints[t].properties.levelName))])])],1)]):M._e()]}))],N("li",{staticClass:"destination",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.$t("DESTINATION")+". "+("point"===M.destination.mode?M.$options.filters.displayCoordinates(M.destination.geometry.coordinates):M.$t(M.destination.properties.attrs.pat_nombre))+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName},on:{click:function(N){return M.viewInMap(M.destination.geometry.coordinates,M.destination.properties.building,M.destination.properties.level)}}},[N("Icon",{attrs:{icon:M.destination.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.destination.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.destination.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.destination.properties.levelName))])])],1)])],2)])])],1):M._e()},Ug=[],pg={filters:{displayCoordinates:function(M){if(!M||!M.length)return"";var N=M.slice(0,2);return[N[1],N[0]].map((function(M){return M.toFixed(5)})).join(", ")}}};function hg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function fg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?hg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):hg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var mg={name:"app-aenaRoute",mixins:[P,m,ag,og,x,pg,Fj["a"]],components:{Searcher:wT,AenaPoints:Nu},props:{headerHeight:{type:Number,required:!0}},data:function(){return{}},mounted:function(){this.accessibilityEvents()},updated:function(){this.updateScrollbar(),this.accessibilityEvents()},computed:fg({},Object(n["c"])({airportID:z["b"].GET_AIRPORT_ID,floor:z["b"].GET_FLOOR,building:z["b"].GET_BUILDING,explorerMode:z["b"].GET_EXPLORERMODE})),methods:fg(fg({},Object(n["b"])([z["a"].SET_COORDINATES])),{},{accessibilityEvents:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},close:function(){this.$emit("onCloseRoute")},viewInMap:function(M,N,D){this.saveFloor({buildingId:N,floorId:D,force:!0,airportID:this.airportID,tag:"explorador"}),this[z["a"].SET_COORDINATES]({coordinates:M,zoom:20})},selectGeometry:function(M,N,D){var t=D.oldStep,i=D.special,e=N[M.geometryindex],j=M.tag.type.toUpperCase(),T=e.geometry.coordinates.slice(0,2),g=e.properties.building;v["c"].includes(j)&&(g=(i?t:N[t.geometryindex]).properties.building);var u=e.geometry.coordinates[e.geometry.coordinates.length-1]/this.routeC.z;this.viewInMap(T,g,u)},getDistance:function(M){return this.$n(M>1?M:1,"noDecimal")},getMsg:function(M){var N=fg({},M);return N.direction&&(N.direction=this.$t(N.direction)),N.duration&&(N.duration=this.durationTime(N.duration)),N.destination&&(N.destination=this.$t(N.destination)),N.transport&&(N.transport=this.$t(N.transport)),N.oneWay&&(N.oneWay=this.$t("ONEWAY_OPENING")),N},getOldStep:function(M){var N=M.instructions,D=M.index,t=M.rootIndex;return D?{oldStep:N[D-1]}:t?{oldStep:this.newPoints[t-1],special:!0}:{oldStep:this.origin,special:!0}},getStepAriaLabel:function(M){var N="tag"===M.type,D="GO_UP"===M.action||"GO_DOWN"===M.action?this.$t("FLOOR")+M.currentFloor+". ":"",t="tag"!==M.type?this.durationTime(M.time,{abbr:!1})+". ":"";return"".concat(N?"":this.$t("IN_PREPOSITION")," ").concat(this.$n(M.distance,"noDecimal")," ").concat(this.$t("METERS"),". ").concat(this.$t(M.action,this.getMsg({destination:M.direction,transport:M.transport})),". ").concat(D," ").concat(t," ").concat(this.$t(M.msg.label,this.getMsg(M.msg.props)))},updateScrollbar:function(){var M=this;window.setTimeout((function(){M.$refs.scrollbar.update()}),100)}})},vg=mg,Bg=(D("2848"),Object(Pj["a"])(vg,Yg,Ug,!1,null,"4df4a570",null)),bg=Bg.exports;function Pg(M,N){var D=M.toLowerCase().split(" ");return D.every((function(M){var D=new RegExp(Zg(Gg(M)),"gi");return Zg(N).match(D)}))}function Zg(M){return M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Gg(M){return M.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Rg=D("b76a"),Wg=D.n(Rg);function Xg(M){var N=M;return Array.isArray(N)&&(N=N[0]),N}var Hg=D("efd7");D("1c4c");function _g(M,N,D){Array.from(N.children).forEach((function(N){N.classList.contains(M)||(Fg(N,D),Array.from(N.querySelectorAll("*")).forEach((function(M){Fg(M,D)})))}))}function Fg(M,N){var D=M.getAttribute("tabindex"),t=M.getAttribute("aria-hidden");N?(M.setAttribute("data-tabindex",null!==D?D:"none"),M.setAttribute("data-aria-hidden",null!==t?t:"none"),M.setAttribute("aria-hidden",N),M.setAttribute("tabindex",-1),M.setAttribute("data-inert",M.classList.contains("inert")?"true":"false"),M.classList.add("inert")):("none"!==M.getAttribute("data-tabindex")&&null!==M.getAttribute("data-tabindex")?M.setAttribute("tabindex",M.getAttribute("data-tabindex")):M.removeAttribute("tabindex"),"none"!==M.getAttribute("data-aria-hidden")&&null!==M.getAttribute("data-aria-hidden")?M.setAttribute("aria-hidden",M.getAttribute("data-aria-hidden")):M.removeAttribute("aria-hidden"),"false"===M.getAttribute("data-inert")&&M.classList.remove("inert"),M.removeAttribute("data-aria-hidden"),M.removeAttribute("data-tabindex"),M.removeAttribute("data-inert"))}function Vg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Jg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Vg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Vg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var qg=navigator.userAgent||navigator.vendor||window.opera,Kg={name:"AenaPoints",mixins:[x,og,ag,P,pg,Fj["a"]],components:{draggable:Wg.a,AenaSearch:oT,Searcher:wT,"aena-highlighted-points":BT,"aena-points-list":HT,"aena-points-categories":rg,"aena-point-detail":kg,"aena-route":bg},props:{search:{type:Boolean,default:!0}},data:function(){return{view:"aena-highlighted-points",lastView:"",currentProps:{highlighted:[],points:[],airport:void 0,category:void 0,categories:[],filters:[],activeFilters:{subcategories:[],building:void 0,search:void 0,associatedParking:[]},search:!1,headerHeight:0},blockedPois:!1,toggleDrag:!1,searcherFocus:!1,memoryValue:void 0,isVisible:!1,appBanner:!1,isCollapsed:!1,pmr_enabled:"true"}},created:function(){this.category?this.onSelect({component:"aena-points-categories",subcategories:[this.category]}):this.setHigtLight(this.poisCatalog),this.poi&&this.setPoi(this.poi),this.routeConfig&&this.routeConfig.info&&(this[z["a"].LOAD_ROUTE]({routeMode:!0}),this.setDestination(),this.toggleBlocked())},updated:function(){this.$refs.header&&this.$refs.header.offsetHeight!==this.currentProps.headerHeight&&(this.currentProps.headerHeight=this.$refs.header.offsetHeight),this.$refs.time&&this.$refs.time.focus()},computed:Jg(Jg({},Object(n["c"])({isMupiMode:z["b"].IS_MUPI_MODE,isMobile:z["b"].GET_IS_MOBILE,explorerMode:z["b"].GET_EXPLORERMODE,airport:z["b"].GET_AIRPORT,airportID:z["b"].GET_AIRPORT_ID,category:z["b"].GET_CATEGORY,poisCatalog:z["b"].GET_POIS_CATALOG,activeFiltersC:z["b"].GET_ACTIVE_FILTERS,poisList:z["b"].GET_POIS_LIST,poi:z["b"].GET_POI,poiId:z["b"].GET_POI_ID,poiDId:z["b"].GET_POID_ID,buildings:z["b"].GET_BUILDINGS,isRouteMode:z["b"].IS_ROUTE_MODE,stepsAdded:z["b"].GET_NEW_POINT,hasNewPoint:z["b"].HAS_NEW_POINT,getView:z["b"].GET_VIEW,routeConfig:z["b"].GET_ROUTE_CONFIG,pmrProfile:z["b"].GET_PMR_PROFILE,pmrDefaultProfile:z["b"].GET_DEFAULT_PMR_PROFILE})),{},{currentCategory:function(){var M=this;return!!this.currentProps.category&&this.poisCatalog.find((function(N){return N.id===M.currentProps.category.id}))},addBlocked:function(){return!(this.origin&&this.destination)||this.hasNewPoint},pmrActive:function(){return null!==this.pmrProfile},isAndroid:function(){return/android/i.test(qg)},isIOS:function(){return/iPad|iPhone|iPod/.test(qg)&&!window.MSStream},appLink:function(){var M="";return this.isAndroid&&(M="https://play.google.com/store/apps/details?id=es.aena.mobile"),this.isIOS&&(M="https://apps.apple.com/es/app/aena/id686440022"),M}}),methods:Jg(Jg(Jg({},Object(n["b"])([z["a"].SET_FEEDBACK,z["a"].LOAD_ACTIVE_FILTERS,z["a"].LOAD_VIEW,z["a"].REMOVE_STEP,z["a"].SET_PMR_PROFILE])),Object(n["d"])([z["c"].SAVE_PMR_CONFIG_VISIBILITY])),{},{resetActiveFilters:function(){this.currentProps.category=void 0,this.currentProps.activeFilters={subcategories:[],building:this.currentProps.activeFilters.building,associatedParking:this.findAssociatedParkings(this.currentProps.activeFilters.building),search:void 0},this.saveActiveFilters()},getActiveFilters:function(){this.currentProps.activeFilters=this.activeFiltersC},saveActiveFilters:function(){this[z["a"].LOAD_ACTIVE_FILTERS](this.currentProps.activeFilters)},onInputFocus:function(){this.searcherFocus=!0,this.isVisible=!0},onInputBlur:function(){this.searcherFocus=!1},onInputChange:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},N=M.value,D=M.name;this.setDestination(D),this.currentProps.category=void 0,this.currentProps.activeFilters.subcategories=[],this.currentProps.activeFilters.categories=[],this.currentProps.activeFilters.search=N,this.currentProps.search=!!N,this.saveActiveFilters(),N?this.onSelect({component:"aena-points-categories",search:N}):(this.view="aena-points-list",this.onSelect({component:"aena-points-list"}))},onInputEnterKey:function(){this.$refs.component.$refs.section.focus()},goBack:function(){this.isVisible=!this.isVisible},onSelect:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T,g,u,s,L,A,n,w,r,y,c,a=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:i=N.category,e=N.component,j=N.pointDetail,T=N.search,g=N.pointGrouped,u=N.subcategories,M.t0=e,M.next="aena-highlighted-points"===M.t0?4:"aena-points-list"===M.t0?7:"aena-points-categories"===M.t0?10:"aena-point-detail"===M.t0?23:"aena-route-pre"===M.t0?26:"aena-route-poi"===M.t0?33:41;break;case 4:return this.resetActiveFilters(),this.setHigtLight(this.poisCatalog),M.abrupt("break",41);case 7:return this.resetActiveFilters(),this.setCategories(this.poisCatalog),M.abrupt("break",41);case 10:if(this.getActiveFilters(),s=i||this.currentProps.category,L=u&&u.length||this.currentProps.activeFilters.subcategories.length,A=this.currentProps.activeFilters.building,n=this.currentProps.activeFilters.search||T,s||L||A||n){M.next=18;break}return this.onSelect({component:this.lastView}),M.abrupt("return");case 18:return this.currentProps.activeFilters.subcategories=u||this.currentProps.activeFilters.subcategories,w=i||this.currentProps.category,!w&&this.currentProps.activeFilters.subcategories&&(w=this.poisCatalog.find((function(M){return M.subcategories.some((function(M){return M.id===a.currentProps.activeFilters.subcategories[0]}))}))),this.setPoisCategories({category:w,search:T||this.currentProps.activeFilters.search}),M.abrupt("break",41);case 23:return this.saveActiveFilters(),this.savePoi({poiId:j.id,pointGrouped:g,airportID:this.airportID,tag:"list"}),M.abrupt("break",41);case 26:return this.memoryValue=void 0,"aena-point-detail"===this.view&&this.onSelect({component:"aena-highlighted-points"}),r="destination",this.isMupiMode&&this.poiId===j.properties.id&&(r="origin"),this.isMupiMode&&this.poiDId===j.properties.id&&(r="destination"),this[z["a"].LOAD_ROUTE]((D={i18n:this.$i18n},Object(I["a"])(D,r,j),Object(I["a"])(D,"routeMode",!0),D)),M.abrupt("return");case 33:return this.memoryValue=void 0,y=(this.destinationName||"").includes("step")?"step":this.destinationName,c=y||(this.origin?"destination":"origin"),this.onSelect({component:"aena-highlighted-points"}),M.next=39,this[z["a"].LOAD_ROUTE]((t={i18n:this.$i18n},Object(I["a"])(t,c,j),Object(I["a"])(t,"routeMode",!0),t));case 39:return this.focus(),M.abrupt("return");case 41:e!==this.view&&(this.lastView=this.view),this.view=e,this.isMobile&&"aena-point-detail"===this.view&&(this.$refs.search.active=!1,this.$refs.search.focus=!1,this.isVisible=!0),!this.isMobile||"aena-point-detail"!==this.lastView&&"aena-route"!==this.lastView||"aena-highlighted-points"!==this.view||this.$nextTick((function(){a.$refs.search.active=!1,a.$refs.search.focus=!1,a.isVisible=!1}));case 45:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),onFilter:function(M){this.currentProps.activeFilters.building=M,this.currentProps.activeFilters.associatedParking=this.findAssociatedParkings(M),this.setPois(this.currentProps.activeFilters.search)},onCategory:function(M){this.onSubcategory(M,this.currentProps.activeFilters.search)},onSubcategory:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;this.currentProps.activeFilters.subcategories=M,this.setPois(N)},setFilterCategories:function(M){var N=this,D=M||this.currentProps.activeFilters.search;if(D){var t=this.poisCatalog.map((function(M){return M.subcategories})).flat(),i=this.currentProps.points.reduce((function(M,N){var i=N.properties.subcategories,e=i.reduce((function(M,N){var i=t.find((function(M){return M.id===N})),e=new RegExp(Zg(D),"gi");return i.name.match(e)&&M.push(N),M}),[]);return e.length?M.push.apply(M,Object(y["a"])(e)):M.push.apply(M,Object(y["a"])(i)),M}),[]);this.currentProps.categories=Object(y["a"])(new Set(i)).reduce((function(M,N){var D=t.find((function(M){return M.id===N}));return D&&M.push(D),M}),[])}else if(this.currentCategory)this.currentProps.categories=this.poisCatalog.find((function(M){return M.id===N.currentCategory.id})).subcategories;else{var e=this.poisCatalog.map((function(M){return M.subcategories})).flat();this.currentProps.categories=Object(y["a"])(new Set(e.map((function(M){return M.id})))).map((function(M){return e.find((function(N){return N.id===M}))}))}},setHigtLight:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.currentProps.highlighted=M.filter((function(M){return M.featured})).slice(0,6).sort((function(M,N){return M.featured_order-N.featured_order}))},setCategories:function(M){this.currentProps.points=M},setPois:function(M){var N=this;M&&M!==this.currentProps.activeFilters.search&&(this.currentProps.activeFilters.subcategories=[]);var D=M?this.poisCatalog.reduce((function(D,t){return D=D.concat(t.subcategories.filter((function(D){return N.findWord(D.name,M)}))),D}),[]).map((function(M){return M.id})):[];this.currentProps.points=this.poisList.features.filter((function(t){return N.findSubcategoriesInPois(t)&&N.findPoisInSubcategoriesActives(t)&&N.findPoisInBuildingActives(t)&&N.findPoisInSearchActives(t,M,D)})).sort(this.orderPois)},orderPois:function(M,N){if(M.properties.building>N.properties.building)return 1;if(M.properties.building<N.properties.building)return-1;if(M.properties.building===N.properties.building){if(M.properties.level>N.properties.level)return 1;if(M.properties.level<N.properties.level)return-1;if(M.properties.level===N.properties.level){if(M.properties.attrs.pat_nombre>N.properties.attrs.pat_nombre)return 1;if(M.properties.attrs.pat_nombre<N.properties.attrs.pat_nombre)return-1}}return 0},findSubcategoriesInPois:function(M){var N=this;return!this.currentProps.category||M.properties.subcategories.some((function(M){return N.currentCategory.subcategories.some((function(N){return N.id===M}))}))},findPoisInSubcategoriesActives:function(M){var N=this;return!this.currentProps.activeFilters.subcategories.length||M.properties.subcategories.some((function(M){return N.currentProps.activeFilters.subcategories.includes(M)}))},findPoisInBuildingActives:function(M){return!this.currentProps.activeFilters.building||M.properties.building===this.currentProps.activeFilters.building||this.currentProps.activeFilters.associatedParking.some((function(N){return N===M.properties.building}))},findPoisInSearchActives:function(M,N,D){return!N||this.findWord(M.properties.attrs.pat_nombre,N)||this.findSubcategoryWord(M.properties.subcategories,D)},findWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",N=arguments.length>1?arguments[1]:void 0;return!!M&&Pg(N,M)},findSubcategoryWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;return!!M.length&&M.some((function(M){return N.includes(M)}))},findAssociatedParkings:function(M){var N=this.buildings.find((function(N){return N.id===M}));return N?N.poi_search_group_ids:[]},setPoisCategories:function(M){var N=M.category,D=M.search;this.currentProps.airport=this.airport,this.currentProps.category=N,this.currentProps.filters=this.buildings,this.onSubcategory(this.currentProps.activeFilters.subcategories,D),this.setFilterCategories(D)},setPoi:function(M){this.onSelect({component:"aena-point-detail",pointDetail:{id:M.properties.id}})},closeRoute:function(){var M=this;this[z["a"].CLEAR_ROUTE](),this[z["a"].SET_FEEDBACK](),this.blockedPois=!1,this.memoryValue=void 0;var N="aena-route"===this.view?"aena-points-categories":this.view;this.onSelect({component:N,category:this.currentProps.category}),this.$nextTick((function(){M.isMobile&&"aena-highlighted-points"===N&&(M.$refs.container.classList.remove("visible"),M.isVisible=!1)}))},resetView:function(){this.onSelect({component:"aena-highlighted-points"})},clearStep:function(M,N,D){if(this.explorerMode){this.currentSearch=void 0;var t,i=this.steps.length>2&&!N,e=this.steps[M],j=!e||!e.new||!D;if(this.memoryValue)"origin"===this.destinationName&&M++,this[z["a"].LOAD_ROUTE]((t={i18n:this.$i18n},Object(I["a"])(t,this.destinationName,this.memoryValue),Object(I["a"])(t,"reset",!0),t));if(this.memoryValue=void 0,this.memoryValue=e&&!e.new?e:void 0,this.blockedPois=!1,this.resetView(),this.setDestination(N),this.focus(N),j){var T=Object(y["a"])(this.steps);if(this[z["a"].REMOVE_STEP]({index:M,hold:D}),i){var g,u=M===T.length-1?M-1:M+1;this[z["a"].LOAD_ROUTE]((g={i18n:this.$i18n},Object(I["a"])(g,this.destinationName,T[u]),Object(I["a"])(g,"reset",!0),g)),this[z["a"].REMOVE_STEP]({index:u})}}var s=Xg(this.$refs[N]);this.memoryValue&&"point"!==this.memoryValue.mode&&s&&(s.inputValue=this.$t(this.memoryValue.properties.attrs.pat_nombre),s.onInputChange())}},addStep:function(){this.blockedPois=!1,this.addBlocked||(this.setDestination("step"+this.stepsAdded.length),this.resetView(),this[z["a"].LOAD_ROUTE]({i18n:this.$i18n,reset:!0,routeMode:!0,step:{new:!0}}))},toggleBlocked:function(){if(!this.blockedPois&&(this.onSelect({component:"aena-route"}),this.origin&&this.destination)){var M=Object(Hg["a"])(this.origin,this.$i18n),N=Object(Hg["a"])(this.destination,this.$i18n),D={eventCategory:"como llegar",eventAction:"clic en ruta",eventLabel:"".concat(Object(E["a"])(M)," - ").concat(Object(E["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)}this.blockedPois=!this.blockedPois},focus:function(M){var N=M||this.destinationName;if(N){var D=Xg(this.$refs[N]);D.onFocus()}},onDrag:function(M){this.toggleDrag=!this.toggleDrag},onTransitionEnter:function(){this.searcherFocus||this.$refs.component.$refs.section.focus()},toggleBanner:function(){this.appBanner=!this.appBanner},toggleCollapsed:function(M){this.isCollapsed=M,this.$emit("toggle",M)},showPMRConfig:function(){this[z["c"].SAVE_PMR_CONFIG_VISIBILITY](!0),window.setTimeout((function(){var M=document.querySelector(".flughaveno-map"),N=document.querySelector(".pmr-popup");_g("pmr-wrapper",M,!0),N.focus()}),300)},togglePMR:function(){this[z["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.pmrDefaultProfile)}}),watch:{poisCatalog:function(M){this.setHigtLight(M)},poi:function(M,N){(!N||M&&M.properties.id!==N.properties.id)&&this.setPoi(M)},origin:function(M,N){!M&&N&&this.$refs.origin.onFocus()},destination:function(M,N){!M&&N&&this.$refs.destination.onFocus()},getView:function(M){M&&"aena-point-detail"===this.view&&this.onSelect({component:M}),this[z["a"].LOAD_VIEW]()},poisList:function(M){this.setPois()},isRouteMode:function(M){M||this.onSelect({component:"aena-highlighted-points"})}}},$g=Kg,Mu=(D("7aee"),Object(Pj["a"])($g,TT,gT,!1,null,"876da964",null)),Nu=Mu.exports,Du=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminal-selector-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("EXPLORE_MAP_TERMINAL_PARKING")))]),N("DropDown",{ref:"dropdown",attrs:{"click-outside":!0,"no-trigger":"",label:M.building&&M.floorC?M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING")+". "+M.$t("SELECTED")+" "+M.building.name+". "+M.$t("FLOOR")+" "+M.floorC.name:M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING"),height:M.isMobile?"100%":"auto"},on:{toggle:M.onDropdownToggle},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger",class:{selected:M.floorC,parking:M.floorC&&"TERMINAL"!==M.selected.category}},[M.floorC?M._e():N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),M.floorC||M.isMobile?M._e():N("p",{directives:[{name:"t",rawName:"v-t",value:"EXPLORE_TERMINAL_PARKING",expression:"'EXPLORE_TERMINAL_PARKING'"}]}),M.floorC?N("span",{staticClass:"icon-terminal",style:{backgroundColor:M.building.color,color:M.building.font_color}},[N("p",[M._v(M._s(M.building.short_name))])]):M._e(),M.floorC?N("p",[M._v(M._s(M.isMobile?"":M.building.name+".")+" "),M.isMobile?N("span",[M._v("P")]):N("span",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR"))))]),M._v(" "+M._s(M.floorC.name))]):M._e(),M.floorC&&M.isMobile?N("span",{staticClass:"line"}):M._e(),M.isMobile?M._e():N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:M.floorC?"#ffffff":"#1A2732"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"content-wrapper"},[M.isMobile?N("div",{staticClass:"header"},[M.selected?N("p",[M._v(M._s(M.$t("SELECT_FLOOR_SHORT")))]):N("p",[M._v(M._s(M.$t("EXPLORE_MOBILE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeDropdown}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),N("div",{staticClass:"primary"},[N("AenaTerminalsAccordion",{ref:"accordion",attrs:{data:M.accordionData,type:M.type,active:M.active},on:{onItemSelected:M.onItemSelected,onToggle:M.onToggle}})],1),N("div",{staticClass:"secondary"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.selected?N("div",{ref:"floors",staticClass:"selection",attrs:{"aria-label":M.$t("FLOORS"),tabindex:"0",role:"listbox"}},[N("h3",{directives:[{name:"t",rawName:"v-t",value:"FLOORS",expression:"'FLOORS'"}],attrs:{"aria-hidden":"true"}}),N("transition-group",{style:{"--total":M.selected.levels.length},attrs:{appear:"",tag:"ul",name:"slide-in"}},M._l(M.selected.levels,(function(D,t){return N("li",{key:D.id,staticClass:"floor",style:{"--i":t}},["A"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info left"},[N("Icon",{attrs:{icon:"categories/Llegadas_T.svg",fill:"#71777D"}})],1):M._e(),N("button",{class:{active:M.floor&&M.floor.id===D.id},attrs:{role:"option","aria-label":M.$t("FLOOR")+" "+D.name},on:{click:function(N){return M.onSelectFloor(D)}}},[M._v("\n "+M._s(D.name)+"\n ")]),"D"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info right"},[N("Icon",{attrs:{icon:"categories/Salidas_T.svg",fill:"#71777D"}})],1):M._e()])})),0)],1):N("div",{staticClass:"no-selection"},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s("terminals"===M.type?M.$t("SELECT_TERMINAL"):M.$t("SELECT_PARKING"))+" "),N("b",{directives:[{name:"t",rawName:"v-t",value:"FLOOR",expression:"'FLOOR'"}]})])])])])],1),N("button",{staticClass:"btn-back",class:{"no-selected":!M.floor},attrs:{disabled:!M.floor,"aria-label":M.$t("CLEAR_SELECTION")},on:{click:M.clear}},[M.floor?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#E9ECEF"}}),M.isMobile?N("p",[M._v(M._s(M.$t("EXIT")))]):M._e()],1)])]},proxy:!0}])})],1)},tu=[],iu=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-accordion-container"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[N("div",{staticClass:"terminals accordion-item",class:{active:"terminals"===M.activeItem},attrs:{role:"select"}},[N("button",{staticClass:"btn-accordion",class:{active:"terminals"===M.activeItem},attrs:{id:"btn-terminals",disabled:M.activeItem&&"terminals"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"terminals"===M.activeItem,"aria-controls":"sect-terminals"},on:{click:function(N){return M.toggle("terminals")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"TERMINALS",expression:"'TERMINALS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["terminals"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-terminals",role:"listbox","aria-labelledby":"btn-terminals"}},M._l(M.terminals,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,role:"option","aria-hidden":!D.levels.length},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+"\n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()]),N("span",{staticClass:"line"})],1),N("div",{staticClass:"parkings accordion-item",class:{active:"parkings"===M.activeItem}},[N("span",{staticClass:"line"}),N("button",{staticClass:"btn-accordion",class:{active:"parkings"===M.activeItem},attrs:{id:"btn-parkings",disabled:M.activeItem&&"parkings"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"parkings"===M.activeItem},on:{click:function(N){return M.toggle("parkings")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-p-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"PARKINGS",expression:"'PARKINGS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["parkings"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-parkings",role:"listbox","aria-labelledby":"btn-parkings"}},M._l(M.parkings,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content parking",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,"aria-hidden":!D.levels.length,role:"option"},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+" \n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()])],1),N("br",{staticClass:"clear"})])])],1)},eu=[],ju=D("9d63"),Tu=D.n(ju),gu={name:"app-aenaTerminalsAccordion",mixins:[],components:{VuePerfectScrollbar:Tu.a},props:{data:{type:[Object,Array],required:!0},type:{type:String,required:!0},active:{type:String,required:!1}},data:function(){return{activeItem:this.type,activeSubItem:this.active}},mounted:function(){this.updateScroll()},computed:{terminals:function(){return this.data.terminals.items},parkings:function(){return this.data.parkings.items}},methods:{toggle:function(M){this.activeItem=M,this.activeSubItem=void 0,this.$emit("onToggle",M),this.updateScroll()},select:function(M){this.activeSubItem=M.name,this.$emit("onItemSelected",M)},updateScroll:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update(),M.$refs.scrollbar.scrollTo(0,0)}),360)},enter:function(M){var N=this;M.style.height="auto";var D=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=D,N.updateScroll()}))},afterEnter:function(M){M.style.height="auto"},leave:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}},watch:{type:function(M){this.activeItem=M},active:function(M){this.activeSubItem=M}}},uu=gu,su=(D("8cf2"),Object(Pj["a"])(uu,iu,eu,!1,null,"731b6476",null)),Lu=su.exports;function Iu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Au(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Iu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Iu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var zu={name:"app-aenaTerminalSelector",mixins:[ag,Fj["a"]],components:{AenaTerminalsAccordion:Lu},props:{},data:function(){return{selected:void 0,floor:void 0,type:"terminals",open:!1}},created:function(){this.initData()},computed:Au(Au({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,buildings:z["b"].GET_BUILDINGS,building:z["b"].GET_BUILDING,floorC:z["b"].GET_FLOOR,airportID:z["b"].GET_AIRPORT_ID})),{},{accordionData:function(){var M={id:"1",title:"terminales",items:this.buildings.filter((function(M){return"TERMINAL"===M.category}))},N={id:"2",title:"parkings",items:this.buildings.filter((function(M){return"TERMINAL"!==M.category}))};return{terminals:M,parkings:N}},active:function(){return(this.selected||{}).name}}),methods:Au(Au({},Object(n["b"])([z["a"].LOAD_FLOOR,z["a"].LOAD_VIEW,z["a"].RESET_BBOX])),{},{initData:function(){this.type="terminals",this.selected=this.building,this.building&&(this.type="TERMINAL"===this.building.category?"terminals":"parkings"),this.floor=this.floorC,this.updateScrolls()},clear:function(){var M=this.selected;this.selected=null,this.floor=null,this[z["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected}),this[z["a"].RESET_BBOX](M),this.closeDropdown()},closeDropdown:function(){this.$refs.accordion.activeSubItem=void 0,this.$refs.dropdown.open=!1},onItemSelected:function(M){var N=this;this.selected=M,this.floor=void 0;var D={eventCategory:"explorador",eventAction:"clic",eventLabel:Object(E["a"])(M.name),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this.$nextTick((function(){N.updateScrolls(),N.$refs.floors.focus()}))},onToggle:function(M){this.type=M,this.selected=void 0,this.floor=void 0},onDropdownToggle:function(){this.initData(),this.updateScrolls()},updateScrolls:function(){var M=this;setTimeout((function(){M.$refs.accordion.$refs.scrollbar.update(),M.$refs.scrollbar.update()}),360)},onSelectFloor:function(M){this.floor=M,this[z["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected});var N="".concat(this.selected.name,". Planta ").concat(M.name),D={eventCategory:"explorador",eventAction:"clic",eventLabel:"".concat(Object(E["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this[z["a"].LOAD_VIEW]("aena-highlighted-points"),this.$refs.dropdown.$refs.button.focus(),this.isMobile&&(this.$refs.dropdown.open=!1)}}),watch:{building:function(M){this.selected=M},floorC:function(M){this.floor=M}}},nu=zu,wu=(D("a517"),Object(Pj["a"])(nu,Du,tu,!1,null,"0df5f4e4",null)),ru=wu.exports,yu=function(){var M=this,N=M._self._c;return N("Tooltip",{attrs:{text:M.$t("RESET_MAP"),position:"top-left"}},[N("button",{staticClass:"aena-home-button-container",class:[M.deviceWidthClass,{disabled:M.disabled}],attrs:{disabled:M.disabled,"aria-hidden":"true","aria-label":M.$t("RESET_MAP")+" · "+M.$t("AIRPORT_OVERVIEW")},on:{click:M.onReset}},[N("Icon",{staticClass:"icon",attrs:{icon:"reiniciar-home.svg",size:"30px",fill:"#1a2732"}})],1)])},cu=[];function au(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Eu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?au(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):au(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var ou={name:"HomeButton",mixins:[Fj["a"]],components:{},props:{},data:function(){return{}},computed:Eu(Eu({},Object(n["c"])({building:z["b"].GET_BUILDING,floor:z["b"].GET_FLOOR,poi:z["b"].GET_POI_ID})),{},{disabled:function(){return!this.building||!this.floor}}),methods:Eu(Eu({},Object(n["b"])([z["a"].LOAD_FLOOR,z["a"].LOAD_ROUTE,z["a"].CLEAR_ROUTE,z["a"].RESET_BBOX,z["a"].SET_HOME_POSITION])),{},{onReset:function(){this.poi?this[z["a"].SET_HOME_POSITION](this.poi):(this[z["a"].LOAD_FLOOR](),this[z["a"].LOAD_ROUTE]({reset:!0,routeMode:!1})),this[z["a"].CLEAR_ROUTE](),this[z["a"].RESET_BBOX]()}})},Ou=ou,xu=(D("427a"),Object(Pj["a"])(Ou,yu,cu,!1,null,"5ebebba4",null)),Cu=xu.exports,Su=function(){var M=this,N=M._self._c;return N("div",{staticClass:"legend-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("LEGEND")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_LEGEND")}},[N("button",{key:"button",staticClass:"button",attrs:{role:"button","aria-label":M.$t("LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"info-i-t.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.opened?N("div",{key:"box",ref:"legend",staticClass:"legend-box",attrs:{tabindex:"0"}},[N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("LEGEND"))+"\n "),N("Tooltip",{attrs:{text:M.$t("HIDE_LEGEND"),position:"top-right"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1),N("div",{staticClass:"body"},[N("h3",{staticClass:"separator",attrs:{id:"s01"}},[M._v(M._s(M.$t("SIGNALING")))]),N("ul",{attrs:{"aria-labelledby":"s01"}},[N("li",{staticClass:"row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pp.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("MAIN_INFORMATION")))])],1),N("li",{staticClass:"row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pc.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("SECONDARY_INFORMATION")))])],1)]),N("h3",{staticClass:"separator",attrs:{id:"s02"}},[M._v(M._s(M.$t("ZONES")))]),N("ul",{attrs:{"aria-labelledby":"s02"}},[N("li",{staticClass:"row"},[N("div",{staticClass:"dot free"}),N("p",[M._v(M._s(M.$t("FREE_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot pass-zone"}),N("p",[M._v(M._s(M.$t("PASS_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot markers"}),N("p",[M._v(M._s(M.$t("MARKERS_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot restricted"}),N("p",[M._v(M._s(M.$t("RESTRICTED_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot wc"}),N("p",[M._v(M._s(M.$t("WC_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot vip"}),N("p",[M._v(M._s(M.$t("VIP_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot safety"}),N("p",[M._v(M._s(M.$t("SAFETY_CONTROL_PASSPORT")))])])]),M.hasRoute?[N("h3",{staticClass:"separator",attrs:{id:"s03"}},[M._v(M._s(M.$t("ROUTES")))]),N("ul",{attrs:{"aria-labelledby":"s03"}},[N("li",{staticClass:"row"},[N("div",{staticClass:"route current"}),N("p",[M._v(M._s(M.$t("ROUTE_CURRENT_FLOOR")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"route other"}),N("p",[M._v(M._s(M.$t("ROUTE_OTHER_PLACE")))])])])]:M._e()],2)]):M._e()])],1)},lu=[];function ku(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Qu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ku(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ku(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var du={name:"AenaLegend",mixins:[Fj["a"]],components:{},props:{},data:function(){return{opened:!1}},computed:Qu(Qu({},Object(n["c"])({airport:z["b"].GET_AIRPORT})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{toggle:function(){var M=this;this.opened=!this.opened,!0===this.opened&&window.setTimeout((function(){M.$refs.legend.focus()}),360)}}},Yu=du,Uu=(D("f31f"),Object(Pj["a"])(Yu,Su,lu,!1,null,"342d7f2b",null)),pu=Uu.exports,hu=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-pmr-container",class:[M.deviceWidthClass],attrs:{tabindex:"-1"}},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SHOW_PMR")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_PMR")}},[N("button",{key:"button",staticClass:"toggle-pmr btn-quaternary",attrs:{role:"button","aria-label":M.$t("PMR"),tabindex:"0"},on:{click:M.toggle}},[M.pmrActive?N("Icon",{staticClass:"icon",attrs:{icon:"pmr-active.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"icon",attrs:{icon:"pmr-config.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.pmrConfigVisible?N("div",{key:"pmr-box",staticClass:"pmr-box",attrs:{role:"dialog"},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.toggle("close")}}},[N("div",{ref:"popup",staticClass:"pmr-popup",attrs:{role:"document",tabindex:"0","aria-label":M.$t("PMR_CONFIGURATION"),lang:M.language}},[N("div",{staticClass:"header"},[N("Icon",{staticClass:"icon",attrs:{icon:"pmr-t.svg",size:"50px"}}),N("h1",{attrs:{id:"dialog-title"}},[M._v(M._s(M.$t("PMR_CONFIGURATION")))])],1),N("div",{staticClass:"content"},[N("div",{staticClass:"content-title-wrapper"},[N("h2",{staticClass:"content-title"},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS")))]),N("ToggleSwitch",{attrs:{value:M.pmrActive,role:"checkbox","aria-label":M.$t("ROUTES_NO_BARRIERS"),"aria-checked":M.pmrActive},on:{change:M.togglePMR}})],1),N("p",{staticClass:"nbt",attrs:{id:"dialog-description"}},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS_TEXT")))]),N("transition-group",{attrs:{height:"",name:"height"}},[M.pmrActive?N("div",{key:"pmr-options",staticClass:"pmr-options-content"},[N("h3",[M._v(M._s(M.$t("FLOOR_CONNECTORS")))]),N("p",{staticClass:"fct",attrs:{id:"dialogDesc"}},[M._v(M._s(M.$t("FLOOR_CONNECTORS_TEXT")))]),N("Checkbox",{attrs:{label:M.$t("ELEVATORS"),value:!0,disabled:!0}}),N("Checkbox",{attrs:{label:M.$t("ESCALATOR"),value:M.escalatorActive},on:{change:function(N){return M.setPMROption("escalatorActive",N.state)}}}),N("Checkbox",{attrs:{label:M.$t("MECHANICAL_RAMPS"),value:M.rampsActive},on:{change:function(N){return M.setPMROption("rampsActive",N.state)}}})],1):M._e()])],1),N("Tooltip",{staticClass:"close",attrs:{text:M.$t("HIDE_PMR"),position:"top-right",tabindex:"-1"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_PMR"),tabindex:"100"},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1)]):M._e()])],1)},fu=[];function mu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function vu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?mu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):mu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Bu={name:"AenaPmr",mixins:[Fj["a"]],components:{},props:{},data:function(){return{escalatorActive:!0,rampsActive:!1,language:this.$i18n.locale}},computed:vu(vu({},Object(n["c"])({pmrConfigVisible:z["b"].PMR_CONFIG_VISIBLE,pmrProfile:z["b"].GET_PMR_PROFILE,pmrDefaultProfile:z["b"].GET_DEFAULT_PMR_PROFILE})),{},{pmrActive:function(){return this.pmrProfile===this.pmrDefaultProfile&&this.setDefaultPMROptions(),null!==this.pmrProfile}}),methods:vu(vu(vu({},Object(n["b"])([z["a"].SET_PMR_PROFILE])),Object(n["d"])([z["c"].SAVE_PMR_CONFIG_VISIBILITY])),{},{getProfile:function(){return this.escalatorActive&&this.rampsActive?"pmr_4":this.escalatorActive?"pmr_3":this.rampsActive?"pmr_2":"pmr_1"},setPMROption:function(M,N){this[M]=N,this[z["a"].SET_PMR_PROFILE](this.getProfile())},toggle:function(M){var N=this;this[z["c"].SAVE_PMR_CONFIG_VISIBILITY](!this.pmrConfigVisible);var D=document.querySelector(".flughaveno-map");this.pmrConfigVisible&&"close"!==M?window.setTimeout((function(){var M=N.$refs.popup;_g("pmr-wrapper",D,!0),M.focus()}),300):(_g("pmr-wrapper",D,!1),document.removeEventListener("keydown",this.toggle))},togglePMR:function(){this.setDefaultPMROptions(),this[z["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.getProfile())},setDefaultPMROptions:function(){this.escalatorActive=!1,this.rampsActive=!1}})},bu=Bu,Pu=(D("36fd"),Object(Pj["a"])(bu,hu,fu,!1,null,"ac0eb094",null)),Zu=Pu.exports,Gu=function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"feedback",ref:"feedback",staticClass:"feedback-container",attrs:{role:"document",tabindex:"0","aria-label":M.$t("FEEDBACK_TITLE"),lang:M.language},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.onCloseNoFeedback.apply(null,arguments)}}},[N("div",{staticClass:"feedback-popup"},[N("div",{staticClass:"close"},[N("button",{staticClass:"btn icon",attrs:{role:"button","aria-label":M.$t("CLOSE")},on:{click:M.onCloseNoFeedback}},[N("Icon",{attrs:{icon:"cerrar-ico-jj.svg",size:"30px"}})],1)]),M.sent?[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"tick-ok-2-jj.svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE_SENT"))+"\n ")]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION_SENT"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg tertiary text",on:{click:M.onClose}},[M._v(M._s(M.$t("FEEDBACK_ACTION_SENT")))])])]:[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"group.svg",size:["192px","12px"]}}),N("Icon",{staticClass:"type",attrs:{icon:(M.pmr?"guaido_pmr":"guiado-pasajero")+".svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE"))+"\n ")]),N("div",{staticClass:"feedback"},[N("div",{staticClass:"top"},[M._l(M.feedbacks,(function(D){return[N("Tooltip",{attrs:{text:D.text,position:"top"}},[N("button",{staticClass:"star",attrs:{"aria-label":D.text},on:{click:function(N){return M.onFeedback(D.value)},mouseover:function(N){M.hovering=D.value},mouseout:function(N){M.hovering=0}}},[N("Icon",{attrs:{icon:(M.value>=D.value?"estrella-especial-full":"estrella-especial-jj")+".svg",size:"30px",fill:M.hovering>=D.value?"#598000":"#71777D"}})],1)])]}))],2),N("div",{staticClass:"bottom"},[M.value?N("span",{staticClass:"result"},[M._v(M._s(M.text))]):M._e()])]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg primary text",attrs:{disabled:!M.value},on:{click:M.onSubmit}},[M._v(M._s(M.$t("FEEDBACK_ACTION")))])])]],2)])])},Ru=[];function Wu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Xu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Wu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Wu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Hu={name:"app-feedback",mixins:[],components:{},props:{},data:function(){return{value:0,sent:!1,hovering:0,language:this.$i18n.locale}},computed:Xu(Xu({},Object(n["c"])({feedback:z["b"].GET_FEEDBACK,airportID:z["b"].GET_AIRPORT_ID,pmr:z["b"].GET_PMR_PROFILE})),{},{feedbacks:function(){return[{value:1,text:this.$t("FEEDBACK_VERY_LITTLE")},{value:2,text:this.$t("FEEDBACK_LITTLE")},{value:3,text:this.$t("FEEDBACK_NORMAL")},{value:4,text:this.$t("FEEDBACK_QUITE")},{value:5,text:this.$t("FEEDBACK_VERY_QUITE")}]},text:function(){var M=this;return this.value&&this.feedbacks.find((function(N){return N.value===M.value})).text}}),mounted:function(){var M=this,N=document.querySelector(".flughaveno-map");window.setTimeout((function(){var D=M.$refs.feedback;_g("feedback-wrapper",N,!0),D.focus()}),300)},beforeDestroy:function(){this.removeFeedbackFocus(),document.removeEventListener("keydown",this.onCloseNoFeedback)},methods:Xu(Xu(Xu({},Object(n["b"])([z["a"].SET_FEEDBACK])),Object(n["d"])([z["c"].SAVE_FEEDBACK])),{},{onClose:function(){this.removeFeedbackFocus(),this[z["c"].SAVE_FEEDBACK]()},onCloseNoFeedback:function(){this.sent||this.sentFeedback("encuesta descartada","no enviada"),this.onClose()},onFeedback:function(M){this.value=M},onSubmit:function(){this[z["a"].SET_FEEDBACK]({answered:!0}),this.sent=!0,this.sentFeedback(this.value)},sentFeedback:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enviada",D={eventCategory:"encuesta",eventAction:N,eventLabel:M,language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)},removeFeedbackFocus:function(){var M=document.querySelector(".flughaveno-map");_g("feedback-wrapper",M,!1)}})},_u=Hu,Fu=(D("941b"),Object(Pj["a"])(_u,Gu,Ru,!1,null,"6e183c38",null)),Vu=Fu.exports,Ju=D("704c");function qu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Ku(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?qu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):qu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var $u=12e4,Ms={name:"app-appShell",mixins:[x,Fj["a"]],components:{MapComponent:MT,AenaPoints:Nu,AenaTerminalSelector:ru,AenaHomeButton:Cu,AenaLegend:pu,AenaPmr:Zu,Feedback:Vu,Layers:jT},props:{},data:function(){return{loaded:!1,id:this.$root.$data.id,airport:this.$root.$data.airport,building:this.$root.$data.building,floor:this.$root.$data.floor,explorerMode:this.$root.$data.explorerMode,category:this.$root.$data.category,poi:(this.$root.$data.poi||"").toString(),poiD:(this.$root.$data.poiD||"").toString(),route:this.$root.$data.route,language:this.$root.$data.language,isPortrait:null,pmr_enabled:"true",interval:void 0,intervalPoiWait:void 0,container:null,printMode:this.$root.$data.printMode,layers:!1,lat:this.$root.$data.lat,lon:this.$root.$data.lon,mupiMode:this.$root.$data.mupiMode,avaMode:this.$root.$data.avaMode,intervalMupiResetPosition:void 0,pointsDetailCollapsed:!0}},created:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){var N=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:document.documentElement.setAttribute("lang",this.language),this.initFeedback(),this.saveConfig(),this[z["a"].LOAD_FULL_AIRPORT]().then((function(){N.building&&N.saveFloor({buildingId:N.building,floorId:N.floor,airportID:N.airport,tag:"explorador"}),N.airportC.access_controls_has_wait_info&&(N[z["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois}),N.intervalPoiWait=setInterval((function(){N[z["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois})}),3e5)),N.loaded=!0})),window.addEventListener("orientationchange",this.handleOrientation,!0),this.handleOrientation(),window.addEventListener("resize",this.checkIsMobile,!0),document.addEventListener("keydown",this.addAccesibilityClass,!0),document.addEventListener("mousedown",this.removeAccesibilityClass,!0),this.mupiMode&&(this[z["a"].CLEAR_ROUTE](),this.initMupiIntervalEvents());case 10:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),mounted:function(){this.container=document.querySelector(".flughaveno-map"),this.checkIsMobile()},beforeDestroy:function(){clearInterval(this.interval),clearInterval(this.intervalPoiWait),this.mupiMode&&clearInterval(this.intervalMupiResetPosition),window.removeEventListener("resize",this.checkIsMobile,!1),this.removeMupiInternalEvents()},computed:Ku(Ku({},Object(n["c"])({airportC:z["b"].GET_AIRPORT,pois:z["b"].GET_POIS_LIST,selectedPoi:z["b"].GET_POI,buildings:z["b"].GET_BUILDINGS,buildingC:z["b"].GET_BUILDING,floorC:z["b"].GET_FLOOR,routeConfig:z["b"].GET_ROUTE_CONFIG,isRouteMode:z["b"].IS_ROUTE_MODE,feedback:z["b"].GET_FEEDBACK,layerTree:z["b"].GET_LAYER_TREE})),{},{appId:function(){return this.id.split("#")[1]},hasRoute:function(){return this.airportC.has_graph}}),methods:Ku(Ku(Ku({},Object(n["b"])([z["a"].LOAD_FULL_AIRPORT,z["a"].SET_FEEDBACK,z["a"].LOAD_ACCESS_CONTROL_TIME,z["a"].SET_HOME_POSITION,z["a"].CLEAR_ROUTE,z["a"].CLEAR_POI])),Object(n["d"])([z["c"].SAVE_DEVICE_WIDTH,z["c"].SAVE_IS_MOBILE])),{},{resize:function(){this[z["c"].SAVE_DEVICE_WIDTH](this.$el.offsetWidth)},saveConfig:function(){this.$store.commit(z["c"].SAVE_CONFIG,{id:this.id,airport:this.airport,explorerMode:this.explorerMode,building:this.building,floor:this.floor,category:this.category,language:this.language,route:this.route,poi:this.poi,poiD:this.poiD,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode})},checkIsMobile:function(){this.resize(),this[z["c"].SAVE_IS_MOBILE](Object(Ju["a"])(this.id))},handleOrientation:function(){var M=this;window.setTimeout((function(){0===window.orientation&&window.innerWidth<=768&&window.innerWidth>=570?M.isPortrait=!0:M.isPortrait=!1}),5e3)},closeModal:function(){this.isPortrait=!1},initFeedback:function(){var M=this,N=function(){var M=JSON.parse(localStorage.getItem("feedback")||"{}");localStorage.removeItem("feedbacks");var N=new Date;M.time&&new Date(M.time).getUTCDate()===N.getUTCDate()||(M.time=N.toISOString(),M.count=1,M.answered=!1,localStorage.setItem("feedback",JSON.stringify(M)))};N(),this.interval=setInterval((function(){var N=JSON.parse(localStorage.getItem("feedback")||"{}");clearInterval(M.interval),N.count<5&&(N.count=4),localStorage.setItem("feedback",JSON.stringify(N)),M[z["a"].SET_FEEDBACK]()}),6e5)},initMupiIntervalEvents:function(){document.addEventListener("keydown",this.cancelIntervalMupi,!1),document.addEventListener("keypress",this.cancelIntervalMupi,!1),document.addEventListener("keyup",this.cancelIntervalMupi,!1),document.addEventListener("mousedown",this.cancelIntervalMupi,!1),document.addEventListener("mouseup",this.cancelIntervalMupi,!1),document.addEventListener("click",this.cancelIntervalMupi,!1),document.addEventListener("touchstart",this.cancelIntervalMupi,!1),document.addEventListener("touchend",this.cancelIntervalMupi,!1),document.addEventListener("touchcancel",this.cancelIntervalMupi,!1),document.addEventListener("touchleave",this.cancelIntervalMupi,!1),document.addEventListener("touchmove",this.cancelIntervalMupi,!1),this.initIntervalMupi()},removeMupiInternalEvents:function(){document.removeEventListener("keydown",this.cancelIntervalMupi,!1),document.removeEventListener("keypress",this.cancelIntervalMupi,!1),document.removeEventListener("keyup",this.cancelIntervalMupi,!1),document.removeEventListener("mousedown",this.cancelIntervalMupi,!1),document.removeEventListener("mouseup",this.cancelIntervalMupi,!1),document.removeEventListener("click",this.cancelIntervalMupi,!1),document.removeEventListener("touchstart",this.cancelIntervalMupi,!1),document.removeEventListener("touchend",this.cancelIntervalMupi,!1),document.removeEventListener("touchcancel",this.cancelIntervalMupi,!1),document.removeEventListener("touchleave",this.cancelIntervalMupi,!1),document.removeEventListener("touchmove",this.cancelIntervalMupi,!1)},initIntervalMupi:function(){var M=this;this.intervalMupiResetPosition=setInterval((function(){M[z["a"].CLEAR_ROUTE]().then((function(){M[z["a"].SET_HOME_POSITION](M.poi)})),clearInterval(M.intervalMupiResetPosition)}),$u)},cancelIntervalMupi:function(M){clearInterval(this.intervalMupiResetPosition),this.intervalMupiResetPosition=void 0,this.initIntervalMupi()},addAccesibilityClass:function(M){this.container.classList.contains("keyboard-nav")||"Tab"!==M.key||this.container.classList.add("keyboard-nav")},removeAccesibilityClass:function(){this.container.classList.remove("keyboard-nav")},onLayerChange:function(M){var N=this.$refs.map.getLayer(M.name);this.$refs.map.setLayoutProperty(N.id,"none"===N.visibility?"visible":"none")},onPointsToggle:function(M){this.pointsDetailCollapsed=M}}),watch:{floorC:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:this.floor=(this.floorC||{}).id,this.building=(this.buildingC||{}).id,this.saveConfig();case 3:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),layerTree:function(M){var N=M.map((function(M){var N=M;return N.name="poiList"===M.id?"Puntos de interés":"building-contour"===M.id?"Contorno de edificios":"building-contour-marker"===M.id?"Marcadores de planta":"poiListSelected"===M.id?"POIs seleccionados":"spaces_base_fill"===M.id?"Relleno del espacio":M.id,N.active=!0,N}));this.layers=N}}},Ns=Ms,Ds=(D("4dfc"),Object(Pj["a"])(Ns,s,L,!1,null,null,null)),ts=Ds.exports,is=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],es=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function js(M,N){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+M),N&&console.warn(N.stack))}function Ts(M,N){"undefined"!==typeof console&&(console.error("[vue-i18n] "+M),N&&console.error(N.stack))}var gs=Array.isArray;function us(M){return null!==M&&"object"===typeof M}function ss(M){return"boolean"===typeof M}function Ls(M){return"string"===typeof M}var Is=Object.prototype.toString,As="[object Object]";function zs(M){return Is.call(M)===As}function ns(M){return null===M||void 0===M}function ws(M){return"function"===typeof M}function rs(){var M=[],N=arguments.length;while(N--)M[N]=arguments[N];var D=null,t=null;return 1===M.length?us(M[0])||gs(M[0])?t=M[0]:"string"===typeof M[0]&&(D=M[0]):2===M.length&&("string"===typeof M[0]&&(D=M[0]),(us(M[1])||gs(M[1]))&&(t=M[1])),{locale:D,params:t}}function ys(M){return JSON.parse(JSON.stringify(M))}function cs(M,N){if(M.delete(N))return M}function as(M){var N=[];return M.forEach((function(M){return N.push(M)})),N}function Es(M,N){return!!~M.indexOf(N)}var os=Object.prototype.hasOwnProperty;function Os(M,N){return os.call(M,N)}function xs(M){for(var N=arguments,D=Object(M),t=1;t<arguments.length;t++){var i=N[t];if(void 0!==i&&null!==i){var e=void 0;for(e in i)Os(i,e)&&(us(i[e])?D[e]=xs(D[e],i[e]):D[e]=i[e])}}return D}function Cs(M,N){if(M===N)return!0;var D=us(M),t=us(N);if(!D||!t)return!D&&!t&&String(M)===String(N);try{var i=gs(M),e=gs(N);if(i&&e)return M.length===N.length&&M.every((function(M,D){return Cs(M,N[D])}));if(i||e)return!1;var j=Object.keys(M),T=Object.keys(N);return j.length===T.length&&j.every((function(D){return Cs(M[D],N[D])}))}catch(g){return!1}}function Ss(M){return M.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ls(M){return null!=M&&Object.keys(M).forEach((function(N){"string"==typeof M[N]&&(M[N]=Ss(M[N]))})),M}function ks(M){M.prototype.hasOwnProperty("$i18n")||Object.defineProperty(M.prototype,"$i18n",{get:function(){return this._i18n}}),M.prototype.$t=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.$i18n;return t._t.apply(t,[M,t.locale,t._getMessages(),this].concat(N))},M.prototype.$tc=function(M,N){var D=[],t=arguments.length-2;while(t-- >0)D[t]=arguments[t+2];var i=this.$i18n;return i._tc.apply(i,[M,i.locale,i._getMessages(),this,N].concat(D))},M.prototype.$te=function(M,N){var D=this.$i18n;return D._te(M,D.locale,D._getMessages(),N)},M.prototype.$d=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).d.apply(N,[M].concat(D))},M.prototype.$n=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).n.apply(N,[M].concat(D))}}function Qs(M){function N(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===M&&(M=!1),M?{mounted:N}:{beforeCreate:function(){var M=this.$options;if(M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n)if(M.i18n instanceof lL){if(M.__i18nBridge||M.__i18n)try{var N=M.i18n&&M.i18n.messages?M.i18n.messages:{},D=M.__i18nBridge||M.__i18n;D.forEach((function(M){N=xs(N,JSON.parse(M))})),Object.keys(N).forEach((function(D){M.i18n.mergeLocaleMessage(D,N[D])}))}catch(g){0}this._i18n=M.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(zs(M.i18n)){var t=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lL?this.$root.$i18n:null;if(t&&(M.i18n.root=this.$root,M.i18n.formatter=t.formatter,M.i18n.fallbackLocale=t.fallbackLocale,M.i18n.formatFallbackMessages=t.formatFallbackMessages,M.i18n.silentTranslationWarn=t.silentTranslationWarn,M.i18n.silentFallbackWarn=t.silentFallbackWarn,M.i18n.pluralizationRules=t.pluralizationRules,M.i18n.preserveDirectiveContent=t.preserveDirectiveContent),M.__i18nBridge||M.__i18n)try{var i=M.i18n&&M.i18n.messages?M.i18n.messages:{},e=M.__i18nBridge||M.__i18n;e.forEach((function(M){i=xs(i,JSON.parse(M))})),M.i18n.messages=i}catch(g){0}var j=M.i18n,T=j.sharedMessages;T&&zs(T)&&(M.i18n.messages=xs(M.i18n.messages,T)),this._i18n=new lL(M.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===M.i18n.sync||M.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),t&&t.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lL?this._i18n=this.$root.$i18n:M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof lL&&(this._i18n=M.parent.$i18n)},beforeMount:function(){var M=this.$options;M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n?(M.i18n instanceof lL||zs(M.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lL||M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof lL)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:N,beforeDestroy:function(){if(this._i18n){var M=this;this.$nextTick((function(){M._subscribing&&(M._i18n.unsubscribeDataChanging(M),delete M._subscribing),M._i18nWatcher&&(M._i18nWatcher(),M._i18n.destroyVM(),delete M._i18nWatcher),M._localeWatcher&&(M._localeWatcher(),delete M._localeWatcher)}))}}}}var ds={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(M,N){var D=N.data,t=N.parent,i=N.props,e=N.slots,j=t.$i18n;if(j){var T=i.path,g=i.locale,u=i.places,s=e(),L=j.i(T,g,Ys(s)||u?Us(s.default,u):s),I=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return I?M(I,D,L):L}}};function Ys(M){var N;for(N in M)if("default"!==N)return!1;return Boolean(N)}function Us(M,N){var D=N?ps(N):{};if(!M)return D;M=M.filter((function(M){return M.tag||""!==M.text.trim()}));var t=M.every(ms);return M.reduce(t?hs:fs,D)}function ps(M){return Array.isArray(M)?M.reduce(fs,{}):Object.assign({},M)}function hs(M,N){return N.data&&N.data.attrs&&N.data.attrs.place&&(M[N.data.attrs.place]=N),M}function fs(M,N,D){return M[D]=N,M}function ms(M){return Boolean(M.data&&M.data.attrs&&M.data.attrs.place)}var vs,Bs={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(M,N){var D=N.props,t=N.parent,i=N.data,e=t.$i18n;if(!e)return null;var j=null,T=null;Ls(D.format)?j=D.format:us(D.format)&&(D.format.key&&(j=D.format.key),T=Object.keys(D.format).reduce((function(M,N){var t;return Es(is,N)?Object.assign({},M,(t={},t[N]=D.format[N],t)):M}),null));var g=D.locale||e.locale,u=e._ntp(D.value,g,j,T),s=u.map((function(M,N){var D,t=i.scopedSlots&&i.scopedSlots[M.type];return t?t((D={},D[M.type]=M.value,D.index=N,D.parts=u,D)):M.value})),L=D.tag&&!0!==D.tag||!1===D.tag?D.tag:"span";return L?M(L,{attrs:i.attrs,class:i["class"],staticClass:i.staticClass},s):s}};function bs(M,N,D){Gs(M,D)&&Ws(M,N,D)}function Ps(M,N,D,t){if(Gs(M,D)){var i=D.context.$i18n;Rs(M,D)&&Cs(N.value,N.oldValue)&&Cs(M._localeMessage,i.getLocaleMessage(i.locale))||Ws(M,N,D)}}function Zs(M,N,D,t){var i=D.context;if(i){var e=D.context.$i18n||{};N.modifiers.preserve||e.preserveDirectiveContent||(M.textContent=""),M._vt=void 0,delete M["_vt"],M._locale=void 0,delete M["_locale"],M._localeMessage=void 0,delete M["_localeMessage"]}else js("Vue instance does not exists in VNode context")}function Gs(M,N){var D=N.context;return D?!!D.$i18n||(js("VueI18n instance does not exists in Vue instance"),!1):(js("Vue instance does not exists in VNode context"),!1)}function Rs(M,N){var D=N.context;return M._locale===D.$i18n.locale}function Ws(M,N,D){var t,i,e=N.value,j=Xs(e),T=j.path,g=j.locale,u=j.args,s=j.choice;if(T||g||u)if(T){var L=D.context;M._vt=M.textContent=null!=s?(t=L.$i18n).tc.apply(t,[T,s].concat(Hs(g,u))):(i=L.$i18n).t.apply(i,[T].concat(Hs(g,u))),M._locale=L.$i18n.locale,M._localeMessage=L.$i18n.getLocaleMessage(L.$i18n.locale)}else js("`path` is required in v-t directive");else js("value type not supported")}function Xs(M){var N,D,t,i;return Ls(M)?N=M:zs(M)&&(N=M.path,D=M.locale,t=M.args,i=M.choice),{path:N,locale:D,args:t,choice:i}}function Hs(M,N){var D=[];return M&&D.push(M),N&&(Array.isArray(N)||zs(N))&&D.push(N),D}function _s(M,N){void 0===N&&(N={bridge:!1}),_s.installed=!0,vs=M;vs.version&&Number(vs.version.split(".")[0]);ks(vs),vs.mixin(Qs(N.bridge)),vs.directive("t",{bind:bs,update:Ps,unbind:Zs}),vs.component(ds.name,ds),vs.component(Bs.name,Bs);var D=vs.config.optionMergeStrategies;D.i18n=function(M,N){return void 0===N?M:N}}var Fs=function(){this._caches=Object.create(null)};Fs.prototype.interpolate=function(M,N){if(!N)return[M];var D=this._caches[M];return D||(D=qs(M),this._caches[M]=D),Ks(D,N)};var Vs=/^(?:\d)+/,Js=/^(?:\w)+/;function qs(M){var N=[],D=0,t="";while(D<M.length){var i=M[D++];if("{"===i){t&&N.push({type:"text",value:t}),t="";var e="";i=M[D++];while(void 0!==i&&"}"!==i)e+=i,i=M[D++];var j="}"===i,T=Vs.test(e)?"list":j&&Js.test(e)?"named":"unknown";N.push({value:e,type:T})}else"%"===i?"{"!==M[D]&&(t+=i):t+=i}return t&&N.push({type:"text",value:t}),N}function Ks(M,N){var D=[],t=0,i=Array.isArray(N)?"list":us(N)?"named":"unknown";if("unknown"===i)return D;while(t<M.length){var e=M[t];switch(e.type){case"text":D.push(e.value);break;case"list":D.push(N[parseInt(e.value,10)]);break;case"named":"named"===i&&D.push(N[e.value]);break;case"unknown":0;break}t++}return D}var $s=0,ML=1,NL=2,DL=3,tL=0,iL=1,eL=2,jL=3,TL=4,gL=5,uL=6,sL=7,LL=8,IL=[];IL[tL]={ws:[tL],ident:[jL,$s],"[":[TL],eof:[sL]},IL[iL]={ws:[iL],".":[eL],"[":[TL],eof:[sL]},IL[eL]={ws:[eL],ident:[jL,$s],0:[jL,$s],number:[jL,$s]},IL[jL]={ident:[jL,$s],0:[jL,$s],number:[jL,$s],ws:[iL,ML],".":[eL,ML],"[":[TL,ML],eof:[sL,ML]},IL[TL]={"'":[gL,$s],'"':[uL,$s],"[":[TL,NL],"]":[iL,DL],eof:LL,else:[TL,$s]},IL[gL]={"'":[TL,$s],eof:LL,else:[gL,$s]},IL[uL]={'"':[TL,$s],eof:LL,else:[uL,$s]};var AL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function zL(M){return AL.test(M)}function nL(M){var N=M.charCodeAt(0),D=M.charCodeAt(M.length-1);return N!==D||34!==N&&39!==N?M:M.slice(1,-1)}function wL(M){if(void 0===M||null===M)return"eof";var N=M.charCodeAt(0);switch(N){case 91:case 93:case 46:case 34:case 39:return M;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function rL(M){var N=M.trim();return("0"!==M.charAt(0)||!isNaN(M))&&(zL(N)?nL(N):"*"+N)}function yL(M){var N,D,t,i,e,j,T,g=[],u=-1,s=tL,L=0,I=[];function A(){var N=M[u+1];if(s===gL&&"'"===N||s===uL&&'"'===N)return u++,t="\\"+N,I[$s](),!0}I[ML]=function(){void 0!==D&&(g.push(D),D=void 0)},I[$s]=function(){void 0===D?D=t:D+=t},I[NL]=function(){I[$s](),L++},I[DL]=function(){if(L>0)L--,s=TL,I[$s]();else{if(L=0,void 0===D)return!1;if(D=rL(D),!1===D)return!1;I[ML]()}};while(null!==s)if(u++,N=M[u],"\\"!==N||!A()){if(i=wL(N),T=IL[s],e=T[i]||T["else"]||LL,e===LL)return;if(s=e[0],j=I[e[1]],j&&(t=e[2],t=void 0===t?N:t,!1===j()))return;if(s===sL)return g}}var cL=function(){this._cache=Object.create(null)};cL.prototype.parsePath=function(M){var N=this._cache[M];return N||(N=yL(M),N&&(this._cache[M]=N)),N||[]},cL.prototype.getPathValue=function(M,N){if(!us(M))return null;var D=this.parsePath(N);if(0===D.length)return null;var t=D.length,i=M,e=0;while(e<t){var j=i[D[e]];if(void 0===j||null===j)return null;i=j,e++}return i};var aL,EL=/<\/?[\w\s="/.':;#-\/]+>/,oL=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,OL=/^@(?:\.([a-zA-Z]+))?:/,xL=/[()]/g,CL={upper:function(M){return M.toLocaleUpperCase()},lower:function(M){return M.toLocaleLowerCase()},capitalize:function(M){return""+M.charAt(0).toLocaleUpperCase()+M.substr(1)}},SL=new Fs,lL=function(M){var N=this;void 0===M&&(M={}),!vs&&"undefined"!==typeof window&&window.Vue&&_s(window.Vue);var D=M.locale||"en-US",t=!1!==M.fallbackLocale&&(M.fallbackLocale||"en-US"),i=M.messages||{},e=M.dateTimeFormats||M.datetimeFormats||{},j=M.numberFormats||{};this._vm=null,this._formatter=M.formatter||SL,this._modifiers=M.modifiers||{},this._missing=M.missing||null,this._root=M.root||null,this._sync=void 0===M.sync||!!M.sync,this._fallbackRoot=void 0===M.fallbackRoot||!!M.fallbackRoot,this._fallbackRootWithEmptyString=void 0===M.fallbackRootWithEmptyString||!!M.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==M.formatFallbackMessages&&!!M.formatFallbackMessages,this._silentTranslationWarn=void 0!==M.silentTranslationWarn&&M.silentTranslationWarn,this._silentFallbackWarn=void 0!==M.silentFallbackWarn&&!!M.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new cL,this._dataListeners=new Set,this._componentInstanceCreatedListener=M.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==M.preserveDirectiveContent&&!!M.preserveDirectiveContent,this.pluralizationRules=M.pluralizationRules||{},this._warnHtmlInMessage=M.warnHtmlInMessage||"off",this._postTranslation=M.postTranslation||null,this._escapeParameterHtml=M.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in M&&(this.__VUE_I18N_BRIDGE__=M.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(M,D){var t=Object.getPrototypeOf(N);if(t&&t.getChoiceIndex){var i=t.getChoiceIndex;return i.call(N,M,D)}var e=function(M,N){return M=Math.abs(M),2===N?M?M>1?1:0:1:M?Math.min(M,2):0};return N.locale in N.pluralizationRules?N.pluralizationRules[N.locale].apply(N,[M,D]):e(M,D)},this._exist=function(M,D){return!(!M||!D)&&(!ns(N._path.getPathValue(M,D))||!!M[D])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,i[M])})),this._initVM({locale:D,fallbackLocale:t,messages:i,dateTimeFormats:e,numberFormats:j})},kL={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};lL.prototype._checkLocaleMessage=function(M,N,D){var t=[],i=function(M,N,D,t){if(zs(D))Object.keys(D).forEach((function(e){var j=D[e];zs(j)?(t.push(e),t.push("."),i(M,N,j,t),t.pop(),t.pop()):(t.push(e),i(M,N,j,t),t.pop())}));else if(gs(D))D.forEach((function(D,e){zs(D)?(t.push("["+e+"]"),t.push("."),i(M,N,D,t),t.pop(),t.pop()):(t.push("["+e+"]"),i(M,N,D,t),t.pop())}));else if(Ls(D)){var e=EL.test(D);if(e){var j="Detected HTML in message '"+D+"' of keypath '"+t.join("")+"' at '"+N+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===M?js(j):"error"===M&&Ts(j)}}};i(N,M,D,t)},lL.prototype._initVM=function(M){var N=vs.config.silent;vs.config.silent=!0,this._vm=new vs({data:M,__VUE18N__INSTANCE__:!0}),vs.config.silent=N},lL.prototype.destroyVM=function(){this._vm.$destroy()},lL.prototype.subscribeDataChanging=function(M){this._dataListeners.add(M)},lL.prototype.unsubscribeDataChanging=function(M){cs(this._dataListeners,M)},lL.prototype.watchI18nData=function(){var M=this;return this._vm.$watch("$data",(function(){var N=as(M._dataListeners),D=N.length;while(D--)vs.nextTick((function(){N[D]&&N[D].$forceUpdate()}))}),{deep:!0})},lL.prototype.watchLocale=function(M){if(M){if(!this.__VUE_I18N_BRIDGE__)return null;var N=this,D=this._vm;return this.vm.$watch("locale",(function(t){D.$set(D,"locale",t),N.__VUE_I18N_BRIDGE__&&M&&(M.locale.value=t),D.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(M){t.$set(t,"locale",M),t.$forceUpdate()}),{immediate:!0})},lL.prototype.onComponentInstanceCreated=function(M){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(M,this)},kL.vm.get=function(){return this._vm},kL.messages.get=function(){return ys(this._getMessages())},kL.dateTimeFormats.get=function(){return ys(this._getDateTimeFormats())},kL.numberFormats.get=function(){return ys(this._getNumberFormats())},kL.availableLocales.get=function(){return Object.keys(this.messages).sort()},kL.locale.get=function(){return this._vm.locale},kL.locale.set=function(M){this._vm.$set(this._vm,"locale",M)},kL.fallbackLocale.get=function(){return this._vm.fallbackLocale},kL.fallbackLocale.set=function(M){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",M)},kL.formatFallbackMessages.get=function(){return this._formatFallbackMessages},kL.formatFallbackMessages.set=function(M){this._formatFallbackMessages=M},kL.missing.get=function(){return this._missing},kL.missing.set=function(M){this._missing=M},kL.formatter.get=function(){return this._formatter},kL.formatter.set=function(M){this._formatter=M},kL.silentTranslationWarn.get=function(){return this._silentTranslationWarn},kL.silentTranslationWarn.set=function(M){this._silentTranslationWarn=M},kL.silentFallbackWarn.get=function(){return this._silentFallbackWarn},kL.silentFallbackWarn.set=function(M){this._silentFallbackWarn=M},kL.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},kL.preserveDirectiveContent.set=function(M){this._preserveDirectiveContent=M},kL.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},kL.warnHtmlInMessage.set=function(M){var N=this,D=this._warnHtmlInMessage;if(this._warnHtmlInMessage=M,D!==M&&("warn"===M||"error"===M)){var t=this._getMessages();Object.keys(t).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,t[M])}))}},kL.postTranslation.get=function(){return this._postTranslation},kL.postTranslation.set=function(M){this._postTranslation=M},kL.sync.get=function(){return this._sync},kL.sync.set=function(M){this._sync=M},lL.prototype._getMessages=function(){return this._vm.messages},lL.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},lL.prototype._getNumberFormats=function(){return this._vm.numberFormats},lL.prototype._warnDefault=function(M,N,D,t,i,e){if(!ns(D))return D;if(this._missing){var j=this._missing.apply(null,[M,N,t,i]);if(Ls(j))return j}else 0;if(this._formatFallbackMessages){var T=rs.apply(void 0,i);return this._render(N,e,T.params,N)}return N},lL.prototype._isFallbackRoot=function(M){return(this._fallbackRootWithEmptyString?!M:ns(M))&&!ns(this._root)&&this._fallbackRoot},lL.prototype._isSilentFallbackWarn=function(M){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(M):this._silentFallbackWarn},lL.prototype._isSilentFallback=function(M,N){return this._isSilentFallbackWarn(N)&&(this._isFallbackRoot()||M!==this.fallbackLocale)},lL.prototype._isSilentTranslationWarn=function(M){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(M):this._silentTranslationWarn},lL.prototype._interpolate=function(M,N,D,t,i,e,j){if(!N)return null;var T,g=this._path.getPathValue(N,D);if(gs(g)||zs(g))return g;if(ns(g)){if(!zs(N))return null;if(T=N[D],!Ls(T)&&!ws(T))return null}else{if(!Ls(g)&&!ws(g))return null;T=g}return Ls(T)&&(T.indexOf("@:")>=0||T.indexOf("@.")>=0)&&(T=this._link(M,N,T,t,"raw",e,j)),this._render(T,i,e,D)},lL.prototype._link=function(M,N,D,t,i,e,j){var T=D,g=T.match(oL);for(var u in g)if(g.hasOwnProperty(u)){var s=g[u],L=s.match(OL),I=L[0],A=L[1],z=s.replace(I,"").replace(xL,"");if(Es(j,z))return T;j.push(z);var n=this._interpolate(M,N,z,t,"raw"===i?"string":i,"raw"===i?void 0:e,j);if(this._isFallbackRoot(n)){if(!this._root)throw Error("unexpected error");var w=this._root.$i18n;n=w._translate(w._getMessages(),w.locale,w.fallbackLocale,z,t,i,e)}n=this._warnDefault(M,z,n,t,gs(e)?e:[e],i),this._modifiers.hasOwnProperty(A)?n=this._modifiers[A](n):CL.hasOwnProperty(A)&&(n=CL[A](n)),j.pop(),T=n?T.replace(s,n):T}return T},lL.prototype._createMessageContext=function(M,N,D,t){var i=this,e=gs(M)?M:[],j=us(M)?M:{},T=function(M){return e[M]},g=function(M){return j[M]},u=this._getMessages(),s=this.locale;return{list:T,named:g,values:M,formatter:N,path:D,messages:u,locale:s,linked:function(M){return i._interpolate(s,u[s]||{},M,null,t,void 0,[M])}}},lL.prototype._render=function(M,N,D,t){if(ws(M))return M(this._createMessageContext(D,this._formatter||SL,t,N));var i=this._formatter.interpolate(M,D,t);return i||(i=SL.interpolate(M,D,t)),"string"!==N||Ls(i)?i:i.join("")},lL.prototype._appendItemToChain=function(M,N,D){var t=!1;return Es(M,N)||(t=!0,N&&(t="!"!==N[N.length-1],N=N.replace(/!/g,""),M.push(N),D&&D[N]&&(t=D[N]))),t},lL.prototype._appendLocaleToChain=function(M,N,D){var t,i=N.split("-");do{var e=i.join("-");t=this._appendItemToChain(M,e,D),i.splice(-1,1)}while(i.length&&!0===t);return t},lL.prototype._appendBlockToChain=function(M,N,D){for(var t=!0,i=0;i<N.length&&ss(t);i++){var e=N[i];Ls(e)&&(t=this._appendLocaleToChain(M,e,D))}return t},lL.prototype._getLocaleChain=function(M,N){if(""===M)return[];this._localeChainCache||(this._localeChainCache={});var D=this._localeChainCache[M];if(!D){N||(N=this.fallbackLocale),D=[];var t,i=[M];while(gs(i))i=this._appendBlockToChain(D,i,N);t=gs(N)?N:us(N)?N["default"]?N["default"]:null:N,i=Ls(t)?[t]:t,i&&this._appendBlockToChain(D,i,null),this._localeChainCache[M]=D}return D},lL.prototype._translate=function(M,N,D,t,i,e,j){for(var T,g=this._getLocaleChain(N,D),u=0;u<g.length;u++){var s=g[u];if(T=this._interpolate(s,M[s],t,i,e,j,[t]),!ns(T))return T}return null},lL.prototype._t=function(M,N,D,t){var i,e=[],j=arguments.length-4;while(j-- >0)e[j]=arguments[j+4];if(!M)return"";var T=rs.apply(void 0,e);this._escapeParameterHtml&&(T.params=ls(T.params));var g=T.locale||N,u=this._translate(D,g,this.fallbackLocale,M,t,"string",T.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[M].concat(e))}return u=this._warnDefault(g,M,u,t,e,"string"),this._postTranslation&&null!==u&&void 0!==u&&(u=this._postTranslation(u,M)),u},lL.prototype.t=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this)._t.apply(N,[M,this.locale,this._getMessages(),null].concat(D))},lL.prototype._i=function(M,N,D,t,i){var e=this._translate(D,N,this.fallbackLocale,M,t,"raw",i);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(M,N,i)}return this._warnDefault(N,M,e,t,[i],"raw")},lL.prototype.i=function(M,N,D){return M?(Ls(N)||(N=this.locale),this._i(M,N,this._getMessages(),null,D)):""},lL.prototype._tc=function(M,N,D,t,i){var e,j=[],T=arguments.length-5;while(T-- >0)j[T]=arguments[T+5];if(!M)return"";void 0===i&&(i=1);var g={count:i,n:i},u=rs.apply(void 0,j);return u.params=Object.assign(g,u.params),j=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((e=this)._t.apply(e,[M,N,D,t].concat(j)),i)},lL.prototype.fetchChoice=function(M,N){if(!M||!Ls(M))return null;var D=M.split("|");return N=this.getChoiceIndex(N,D.length),D[N]?D[N].trim():M},lL.prototype.tc=function(M,N){var D,t=[],i=arguments.length-2;while(i-- >0)t[i]=arguments[i+2];return(D=this)._tc.apply(D,[M,this.locale,this._getMessages(),null,N].concat(t))},lL.prototype._te=function(M,N,D){var t=[],i=arguments.length-3;while(i-- >0)t[i]=arguments[i+3];var e=rs.apply(void 0,t).locale||N;return this._exist(D[e],M)},lL.prototype.te=function(M,N){return this._te(M,this.locale,this._getMessages(),N)},lL.prototype.getLocaleMessage=function(M){return ys(this._vm.messages[M]||{})},lL.prototype.setLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,N)},lL.prototype.mergeLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,xs("undefined"!==typeof this._vm.messages[M]&&Object.keys(this._vm.messages[M]).length?Object.assign({},this._vm.messages[M]):{},N))},lL.prototype.getDateTimeFormat=function(M){return ys(this._vm.dateTimeFormats[M]||{})},lL.prototype.setDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,N),this._clearDateTimeFormat(M,N)},lL.prototype.mergeDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,xs(this._vm.dateTimeFormats[M]||{},N)),this._clearDateTimeFormat(M,N)},lL.prototype._clearDateTimeFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._dateTimeFormatters.hasOwnProperty(t)&&delete this._dateTimeFormatters[t]}},lL.prototype._localizeDateTime=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),u=0;u<g.length;u++){var s=g[u];if(T=t[s],j=s,!ns(T)&&!ns(T[i]))break}if(ns(T)||ns(T[i]))return null;var L,I=T[i];if(e)L=new Intl.DateTimeFormat(j,Object.assign({},I,e));else{var A=j+"__"+i;L=this._dateTimeFormatters[A],L||(L=this._dateTimeFormatters[A]=new Intl.DateTimeFormat(j,I))}return L.format(M)},lL.prototype._d=function(M,N,D,t){if(!D){var i=t?new Intl.DateTimeFormat(N,t):new Intl.DateTimeFormat(N);return i.format(M)}var e=this._localizeDateTime(M,N,this.fallbackLocale,this._getDateTimeFormats(),D,t);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(M,D,N)}return e||""},lL.prototype.d=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?(Ls(N[0])?i=N[0]:us(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key)),e=Object.keys(N[0]).reduce((function(M,D){var t;return Es(es,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&(Ls(N[0])&&(i=N[0]),Ls(N[1])&&(t=N[1])),this._d(M,t,i,e)},lL.prototype.getNumberFormat=function(M){return ys(this._vm.numberFormats[M]||{})},lL.prototype.setNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,N),this._clearNumberFormat(M,N)},lL.prototype.mergeNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,xs(this._vm.numberFormats[M]||{},N)),this._clearNumberFormat(M,N)},lL.prototype._clearNumberFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._numberFormatters.hasOwnProperty(t)&&delete this._numberFormatters[t]}},lL.prototype._getNumberFormatter=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),u=0;u<g.length;u++){var s=g[u];if(T=t[s],j=s,!ns(T)&&!ns(T[i]))break}if(ns(T)||ns(T[i]))return null;var L,I=T[i];if(e)L=new Intl.NumberFormat(j,Object.assign({},I,e));else{var A=j+"__"+i;L=this._numberFormatters[A],L||(L=this._numberFormatters[A]=new Intl.NumberFormat(j,I))}return L},lL.prototype._n=function(M,N,D,t){if(!lL.availabilities.numberFormat)return"";if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.format(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.format(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(M,Object.assign({},{key:D,locale:N},t))}return j||""},lL.prototype.n=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?Ls(N[0])?i=N[0]:us(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key),e=Object.keys(N[0]).reduce((function(M,D){var t;return Es(is,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&(Ls(N[0])&&(i=N[0]),Ls(N[1])&&(t=N[1])),this._n(M,t,i,e)},lL.prototype._ntp=function(M,N,D,t){if(!lL.availabilities.numberFormat)return[];if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.formatToParts(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.formatToParts(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(M,N,D,t)}return j||[]},Object.defineProperties(lL.prototype,kL),Object.defineProperty(lL,"availabilities",{get:function(){if(!aL){var M="undefined"!==typeof Intl;aL={dateTimeFormat:M&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:M&&"undefined"!==typeof Intl.NumberFormat}}return aL}}),lL.install=_s,lL.version="8.28.2";var QL=lL;function dL(){var M=D("49f8"),N={};return M.keys().forEach((function(D){var t=D.match(/([A-Za-z0-9-_]+)\./i);if(t&&t.length>1){var i=t[1];N[i]=M(D)}})),N}u["a"].use(QL);var YL=function(M){return new QL({dateTimeFormats:UL,numberFormats:pL,locale:M||"en",fallbackLocale:"en",messages:dL(),silentTranslationWarn:!0})},UL={en:{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},es:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},ca:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},eu:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},gl:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},va:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}}},pL={en:{currency:{style:"currency",currency:"USD"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},es:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},ca:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},eu:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},gl:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},va:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}}};function hL(M){var N=D("49f8"),t=!1;return N.keys().forEach((function(N){var D=N.match(/([A-Za-z0-9-_]+)\./i);D&&D.length>1&&D[1]===M&&(t=!0)})),t}u["a"].config.productionTip=!1,u["a"].config.ignoredElements=[/as-\w+/],Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION&&console.info("SDK version: ".concat(Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION));var fL=window.navigator.userAgent,mL=fL.indexOf("MSIE");if(mL>0||navigator.userAgent.match(/Trident.*rv:11\./)){var vL={functional:!0,render:function(M,N){var D=N.data,t=N.children;return M("span",D,t)}},BL={functional:!0,render:function(M,N){N.data;var D=N.children;return D}};u["a"].component("transition",BL),u["a"].component("transition-group",vL)}window.onerror=function(M,N,D,t,i){ZL({err:M,source:N,info:"in line ".concat(D,":").concat(t)})},u["a"].config.errorHandler=function(M,N,D){ZL({err:M,source:N,info:D})};var bL=D("b71f");bL.keys().forEach((function(M){var N=bL(M),D=M.split("/").pop().replace(/\.\w+$/,"");u["a"].component(D,N.default||N)}));var PL=function(){function M(N){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=D.airport,e=D.building,j=D.floor,T=D.explorerMode,g=D.category,u=D.poi,s=D.poiD,L=D.route,I=D.language,A=D.printMode,z=D.lat,n=D.lon,w=D.mupiMode,r=D.avaMode;t(this,M),this.id=N,this.airport=i,this.building=e,this.floor=j,this.explorerMode=T,this.category=g,this.poi=u,this.poiD=s,this.route=L,this.language=I,this.printMode=A,this.lat=z,this.lon=n,this.mupiMode=w||r,this.avaMode=r;try{this.checkErrors(),this.render()}catch(Ts){throw this.renderError(Ts),Ts}}return g(M,[{key:"setAirport",value:function(M){this.airport=M,this.render()}},{key:"setBuilding",value:function(M){this.building=M,this.render()}},{key:"setFloor",value:function(M){this.floor=M,this.render()}},{key:"setPOI",value:function(M){this.poi=M,this.render()}},{key:"SetPoiCategory",value:function(M,N){this.floor=M,this.category=N,this.render()}},{key:"setLanguage",value:function(M){this.language=M,this.render()}},{key:"setRoute",value:function(M){this.route=M,this.render()}},{key:"checkErrors",value:function(){if(!this.id)throw Error("Id is required");if(!this.airport)throw Error("Airport is required");if(this.printMode&&!this.explorerMode)throw Error("Explorer mode are required with print mode is setted");if(!this.explorerMode&&!(this.building||this.floor||this.route||this.poi))throw Error("Building or floor or poi ID are required when mode is in Context Mode");if(this.building&&!this.floor)throw Error("Floor is required with building setted");if(this.category&&!this.building&&!this.floor)throw Error("Building and floor are required with category setted");if(this.mupiMode&&!this.poi)throw Error("Poi ID is required with mupi mode");if(this.avaMode&&!this.poi)throw Error("Poi ID is required with ava mode")}},{key:"render",value:function(){this.finalize();var M=this.language&&hL(this.language)?this.language:"en";this.instance=new u["a"]({store:Object(z["d"])(),i18n:YL(M),data:{id:this.id,airport:this.airport,building:this.building,floor:this.floor,explorerMode:this.explorerMode,category:this.category,poi:this.poi,poiD:this.poiD,route:this.route,printMode:this.printMode,language:M,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode,avaMode:this.avaMode},render:function(M){return M(ts)}}).$mount(this.id)}},{key:"finalize",value:function(){this.instance&&(this.instance.$el.innerHTML="",this.instance.$destroy())}},{key:"renderError",value:function(M){var N=document.getElementById(this.id.split("#")[1]),D=document.createElement("div");D.style.width="100%",D.style.height="100%",D.style.display="flex",D.style.justifyContent="center",D.style.alignItems="center",D.style.backgroundColor="#9c9b9b",D.style.color="#fff",D.innerText=M.toString(),N.append(D)}}]),M}();function ZL(M){var N=M.err,D=M.source,t=M.info;console.error("Error: ",N),console.error("Source: ",D),console.error("Extra info: ",t)}window.AMap=PL},"576c":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
|
|
105
|
+
var N="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,e=M.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,t){return M?/-MMM-/.test(t)?D[M.month()]:N[M.month()]:N},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return e}))},"55dd":function(M,N,D){"use strict";var t=D("5ca1"),i=D("d8e8"),e=D("4bf8"),j=D("79e5"),T=[].sort,g=[1,2,3];t(t.P+t.F*(j((function(){g.sort(void 0)}))||!j((function(){g.sort(null)}))||!D("2f21")(T)),"Array",{sort:function(M){return void 0===M?T.call(e(this)):T.call(e(this),i(M))}})},5609:function(M,N,D){"use strict";D.d(N,"a",(function(){return t})),D.d(N,"b",(function(){return i})),D.d(N,"c",(function(){return e}));var t={LOAD_FULL_AIRPORT:"loadFullAirport",LOAD_AIRPORT:"loadAirport",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",RESET_BBOX:"resetBBOX",LOAD_POIS_CATALOG:"loadPoisCatalog",LOAD_POIS_LIST:"loadPoisList",LOAD_TILES_BUILDING_FLOOR:"loadTilesBuildingFloor",LOAD_FLOOR:"loadFloor",LOAD_POI:"loadPOI",CLEAR_POI:"clearPOI",LOAD_ROUTE:"loadRoute",REMOVE_STEP:"removeStep",CLEAR_ROUTE:"clearRoute",MOVE_ROUTE:"moveRoute",GET_ROUTE:"getRoute",SET_DESTINATION_NAME:"setDestinationName",GET_LINE_ROUTE:"getLineRoute",LOAD_ACTIVE_FILTERS:"loadActiveFilters",LOAD_VIEW:"loadView",ADD_LAYER:"addLayer",UPDATE_LAYER:"updateLayer",DELETE_LAYER:"deleteLayer",SET_PMR_PROFILE:"setPMRProfile",SET_FEEDBACK:"setFeedback",LOAD_ACCESS_CONTROL_TIME:"loadAccessControlTime",SET_HOME_POSITION:"setHomePosition"},i={GET_DEVICE_WIDTH:"getDeviceWidth",GET_IS_MOBILE:"getIsMobile",GET_ID:"getId",GET_LANGUAGE:"getLanguage",GET_EXPLORERMODE:"getExplorerMode",GET_AIRPORT:"getAirport",GET_AIRPORT_ID:"getAirportId",GET_CARTOGRAPHY_TILES:"getCartographyTiles",GET_FLOOR:"getFloor",GET_CATEGORY:"getCategory",GET_BUILDING_ID:"getBuildingId",GET_FLOOR_ID:"getFloorId",GET_ROUTE_CONFIG:"getRouteConfig",GET_BUILDING:"getBuilding",GET_BUILDINGS:"getBuildings",GET_POI_ID:"getPOIId",GET_POID_ID:"getPOIDId",GET_POI:"getPOI",GET_POI_GROUPED:"getPOIGrouped",GET_BLOCK_BBOX:"getBlockBBOX",GET_BBOX:"getBBOX",GET_COORDINATES:"getCoordinates",GET_ZOOM:"getZoom",GET_ACCESS_TOKEN:"getAccessToken",GET_POIS_CATALOG:"getPoisCatalog",GET_POIS_LIST:"getPoisList",GET_TRANSITION_POIS_LIST:"getTransitionPoisList",GET_UNCATEGORIZED_POIS_LIST:"getuncategorizedPoisList",GET_ACTIVE_FILTERS:"getActiveFilters",GET_ROUTE:"getRoute",IS_ROUTE_MODE:"isRouteMode",HAS_ROUTE:"hasRoute",GET_ROUTE_DEFAULT_LEVEL_BUILDING:"getRouteDefaultLevelBuilding",GET_ORIGIN:"getOrigin",GET_DESTINATION:"getDestination",HAS_NEW_POINT:"hasNewPoint",GET_NEW_POINT:"getNewPoint",GET_VIEW:"getView",GET_LAYER_TREE:"getLayerTree",PMR_CONFIG_VISIBLE:"getPMRConfigVisibility",GET_PMR_PROFILE:"getPRMProfile",GET_DEFAULT_PMR_PROFILE:"getDefaultPRMProfile",GET_FEEDBACK:"getFeedback",GET_ROUTE_COUNT:"getRouteCount",GET_PRINTMODE:"getPrintMode",GET_LONLAT:"getLonLat",GET_INITIAL_BBOX:"getInitialBbox",GET_HOME_POSITION:"getHomePosition",IS_MUPI_MODE:"isMupiMode"},e={SAVE_DEVICE_WIDTH:"saveDeviceWidth",SAVE_IS_MOBILE:"saveIsMobile",SAVE_CONFIG:"saveConfig",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",SAVE_BBOX:"saveBBOX",SAVE_ACCESS_TOKEN:"saveAccessToken",SAVE_AIRPORT:"saveAirport",SAVE_CARTOGRAPHY_TILES:"saveCartographyTiles",SAVE_POIS_CATALOG:"savePoisCatalog",SAVE_POIS_LIST:"savePoisList",SAVE_TRANSITION_POIS_LIST:"saveTransitionPoisList",SAVE_UNCATEGORIZED_POIS_LIST:"saveuncategorizedPoisList",SAVE_POI:"savePoi",CLEAR_POI:"clearPOI",SAVE_TILES_BUILDING_FLOOR:"saveTilesBuildingFloor",SAVE_FLOOR:"saveFloor",SAVE_ACTIVE_FILTERS:"saveActiveFilters",SAVE_LAYER:"saveLayer",SAVE_ROUTE:"saveRoute",SAVE_DESTINATION_NAME_ROUTE:"saveDestinationNameRoute",SAVE_ROUTE_MODE:"saveRouteMode",SAVE_DEFAULT_LEVEL_BUILDING:"saveDefaultLevelBuilding",SAVE_VIEW:"saveView",REMOVE_LAYER:"removeLayer",SAVE_PMR_CONFIG_VISIBILITY:"SavePMRConfigVisibility",SAVE_PMR_PROFILE:"savePMRProfile",SAVE_FEEDBACK:"saveFeedback",SET_ROUTE_COUNT:"setRouteCount",SAVE_HOME_POSITION:"saveHomePosition"}},"568a":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzA3IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTYzLjkyMzEsNjEuOTI4NiBDNzEuODcxMSw2MS45Mjg2IDc0LjQ3OTEsNjcuOTM2NiA3OS4zMjExLDc3LjMyNzYgTDg0LjQ3MzEsODcuNTE5NiBMMTAwLjIyMzEsNzEuODc0NiBDMTAxLjY5NDEsNzAuNDAyNiAxMDMuODQ3MSw2OS45MTQ2IDEwNS43ODYxLDcwLjM2NTYgQzEwNi43ODAxLDcwLjU4NzYgMTA3LjY4MzEsNzEuMDc4NiAxMDguNDk0MSw3MS44Mjk2IEMxMTAuNzMzMSw3NC4wNjc2IDExMC43MzIxLDc3LjY5NTYgMTA4LjQ5NDEsNzkuOTMzNiBMODUuNTE2MSwxMDIuODE4NiBDODQuNjE0MSwxMDMuNzU1NiA4My4wMzcxLDEwNC4yNzI2IDgxLjQwOTEsMTA0LjIxNTYgQzc5LjMxNDEsMTA0LjE0MzYgNzcuNTE5MSwxMDIuOTUxNiA3Ni41ODAxLDEwMS4yMzg2IEw2Ny43NzAxLDgyLjQyMDYgTDY0Ljg2MTEsODIuNDIwNiBMNjQuODU4MSwxMjEuOTUyNiBMMzAuNDQ4MSwxMjEuOTUyNiBMMzAuNDQ3MjA4MiwxMjEuNTU2OTM0IEMzMC40MzYxMDc1LDExNi42MjcwMzUgMzAuMzI1MSw2Ny4xOTYzNSAzMC4zMjUxLDYxLjkyODYgTDYzLjkyMzEsNjEuOTI4NiBaIE0xMTguNjA5NywzOS4xNTkgQzEyMS4wNzg3LDM5LjE1OSAxMjMuMDgwNyw0MS4xNjEgMTIzLjA4MDcsNDMuNjI5IEwxMjMuMTIwNywxMjEuODc0IEw3OC4xNjk3LDEyMS44NzQgTDc4LjE2OTcsMTA0LjQ5NiBDNzkuMTE3NywxMDUuMDM5IDgwLjIwNDcsMTA1LjM3MiA4MS4zNjc3LDEwNS40MTIgQzgzLjIxNTcsMTA1LjQ4IDg1LjE1NDcsMTA0LjkwNiA4Ni4zNjE3LDEwMy42NjggTDEwOS4zNDA3LDgwLjc4NCBDMTEwLjI4NTcsNzkuODM5IDExMC44OTc3LDc4LjY5MiAxMTEuMTc5Nyw3Ny40OCBMMTEzLjQyNjcsNzcuNDggTDExMy40MjY3LDQ3LjE2MiBMOTguNzY4Nyw0Ny4xNjIgTDk4Ljc2ODcsNzEuNjI5IEw4NC43OTg3LDg1LjUwNiBMODAuMzg3Nyw3Ni43ODQgQzc5LjYwMTcsNzUuMjU3IDc4Ljg3MDcsNzMuODE4IDc4LjE2OTcsNzIuNDc5IEw3OC4xNjk3LDQzLjYyOSBDNzguMTY5Nyw0MS4xNjEgODAuMTcxNywzOS4xNTkgODIuNjQwNywzOS4xNTkgTDExOC42MDk3LDM5LjE1OSBaIE0xMTcuMjcxMSw0My4xMTkyIEw4NC4wNzgxLDQzLjExOTIgQzgzLjA5MDEsNDMuMTE5MiA4Mi4yODkxLDQzLjkxOTIgODIuMjg5MSw0NC45MDkyIEw4Mi4yODkxLDY4LjExMTIgQzgyLjI4OTEsNjkuMDk3MiA4My4wOTAxLDY5Ljg5OTIgODQuMDc4MSw2OS44OTkyIEw5Ny41NzAxLDY5Ljg5OTIgTDk3LjU3MDEsNDUuOTYzMiBMMTE0LjYyNTEsNDUuOTYzMiBMMTE0LjYyNTEsNjkuODk5MiBMMTE3LjI3MTEsNjkuODk5MiBDMTE4LjI2MDEsNjkuODk5MiAxMTkuMDYwMSw2OS4wOTcyIDExOS4wNjAxLDY4LjExMTIgTDExOS4wNjAxLDQ0LjkwOTIgQzExOS4wNjAxLDQzLjkxOTIgMTE4LjI2MDEsNDMuMTE5MiAxMTcuMjcxMSw0My4xMTkyIFogTTEwNi4wOTY5LDUyLjk1MjkgQzEwNi40NzI5LDUyLjk1MjkgMTA2Ljc3NTksNTMuMjY2OSAxMDYuNzc1OSw1My42NDA5IEwxMDYuNzcwOSw1Ny42NjE5IEwxMTIuMjgyOSw2MC44NzQ5IEwxMTIuMjgyOSw2Mi4yOTY5IEwxMDYuODA3OSw2MC42MTQ5IEwxMDYuODA3OSw2My41NTE5IEwxMDguMDQ2OSw2NC41NTg5IEwxMDguMDQ2OSw2NS42NjI5IEwxMDYuMTA2OSw2NS4wNzk5IEwxMDQuMTQ4OSw2NS42NjI5IEwxMDQuMTQ4OSw2NC41NTg5IEwxMDUuMzg3OSw2My41NTE5IEwxMDUuMzg3OSw2MC42MTQ5IEw5OS45MTM5LDYyLjI5NjkgTDk5LjkxMzksNjAuODc0OSBMMTA1LjQxOTksNTcuNjYxOSBMMTA1LjQyMTksNTMuNjMwOSBDMTA1LjQyMTksNTMuMjU1OSAxMDUuNzI0OSw1Mi45NTI5IDEwNi4wOTY5LDUyLjk1MjkgWiBNNDcuNDc2MiwzMS44NDUxIEM1NC43NDkyLDMxLjg0NTEgNjAuNjQ2MiwzNy43NDMxIDYwLjY0NjIsNDUuMDE3MSBDNjAuNjQ2Miw1Mi4yOTAxIDU0Ljc0OTIsNTguMTg3MSA0Ny40NzYyLDU4LjE4NzEgQzQwLjIwMDIsNTguMTg3MSAzNC4zMDUyLDUyLjI5MDEgMzQuMzA1Miw0NS4wMTcxIEMzNC4zMDUyLDM3Ljc0MzEgNDAuMjAwMiwzMS44NDUxIDQ3LjQ3NjIsMzEuODQ1MSBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},"569b":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wYXBfMjEtbWsiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPGcgaWQ9InBvaS0vLXBhcF8yMSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTM4LjkwMTksMTE0LjYwMzkgQzM4LjkwMTksMTExLjM5MTkgNDEuNTA1OSwxMDguNzg4OSA0NC43MTY5LDEwOC43ODg5IEM0Ny45Mjg5LDEwOC43ODg5IDUwLjUzMjksMTExLjM5MTkgNTAuNTMyOSwxMTQuNjAzOSBDNTAuNTMyOSwxMTcuODE0OSA0Ny45Mjg5LDEyMC40MTc5IDQ0LjcxNjksMTIwLjQxNzkgQzQxLjUwNTksMTIwLjQxNzkgMzguOTAxOSwxMTcuODE0OSAzOC45MDE5LDExNC42MDM5IEwzOC45MDE5LDExNC42MDM5IFogTTg5LjU5MTksMTE0LjYwMzkgQzg5LjU5MTksMTExLjM5MTkgOTIuMTk1OSwxMDguNzg4OSA5NS40MDc5LDEwOC43ODg5IEM5OC42MTk5LDEwOC43ODg5IDEwMS4yMjI5LDExMS4zOTE5IDEwMS4yMjI5LDExNC42MDM5IEMxMDEuMjIyOSwxMTcuODE0OSA5OC42MTk5LDEyMC40MTc5IDk1LjQwNzksMTIwLjQxNzkgQzkyLjE5NTksMTIwLjQxNzkgODkuNTkxOSwxMTcuODE0OSA4OS41OTE5LDExNC42MDM5IEw4OS41OTE5LDExNC42MDM5IFogTTk5LjQwNzksOTcuMjM5OSBMOTkuNDA3OSw1OC41MDE5IEM5OS40MDc5LDUyLjYxNzkgMTA0LjIxMjksNDguMDE0OSAxMTAuMDk2OSw0OC4wMTQ5IEwxMTYuMTk3OSw0OC4wMTQ5IEMxMTguMjk0OSw0OC4wMTQ5IDExOS45OTU5LDQ5LjcxNTkgMTE5Ljk5NTksNTEuODEyOSBDMTE5Ljk5NTksNTMuOTA5OSAxMTguMzExOSw1NS42MTA5IDExNi4yMTQ5LDU1LjYxMDkgTDExMC44MDE5LDU1LjYxMDkgQzEwOC43MDQ5LDU1LjYxMDkgMTA3LjAwMzksNTcuMjc4OSAxMDcuMDAzOSw1OS4zNzU5IEwxMDcuMDAzOSwxMDQuODIyOSBMMzcuNzkyOSwxMDQuODIyOSBDMzUuNjk0OSwxMDQuODIyOSAzMy45OTM5LDEwMy4xNDc5IDMzLjk5MzksMTAxLjA1MDkgQzMzLjk5MzksOTguOTUyOSAzNS43Mjk5LDk3LjIzOTkgMzcuODI4OSw5Ny4yMzk5IEw5OS40MDc5LDk3LjIzOTkgWiBNNTkuMTM2OSw1Ni4yODQ5IEw1OS4xMzY5LDUyLjA3MzkgQzU5LjEzNjksNTAuMzg4OSA2MC41MDI5LDQ5LjAyMTkgNjIuMTg2OSw0OS4wMjE5IEw3My40MzI5LDQ5LjAyMTkgQzc1LjExNzksNDkuMDIxOSA3Ni40ODI5LDUwLjM4ODkgNzYuNDgyOSw1Mi4wNzM5IEw3Ni40ODI5LDU2LjI4NDkgTDg5LjM0MjksNTYuMjgyOSBDOTIuNzEwOSw1Ni4yODI5IDk1LjQ0MDksNTkuMDEzOSA5NS40NDA5LDYyLjM4MDkgTDk1LjQ0MDksODcuMTYwOSBDOTUuNDQwOSw5MC41Mjk5IDkyLjcxMDksOTMuMjU4OSA4OS4zNDI5LDkzLjI1ODkgTDQ2LjI3NzksOTMuMjU4OSBDNDIuOTA4OSw5My4yNTg5IDQwLjE3ODksOTAuNTI5OSA0MC4xNzg5LDg3LjE2MDkgTDQwLjE3ODksNjIuMzgwOSBDNDAuMTc4OSw1OS4wMTM5IDQyLjkwODksNTYuMjgyOSA0Ni4yNzc5LDU2LjI4MjkgTDU5LjEzNjksNTYuMjg0OSBaIE03My45NjA5LDU2LjI4MjkgTDYxLjcwMTksNTYuMjgyOSBMNjEuNzAxOSw1My4xNjk5IEM2MS43MDE5LDUyLjI3NTkgNjIuNDI2OSw1MS41NTE5IDYzLjMxOTksNTEuNTUxOSBMNzIuMzUzOSw1MS41NTE5IEM3My4yNDc5LDUxLjU1MTkgNzMuOTcwOSw1Mi4yNzU5IDczLjk3MDksNTMuMTY5OSBMNzMuOTYwOSw1Ni4yODI5IFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"56d7":function(M,N,D){"use strict";D.r(N),D.d(N,"AMap",(function(){return PL}));D("6b54"),D("87b3");function t(M,N){if(!(M instanceof N))throw new TypeError("Cannot call a class as a function")}var i=D("454f"),e=D.n(i),j=D("a6fa");function T(M,N){for(var D=0;D<N.length;D++){var t=N[D];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),e()(M,Object(j["a"])(t.key),t)}}function g(M,N,D){return N&&T(M.prototype,N),D&&T(M,D),e()(M,"prototype",{writable:!1}),M}D("28a5"),D("a481"),D("ac6a"),D("f3e2"),D("4917"),D("57e7"),D("cadf"),D("551c"),D("f751"),D("097d"),D("6d93"),D("2ce5");Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function M(){var N=isNaN(arguments[0])?1:Number(arguments[0]);return N?Array.prototype.reduce.call(this,(function(D,t){return Array.isArray(t)?D.push.apply(D,M.call(t,N-1)):D.push(t),D}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(M){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var u=D("a026"),s=function(){var M=this,N=M._self._c;return N("div",{staticClass:"flughaveno-map",class:[M.deviceWidthClass],attrs:{id:M.appId}},[M.isPortrait?N("Modal",{scopedSlots:M._u([{key:"content",fn:function(){return[N("div",{staticClass:"modal-content-wrapper"},[N("Icon",{attrs:{icon:"rotar-tablet.svg",size:"48px",fill:"#ffffff"}}),N("p",[M._v(M._s(M.$t("HORIZONTAL_MESSAGE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeModal}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#ffffff"}})],1)],1)]},proxy:!0}],null,!1,3100628582)}):M._e(),(M.explorerMode||M.routeConfig&&M.routeConfig.info)&&!M.printMode?N("div",{staticClass:"points-wrapper",class:{"route-mode":M.isRouteMode},attrs:{id:"points-wrapper"}},[M.loaded?N("AenaPoints",{on:{toggle:M.onPointsToggle}}):M._e()],1):M._e(),M.explorerMode?[N("div",{staticClass:"terminal-selector-wrapper",class:{top:M.selectedPoi&&M.pointsDetailCollapsed}},[M.loaded?N("AenaTerminalSelector"):M._e()],1),N("div",{staticClass:"home-wrapper"},[N("AenaHomeButton")],1),M.printMode?M._e():N("div",{staticClass:"logo-wrapper"},[N("img",{attrs:{src:D("4c46"),alt:"CARTO logo","aria-roledescription":"logo"}})]),!M.printMode&&M.avaMode?N("div",{staticClass:"qr-wrapper"},[N("img",{staticClass:"qr-image",attrs:{src:D("ecc3"),alt:"qr","aria-roledescription":"qr"}})]):M._e(),"true"===M.pmr_enabled&&M.hasRoute&&!M.printMode?N("div",{staticClass:"pmr-wrapper"},[N("AenaPmr")],1):M._e(),M.printMode?M._e():N("div",{staticClass:"legend-wrapper"},[N("AenaLegend")],1),M.feedback&&!M.printMode?N("div",{staticClass:"feedback-wrapper"},[N("Feedback")],1):M._e(),M.printMode&&M.layers?N("Layers",{attrs:{layers:M.layers},on:{change:M.onLayerChange}}):M._e()]:M._e(),N("div",{staticClass:"map-wrapper"},[N("MapComponent",{ref:"map",attrs:{explorerMode:M.explorerMode,printMode:M.printMode,lat:M.lat,lon:M.lon,full_airport_loaded:M.loaded}})],1),M.loaded?M._e():N("div",{staticClass:"loading-airport"},[M._v("\n "+M._s(M.$t("LOADING_AIRPORT"))+"\n ")])],2)},L=[],I=(D("1c01"),D("58b2"),D("8e6e"),D("d25f"),D("456d"),D("7f7f"),D("6d67"),D("8ea5"),D("bd86")),A=(D("96cf"),D("3b8d")),z=D("4360"),n=D("2f62"),w=function(){var M=this,N=M._self._c;return N("div",{staticClass:"map-component",class:[M.deviceWidthClass]},[N("div",{staticClass:"map-component",attrs:{id:M.id}}),M._m(0)])},r=[function(){var M=this,N=M._self._c;return N("div",{staticClass:"attrib"},[N("div",{staticClass:"mapboxgl-ctrl-attrib-inner"},[M._v("©"),N("a",{attrs:{href:"https://aena.es/",target:"_blank",rel:"noopener"}},[M._v("Aena S.M.E, S.A")]),M._v(" ©"),N("a",{attrs:{href:"https://carto.com/",target:"_blank",rel:"noopener"}},[M._v("CARTO")]),M._v(" ©"),N("a",{attrs:{href:"http://www.openstreetmap.org/about/",target:"_blank"}},[M._v("OpenStreetMap")]),M._v(" contributors")])])}],y=(D("6762"),D("2fdb"),D("7514"),D("6c7b"),D("75fc")),c=(D("0cd8"),D("ffc1"),D("e192"));D("ac6d");function a(M,N){return M.features=M.features.filter((function(M){return M.properties.subcategories.includes(N)})),M}var E=D("4e28");function o(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function O(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?o(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):o(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var x={computed:O({},Object(n["c"])({poisList:z["b"].GET_POIS_LIST,uncategorizedPoisList:z["b"].GET_UNCATEGORIZED_POIS_LIST,hasRoute:z["b"].HAS_ROUTE,routeDefaultLevel:z["b"].GET_ROUTE_DEFAULT_LEVEL_BUILDING})),methods:O(O({},Object(n["b"])([z["a"].LOAD_FLOOR,z["a"].LOAD_POI])),{},{saveFloor:function(M){var N=M.buildingId,D=M.floorId,t=M.force,i=void 0!==t&&t,e=M.airportID,j=M.tag,T=void 0===j?"mapa":j,g=M.event,u=void 0!==g&&g,s=this.buildings.find((function(M){return M.id===N}));if(s){var L=this.routeDefaultLevel[s.id]?this.routeDefaultLevel[s.id]:D,I=!this.hasRoute||i?D:L,A=s.levels.find((function(M){return M.id===I}));if(u){var n="".concat(s.name,". Planta ").concat(A.name),w={eventCategory:T,eventAction:"clic",eventLabel:"".concat(Object(E["a"])(n)),language:this.$i18n.locale,airportID:e};window.digitalChange("event",w)}return this[z["a"].LOAD_FLOOR]({building:s,floor:A})}},findPoi:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));return N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N},savePoi:function(M){var N=M.poiId,D=M.pointGrouped,t=M.airportID,i=M.tag,e=this.findPoi(N),j=e.properties.level,T=e.properties.building;return this.saveFloor({buildingId:T,floorId:j,airportID:t,tag:i}),this[z["a"].LOAD_POI]({poi:e,pointGrouped:D})}})},C=(D("20d6"),D("759f"),D("5609")),S=D("d30b");function l(M,N,D){if(null!==M)for(var t,i,e,j,T,g,u,s,L=0,I=0,A=M.type,z="FeatureCollection"===A,n="Feature"===A,w=z?M.features.length:1,r=0;r<w;r++){u=z?M.features[r].geometry:n?M.geometry:M,s=!!u&&"GeometryCollection"===u.type,T=s?u.geometries.length:1;for(var y=0;y<T;y++){var c=0,a=0;if(j=s?u.geometries[y]:u,null!==j){g=j.coordinates;var E=j.type;switch(L=!D||"Polygon"!==E&&"MultiPolygon"!==E?0:1,E){case null:break;case"Point":if(!1===N(g,I,r,c,a))return!1;I++,c++;break;case"LineString":case"MultiPoint":for(t=0;t<g.length;t++){if(!1===N(g[t],I,r,c,a))return!1;I++,"MultiPoint"===E&&c++}"LineString"===E&&c++;break;case"Polygon":case"MultiLineString":for(t=0;t<g.length;t++){for(i=0;i<g[t].length-L;i++){if(!1===N(g[t][i],I,r,c,a))return!1;I++}"MultiLineString"===E&&c++,"Polygon"===E&&a++}"Polygon"===E&&c++;break;case"MultiPolygon":for(t=0;t<g.length;t++){for(a=0,i=0;i<g[t].length;i++){for(e=0;e<g[t][i].length-L;e++){if(!1===N(g[t][i][e],I,r,c,a))return!1;I++}a++}c++}break;case"GeometryCollection":for(t=0;t<j.geometries.length;t++)if(!1===l(j.geometries[t],N,D))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function k(M,N){if("Feature"===M.type)N(M,0);else if("FeatureCollection"===M.type)for(var D=0;D<M.features.length;D++)if(!1===N(M.features[D],D))break}function Q(M,N){void 0===N&&(N={});var D=0,t=0,i=0;return l(M,(function(M){D+=M[0],t+=M[1],i++}),!0),Object(S["g"])([D/i,t/i],N.properties)}var d=Q,Y=D("4703");function U(M,N,D){void 0===D&&(D=2);var t=Object(Y["a"])(M),i=Object(Y["a"])(N),e=t[0]-i[0],j=t[1]-i[1];return 1===D?Math.abs(e)+Math.abs(j):Math.pow(Math.pow(e,D)+Math.pow(j,D),1/D)}function p(M,N){N=N||{};var D=N.threshold||1e4,t=N.p||2,i=N.binary||!1,e=N.alpha||-1,j=N.standardization||!1,T=[];k(M,(function(M){T.push(d(M))}));for(var g=[],u=0;u<T.length;u++)g[u]=[];for(u=0;u<T.length;u++)for(var s=u;s<T.length;s++){u===s&&(g[u][s]=0);var L=U(T[u],T[s],t);g[u][s]=L,g[s][u]=L}for(u=0;u<T.length;u++)for(s=0;s<T.length;s++){L=g[u][s];0!==L&&(g[u][s]=i?L<=D?1:0:L<=D?Math.pow(L,e):0)}if(j)for(u=0;u<T.length;u++){var I=g[u].reduce((function(M,N){return M+N}),0);for(s=0;s<T.length;s++)g[u][s]=g[u][s]/I}return g}function h(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function f(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?h(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):h(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var m={computed:f({},Object(n["c"])({buildings:C["b"].GET_BUILDINGS})),methods:{getBuilding:function(M){return this.buildings.find((function(N){return N.id===M}))},setLocation:function(){var M=this,N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N.forEach((function(N){N.properties.location=M.getBuilding(N.properties.building)}))}}},v=D("8967");function B(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function b(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?B(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):B(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var P={mixins:[m],computed:b(b({},Object(n["c"])({routeC:C["b"].GET_ROUTE,originC:C["b"].GET_ORIGIN,destinationC:C["b"].GET_DESTINATION,newPoints:C["b"].GET_NEW_POINT,pmrProfile:C["b"].GET_PMR_PROFILE})),{},{steps:{get:function(){return this.routeC.steps},set:function(M){this[C["a"].MOVE_ROUTE]({steps:M})}},route:function(){return this.routeC.route},origin:function(){var M=this.originC;if(M)return this.setLocation([M]),M},destination:function(){var M=this.destinationC;if(M)return this.setLocation([M]),M},duration:function(){return this.routeC.duration},distance:function(){return this.routeC.distance},error:function(){return this.routeC.error},loading:function(){return this.routeC.loading},destinationName:function(){return this.routeC.destinationName},routeCondition:function(){var M,N,D,t,i,e,j="",T="",g="",u=null===this.pmrProfile?"hombre-caminando-t.svg":"pmr-t-green.svg";return this.route.some((function(j){var T=j.instructions.filter((function(M){return v["d"].includes(M.tag.type.toUpperCase())||v["c"].includes(M.tag.type.toUpperCase())||v["b"].includes(M.tag.type.toUpperCase())}));return M=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][0]})).length,D=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][1]})).length,e=T.filter((function(M){return M.tag.type.toUpperCase()===v["b"][0]})).length,N=M>1||M&&D,t=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][0]})).length,i=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][1]})).length,M||N||D||t||i})),N?(j="ROUTE_SECURITY_CONTROL_PLUS",u="icon-seguridad-t.svg"):M?(j="ROUTE_SECURITY_CONTROL",u="icon-seguridad-t.svg"):D&&(j="ROUTE_PASSPORT_CONTROL",u="cruza-el-control-de-pasaporte-jj.svg"),t&&i?(T="ROUTE_MULTI_TRANSPORT",u="transporte-publico-t.svg"):t?(T="ROUTE_TRAIN",u="metro-t.svg"):i&&(T="ROUTE_BUS",u="bus-grande-t.svg"),e&&(g="ROUTE_ONEWAY_NO_RETURN"),j||T||(T=null===this.pmrProfile?"ROUTE_NORMAL":"ROUTE_NORMAL_PMR"),j&&T&&(u="seguridad-transporte.svg"),{msg:j,msg2:T,msg3:g,icon:u,securityControl:!!M||!!D,oneWay:!!e}},iconCondition:function(){return this.routeCondition.icon},z:function(){return this.routeC.z}}),methods:b(b({},Object(n["b"])([C["a"].LOAD_ROUTE,C["a"].CLEAR_ROUTE,C["a"].MOVE_ROUTE,C["a"].SET_DESTINATION_NAME])),{},{moreClose:function(M){var N=M[0];if(this.origin||this.destination){var D={type:"FeatureCollection",features:[this.origin||this.destination].concat(Object(y["a"])(M))},t=p(D),i=t[0];i.shift();var e=Math.max.apply(Math,Object(y["a"])(i)),j=i.findIndex((function(M){return M===e}));N=M[j]}return N},setDestination:function(M){this[C["a"].SET_DESTINATION_NAME](M)}})},Z=D("db49"),G=function(){var M=this,N=M._self._c;return N("ul",{staticClass:"context-menu-container"},[M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"FROM_HERE",expression:"'FROM_HERE'"}],on:{click:function(N){return M.click("origin")}}}):M._e(),M.origin&&M.destination&&M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"ADD_POINT",expression:"'ADD_POINT'"}],on:{click:function(N){return M.click("step")}}}):M._e(),M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"TO_HERE",expression:"'TO_HERE'"}],on:{click:function(N){return M.click("destination")}}}):M._e(),M.debugMode?N("li",{staticClass:"debug-li"},[N("p",{staticClass:"debug-header"},[M._v("EPSG: 4326")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lat:")]),N("input",{ref:"lat",staticClass:"debug-text",domProps:{value:M.coordinates4326[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lat")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lon:")]),N("input",{ref:"lon",staticClass:"debug-text",domProps:{value:M.coordinates4326[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lon")}}},[M._v("copy")])])]):M._e(),M.debugMode?N("li",[N("p",{staticClass:"debug-header"},[M._v("EPSG: 3857")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("x:")]),N("input",{ref:"x",staticClass:"debug-text",domProps:{value:M.coordinates3857[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("x")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("y:")]),N("input",{ref:"y",staticClass:"debug-text",domProps:{value:M.coordinates3857[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("y")}}},[M._v("copy")])])]):M._e()])},R=[],W=(D("c5f6"),function(M){M("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),M("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),M("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),M.WGS84=M["EPSG:4326"],M["EPSG:3785"]=M["EPSG:3857"],M.GOOGLE=M["EPSG:3857"],M["EPSG:900913"]=M["EPSG:3857"],M["EPSG:102113"]=M["EPSG:3857"]}),X=1,H=2,_=3,F=4,V=5,J=6378137,q=6356752.314,K=.0066943799901413165,$=484813681109536e-20,MM=Math.PI/2,NM=.16666666666666666,DM=.04722222222222222,tM=.022156084656084655,iM=1e-10,eM=.017453292519943295,jM=57.29577951308232,TM=Math.PI/4,gM=2*Math.PI,uM=3.14159265359,sM={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},LM={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},IM=/[\s_\-\/\(\)]/g;function AM(M,N){if(M[N])return M[N];var D,t,i=Object.keys(M),e=N.toLowerCase().replace(IM,""),j=-1;while(++j<i.length)if(D=i[j],t=D.toLowerCase().replace(IM,""),t===e)return M[D]}var zM=function(M){var N,D,t,i={},e=M.split("+").map((function(M){return M.trim()})).filter((function(M){return M})).reduce((function(M,N){var D=N.split("=");return D.push(!0),M[D[0].toLowerCase()]=D[1],M}),{}),j={proj:"projName",datum:"datumCode",rf:function(M){i.rf=parseFloat(M)},lat_0:function(M){i.lat0=M*eM},lat_1:function(M){i.lat1=M*eM},lat_2:function(M){i.lat2=M*eM},lat_ts:function(M){i.lat_ts=M*eM},lon_0:function(M){i.long0=M*eM},lon_1:function(M){i.long1=M*eM},lon_2:function(M){i.long2=M*eM},alpha:function(M){i.alpha=parseFloat(M)*eM},gamma:function(M){i.rectified_grid_angle=parseFloat(M)},lonc:function(M){i.longc=M*eM},x_0:function(M){i.x0=parseFloat(M)},y_0:function(M){i.y0=parseFloat(M)},k_0:function(M){i.k0=parseFloat(M)},k:function(M){i.k0=parseFloat(M)},a:function(M){i.a=parseFloat(M)},b:function(M){i.b=parseFloat(M)},r_a:function(){i.R_A=!0},zone:function(M){i.zone=parseInt(M,10)},south:function(){i.utmSouth=!0},towgs84:function(M){i.datum_params=M.split(",").map((function(M){return parseFloat(M)}))},to_meter:function(M){i.to_meter=parseFloat(M)},units:function(M){i.units=M;var N=AM(LM,M);N&&(i.to_meter=N.to_meter)},from_greenwich:function(M){i.from_greenwich=M*eM},pm:function(M){var N=AM(sM,M);i.from_greenwich=(N||parseFloat(M))*eM},nadgrids:function(M){"@null"===M?i.datumCode="none":i.nadgrids=M},axis:function(M){var N="ewnsud";3===M.length&&-1!==N.indexOf(M.substr(0,1))&&-1!==N.indexOf(M.substr(1,1))&&-1!==N.indexOf(M.substr(2,1))&&(i.axis=M)},approx:function(){i.approx=!0}};for(N in e)D=e[N],N in j?(t=j[N],"function"===typeof t?t(D):i[t]=D):i[N]=D;return"string"===typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i},nM=kM,wM=1,rM=2,yM=3,cM=4,aM=5,EM=-1,oM=/\s/,OM=/[A-Za-z]/,xM=/[A-Za-z84_]/,CM=/[,\]]/,SM=/[\d\.E\-\+]/;function lM(M){if("string"!==typeof M)throw new Error("not a string");this.text=M.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=wM}function kM(M){var N=new lM(M);return N.output()}function QM(M,N,D){Array.isArray(N)&&(D.unshift(N),N=null);var t=N?{}:M,i=D.reduce((function(M,N){return dM(N,M),M}),t);N&&(M[N]=i)}function dM(M,N){if(Array.isArray(M)){var D=M.shift();if("PARAMETER"===D&&(D=M.shift()),1===M.length)return Array.isArray(M[0])?(N[D]={},void dM(M[0],N[D])):void(N[D]=M[0]);if(M.length)if("TOWGS84"!==D){if("AXIS"===D)return D in N||(N[D]=[]),void N[D].push(M);var t;switch(Array.isArray(D)||(N[D]={}),D){case"UNIT":case"PRIMEM":case"VERT_DATUM":return N[D]={name:M[0].toLowerCase(),convert:M[1]},void(3===M.length&&dM(M[2],N[D]));case"SPHEROID":case"ELLIPSOID":return N[D]={name:M[0],a:M[1],rf:M[2]},void(4===M.length&&dM(M[3],N[D]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return M[0]=["name",M[0]],void QM(N,D,M);default:t=-1;while(++t<M.length)if(!Array.isArray(M[t]))return dM(M,N[D]);return QM(N,D,M)}}else N[D]=M;else N[D]=!0}else N[M]=!0}lM.prototype.readCharicter=function(){var M=this.text[this.place++];if(this.state!==cM)while(oM.test(M)){if(this.place>=this.text.length)return;M=this.text[this.place++]}switch(this.state){case wM:return this.neutral(M);case rM:return this.keyword(M);case cM:return this.quoted(M);case aM:return this.afterquote(M);case yM:return this.number(M);case EM:return}},lM.prototype.afterquote=function(M){if('"'===M)return this.word+='"',void(this.state=cM);if(CM.test(M))return this.word=this.word.trim(),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in afterquote yet, index '+this.place)},lM.prototype.afterItem=function(M){return","===M?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=wM)):"]"===M?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=wM,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=EM))):void 0},lM.prototype.number=function(M){if(!SM.test(M)){if(CM.test(M))return this.word=parseFloat(this.word),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in number yet, index '+this.place)}this.word+=M},lM.prototype.quoted=function(M){'"'!==M?this.word+=M:this.state=aM},lM.prototype.keyword=function(M){if(xM.test(M))this.word+=M;else{if("["===M){var N=[];return N.push(this.word),this.level++,null===this.root?this.root=N:this.currentObject.push(N),this.stack.push(this.currentObject),this.currentObject=N,void(this.state=wM)}if(!CM.test(M))throw new Error("havn't handled \""+M+'" in keyword yet, index '+this.place);this.afterItem(M)}},lM.prototype.neutral=function(M){if(OM.test(M))return this.word=M,void(this.state=rM);if('"'===M)return this.word="",void(this.state=cM);if(SM.test(M))return this.word=M,void(this.state=yM);if(!CM.test(M))throw new Error("havn't handled \""+M+'" in neutral yet, index '+this.place);this.afterItem(M)},lM.prototype.output=function(){while(this.place<this.text.length)this.readCharicter();if(this.state===EM)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var YM=.017453292519943295;function UM(M,N){var D=N[0],t=N[1];!(D in M)&&t in M&&(M[D]=M[t],3===N.length&&(M[D]=N[2](M[D])))}function pM(M){return M*YM}function hM(M){if("GEOGCS"===M.type?M.projName="longlat":"LOCAL_CS"===M.type?(M.projName="identity",M.local=!0):"object"===typeof M.PROJECTION?M.projName=Object.keys(M.PROJECTION)[0]:M.projName=M.PROJECTION,M.AXIS){for(var N="",D=0,t=M.AXIS.length;D<t;++D){var i=[M.AXIS[D][0].toLowerCase(),M.AXIS[D][1].toLowerCase()];-1!==i[0].indexOf("north")||("y"===i[0]||"lat"===i[0])&&"north"===i[1]?N+="n":-1!==i[0].indexOf("south")||("y"===i[0]||"lat"===i[0])&&"south"===i[1]?N+="s":-1!==i[0].indexOf("east")||("x"===i[0]||"lon"===i[0])&&"east"===i[1]?N+="e":-1===i[0].indexOf("west")&&("x"!==i[0]&&"lon"!==i[0]||"west"!==i[1])||(N+="w")}2===N.length&&(N+="u"),3===N.length&&(M.axis=N)}M.UNIT&&(M.units=M.UNIT.name.toLowerCase(),"metre"===M.units&&(M.units="meter"),M.UNIT.convert&&("GEOGCS"===M.type?M.DATUM&&M.DATUM.SPHEROID&&(M.to_meter=M.UNIT.convert*M.DATUM.SPHEROID.a):M.to_meter=M.UNIT.convert));var e=M.GEOGCS;function j(N){var D=M.to_meter||1;return N*D}"GEOGCS"===M.type&&(e=M),e&&(e.DATUM?M.datumCode=e.DATUM.name.toLowerCase():M.datumCode=e.name.toLowerCase(),"d_"===M.datumCode.slice(0,2)&&(M.datumCode=M.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==M.datumCode&&"new_zealand_1949"!==M.datumCode||(M.datumCode="nzgd49"),"wgs_1984"!==M.datumCode&&"world_geodetic_system_1984"!==M.datumCode||("Mercator_Auxiliary_Sphere"===M.PROJECTION&&(M.sphere=!0),M.datumCode="wgs84"),"_ferro"===M.datumCode.slice(-6)&&(M.datumCode=M.datumCode.slice(0,-6)),"_jakarta"===M.datumCode.slice(-8)&&(M.datumCode=M.datumCode.slice(0,-8)),~M.datumCode.indexOf("belge")&&(M.datumCode="rnb72"),e.DATUM&&e.DATUM.SPHEROID&&(M.ellps=e.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===M.ellps.toLowerCase().slice(0,13)&&(M.ellps="intl"),M.a=e.DATUM.SPHEROID.a,M.rf=parseFloat(e.DATUM.SPHEROID.rf,10)),e.DATUM&&e.DATUM.TOWGS84&&(M.datum_params=e.DATUM.TOWGS84),~M.datumCode.indexOf("osgb_1936")&&(M.datumCode="osgb36"),~M.datumCode.indexOf("osni_1952")&&(M.datumCode="osni52"),(~M.datumCode.indexOf("tm65")||~M.datumCode.indexOf("geodetic_datum_of_1965"))&&(M.datumCode="ire65"),"ch1903+"===M.datumCode&&(M.datumCode="ch1903"),~M.datumCode.indexOf("israel")&&(M.datumCode="isr93")),M.b&&!isFinite(M.b)&&(M.b=M.a);var T=function(N){return UM(M,N)},g=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",pM],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",pM],["x0","false_easting",j],["y0","false_northing",j],["long0","central_meridian",pM],["lat0","latitude_of_origin",pM],["lat0","standard_parallel_1",pM],["lat1","standard_parallel_1",pM],["lat2","standard_parallel_2",pM],["azimuth","Azimuth"],["alpha","azimuth",pM],["srsCode","name"]];g.forEach(T),M.long0||!M.longc||"Albers_Conic_Equal_Area"!==M.projName&&"Lambert_Azimuthal_Equal_Area"!==M.projName||(M.long0=M.longc),M.lat_ts||!M.lat1||"Stereographic_South_Pole"!==M.projName&&"Polar Stereographic (variant B)"!==M.projName?!M.lat_ts&&M.lat0&&"Polar_Stereographic"===M.projName&&(M.lat_ts=M.lat0,M.lat0=pM(M.lat0>0?90:-90)):(M.lat0=pM(M.lat1>0?90:-90),M.lat_ts=M.lat1)}var fM=function(M){var N=nM(M),D=N.shift(),t=N.shift();N.unshift(["name",t]),N.unshift(["type",D]);var i={};return dM(N,i),hM(i),i};function mM(M){var N=this;if(2===arguments.length){var D=arguments[1];"string"===typeof D?"+"===D.charAt(0)?mM[M]=zM(arguments[1]):mM[M]=fM(arguments[1]):mM[M]=D}else if(1===arguments.length){if(Array.isArray(M))return M.map((function(M){Array.isArray(M)?mM.apply(N,M):mM(M)}));if("string"===typeof M){if(M in mM)return mM[M]}else"EPSG"in M?mM["EPSG:"+M.EPSG]=M:"ESRI"in M?mM["ESRI:"+M.ESRI]=M:"IAU2000"in M?mM["IAU2000:"+M.IAU2000]=M:console.log(M);return}}W(mM);var vM=mM;function BM(M){return"string"===typeof M}function bM(M){return M in vM}var PM=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function ZM(M){return PM.some((function(N){return M.indexOf(N)>-1}))}var GM=["3857","900913","3785","102113"];function RM(M){var N=AM(M,"authority");if(N){var D=AM(N,"epsg");return D&&GM.indexOf(D)>-1}}function WM(M){var N=AM(M,"extension");if(N)return AM(N,"proj4")}function XM(M){return"+"===M[0]}function HM(M){if(!BM(M))return M;if(bM(M))return vM[M];if(ZM(M)){var N=fM(M);if(RM(N))return vM["EPSG:3857"];var D=WM(N);return D?zM(D):N}return XM(M)?zM(M):void 0}var _M=HM,FM=function(M,N){var D,t;if(M=M||{},!N)return M;for(t in N)D=N[t],void 0!==D&&(M[t]=D);return M},VM=function(M,N,D){var t=M*N;return D/Math.sqrt(1-t*t)},JM=function(M){return M<0?-1:1},qM=function(M){return Math.abs(M)<=uM?M:M-JM(M)*gM},KM=function(M,N,D){var t=M*D,i=.5*M;return t=Math.pow((1-t)/(1+t),i),Math.tan(.5*(MM-N))/t},$M=function(M,N){for(var D,t,i=.5*M,e=MM-2*Math.atan(N),j=0;j<=15;j++)if(D=M*Math.sin(e),t=MM-2*Math.atan(N*Math.pow((1-D)/(1+D),i))-e,e+=t,Math.abs(t)<=1e-10)return e;return-9999};function MN(){var M=this.b/this.a;this.es=1-M*M,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=VM(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function NN(M){var N,D,t=M.x,i=M.y;if(i*jM>90&&i*jM<-90&&t*jM>180&&t*jM<-180)return null;if(Math.abs(Math.abs(i)-MM)<=iM)return null;if(this.sphere)N=this.x0+this.a*this.k0*qM(t-this.long0),D=this.y0+this.a*this.k0*Math.log(Math.tan(TM+.5*i));else{var e=Math.sin(i),j=KM(this.e,i,e);N=this.x0+this.a*this.k0*qM(t-this.long0),D=this.y0-this.a*this.k0*Math.log(j)}return M.x=N,M.y=D,M}function DN(M){var N,D,t=M.x-this.x0,i=M.y-this.y0;if(this.sphere)D=MM-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var e=Math.exp(-i/(this.a*this.k0));if(D=$M(this.e,e),-9999===D)return null}return N=qM(this.long0+t/(this.a*this.k0)),M.x=N,M.y=D,M}var tN=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],iN={init:MN,forward:NN,inverse:DN,names:tN};function eN(){}function jN(M){return M}var TN=["longlat","identity"],gN={init:eN,forward:jN,inverse:jN,names:TN},uN=[iN,gN],sN={},LN=[];function IN(M,N){var D=LN.length;return M.names?(LN[D]=M,M.names.forEach((function(M){sN[M.toLowerCase()]=D})),this):(console.log(N),!0)}function AN(M){if(!M)return!1;var N=M.toLowerCase();return"undefined"!==typeof sN[N]&&LN[sN[N]]?LN[sN[N]]:void 0}function zN(){uN.forEach(IN)}var nN={start:zN,add:IN,get:AN},wN={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},rN=wN.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function yN(M,N,D,t){var i=M*M,e=N*N,j=(i-e)/i,T=0;t?(M*=1-j*(NM+j*(DM+j*tM)),i=M*M,j=0):T=Math.sqrt(j);var g=(i-e)/e;return{es:j,e:T,ep2:g}}function cN(M,N,D,t,i){if(!M){var e=AM(wN,t);e||(e=rN),M=e.a,N=e.b,D=e.rf}return D&&!N&&(N=(1-1/D)*M),(0===D||Math.abs(M-N)<iM)&&(i=!0,N=M),{a:M,b:N,rf:D,sphere:i}}wN.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var aN={};function EN(M,N,D,t,i,e,j){var T={};return T.datum_type=void 0===M||"none"===M?V:F,N&&(T.datum_params=N.map(parseFloat),0===T.datum_params[0]&&0===T.datum_params[1]&&0===T.datum_params[2]||(T.datum_type=X),T.datum_params.length>3&&(0===T.datum_params[3]&&0===T.datum_params[4]&&0===T.datum_params[5]&&0===T.datum_params[6]||(T.datum_type=H,T.datum_params[3]*=$,T.datum_params[4]*=$,T.datum_params[5]*=$,T.datum_params[6]=T.datum_params[6]/1e6+1))),j&&(T.datum_type=_,T.grids=j),T.a=D,T.b=t,T.es=i,T.ep2=e,T}aN.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},aN.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},aN.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},aN.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},aN.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},aN.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},aN.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},aN.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},aN.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},aN.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},aN.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},aN.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},aN.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},aN.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},aN.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},aN.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},aN.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var oN=EN,ON={};function xN(M,N){var D=new DataView(N),t=kN(D),i=QN(D,t);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var e=YN(D,i,t),j={header:i,subgrids:e};return ON[M]=j,j}function CN(M){if(void 0===M)return null;var N=M.split(",");return N.map(SN)}function SN(M){if(0===M.length)return null;var N="@"===M[0];return N&&(M=M.slice(1)),"null"===M?{name:"null",mandatory:!N,grid:null,isNull:!0}:{name:M,mandatory:!N,grid:ON[M]||null,isNull:!1}}function lN(M){return M/3600*Math.PI/180}function kN(M){var N=M.getInt32(8,!1);return 11!==N&&(N=M.getInt32(8,!0),11!==N&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function QN(M,N){return{nFields:M.getInt32(8,N),nSubgridFields:M.getInt32(24,N),nSubgrids:M.getInt32(40,N),shiftType:dN(M,56,64).trim(),fromSemiMajorAxis:M.getFloat64(120,N),fromSemiMinorAxis:M.getFloat64(136,N),toSemiMajorAxis:M.getFloat64(152,N),toSemiMinorAxis:M.getFloat64(168,N)}}function dN(M,N,D){return String.fromCharCode.apply(null,new Uint8Array(M.buffer.slice(N,D)))}function YN(M,N,D){for(var t=176,i=[],e=0;e<N.nSubgrids;e++){var j=pN(M,t,D),T=hN(M,t,j,D),g=Math.round(1+(j.upperLongitude-j.lowerLongitude)/j.longitudeInterval),u=Math.round(1+(j.upperLatitude-j.lowerLatitude)/j.latitudeInterval);i.push({ll:[lN(j.lowerLongitude),lN(j.lowerLatitude)],del:[lN(j.longitudeInterval),lN(j.latitudeInterval)],lim:[g,u],count:j.gridNodeCount,cvs:UN(T)})}return i}function UN(M){return M.map((function(M){return[lN(M.longitudeShift),lN(M.latitudeShift)]}))}function pN(M,N,D){return{name:dN(M,N+8,N+16).trim(),parent:dN(M,N+24,N+24+8).trim(),lowerLatitude:M.getFloat64(N+72,D),upperLatitude:M.getFloat64(N+88,D),lowerLongitude:M.getFloat64(N+104,D),upperLongitude:M.getFloat64(N+120,D),latitudeInterval:M.getFloat64(N+136,D),longitudeInterval:M.getFloat64(N+152,D),gridNodeCount:M.getInt32(N+168,D)}}function hN(M,N,D,t){for(var i=N+176,e=16,j=[],T=0;T<D.gridNodeCount;T++){var g={latitudeShift:M.getFloat32(i+T*e,t),longitudeShift:M.getFloat32(i+T*e+4,t),latitudeAccuracy:M.getFloat32(i+T*e+8,t),longitudeAccuracy:M.getFloat32(i+T*e+12,t)};j.push(g)}return j}function fN(M,N){if(!(this instanceof fN))return new fN(M);N=N||function(M){if(M)throw M};var D=_M(M);if("object"===typeof D){var t=fN.projections.get(D.projName);if(t){if(D.datumCode&&"none"!==D.datumCode){var i=AM(aN,D.datumCode);i&&(D.datum_params=D.datum_params||(i.towgs84?i.towgs84.split(","):null),D.ellps=i.ellipse,D.datumName=i.datumName?i.datumName:D.datumCode)}D.k0=D.k0||1,D.axis=D.axis||"enu",D.ellps=D.ellps||"wgs84",D.lat1=D.lat1||D.lat0;var e=cN(D.a,D.b,D.rf,D.ellps,D.sphere),j=yN(e.a,e.b,e.rf,D.R_A),T=CN(D.nadgrids),g=D.datum||oN(D.datumCode,D.datum_params,e.a,e.b,j.es,j.ep2,T);FM(this,D),FM(this,t),this.a=e.a,this.b=e.b,this.rf=e.rf,this.sphere=e.sphere,this.es=j.es,this.e=j.e,this.ep2=j.ep2,this.datum=g,this.init(),N(null,this)}else N(M)}else N(M)}fN.projections=nN,fN.projections.start();var mN=fN;function vN(M,N){return M.datum_type===N.datum_type&&(!(M.a!==N.a||Math.abs(M.es-N.es)>5e-11)&&(M.datum_type===X?M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]:M.datum_type!==H||M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]&&M.datum_params[3]===N.datum_params[3]&&M.datum_params[4]===N.datum_params[4]&&M.datum_params[5]===N.datum_params[5]&&M.datum_params[6]===N.datum_params[6]))}function BN(M,N,D){var t,i,e,j,T=M.x,g=M.y,u=M.z?M.z:0;if(g<-MM&&g>-1.001*MM)g=-MM;else if(g>MM&&g<1.001*MM)g=MM;else{if(g<-MM)return{x:-1/0,y:-1/0,z:M.z};if(g>MM)return{x:1/0,y:1/0,z:M.z}}return T>Math.PI&&(T-=2*Math.PI),i=Math.sin(g),j=Math.cos(g),e=i*i,t=D/Math.sqrt(1-N*e),{x:(t+u)*j*Math.cos(T),y:(t+u)*j*Math.sin(T),z:(t*(1-N)+u)*i}}function bN(M,N,D,t){var i,e,j,T,g,u,s,L,I,A,z,n,w,r,y,c,a=1e-12,E=a*a,o=30,O=M.x,x=M.y,C=M.z?M.z:0;if(i=Math.sqrt(O*O+x*x),e=Math.sqrt(O*O+x*x+C*C),i/D<a){if(r=0,e/D<a)return y=MM,c=-t,{x:M.x,y:M.y,z:M.z}}else r=Math.atan2(x,O);j=C/e,T=i/e,g=1/Math.sqrt(1-N*(2-N)*T*T),L=T*(1-N)*g,I=j*g,w=0;do{w++,s=D/Math.sqrt(1-N*I*I),c=i*L+C*I-s*(1-N*I*I),u=N*s/(s+c),g=1/Math.sqrt(1-u*(2-u)*T*T),A=T*(1-u)*g,z=j*g,n=z*L-A*I,L=A,I=z}while(n*n>E&&w<o);return y=Math.atan(z/Math.abs(A)),{x:r,y:y,z:c}}function PN(M,N,D){if(N===X)return{x:M.x+D[0],y:M.y+D[1],z:M.z+D[2]};if(N===H){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],u=D[6];return{x:u*(M.x-g*M.y+T*M.z)+t,y:u*(g*M.x+M.y-j*M.z)+i,z:u*(-T*M.x+j*M.y+M.z)+e}}}function ZN(M,N,D){if(N===X)return{x:M.x-D[0],y:M.y-D[1],z:M.z-D[2]};if(N===H){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],u=D[6],s=(M.x-t)/u,L=(M.y-i)/u,I=(M.z-e)/u;return{x:s+g*L-T*I,y:-g*s+L+j*I,z:T*s-j*L+I}}}function GN(M){return M===X||M===H}var RN=function(M,N,D){if(vN(M,N))return D;if(M.datum_type===V||N.datum_type===V)return D;var t=M.a,i=M.es;if(M.datum_type===_){var e=WN(M,!1,D);if(0!==e)return;t=J,i=K}var j=N.a,T=N.b,g=N.es;if(N.datum_type===_&&(j=J,T=q,g=K),i===g&&t===j&&!GN(M.datum_type)&&!GN(N.datum_type))return D;if(D=BN(D,i,t),GN(M.datum_type)&&(D=PN(D,M.datum_type,M.datum_params)),GN(N.datum_type)&&(D=ZN(D,N.datum_type,N.datum_params)),D=bN(D,g,j,T),N.datum_type===_){var u=WN(N,!0,D);if(0!==u)return}return D};function WN(M,N,D){if(null===M.grids||0===M.grids.length)return console.log("Grid shift grids not found"),-1;for(var t={x:-D.x,y:D.y},i={x:Number.NaN,y:Number.NaN},e=[],j=0;j<M.grids.length;j++){var T=M.grids[j];if(e.push(T.name),T.isNull){i=t;break}if(T.mandatory,null!==T.grid){var g=T.grid.subgrids[0],u=(Math.abs(g.del[1])+Math.abs(g.del[0]))/1e4,s=g.ll[0]-u,L=g.ll[1]-u,I=g.ll[0]+(g.lim[0]-1)*g.del[0]+u,A=g.ll[1]+(g.lim[1]-1)*g.del[1]+u;if(!(L>t.y||s>t.x||A<t.y||I<t.x)&&(i=XN(t,N,g),!isNaN(i.x)))break}else if(T.mandatory)return console.log("Unable to find mandatory grid '"+T.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-t.x*jM+" "+t.y*jM+" tried: '"+e+"'"),-1):(D.x=-i.x,D.y=i.y,0)}function XN(M,N,D){var t={x:Number.NaN,y:Number.NaN};if(isNaN(M.x))return t;var i={x:M.x,y:M.y};i.x-=D.ll[0],i.y-=D.ll[1],i.x=qM(i.x-Math.PI)+Math.PI;var e=HN(i,D);if(N){if(isNaN(e.x))return t;e.x=i.x-e.x,e.y=i.y-e.y;var j,T,g=9,u=1e-12;do{if(T=HN(e,D),isNaN(T.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}j={x:i.x-(T.x+e.x),y:i.y-(T.y+e.y)},e.x+=j.x,e.y+=j.y}while(g--&&Math.abs(j.x)>u&&Math.abs(j.y)>u);if(g<0)return console.log("Inverse grid shift iterator failed to converge."),t;t.x=qM(e.x+D.ll[0]),t.y=e.y+D.ll[1]}else isNaN(e.x)||(t.x=M.x+e.x,t.y=M.y+e.y);return t}function HN(M,N){var D,t={x:M.x/N.del[0],y:M.y/N.del[1]},i={x:Math.floor(t.x),y:Math.floor(t.y)},e={x:t.x-1*i.x,y:t.y-1*i.y},j={x:Number.NaN,y:Number.NaN};if(i.x<0||i.x>=N.lim[0])return j;if(i.y<0||i.y>=N.lim[1])return j;D=i.y*N.lim[0]+i.x;var T={x:N.cvs[D][0],y:N.cvs[D][1]};D++;var g={x:N.cvs[D][0],y:N.cvs[D][1]};D+=N.lim[0];var u={x:N.cvs[D][0],y:N.cvs[D][1]};D--;var s={x:N.cvs[D][0],y:N.cvs[D][1]},L=e.x*e.y,I=e.x*(1-e.y),A=(1-e.x)*(1-e.y),z=(1-e.x)*e.y;return j.x=A*T.x+I*g.x+z*s.x+L*u.x,j.y=A*T.y+I*g.y+z*s.y+L*u.y,j}var _N=function(M,N,D){var t,i,e,j=D.x,T=D.y,g=D.z||0,u={};for(e=0;e<3;e++)if(!N||2!==e||void 0!==D.z)switch(0===e?(t=j,i=-1!=="ew".indexOf(M.axis[e])?"x":"y"):1===e?(t=T,i=-1!=="ns".indexOf(M.axis[e])?"y":"x"):(t=g,i="z"),M.axis[e]){case"e":u[i]=t;break;case"w":u[i]=-t;break;case"n":u[i]=t;break;case"s":u[i]=-t;break;case"u":void 0!==D[i]&&(u.z=t);break;case"d":void 0!==D[i]&&(u.z=-t);break;default:return null}return u},FN=function(M){var N={x:M[0],y:M[1]};return M.length>2&&(N.z=M[2]),M.length>3&&(N.m=M[3]),N},VN=function(M){JN(M.x),JN(M.y)};function JN(M){if("function"===typeof Number.isFinite){if(Number.isFinite(M))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof M||M!==M||!isFinite(M))throw new TypeError("coordinates must be finite numbers")}function qN(M,N){return(M.datum.datum_type===X||M.datum.datum_type===H||M.datum.datum_type===_)&&"WGS84"!==N.datumCode||(N.datum.datum_type===X||N.datum.datum_type===H||N.datum.datum_type===_)&&"WGS84"!==M.datumCode}function KN(M,N,D,t){var i;D=Array.isArray(D)?FN(D):{x:D.x,y:D.y,z:D.z,m:D.m};var e=void 0!==D.z;if(VN(D),M.datum&&N.datum&&qN(M,N)&&(i=new mN("WGS84"),D=KN(M,i,D,t),M=i),t&&"enu"!==M.axis&&(D=_N(M,!1,D)),"longlat"===M.projName)D={x:D.x*eM,y:D.y*eM,z:D.z||0};else if(M.to_meter&&(D={x:D.x*M.to_meter,y:D.y*M.to_meter,z:D.z||0}),D=M.inverse(D),!D)return;if(M.from_greenwich&&(D.x+=M.from_greenwich),D=RN(M.datum,N.datum,D),D)return N.from_greenwich&&(D={x:D.x-N.from_greenwich,y:D.y,z:D.z||0}),"longlat"===N.projName?D={x:D.x*jM,y:D.y*jM,z:D.z||0}:(D=N.forward(D),N.to_meter&&(D={x:D.x/N.to_meter,y:D.y/N.to_meter,z:D.z||0})),t&&"enu"!==N.axis?_N(N,!0,D):(e||delete D.z,D)}var $N=mN("WGS84");function MD(M,N,D,t){var i,e,j;return Array.isArray(D)?(i=KN(M,N,D,t)||{x:NaN,y:NaN},D.length>2?"undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name?"number"===typeof i.z?[i.x,i.y,i.z].concat(D.splice(3)):[i.x,i.y,D[2]].concat(D.splice(3)):[i.x,i.y].concat(D.splice(2)):[i.x,i.y]):(e=KN(M,N,D,t),j=Object.keys(D),2===j.length||j.forEach((function(t){if("undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name){if("x"===t||"y"===t||"z"===t)return}else if("x"===t||"y"===t)return;e[t]=D[t]})),e)}function ND(M){return M instanceof mN?M:M.oProj?M.oProj:mN(M)}function DD(M,N,D){M=ND(M);var t,i=!1;return"undefined"===typeof N?(N=M,M=$N,i=!0):("undefined"!==typeof N.x||Array.isArray(N))&&(D=N,N=M,M=$N,i=!0),N=ND(N),D?MD(M,N,D):(t={forward:function(D,t){return MD(M,N,D,t)},inverse:function(D,t){return MD(N,M,D,t)}},i&&(t.oProj=N),t)}var tD=DD,iD=6,eD="AJSAJS",jD="AFAFAF",TD=65,gD=73,uD=79,sD=86,LD=90,ID={forward:AD,inverse:zD,toPoint:nD};function AD(M,N){return N=N||5,ED(yD({lat:M[1],lon:M[0]}),N)}function zD(M){var N=cD(CD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat,N.lon,N.lat]:[N.left,N.bottom,N.right,N.top]}function nD(M){var N=cD(CD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat]:[(N.left+N.right)/2,(N.top+N.bottom)/2]}function wD(M){return M*(Math.PI/180)}function rD(M){return M/Math.PI*180}function yD(M){var N,D,t,i,e,j,T,g,u,s=M.lat,L=M.lon,I=6378137,A=.00669438,z=.9996,n=wD(s),w=wD(L);u=Math.floor((L+180)/6)+1,180===L&&(u=60),s>=56&&s<64&&L>=3&&L<12&&(u=32),s>=72&&s<84&&(L>=0&&L<9?u=31:L>=9&&L<21?u=33:L>=21&&L<33?u=35:L>=33&&L<42&&(u=37)),N=6*(u-1)-180+3,g=wD(N),D=A/(1-A),t=I/Math.sqrt(1-A*Math.sin(n)*Math.sin(n)),i=Math.tan(n)*Math.tan(n),e=D*Math.cos(n)*Math.cos(n),j=Math.cos(n)*(w-g),T=I*((1-A/4-3*A*A/64-5*A*A*A/256)*n-(3*A/8+3*A*A/32+45*A*A*A/1024)*Math.sin(2*n)+(15*A*A/256+45*A*A*A/1024)*Math.sin(4*n)-35*A*A*A/3072*Math.sin(6*n));var r=z*t*(j+(1-i+e)*j*j*j/6+(5-18*i+i*i+72*e-58*D)*j*j*j*j*j/120)+5e5,y=z*(T+t*Math.tan(n)*(j*j/2+(5-i+9*e+4*e*e)*j*j*j*j/24+(61-58*i+i*i+600*e-330*D)*j*j*j*j*j*j/720));return s<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(r),zoneNumber:u,zoneLetter:aD(s)}}function cD(M){var N=M.northing,D=M.easting,t=M.zoneLetter,i=M.zoneNumber;if(i<0||i>60)return null;var e,j,T,g,u,s,L,I,A,z,n=.9996,w=6378137,r=.00669438,y=(1-Math.sqrt(1-r))/(1+Math.sqrt(1-r)),c=D-5e5,a=N;t<"N"&&(a-=1e7),I=6*(i-1)-180+3,e=r/(1-r),L=a/n,A=L/(w*(1-r/4-3*r*r/64-5*r*r*r/256)),z=A+(3*y/2-27*y*y*y/32)*Math.sin(2*A)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*A)+151*y*y*y/96*Math.sin(6*A),j=w/Math.sqrt(1-r*Math.sin(z)*Math.sin(z)),T=Math.tan(z)*Math.tan(z),g=e*Math.cos(z)*Math.cos(z),u=w*(1-r)/Math.pow(1-r*Math.sin(z)*Math.sin(z),1.5),s=c/(j*n);var E=z-j*Math.tan(z)/u*(s*s/2-(5+3*T+10*g-4*g*g-9*e)*s*s*s*s/24+(61+90*T+298*g+45*T*T-252*e-3*g*g)*s*s*s*s*s*s/720);E=rD(E);var o,O=(s-(1+2*T+g)*s*s*s/6+(5-2*g+28*T-3*g*g+8*e+24*T*T)*s*s*s*s*s/120)/Math.cos(z);if(O=I+rD(O),M.accuracy){var x=cD({northing:M.northing+M.accuracy,easting:M.easting+M.accuracy,zoneLetter:M.zoneLetter,zoneNumber:M.zoneNumber});o={top:x.lat,right:x.lon,bottom:E,left:O}}else o={lat:E,lon:O};return o}function aD(M){var N="Z";return 84>=M&&M>=72?N="X":72>M&&M>=64?N="W":64>M&&M>=56?N="V":56>M&&M>=48?N="U":48>M&&M>=40?N="T":40>M&&M>=32?N="S":32>M&&M>=24?N="R":24>M&&M>=16?N="Q":16>M&&M>=8?N="P":8>M&&M>=0?N="N":0>M&&M>=-8?N="M":-8>M&&M>=-16?N="L":-16>M&&M>=-24?N="K":-24>M&&M>=-32?N="J":-32>M&&M>=-40?N="H":-40>M&&M>=-48?N="G":-48>M&&M>=-56?N="F":-56>M&&M>=-64?N="E":-64>M&&M>=-72?N="D":-72>M&&M>=-80&&(N="C"),N}function ED(M,N){var D="00000"+M.easting,t="00000"+M.northing;return M.zoneNumber+M.zoneLetter+oD(M.easting,M.northing,M.zoneNumber)+D.substr(D.length-5,N)+t.substr(t.length-5,N)}function oD(M,N,D){var t=OD(D),i=Math.floor(M/1e5),e=Math.floor(N/1e5)%20;return xD(i,e,t)}function OD(M){var N=M%iD;return 0===N&&(N=iD),N}function xD(M,N,D){var t=D-1,i=eD.charCodeAt(t),e=jD.charCodeAt(t),j=i+M-1,T=e+N,g=!1;j>LD&&(j=j-LD+TD-1,g=!0),(j===gD||i<gD&&j>gD||(j>gD||i<gD)&&g)&&j++,(j===uD||i<uD&&j>uD||(j>uD||i<uD)&&g)&&(j++,j===gD&&j++),j>LD&&(j=j-LD+TD-1),T>sD?(T=T-sD+TD-1,g=!0):g=!1,(T===gD||e<gD&&T>gD||(T>gD||e<gD)&&g)&&T++,(T===uD||e<uD&&T>uD||(T>uD||e<uD)&&g)&&(T++,T===gD&&T++),T>sD&&(T=T-sD+TD-1);var u=String.fromCharCode(j)+String.fromCharCode(T);return u}function CD(M){if(M&&0===M.length)throw"MGRSPoint coverting from nothing";var N,D=M.length,t=null,i="",e=0;while(!/[A-Z]/.test(N=M.charAt(e))){if(e>=2)throw"MGRSPoint bad conversion from: "+M;i+=N,e++}var j=parseInt(i,10);if(0===e||e+3>D)throw"MGRSPoint bad conversion from: "+M;var T=M.charAt(e++);if(T<="A"||"B"===T||"Y"===T||T>="Z"||"I"===T||"O"===T)throw"MGRSPoint zone letter "+T+" not handled: "+M;t=M.substring(e,e+=2);var g=OD(j),u=SD(t.charAt(0),g),s=lD(t.charAt(1),g);while(s<kD(T))s+=2e6;var L=D-e;if(L%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+M;var I,A,z,n,w,r=L/2,y=0,c=0;return r>0&&(I=1e5/Math.pow(10,r),A=M.substring(e,e+r),y=parseFloat(A)*I,z=M.substring(e+r),c=parseFloat(z)*I),n=y+u,w=c+s,{easting:n,northing:w,zoneLetter:T,zoneNumber:j,accuracy:I}}function SD(M,N){var D=eD.charCodeAt(N-1),t=1e5,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===gD&&D++,D===uD&&D++,D>LD){if(i)throw"Bad character: "+M;D=TD,i=!0}t+=1e5}return t}function lD(M,N){if(M>"V")throw"MGRSPoint given invalid Northing "+M;var D=jD.charCodeAt(N-1),t=0,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===gD&&D++,D===uD&&D++,D>sD){if(i)throw"Bad character: "+M;D=TD,i=!0}t+=1e5}return t}function kD(M){var N;switch(M){case"C":N=11e5;break;case"D":N=2e6;break;case"E":N=28e5;break;case"F":N=37e5;break;case"G":N=46e5;break;case"H":N=55e5;break;case"J":N=64e5;break;case"K":N=73e5;break;case"L":N=82e5;break;case"M":N=91e5;break;case"N":N=0;break;case"P":N=8e5;break;case"Q":N=17e5;break;case"R":N=26e5;break;case"S":N=35e5;break;case"T":N=44e5;break;case"U":N=53e5;break;case"V":N=62e5;break;case"W":N=7e6;break;case"X":N=79e5;break;default:N=-1}if(N>=0)return N;throw"Invalid zone letter: "+M}function QD(M,N,D){if(!(this instanceof QD))return new QD(M,N,D);if(Array.isArray(M))this.x=M[0],this.y=M[1],this.z=M[2]||0;else if("object"===typeof M)this.x=M.x,this.y=M.y,this.z=M.z||0;else if("string"===typeof M&&"undefined"===typeof N){var t=M.split(",");this.x=parseFloat(t[0],10),this.y=parseFloat(t[1],10),this.z=parseFloat(t[2],10)||0}else this.x=M,this.y=N,this.z=D||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}QD.fromMGRS=function(M){return new QD(nD(M))},QD.prototype.toMGRS=function(M){return AD([this.x,this.y],M)};var dD=QD,YD=1,UD=.25,pD=.046875,hD=.01953125,fD=.01068115234375,mD=.75,vD=.46875,BD=.013020833333333334,bD=.007120768229166667,PD=.3645833333333333,ZD=.005696614583333333,GD=.3076171875,RD=function(M){var N=[];N[0]=YD-M*(UD+M*(pD+M*(hD+M*fD))),N[1]=M*(mD-M*(pD+M*(hD+M*fD)));var D=M*M;return N[2]=D*(vD-M*(BD+M*bD)),D*=M,N[3]=D*(PD-M*ZD),N[4]=D*M*GD,N},WD=function(M,N,D,t){return D*=N,N*=N,t[0]*M-D*(t[1]+N*(t[2]+N*(t[3]+N*t[4])))},XD=20,HD=function(M,N,D){for(var t=1/(1-N),i=M,e=XD;e;--e){var j=Math.sin(i),T=1-N*j*j;if(T=(WD(i,j,Math.cos(i),D)-M)*(T*Math.sqrt(T))*t,i-=T,Math.abs(T)<iM)return i}return i};function _D(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=RD(this.es),this.ml0=WD(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function FD(M){var N,D,t,i=M.x,e=M.y,j=qM(i-this.long0),T=Math.sin(e),g=Math.cos(e);if(this.es){var u=g*j,s=Math.pow(u,2),L=this.ep2*Math.pow(g,2),I=Math.pow(L,2),A=Math.abs(g)>iM?Math.tan(e):0,z=Math.pow(A,2),n=Math.pow(z,2);N=1-this.es*Math.pow(T,2),u/=Math.sqrt(N);var w=WD(e,T,g,this.en);D=this.a*(this.k0*u*(1+s/6*(1-z+L+s/20*(5-18*z+n+14*L-58*z*L+s/42*(61+179*n-n*z-479*z)))))+this.x0,t=this.a*(this.k0*(w-this.ml0+T*j*u/2*(1+s/12*(5-z+9*L+4*I+s/30*(61+n-58*z+270*L-330*z*L+s/56*(1385+543*n-n*z-3111*z))))))+this.y0}else{var r=g*Math.sin(j);if(Math.abs(Math.abs(r)-1)<iM)return 93;if(D=.5*this.a*this.k0*Math.log((1+r)/(1-r))+this.x0,t=g*Math.cos(j)/Math.sqrt(1-Math.pow(r,2)),r=Math.abs(t),r>=1){if(r-1>iM)return 93;t=0}else t=Math.acos(t);e<0&&(t=-t),t=this.a*this.k0*(t-this.lat0)+this.y0}return M.x=D,M.y=t,M}function VD(M){var N,D,t,i,e=(M.x-this.x0)*(1/this.a),j=(M.y-this.y0)*(1/this.a);if(this.es)if(N=this.ml0+j/this.k0,D=HD(N,this.es,this.en),Math.abs(D)<MM){var T=Math.sin(D),g=Math.cos(D),u=Math.abs(g)>iM?Math.tan(D):0,s=this.ep2*Math.pow(g,2),L=Math.pow(s,2),I=Math.pow(u,2),A=Math.pow(I,2);N=1-this.es*Math.pow(T,2);var z=e*Math.sqrt(N)/this.k0,n=Math.pow(z,2);N*=u,t=D-N*n/(1-this.es)*.5*(1-n/12*(5+3*I-9*s*I+s-4*L-n/30*(61+90*I-252*s*I+45*A+46*s-n/56*(1385+3633*I+4095*A+1574*A*I)))),i=qM(this.long0+z*(1-n/6*(1+2*I+s-n/20*(5+28*I+24*A+8*s*I+6*s-n/42*(61+662*I+1320*A+720*A*I))))/g)}else t=MM*JM(j),i=0;else{var w=Math.exp(e/this.k0),r=.5*(w-1/w),y=this.lat0+j/this.k0,c=Math.cos(y);N=Math.sqrt((1-Math.pow(c,2))/(1+Math.pow(r,2))),t=Math.asin(N),j<0&&(t=-t),i=0===r&&0===c?0:qM(Math.atan2(r,c)+this.long0)}return M.x=i,M.y=t,M}var JD=["Fast_Transverse_Mercator","Fast Transverse Mercator"],qD={init:_D,forward:FD,inverse:VD,names:JD},KD=function(M){var N=Math.exp(M);return N=(N-1/N)/2,N},$D=function(M,N){M=Math.abs(M),N=Math.abs(N);var D=Math.max(M,N),t=Math.min(M,N)/(D||1);return D*Math.sqrt(1+Math.pow(t,2))},Mt=function(M){var N=1+M,D=N-1;return 0===D?M:M*Math.log(N)/D},Nt=function(M){var N=Math.abs(M);return N=Mt(N*(1+N/($D(1,N)+1))),M<0?-N:N},Dt=function(M,N){var D,t=2*Math.cos(2*N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return N+D*Math.sin(2*N)},tt=function(M,N){var D,t=2*Math.cos(N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return Math.sin(N)*D},it=function(M){var N=Math.exp(M);return N=(N+1/N)/2,N},et=function(M,N,D){var t,i,e=Math.sin(N),j=Math.cos(N),T=KD(D),g=it(D),u=2*j*g,s=-2*e*T,L=M.length-1,I=M[L],A=0,z=0,n=0;while(--L>=0)t=z,i=A,z=I,A=n,I=u*z-t-s*A+M[L],n=s*z-i+u*A;return u=e*g,s=j*T,[u*I-s*n,u*n+s*I]};function jt(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(qD.init.apply(this),this.forward=qD.forward,this.inverse=qD.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var M=this.es/(1+Math.sqrt(1-this.es)),N=M/(2-M),D=N;this.cgb[0]=N*(2+N*(-2/3+N*(N*(116/45+N*(26/45+N*(-2854/675)))-2))),this.cbg[0]=N*(N*(2/3+N*(4/3+N*(-82/45+N*(32/45+N*(4642/4725)))))-2),D*=N,this.cgb[1]=D*(7/3+N*(N*(-227/45+N*(2704/315+N*(2323/945)))-1.6)),this.cbg[1]=D*(5/3+N*(-16/15+N*(-13/9+N*(904/315+N*(-1522/945))))),D*=N,this.cgb[2]=D*(56/15+N*(-136/35+N*(-1262/105+N*(73814/2835)))),this.cbg[2]=D*(-26/15+N*(34/21+N*(1.6+N*(-12686/2835)))),D*=N,this.cgb[3]=D*(4279/630+N*(-332/35+N*(-399572/14175))),this.cbg[3]=D*(1237/630+N*(N*(-24832/14175)-2.4)),D*=N,this.cgb[4]=D*(4174/315+N*(-144838/6237)),this.cbg[4]=D*(-734/315+N*(109598/31185)),D*=N,this.cgb[5]=D*(601676/22275),this.cbg[5]=D*(444337/155925),D=Math.pow(N,2),this.Qn=this.k0/(1+N)*(1+D*(1/4+D*(1/64+D/256))),this.utg[0]=N*(N*(2/3+N*(-37/96+N*(1/360+N*(81/512+N*(-96199/604800)))))-.5),this.gtu[0]=N*(.5+N*(-2/3+N*(5/16+N*(41/180+N*(-127/288+N*(7891/37800)))))),this.utg[1]=D*(-1/48+N*(-1/15+N*(437/1440+N*(-46/105+N*(1118711/3870720))))),this.gtu[1]=D*(13/48+N*(N*(557/1440+N*(281/630+N*(-1983433/1935360)))-.6)),D*=N,this.utg[2]=D*(-17/480+N*(37/840+N*(209/4480+N*(-5569/90720)))),this.gtu[2]=D*(61/240+N*(-103/140+N*(15061/26880+N*(167603/181440)))),D*=N,this.utg[3]=D*(-4397/161280+N*(11/504+N*(830251/7257600))),this.gtu[3]=D*(49561/161280+N*(-179/168+N*(6601661/7257600))),D*=N,this.utg[4]=D*(-4583/161280+N*(108847/3991680)),this.gtu[4]=D*(34729/80640+N*(-3418889/1995840)),D*=N,this.utg[5]=D*(-20648693/638668800),this.gtu[5]=.6650675310896665*D;var t=Dt(this.cbg,this.lat0);this.Zb=-this.Qn*(t+tt(this.gtu,2*t))}function Tt(M){var N=qM(M.x-this.long0),D=M.y;D=Dt(this.cbg,D);var t=Math.sin(D),i=Math.cos(D),e=Math.sin(N),j=Math.cos(N);D=Math.atan2(t,j*i),N=Math.atan2(e*i,$D(t,i*j)),N=Nt(Math.tan(N));var T,g,u=et(this.gtu,2*D,2*N);return D+=u[0],N+=u[1],Math.abs(N)<=2.623395162778?(T=this.a*(this.Qn*N)+this.x0,g=this.a*(this.Qn*D+this.Zb)+this.y0):(T=1/0,g=1/0),M.x=T,M.y=g,M}function gt(M){var N,D,t=(M.x-this.x0)*(1/this.a),i=(M.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,t/=this.Qn,Math.abs(t)<=2.623395162778){var e=et(this.utg,2*i,2*t);i+=e[0],t+=e[1],t=Math.atan(KD(t));var j=Math.sin(i),T=Math.cos(i),g=Math.sin(t),u=Math.cos(t);i=Math.atan2(j*u,$D(g,u*T)),t=Math.atan2(g,u*T),N=qM(t+this.long0),D=Dt(this.cgb,i)}else N=1/0,D=1/0;return M.x=N,M.y=D,M}var ut=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],st={init:jt,forward:Tt,inverse:gt,names:ut},Lt=function(M,N){if(void 0===M){if(M=Math.floor(30*(qM(N)+Math.PI)/Math.PI)+1,M<0)return 0;if(M>60)return 60}return M},It="etmerc";function At(){var M=Lt(this.zone,this.long0);if(void 0===M)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(M)-183)*eM,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,st.init.apply(this),this.forward=st.forward,this.inverse=st.inverse}var zt=["Universal Transverse Mercator System","utm"],nt={init:At,names:zt,dependsOn:It},wt=function(M,N){return Math.pow((1-M)/(1+M),N)},rt=20;function yt(){var M=Math.sin(this.lat0),N=Math.cos(this.lat0);N*=N,this.rc=Math.sqrt(1-this.es)/(1-this.es*M*M),this.C=Math.sqrt(1+this.es*N*N/(1-this.es)),this.phic0=Math.asin(M/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+TM)/(Math.pow(Math.tan(.5*this.lat0+TM),this.C)*wt(this.e*M,this.ratexp))}function ct(M){var N=M.x,D=M.y;return M.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*D+TM),this.C)*wt(this.e*Math.sin(D),this.ratexp))-MM,M.x=this.C*N,M}function at(M){for(var N=1e-14,D=M.x/this.C,t=M.y,i=Math.pow(Math.tan(.5*t+TM)/this.K,1/this.C),e=rt;e>0;--e){if(t=2*Math.atan(i*wt(this.e*Math.sin(M.y),-.5*this.e))-MM,Math.abs(t-M.y)<N)break;M.y=t}return e?(M.x=D,M.y=t,M):null}var Et=["gauss"],ot={init:yt,forward:ct,inverse:at,names:Et};function Ot(){ot.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function xt(M){var N,D,t,i;return M.x=qM(M.x-this.long0),ot.forward.apply(this,[M]),N=Math.sin(M.y),D=Math.cos(M.y),t=Math.cos(M.x),i=this.k0*this.R2/(1+this.sinc0*N+this.cosc0*D*t),M.x=i*D*Math.sin(M.x),M.y=i*(this.cosc0*N-this.sinc0*D*t),M.x=this.a*M.x+this.x0,M.y=this.a*M.y+this.y0,M}function Ct(M){var N,D,t,i,e;if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,e=Math.sqrt(M.x*M.x+M.y*M.y)){var j=2*Math.atan2(e,this.R2);N=Math.sin(j),D=Math.cos(j),i=Math.asin(D*this.sinc0+M.y*N*this.cosc0/e),t=Math.atan2(M.x*N,e*this.cosc0*D-M.y*this.sinc0*N)}else i=this.phic0,t=0;return M.x=t,M.y=i,ot.inverse.apply(this,[M]),M.x=qM(M.x+this.long0),M}var St=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],lt={init:Ot,forward:xt,inverse:Ct,names:St};function kt(M,N,D){return N*=D,Math.tan(.5*(MM+M))*Math.pow((1-N)/(1+N),.5*D)}function Qt(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&(this.k0=.5*(1+JM(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=iM&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&(this.k0=.5*this.cons*VM(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/KM(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=VM(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-MM,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function dt(M){var N,D,t,i,e,j,T=M.x,g=M.y,u=Math.sin(g),s=Math.cos(g),L=qM(T-this.long0);return Math.abs(Math.abs(T-this.long0)-Math.PI)<=iM&&Math.abs(g+this.lat0)<=iM?(M.x=NaN,M.y=NaN,M):this.sphere?(N=2*this.k0/(1+this.sinlat0*u+this.coslat0*s*Math.cos(L)),M.x=this.a*N*s*Math.sin(L)+this.x0,M.y=this.a*N*(this.coslat0*u-this.sinlat0*s*Math.cos(L))+this.y0,M):(D=2*Math.atan(this.ssfn_(g,u,this.e))-MM,i=Math.cos(D),t=Math.sin(D),Math.abs(this.coslat0)<=iM?(e=KM(this.e,g*this.con,this.con*u),j=2*this.a*this.k0*e/this.cons,M.x=this.x0+j*Math.sin(T-this.long0),M.y=this.y0-this.con*j*Math.cos(T-this.long0),M):(Math.abs(this.sinlat0)<iM?(N=2*this.a*this.k0/(1+i*Math.cos(L)),M.y=N*t):(N=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*t+this.cosX0*i*Math.cos(L))),M.y=N*(this.cosX0*t-this.sinX0*i*Math.cos(L))+this.y0),M.x=N*i*Math.sin(L)+this.x0,M))}function Yt(M){var N,D,t,i,e;M.x-=this.x0,M.y-=this.y0;var j=Math.sqrt(M.x*M.x+M.y*M.y);if(this.sphere){var T=2*Math.atan(j/(2*this.a*this.k0));return N=this.long0,D=this.lat0,j<=iM?(M.x=N,M.y=D,M):(D=Math.asin(Math.cos(T)*this.sinlat0+M.y*Math.sin(T)*this.coslat0/j),N=Math.abs(this.coslat0)<iM?this.lat0>0?qM(this.long0+Math.atan2(M.x,-1*M.y)):qM(this.long0+Math.atan2(M.x,M.y)):qM(this.long0+Math.atan2(M.x*Math.sin(T),j*this.coslat0*Math.cos(T)-M.y*this.sinlat0*Math.sin(T))),M.x=N,M.y=D,M)}if(Math.abs(this.coslat0)<=iM){if(j<=iM)return D=this.lat0,N=this.long0,M.x=N,M.y=D,M;M.x*=this.con,M.y*=this.con,t=j*this.cons/(2*this.a*this.k0),D=this.con*$M(this.e,t),N=this.con*qM(this.con*this.long0+Math.atan2(M.x,-1*M.y))}else i=2*Math.atan(j*this.cosX0/(2*this.a*this.k0*this.ms1)),N=this.long0,j<=iM?e=this.X0:(e=Math.asin(Math.cos(i)*this.sinX0+M.y*Math.sin(i)*this.cosX0/j),N=qM(this.long0+Math.atan2(M.x*Math.sin(i),j*this.cosX0*Math.cos(i)-M.y*this.sinX0*Math.sin(i)))),D=-1*$M(this.e,Math.tan(.5*(MM+e)));return M.x=N,M.y=D,M}var Ut=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],pt={init:Qt,forward:dt,inverse:Yt,names:Ut,ssfn_:kt};function ht(){var M=this.lat0;this.lambda0=this.long0;var N=Math.sin(M),D=this.a,t=this.rf,i=1/t,e=2*i-Math.pow(i,2),j=this.e=Math.sqrt(e);this.R=this.k0*D*Math.sqrt(1-e)/(1-e*Math.pow(N,2)),this.alpha=Math.sqrt(1+e/(1-e)*Math.pow(Math.cos(M),4)),this.b0=Math.asin(N/this.alpha);var T=Math.log(Math.tan(Math.PI/4+this.b0/2)),g=Math.log(Math.tan(Math.PI/4+M/2)),u=Math.log((1+j*N)/(1-j*N));this.K=T-this.alpha*g+this.alpha*j/2*u}function ft(M){var N=Math.log(Math.tan(Math.PI/4-M.y/2)),D=this.e/2*Math.log((1+this.e*Math.sin(M.y))/(1-this.e*Math.sin(M.y))),t=-this.alpha*(N+D)+this.K,i=2*(Math.atan(Math.exp(t))-Math.PI/4),e=this.alpha*(M.x-this.lambda0),j=Math.atan(Math.sin(e)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(e))),T=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(e));return M.y=this.R/2*Math.log((1+Math.sin(T))/(1-Math.sin(T)))+this.y0,M.x=this.R*j+this.x0,M}function mt(M){var N=M.x-this.x0,D=M.y-this.y0,t=N/this.R,i=2*(Math.atan(Math.exp(D/this.R))-Math.PI/4),e=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(t)),j=Math.atan(Math.sin(t)/(Math.cos(this.b0)*Math.cos(t)-Math.sin(this.b0)*Math.tan(i))),T=this.lambda0+j/this.alpha,g=0,u=e,s=-1e3,L=0;while(Math.abs(u-s)>1e-7){if(++L>20)return;g=1/this.alpha*(Math.log(Math.tan(Math.PI/4+e/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),s=u,u=2*Math.atan(Math.exp(g))-Math.PI/2}return M.x=T,M.y=u,M}var vt=["somerc"],Bt={init:ht,forward:ft,inverse:mt,names:vt},bt=1e-7;function Pt(M){var N=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],D="object"===typeof M.PROJECTION?Object.keys(M.PROJECTION)[0]:M.PROJECTION;return"no_uoff"in M||"no_off"in M||-1!==N.indexOf(D)}function Zt(){var M,N,D,t,i,e,j,T,g,u,s,L=0,I=0,A=0,z=0,n=0,w=0,r=0;this.no_off=Pt(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var c=!1;if("rectified_grid_angle"in this&&(c=!0),y&&(r=this.alpha),c&&(L=this.rectified_grid_angle*eM),y||c)I=this.longc;else if(A=this.long1,n=this.lat1,z=this.long2,w=this.lat2,Math.abs(n-w)<=bt||(M=Math.abs(n))<=bt||Math.abs(M-MM)<=bt||Math.abs(Math.abs(this.lat0)-MM)<=bt||Math.abs(Math.abs(w)-MM)<=bt)throw new Error;var a=1-this.es;N=Math.sqrt(a),Math.abs(this.lat0)>iM?(T=Math.sin(this.lat0),D=Math.cos(this.lat0),M=1-this.es*T*T,this.B=D*D,this.B=Math.sqrt(1+this.es*this.B*this.B/a),this.A=this.B*this.k0*N/M,t=this.B*N/(D*Math.sqrt(M)),i=t*t-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=t,this.E*=Math.pow(KM(this.e,this.lat0,T),this.B)):(this.B=1/N,this.A=this.k0,this.E=t=i=1),y||c?(y?(s=Math.asin(Math.sin(r)/t),c||(L=r)):(s=L,r=Math.asin(t*Math.sin(s))),this.lam0=I-Math.asin(.5*(i-1/i)*Math.tan(s))/this.B):(e=Math.pow(KM(this.e,n,Math.sin(n)),this.B),j=Math.pow(KM(this.e,w,Math.sin(w)),this.B),i=this.E/e,g=(j-e)/(j+e),u=this.E*this.E,u=(u-j*e)/(u+j*e),M=A-z,M<-Math.pi?z-=gM:M>Math.pi&&(z+=gM),this.lam0=qM(.5*(A+z)-Math.atan(u*Math.tan(.5*this.B*(A-z))/g)/this.B),s=Math.atan(2*Math.sin(this.B*qM(A-this.lam0))/(i-1/i)),L=r=Math.asin(t*Math.sin(s))),this.singam=Math.sin(s),this.cosgam=Math.cos(s),this.sinrot=Math.sin(L),this.cosrot=Math.cos(L),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(t*t-1)/Math.cos(r))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*s,this.v_pole_n=this.ArB*Math.log(Math.tan(TM-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(TM+i))}function Gt(M){var N,D,t,i,e,j,T,g,u={};if(M.x=M.x-this.lam0,Math.abs(Math.abs(M.y)-MM)>iM){if(e=this.E/Math.pow(KM(this.e,M.y,Math.sin(M.y)),this.B),j=1/e,N=.5*(e-j),D=.5*(e+j),i=Math.sin(this.B*M.x),t=(N*this.singam-i*this.cosgam)/D,Math.abs(Math.abs(t)-1)<iM)throw new Error;g=.5*this.ArB*Math.log((1-t)/(1+t)),j=Math.cos(this.B*M.x),T=Math.abs(j)<bt?this.A*M.x:this.ArB*Math.atan2(N*this.cosgam+i*this.singam,j)}else g=M.y>0?this.v_pole_n:this.v_pole_s,T=this.ArB*M.y;return this.no_rot?(u.x=T,u.y=g):(T-=this.u_0,u.x=g*this.cosrot+T*this.sinrot,u.y=T*this.cosrot-g*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u}function Rt(M){var N,D,t,i,e,j,T,g={};if(M.x=(M.x-this.x0)*(1/this.a),M.y=(M.y-this.y0)*(1/this.a),this.no_rot?(D=M.y,N=M.x):(D=M.x*this.cosrot-M.y*this.sinrot,N=M.y*this.cosrot+M.x*this.sinrot+this.u_0),t=Math.exp(-this.BrA*D),i=.5*(t-1/t),e=.5*(t+1/t),j=Math.sin(this.BrA*N),T=(j*this.cosgam+i*this.singam)/e,Math.abs(Math.abs(T)-1)<iM)g.x=0,g.y=T<0?-MM:MM;else{if(g.y=this.E/Math.sqrt((1+T)/(1-T)),g.y=$M(this.e,Math.pow(g.y,1/this.B)),g.y===1/0)throw new Error;g.x=-this.rB*Math.atan2(i*this.cosgam-j*this.singam,Math.cos(this.BrA*N))}return g.x+=this.lam0,g}var Wt=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"],Xt={init:Zt,forward:Gt,inverse:Rt,names:Wt};function Ht(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<iM)){var M=this.b/this.a;this.e=Math.sqrt(1-M*M);var N=Math.sin(this.lat1),D=Math.cos(this.lat1),t=VM(this.e,N,D),i=KM(this.e,this.lat1,N),e=Math.sin(this.lat2),j=Math.cos(this.lat2),T=VM(this.e,e,j),g=KM(this.e,this.lat2,e),u=KM(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>iM?this.ns=Math.log(t/T)/Math.log(i/g):this.ns=N,isNaN(this.ns)&&(this.ns=N),this.f0=t/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function _t(M){var N=M.x,D=M.y;Math.abs(2*Math.abs(D)-Math.PI)<=iM&&(D=JM(D)*(MM-2*iM));var t,i,e=Math.abs(Math.abs(D)-MM);if(e>iM)t=KM(this.e,D,Math.sin(D)),i=this.a*this.f0*Math.pow(t,this.ns);else{if(e=D*this.ns,e<=0)return null;i=0}var j=this.ns*qM(N-this.long0);return M.x=this.k0*(i*Math.sin(j))+this.x0,M.y=this.k0*(this.rh-i*Math.cos(j))+this.y0,M}function Ft(M){var N,D,t,i,e,j=(M.x-this.x0)/this.k0,T=this.rh-(M.y-this.y0)/this.k0;this.ns>0?(N=Math.sqrt(j*j+T*T),D=1):(N=-Math.sqrt(j*j+T*T),D=-1);var g=0;if(0!==N&&(g=Math.atan2(D*j,D*T)),0!==N||this.ns>0){if(D=1/this.ns,t=Math.pow(N/(this.a*this.f0),D),i=$M(this.e,t),-9999===i)return null}else i=-MM;return e=qM(g/this.ns+this.long0),M.x=e,M.y=i,M}var Vt=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"],Jt={init:Ht,forward:_t,inverse:Ft,names:Vt};function qt(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function Kt(M){var N,D,t,i,e,j,T,g=M.x,u=M.y,s=qM(g-this.long0);return N=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),D=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/N)-this.s45),t=-s*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(D)+Math.sin(this.ad)*Math.cos(D)*Math.cos(t)),e=Math.asin(Math.cos(D)*Math.sin(t)/Math.cos(i)),j=this.n*e,T=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),M.y=T*Math.cos(j)/1,M.x=T*Math.sin(j)/1,this.czech||(M.y*=-1,M.x*=-1),M}function $t(M){var N,D,t,i,e,j,T,g,u=M.x;M.x=M.y,M.y=u,this.czech||(M.y*=-1,M.x*=-1),j=Math.sqrt(M.x*M.x+M.y*M.y),e=Math.atan2(M.y,M.x),i=e/Math.sin(this.s0),t=2*(Math.atan(Math.pow(this.ro0/j,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),N=Math.asin(Math.cos(this.ad)*Math.sin(t)-Math.sin(this.ad)*Math.cos(t)*Math.cos(i)),D=Math.asin(Math.cos(t)*Math.sin(i)/Math.cos(N)),M.x=this.long0-D/this.alfa,T=N,g=0;var s=0;do{M.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(N/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(T))/(1-this.e*Math.sin(T)),this.e/2))-this.s45),Math.abs(T-M.y)<1e-10&&(g=1),T=M.y,s+=1}while(0===g&&s<15);return s>=15?null:M}var Mi=["Krovak","krovak"],Ni={init:qt,forward:Kt,inverse:$t,names:Mi},Di=function(M,N,D,t,i){return M*i-N*Math.sin(2*i)+D*Math.sin(4*i)-t*Math.sin(6*i)},ti=function(M){return 1-.25*M*(1+M/16*(3+1.25*M))},ii=function(M){return.375*M*(1+.25*M*(1+.46875*M))},ei=function(M){return.05859375*M*M*(1+.75*M)},ji=function(M){return M*M*M*(35/3072)},Ti=function(M,N,D){var t=N*D;return M/Math.sqrt(1-t*t)},gi=function(M){return Math.abs(M)<MM?M:M-JM(M)*Math.PI},ui=function(M,N,D,t,i){var e,j;e=M/N;for(var T=0;T<15;T++)if(j=(M-(N*e-D*Math.sin(2*e)+t*Math.sin(4*e)-i*Math.sin(6*e)))/(N-2*D*Math.cos(2*e)+4*t*Math.cos(4*e)-6*i*Math.cos(6*e)),e+=j,Math.abs(j)<=1e-10)return e;return NaN};function si(){this.sphere||(this.e0=ti(this.es),this.e1=ii(this.es),this.e2=ei(this.es),this.e3=ji(this.es),this.ml0=this.a*Di(this.e0,this.e1,this.e2,this.e3,this.lat0))}function Li(M){var N,D,t=M.x,i=M.y;if(t=qM(t-this.long0),this.sphere)N=this.a*Math.asin(Math.cos(i)*Math.sin(t)),D=this.a*(Math.atan2(Math.tan(i),Math.cos(t))-this.lat0);else{var e=Math.sin(i),j=Math.cos(i),T=Ti(this.a,this.e,e),g=Math.tan(i)*Math.tan(i),u=t*Math.cos(i),s=u*u,L=this.es*j*j/(1-this.es),I=this.a*Di(this.e0,this.e1,this.e2,this.e3,i);N=T*u*(1-s*g*(1/6-(8-g+8*L)*s/120)),D=I-this.ml0+T*e/j*s*(.5+(5-g+6*L)*s/24)}return M.x=N+this.x0,M.y=D+this.y0,M}function Ii(M){M.x-=this.x0,M.y-=this.y0;var N,D,t=M.x/this.a,i=M.y/this.a;if(this.sphere){var e=i+this.lat0;N=Math.asin(Math.sin(e)*Math.cos(t)),D=Math.atan2(Math.tan(t),Math.cos(e))}else{var j=this.ml0/this.a+i,T=ui(j,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(T)-MM)<=iM)return M.x=this.long0,M.y=MM,i<0&&(M.y*=-1),M;var g=Ti(this.a,this.e,Math.sin(T)),u=g*g*g/this.a/this.a*(1-this.es),s=Math.pow(Math.tan(T),2),L=t*this.a/g,I=L*L;N=T-g*Math.tan(T)/u*L*L*(.5-(1+3*s)*L*L/24),D=L*(1-I*(s/3+(1+3*s)*s*I/15))/Math.cos(T)}return M.x=qM(D+this.long0),M.y=gi(N),M}var Ai=["Cassini","Cassini_Soldner","cass"],zi={init:si,forward:Li,inverse:Ii,names:Ai},ni=function(M,N){var D;return M>1e-7?(D=M*N,(1-M*M)*(N/(1-D*D)-.5/M*Math.log((1-D)/(1+D)))):2*N},wi=1,ri=2,yi=3,ci=4;function ai(){var M,N=Math.abs(this.lat0);if(Math.abs(N-MM)<iM?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(N)<iM?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=ni(this.e,1),this.mmf=.5/(1-this.es),this.apa=Qi(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),M=Math.sin(this.lat0),this.sinb1=ni(this.e,M)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*M*M)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Ei(M){var N,D,t,i,e,j,T,g,u,s,L=M.x,I=M.y;if(L=qM(L-this.long0),this.sphere){if(e=Math.sin(I),s=Math.cos(I),t=Math.cos(L),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(D=this.mode===this.EQUIT?1+s*t:1+this.sinph0*e+this.cosph0*s*t,D<=iM)return null;D=Math.sqrt(2/D),N=D*s*Math.sin(L),D*=this.mode===this.EQUIT?e:this.cosph0*e-this.sinph0*s*t}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(t=-t),Math.abs(I+this.lat0)<iM)return null;D=TM-.5*I,D=2*(this.mode===this.S_POLE?Math.cos(D):Math.sin(D)),N=D*Math.sin(L),D*=t}}else{switch(T=0,g=0,u=0,t=Math.cos(L),i=Math.sin(L),e=Math.sin(I),j=ni(this.e,e),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(T=j/this.qp,g=Math.sqrt(1-T*T)),this.mode){case this.OBLIQ:u=1+this.sinb1*T+this.cosb1*g*t;break;case this.EQUIT:u=1+g*t;break;case this.N_POLE:u=MM+I,j=this.qp-j;break;case this.S_POLE:u=I-MM,j=this.qp+j;break}if(Math.abs(u)<iM)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:u=Math.sqrt(2/u),D=this.mode===this.OBLIQ?this.ymf*u*(this.cosb1*T-this.sinb1*g*t):(u=Math.sqrt(2/(1+g*t)))*T*this.ymf,N=this.xmf*u*g*i;break;case this.N_POLE:case this.S_POLE:j>=0?(N=(u=Math.sqrt(j))*i,D=t*(this.mode===this.S_POLE?u:-u)):N=D=0;break}}return M.x=this.a*N+this.x0,M.y=this.a*D+this.y0,M}function oi(M){M.x-=this.x0,M.y-=this.y0;var N,D,t,i,e,j,T,g=M.x/this.a,u=M.y/this.a;if(this.sphere){var s,L=0,I=0;if(s=Math.sqrt(g*g+u*u),D=.5*s,D>1)return null;switch(D=2*Math.asin(D),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(I=Math.sin(D),L=Math.cos(D)),this.mode){case this.EQUIT:D=Math.abs(s)<=iM?0:Math.asin(u*I/s),g*=I,u=L*s;break;case this.OBLIQ:D=Math.abs(s)<=iM?this.lat0:Math.asin(L*this.sinph0+u*I*this.cosph0/s),g*=I*this.cosph0,u=(L-Math.sin(D)*this.sinph0)*s;break;case this.N_POLE:u=-u,D=MM-D;break;case this.S_POLE:D-=MM;break}N=0!==u||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(g,u):0}else{if(T=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(g/=this.dd,u*=this.dd,j=Math.sqrt(g*g+u*u),j<iM)return M.x=this.long0,M.y=this.lat0,M;i=2*Math.asin(.5*j/this.rq),t=Math.cos(i),g*=i=Math.sin(i),this.mode===this.OBLIQ?(T=t*this.sinb1+u*i*this.cosb1/j,e=this.qp*T,u=j*this.cosb1*t-u*this.sinb1*i):(T=u*i/j,e=this.qp*T,u=j*t)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(u=-u),e=g*g+u*u,!e)return M.x=this.long0,M.y=this.lat0,M;T=1-e/this.qp,this.mode===this.S_POLE&&(T=-T)}N=Math.atan2(g,u),D=di(Math.asin(T),this.apa)}return M.x=qM(this.long0+N),M.y=D,M}var Oi=.3333333333333333,xi=.17222222222222222,Ci=.10257936507936508,Si=.06388888888888888,li=.0664021164021164,ki=.016415012942191543;function Qi(M){var N,D=[];return D[0]=M*Oi,N=M*M,D[0]+=N*xi,D[1]=N*Si,N*=M,D[0]+=N*Ci,D[1]+=N*li,D[2]=N*ki,D}function di(M,N){var D=M+M;return M+N[0]*Math.sin(D)+N[1]*Math.sin(D+D)+N[2]*Math.sin(D+D+D)}var Yi=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Ui={init:ai,forward:Ei,inverse:oi,names:Yi,S_POLE:wi,N_POLE:ri,EQUIT:yi,OBLIQ:ci},pi=function(M){return Math.abs(M)>1&&(M=M>1?1:-1),Math.asin(M)};function hi(){Math.abs(this.lat1+this.lat2)<iM||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=VM(this.e3,this.sin_po,this.cos_po),this.qs1=ni(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=VM(this.e3,this.sin_po,this.cos_po),this.qs2=ni(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=ni(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>iM?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function fi(M){var N=M.x,D=M.y;this.sin_phi=Math.sin(D),this.cos_phi=Math.cos(D);var t=ni(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*t)/this.ns0,e=this.ns0*qM(N-this.long0),j=i*Math.sin(e)+this.x0,T=this.rh-i*Math.cos(e)+this.y0;return M.x=j,M.y=T,M}function mi(M){var N,D,t,i,e,j;return M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns0>=0?(N=Math.sqrt(M.x*M.x+M.y*M.y),t=1):(N=-Math.sqrt(M.x*M.x+M.y*M.y),t=-1),i=0,0!==N&&(i=Math.atan2(t*M.x,t*M.y)),t=N*this.ns0/this.a,this.sphere?j=Math.asin((this.c-t*t)/(2*this.ns0)):(D=(this.c-t*t)/this.ns0,j=this.phi1z(this.e3,D)),e=qM(i/this.ns0+this.long0),M.x=e,M.y=j,M}function vi(M,N){var D,t,i,e,j,T=pi(.5*N);if(M<iM)return T;for(var g=M*M,u=1;u<=25;u++)if(D=Math.sin(T),t=Math.cos(T),i=M*D,e=1-i*i,j=.5*e*e/t*(N/(1-g)-D/e+.5/M*Math.log((1-i)/(1+i))),T+=j,Math.abs(j)<=1e-7)return T;return null}var Bi=["Albers_Conic_Equal_Area","Albers","aea"],bi={init:hi,forward:fi,inverse:mi,names:Bi,phi1z:vi};function Pi(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Zi(M){var N,D,t,i,e,j,T,g,u=M.x,s=M.y;return t=qM(u-this.long0),N=Math.sin(s),D=Math.cos(s),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,j>0||Math.abs(j)<=iM?(T=this.x0+this.a*e*D*Math.sin(t)/j,g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)/j):(T=this.x0+this.infinity_dist*D*Math.sin(t),g=this.y0+this.infinity_dist*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function Gi(M){var N,D,t,i,e,j;return M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,(N=Math.sqrt(M.x*M.x+M.y*M.y))?(i=Math.atan2(N,this.rc),D=Math.sin(i),t=Math.cos(i),j=pi(t*this.sin_p14+M.y*D*this.cos_p14/N),e=Math.atan2(M.x*D,N*this.cos_p14*t-M.y*this.sin_p14*D),e=qM(this.long0+e)):(j=this.phic0,e=0),M.x=e,M.y=j,M}var Ri=["gnom"],Wi={init:Pi,forward:Zi,inverse:Gi,names:Ri},Xi=function(M,N){var D=1-(1-M*M)/(2*M)*Math.log((1-M)/(1+M));if(Math.abs(Math.abs(N)-D)<1e-6)return N<0?-1*MM:MM;for(var t,i,e,j,T=Math.asin(.5*N),g=0;g<30;g++)if(i=Math.sin(T),e=Math.cos(T),j=M*i,t=Math.pow(1-j*j,2)/(2*e)*(N/(1-M*M)-i/(1-j*j)+.5/M*Math.log((1-j)/(1+j))),T+=t,Math.abs(t)<=1e-10)return T;return NaN};function Hi(){this.sphere||(this.k0=VM(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function _i(M){var N,D,t=M.x,i=M.y,e=qM(t-this.long0);if(this.sphere)N=this.x0+this.a*e*Math.cos(this.lat_ts),D=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var j=ni(this.e,Math.sin(i));N=this.x0+this.a*this.k0*e,D=this.y0+this.a*j*.5/this.k0}return M.x=N,M.y=D,M}function Fi(M){var N,D;return M.x-=this.x0,M.y-=this.y0,this.sphere?(N=qM(this.long0+M.x/this.a/Math.cos(this.lat_ts)),D=Math.asin(M.y/this.a*Math.cos(this.lat_ts))):(D=Xi(this.e,2*M.y*this.k0/this.a),N=qM(this.long0+M.x/(this.a*this.k0))),M.x=N,M.y=D,M}var Vi=["cea"],Ji={init:Hi,forward:_i,inverse:Fi,names:Vi};function qi(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Ki(M){var N=M.x,D=M.y,t=qM(N-this.long0),i=gi(D-this.lat0);return M.x=this.x0+this.a*t*this.rc,M.y=this.y0+this.a*i,M}function $i(M){var N=M.x,D=M.y;return M.x=qM(this.long0+(N-this.x0)/(this.a*this.rc)),M.y=gi(this.lat0+(D-this.y0)/this.a),M}var Me=["Equirectangular","Equidistant_Cylindrical","eqc"],Ne={init:qi,forward:Ki,inverse:$i,names:Me},De=20;function te(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ti(this.es),this.e1=ii(this.es),this.e2=ei(this.es),this.e3=ji(this.es),this.ml0=this.a*Di(this.e0,this.e1,this.e2,this.e3,this.lat0)}function ie(M){var N,D,t,i=M.x,e=M.y,j=qM(i-this.long0);if(t=j*Math.sin(e),this.sphere)Math.abs(e)<=iM?(N=this.a*j,D=-1*this.a*this.lat0):(N=this.a*Math.sin(t)/Math.tan(e),D=this.a*(gi(e-this.lat0)+(1-Math.cos(t))/Math.tan(e)));else if(Math.abs(e)<=iM)N=this.a*j,D=-1*this.ml0;else{var T=Ti(this.a,this.e,Math.sin(e))/Math.tan(e);N=T*Math.sin(t),D=this.a*Di(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+T*(1-Math.cos(t))}return M.x=N+this.x0,M.y=D+this.y0,M}function ee(M){var N,D,t,i,e,j,T,g,u;if(t=M.x-this.x0,i=M.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=iM)N=qM(t/this.a+this.long0),D=0;else{var s;for(j=this.lat0+i/this.a,T=t*t/this.a/this.a+j*j,g=j,e=De;e;--e)if(s=Math.tan(g),u=-1*(j*(g*s+1)-g-.5*(g*g+T)*s)/((g-j)/s-1),g+=u,Math.abs(u)<=iM){D=g;break}N=qM(this.long0+Math.asin(t*Math.tan(g)/this.a)/Math.sin(D))}else if(Math.abs(i+this.ml0)<=iM)D=0,N=qM(this.long0+t/this.a);else{var L,I,A,z,n;for(j=(this.ml0+i)/this.a,T=t*t/this.a/this.a+j*j,g=j,e=De;e;--e)if(n=this.e*Math.sin(g),L=Math.sqrt(1-n*n)*Math.tan(g),I=this.a*Di(this.e0,this.e1,this.e2,this.e3,g),A=this.e0-2*this.e1*Math.cos(2*g)+4*this.e2*Math.cos(4*g)-6*this.e3*Math.cos(6*g),z=I/this.a,u=(j*(L*z+1)-z-.5*L*(z*z+T))/(this.es*Math.sin(2*g)*(z*z+T-2*j*z)/(4*L)+(j-z)*(L*A-2/Math.sin(2*g))-A),g-=u,Math.abs(u)<=iM){D=g;break}L=Math.sqrt(1-this.es*Math.pow(Math.sin(D),2))*Math.tan(D),N=qM(this.long0+Math.asin(t*L/this.a)/Math.sin(D))}return M.x=N,M.y=D,M}var je=["Polyconic","poly"],Te={init:te,forward:ie,inverse:ee,names:je};function ge(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function ue(M){var N,D=M.x,t=M.y,i=t-this.lat0,e=D-this.long0,j=i/$*1e-5,T=e,g=1,u=0;for(N=1;N<=10;N++)g*=j,u+=this.A[N]*g;var s,L,I=u,A=T,z=1,n=0,w=0,r=0;for(N=1;N<=6;N++)s=z*I-n*A,L=n*I+z*A,z=s,n=L,w=w+this.B_re[N]*z-this.B_im[N]*n,r=r+this.B_im[N]*z+this.B_re[N]*n;return M.x=r*this.a+this.x0,M.y=w*this.a+this.y0,M}function se(M){var N,D,t,i=M.x,e=M.y,j=i-this.x0,T=e-this.y0,g=T/this.a,u=j/this.a,s=1,L=0,I=0,A=0;for(N=1;N<=6;N++)D=s*g-L*u,t=L*g+s*u,s=D,L=t,I=I+this.C_re[N]*s-this.C_im[N]*L,A=A+this.C_im[N]*s+this.C_re[N]*L;for(var z=0;z<this.iterations;z++){var n,w,r=I,y=A,c=g,a=u;for(N=2;N<=6;N++)n=r*I-y*A,w=y*I+r*A,r=n,y=w,c+=(N-1)*(this.B_re[N]*r-this.B_im[N]*y),a+=(N-1)*(this.B_im[N]*r+this.B_re[N]*y);r=1,y=0;var E=this.B_re[1],o=this.B_im[1];for(N=2;N<=6;N++)n=r*I-y*A,w=y*I+r*A,r=n,y=w,E+=N*(this.B_re[N]*r-this.B_im[N]*y),o+=N*(this.B_im[N]*r+this.B_re[N]*y);var O=E*E+o*o;I=(c*E+a*o)/O,A=(a*E-c*o)/O}var x=I,C=A,S=1,l=0;for(N=1;N<=9;N++)S*=x,l+=this.D[N]*S;var k=this.lat0+l*$*1e5,Q=this.long0+C;return M.x=Q,M.y=k,M}var Le=["New_Zealand_Map_Grid","nzmg"],Ie={init:ge,forward:ue,inverse:se,names:Le};function Ae(){}function ze(M){var N=M.x,D=M.y,t=qM(N-this.long0),i=this.x0+this.a*t,e=this.y0+this.a*Math.log(Math.tan(Math.PI/4+D/2.5))*1.25;return M.x=i,M.y=e,M}function ne(M){M.x-=this.x0,M.y-=this.y0;var N=qM(this.long0+M.x/this.a),D=2.5*(Math.atan(Math.exp(.8*M.y/this.a))-Math.PI/4);return M.x=N,M.y=D,M}var we=["Miller_Cylindrical","mill"],re={init:Ae,forward:ze,inverse:ne,names:we},ye=20;function ce(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=RD(this.es)}function ae(M){var N,D,t=M.x,i=M.y;if(t=qM(t-this.long0),this.sphere){if(this.m)for(var e=this.n*Math.sin(i),j=ye;j;--j){var T=(this.m*i+Math.sin(i)-e)/(this.m+Math.cos(i));if(i-=T,Math.abs(T)<iM)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;N=this.a*this.C_x*t*(this.m+Math.cos(i)),D=this.a*this.C_y*i}else{var g=Math.sin(i),u=Math.cos(i);D=this.a*WD(i,g,u,this.en),N=this.a*t*u/Math.sqrt(1-this.es*g*g)}return M.x=N,M.y=D,M}function Ee(M){var N,D,t,i;return M.x-=this.x0,t=M.x/this.a,M.y-=this.y0,N=M.y/this.a,this.sphere?(N/=this.C_y,t/=this.C_x*(this.m+Math.cos(N)),this.m?N=pi((this.m*N+Math.sin(N))/this.n):1!==this.n&&(N=pi(Math.sin(N)/this.n)),t=qM(t+this.long0),N=gi(N)):(N=HD(M.y/this.a,this.es,this.en),i=Math.abs(N),i<MM?(i=Math.sin(N),D=this.long0+M.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(N)),t=qM(D)):i-iM<MM&&(t=this.long0)),M.x=t,M.y=N,M}var oe=["Sinusoidal","sinu"],Oe={init:ce,forward:ae,inverse:Ee,names:oe};function xe(){}function Ce(M){var N=M.x,D=M.y,t=qM(N-this.long0),i=D,e=Math.PI*Math.sin(D);while(1){var j=-(i+Math.sin(i)-e)/(1+Math.cos(i));if(i+=j,Math.abs(j)<iM)break}i/=2,Math.PI/2-Math.abs(D)<iM&&(t=0);var T=.900316316158*this.a*t*Math.cos(i)+this.x0,g=1.4142135623731*this.a*Math.sin(i)+this.y0;return M.x=T,M.y=g,M}function Se(M){var N,D;M.x-=this.x0,M.y-=this.y0,D=M.y/(1.4142135623731*this.a),Math.abs(D)>.999999999999&&(D=.999999999999),N=Math.asin(D);var t=qM(this.long0+M.x/(.900316316158*this.a*Math.cos(N)));t<-Math.PI&&(t=-Math.PI),t>Math.PI&&(t=Math.PI),D=(2*N+Math.sin(2*N))/Math.PI,Math.abs(D)>1&&(D=1);var i=Math.asin(D);return M.x=t,M.y=i,M}var le=["Mollweide","moll"],ke={init:xe,forward:Ce,inverse:Se,names:le};function Qe(){Math.abs(this.lat1+this.lat2)<iM||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ti(this.es),this.e1=ii(this.es),this.e2=ei(this.es),this.e3=ji(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=VM(this.e,this.sinphi,this.cosphi),this.ml1=Di(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<iM?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=VM(this.e,this.sinphi,this.cosphi),this.ml2=Di(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Di(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function de(M){var N,D=M.x,t=M.y;if(this.sphere)N=this.a*(this.g-t);else{var i=Di(this.e0,this.e1,this.e2,this.e3,t);N=this.a*(this.g-i)}var e=this.ns*qM(D-this.long0),j=this.x0+N*Math.sin(e),T=this.y0+this.rh-N*Math.cos(e);return M.x=j,M.y=T,M}function Ye(M){var N,D,t,i;M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns>=0?(D=Math.sqrt(M.x*M.x+M.y*M.y),N=1):(D=-Math.sqrt(M.x*M.x+M.y*M.y),N=-1);var e=0;if(0!==D&&(e=Math.atan2(N*M.x,N*M.y)),this.sphere)return i=qM(this.long0+e/this.ns),t=gi(this.g-D/this.a),M.x=i,M.y=t,M;var j=this.g-D/this.a;return t=ui(j,this.e0,this.e1,this.e2,this.e3),i=qM(this.long0+e/this.ns),M.x=i,M.y=t,M}var Ue=["Equidistant_Conic","eqdc"],pe={init:Qe,forward:de,inverse:Ye,names:Ue};function he(){this.R=this.a}function fe(M){var N,D,t=M.x,i=M.y,e=qM(t-this.long0);Math.abs(i)<=iM&&(N=this.x0+this.R*e,D=this.y0);var j=pi(2*Math.abs(i/Math.PI));(Math.abs(e)<=iM||Math.abs(Math.abs(i)-MM)<=iM)&&(N=this.x0,D=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*j):this.y0+Math.PI*this.R*-Math.tan(.5*j));var T=.5*Math.abs(Math.PI/e-e/Math.PI),g=T*T,u=Math.sin(j),s=Math.cos(j),L=s/(u+s-1),I=L*L,A=L*(2/u-1),z=A*A,n=Math.PI*this.R*(T*(L-z)+Math.sqrt(g*(L-z)*(L-z)-(z+g)*(I-z)))/(z+g);e<0&&(n=-n),N=this.x0+n;var w=g+L;return n=Math.PI*this.R*(A*w-T*Math.sqrt((z+g)*(g+1)-w*w))/(z+g),D=i>=0?this.y0+n:this.y0-n,M.x=N,M.y=D,M}function me(M){var N,D,t,i,e,j,T,g,u,s,L,I,A;return M.x-=this.x0,M.y-=this.y0,L=Math.PI*this.R,t=M.x/L,i=M.y/L,e=t*t+i*i,j=-Math.abs(i)*(1+e),T=j-2*i*i+t*t,g=-2*j+1+2*i*i+e*e,A=i*i/g+(2*T*T*T/g/g/g-9*j*T/g/g)/27,u=(j-T*T/3/g)/g,s=2*Math.sqrt(-u/3),L=3*A/u/s,Math.abs(L)>1&&(L=L>=0?1:-1),I=Math.acos(L)/3,D=M.y>=0?(-s*Math.cos(I+Math.PI/3)-T/3/g)*Math.PI:-(-s*Math.cos(I+Math.PI/3)-T/3/g)*Math.PI,N=Math.abs(t)<iM?this.long0:qM(this.long0+Math.PI*(e-1+Math.sqrt(1+2*(t*t-i*i)+e*e))/2/t),M.x=N,M.y=D,M}var ve=["Van_der_Grinten_I","VanDerGrinten","vandg"],Be={init:he,forward:fe,inverse:me,names:ve};function be(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function Pe(M){var N,D,t,i,e,j,T,g,u,s,L,I,A,z,n,w,r,y,c,a,E,o,O,x=M.x,C=M.y,S=Math.sin(M.y),l=Math.cos(M.y),k=qM(x-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=iM?(M.x=this.x0+this.a*(MM-C)*Math.sin(k),M.y=this.y0-this.a*(MM-C)*Math.cos(k),M):Math.abs(this.sin_p12+1)<=iM?(M.x=this.x0+this.a*(MM+C)*Math.sin(k),M.y=this.y0+this.a*(MM+C)*Math.cos(k),M):(y=this.sin_p12*S+this.cos_p12*l*Math.cos(k),w=Math.acos(y),r=w?w/Math.sin(w):1,M.x=this.x0+this.a*r*l*Math.sin(k),M.y=this.y0+this.a*r*(this.cos_p12*S-this.sin_p12*l*Math.cos(k)),M):(N=ti(this.es),D=ii(this.es),t=ei(this.es),i=ji(this.es),Math.abs(this.sin_p12-1)<=iM?(e=this.a*Di(N,D,t,i,MM),j=this.a*Di(N,D,t,i,C),M.x=this.x0+(e-j)*Math.sin(k),M.y=this.y0-(e-j)*Math.cos(k),M):Math.abs(this.sin_p12+1)<=iM?(e=this.a*Di(N,D,t,i,MM),j=this.a*Di(N,D,t,i,C),M.x=this.x0+(e+j)*Math.sin(k),M.y=this.y0+(e+j)*Math.cos(k),M):(T=S/l,g=Ti(this.a,this.e,this.sin_p12),u=Ti(this.a,this.e,S),s=Math.atan((1-this.es)*T+this.es*g*this.sin_p12/(u*l)),L=Math.atan2(Math.sin(k),this.cos_p12*Math.tan(s)-this.sin_p12*Math.cos(k)),c=0===L?Math.asin(this.cos_p12*Math.sin(s)-this.sin_p12*Math.cos(s)):Math.abs(Math.abs(L)-Math.PI)<=iM?-Math.asin(this.cos_p12*Math.sin(s)-this.sin_p12*Math.cos(s)):Math.asin(Math.sin(k)*Math.cos(s)/Math.sin(L)),I=this.e*this.sin_p12/Math.sqrt(1-this.es),A=this.e*this.cos_p12*Math.cos(L)/Math.sqrt(1-this.es),z=I*A,n=A*A,a=c*c,E=a*c,o=E*c,O=o*c,w=g*c*(1-a*n*(1-n)/6+E/8*z*(1-2*n)+o/120*(n*(4-7*n)-3*I*I*(1-7*n))-O/48*z),M.x=this.x0+w*Math.sin(L),M.y=this.y0+w*Math.cos(L),M))}function Ze(M){var N,D,t,i,e,j,T,g,u,s,L,I,A,z,n,w,r,y,c,a,E,o,O,x;if(M.x-=this.x0,M.y-=this.y0,this.sphere){if(N=Math.sqrt(M.x*M.x+M.y*M.y),N>2*MM*this.a)return;return D=N/this.a,t=Math.sin(D),i=Math.cos(D),e=this.long0,Math.abs(N)<=iM?j=this.lat0:(j=pi(i*this.sin_p12+M.y*t*this.cos_p12/N),T=Math.abs(this.lat0)-MM,e=Math.abs(T)<=iM?this.lat0>=0?qM(this.long0+Math.atan2(M.x,-M.y)):qM(this.long0-Math.atan2(-M.x,M.y)):qM(this.long0+Math.atan2(M.x*t,N*this.cos_p12*i-M.y*this.sin_p12*t))),M.x=e,M.y=j,M}return g=ti(this.es),u=ii(this.es),s=ei(this.es),L=ji(this.es),Math.abs(this.sin_p12-1)<=iM?(I=this.a*Di(g,u,s,L,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),A=I-N,j=ui(A/this.a,g,u,s,L),e=qM(this.long0+Math.atan2(M.x,-1*M.y)),M.x=e,M.y=j,M):Math.abs(this.sin_p12+1)<=iM?(I=this.a*Di(g,u,s,L,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),A=N-I,j=ui(A/this.a,g,u,s,L),e=qM(this.long0+Math.atan2(M.x,M.y)),M.x=e,M.y=j,M):(N=Math.sqrt(M.x*M.x+M.y*M.y),w=Math.atan2(M.x,M.y),z=Ti(this.a,this.e,this.sin_p12),r=Math.cos(w),y=this.e*this.cos_p12*r,c=-y*y/(1-this.es),a=3*this.es*(1-c)*this.sin_p12*this.cos_p12*r/(1-this.es),E=N/z,o=E-c*(1+c)*Math.pow(E,3)/6-a*(1+3*c)*Math.pow(E,4)/24,O=1-c*o*o/2-E*o*o*o/6,n=Math.asin(this.sin_p12*Math.cos(o)+this.cos_p12*Math.sin(o)*r),e=qM(this.long0+Math.asin(Math.sin(w)*Math.sin(o)/Math.cos(n))),x=Math.sin(n),j=Math.atan2((x-this.es*O*this.sin_p12)*Math.tan(n),x*(1-this.es)),M.x=e,M.y=j,M)}var Ge=["Azimuthal_Equidistant","aeqd"],Re={init:be,forward:Pe,inverse:Ze,names:Ge};function We(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Xe(M){var N,D,t,i,e,j,T,g,u=M.x,s=M.y;return t=qM(u-this.long0),N=Math.sin(s),D=Math.cos(s),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,(j>0||Math.abs(j)<=iM)&&(T=this.a*e*D*Math.sin(t),g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function He(M){var N,D,t,i,e,j,T;return M.x-=this.x0,M.y-=this.y0,N=Math.sqrt(M.x*M.x+M.y*M.y),D=pi(N/this.a),t=Math.sin(D),i=Math.cos(D),j=this.long0,Math.abs(N)<=iM?(T=this.lat0,M.x=j,M.y=T,M):(T=pi(i*this.sin_p14+M.y*t*this.cos_p14/N),e=Math.abs(this.lat0)-MM,Math.abs(e)<=iM?(j=this.lat0>=0?qM(this.long0+Math.atan2(M.x,-M.y)):qM(this.long0-Math.atan2(-M.x,M.y)),M.x=j,M.y=T,M):(j=qM(this.long0+Math.atan2(M.x*t,N*this.cos_p14*i-M.y*this.sin_p14*t)),M.x=j,M.y=T,M))}var _e=["ortho"],Fe={init:We,forward:Xe,inverse:He,names:_e},Ve={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Je={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function qe(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=MM-TM/2?this.face=Ve.TOP:this.lat0<=-(MM-TM/2)?this.face=Ve.BOTTOM:Math.abs(this.long0)<=TM?this.face=Ve.FRONT:Math.abs(this.long0)<=MM+TM?this.face=this.long0>0?Ve.RIGHT:Ve.LEFT:this.face=Ve.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Ke(M){var N,D,t,i,e,j,T={x:0,y:0},g={value:0};if(M.x-=this.long0,N=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(M.y)):M.y,D=M.x,this.face===Ve.TOP)i=MM-N,D>=TM&&D<=MM+TM?(g.value=Je.AREA_0,t=D-MM):D>MM+TM||D<=-(MM+TM)?(g.value=Je.AREA_1,t=D>0?D-uM:D+uM):D>-(MM+TM)&&D<=-TM?(g.value=Je.AREA_2,t=D+MM):(g.value=Je.AREA_3,t=D);else if(this.face===Ve.BOTTOM)i=MM+N,D>=TM&&D<=MM+TM?(g.value=Je.AREA_0,t=-D+MM):D<TM&&D>=-TM?(g.value=Je.AREA_1,t=-D):D<-TM&&D>=-(MM+TM)?(g.value=Je.AREA_2,t=-D-MM):(g.value=Je.AREA_3,t=D>0?-D+uM:-D-uM);else{var u,s,L,I,A,z,n;this.face===Ve.RIGHT?D=Nj(D,+MM):this.face===Ve.BACK?D=Nj(D,+uM):this.face===Ve.LEFT&&(D=Nj(D,-MM)),I=Math.sin(N),A=Math.cos(N),z=Math.sin(D),n=Math.cos(D),u=A*n,s=A*z,L=I,this.face===Ve.FRONT?(i=Math.acos(u),t=Mj(i,L,s,g)):this.face===Ve.RIGHT?(i=Math.acos(s),t=Mj(i,L,-u,g)):this.face===Ve.BACK?(i=Math.acos(-u),t=Mj(i,L,-s,g)):this.face===Ve.LEFT?(i=Math.acos(-s),t=Mj(i,L,u,g)):(i=t=0,g.value=Je.AREA_0)}return j=Math.atan(12/uM*(t+Math.acos(Math.sin(t)*Math.cos(TM))-MM)),e=Math.sqrt((1-Math.cos(i))/(Math.cos(j)*Math.cos(j))/(1-Math.cos(Math.atan(1/Math.cos(t))))),g.value===Je.AREA_1?j+=MM:g.value===Je.AREA_2?j+=uM:g.value===Je.AREA_3&&(j+=1.5*uM),T.x=e*Math.cos(j),T.y=e*Math.sin(j),T.x=T.x*this.a+this.x0,T.y=T.y*this.a+this.y0,M.x=T.x,M.y=T.y,M}function $e(M){var N,D,t,i,e,j,T,g,u,s,L,I,A={lam:0,phi:0},z={value:0};if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,D=Math.atan(Math.sqrt(M.x*M.x+M.y*M.y)),N=Math.atan2(M.y,M.x),M.x>=0&&M.x>=Math.abs(M.y)?z.value=Je.AREA_0:M.y>=0&&M.y>=Math.abs(M.x)?(z.value=Je.AREA_1,N-=MM):M.x<0&&-M.x>=Math.abs(M.y)?(z.value=Je.AREA_2,N=N<0?N+uM:N-uM):(z.value=Je.AREA_3,N+=MM),u=uM/12*Math.tan(N),e=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),j=Math.atan(e),t=Math.cos(N),i=Math.tan(D),T=1-t*t*i*i*(1-Math.cos(Math.atan(1/Math.cos(j)))),T<-1?T=-1:T>1&&(T=1),this.face===Ve.TOP)g=Math.acos(T),A.phi=MM-g,z.value===Je.AREA_0?A.lam=j+MM:z.value===Je.AREA_1?A.lam=j<0?j+uM:j-uM:z.value===Je.AREA_2?A.lam=j-MM:A.lam=j;else if(this.face===Ve.BOTTOM)g=Math.acos(T),A.phi=g-MM,z.value===Je.AREA_0?A.lam=-j+MM:z.value===Je.AREA_1?A.lam=-j:z.value===Je.AREA_2?A.lam=-j-MM:A.lam=j<0?-j-uM:-j+uM;else{var n,w,r;n=T,u=n*n,r=u>=1?0:Math.sqrt(1-u)*Math.sin(j),u+=r*r,w=u>=1?0:Math.sqrt(1-u),z.value===Je.AREA_1?(u=w,w=-r,r=u):z.value===Je.AREA_2?(w=-w,r=-r):z.value===Je.AREA_3&&(u=w,w=r,r=-u),this.face===Ve.RIGHT?(u=n,n=-w,w=u):this.face===Ve.BACK?(n=-n,w=-w):this.face===Ve.LEFT&&(u=n,n=w,w=-u),A.phi=Math.acos(-r)-MM,A.lam=Math.atan2(w,n),this.face===Ve.RIGHT?A.lam=Nj(A.lam,-MM):this.face===Ve.BACK?A.lam=Nj(A.lam,-uM):this.face===Ve.LEFT&&(A.lam=Nj(A.lam,+MM))}0!==this.es&&(s=A.phi<0?1:0,L=Math.tan(A.phi),I=this.b/Math.sqrt(L*L+this.one_minus_f_squared),A.phi=Math.atan(Math.sqrt(this.a*this.a-I*I)/(this.one_minus_f*I)),s&&(A.phi=-A.phi));return A.lam+=this.long0,M.x=A.lam,M.y=A.phi,M}function Mj(M,N,D,t){var i;return M<iM?(t.value=Je.AREA_0,i=0):(i=Math.atan2(N,D),Math.abs(i)<=TM?t.value=Je.AREA_0:i>TM&&i<=MM+TM?(t.value=Je.AREA_1,i-=MM):i>MM+TM||i<=-(MM+TM)?(t.value=Je.AREA_2,i=i>=0?i-uM:i+uM):(t.value=Je.AREA_3,i+=MM)),i}function Nj(M,N){var D=M+N;return D<-uM?D+=gM:D>+uM&&(D-=gM),D}var Dj=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],tj={init:qe,forward:Ke,inverse:$e,names:Dj},ij=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],ej=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],jj=.8487,Tj=1.3523,gj=jM/5,uj=1/gj,sj=18,Lj=function(M,N){return M[0]+N*(M[1]+N*(M[2]+N*M[3]))},Ij=function(M,N){return M[1]+N*(2*M[2]+3*N*M[3])};function Aj(M,N,D,t){for(var i=N;t;--t){var e=M(i);if(i-=e,Math.abs(e)<D)break}return i}function zj(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function nj(M){var N=qM(M.x-this.long0),D=Math.abs(M.y),t=Math.floor(D*gj);t<0?t=0:t>=sj&&(t=sj-1),D=jM*(D-uj*t);var i={x:Lj(ij[t],D)*N,y:Lj(ej[t],D)};return M.y<0&&(i.y=-i.y),i.x=i.x*this.a*jj+this.x0,i.y=i.y*this.a*Tj+this.y0,i}function wj(M){var N={x:(M.x-this.x0)/(this.a*jj),y:Math.abs(M.y-this.y0)/(this.a*Tj)};if(N.y>=1)N.x/=ij[sj][0],N.y=M.y<0?-MM:MM;else{var D=Math.floor(N.y*sj);for(D<0?D=0:D>=sj&&(D=sj-1);;)if(ej[D][0]>N.y)--D;else{if(!(ej[D+1][0]<=N.y))break;++D}var t=ej[D],i=5*(N.y-t[0])/(ej[D+1][0]-t[0]);i=Aj((function(M){return(Lj(t,M)-N.y)/Ij(t,M)}),i,iM,100),N.x/=Lj(ij[D],i),N.y=(5*D+i)*eM,M.y<0&&(N.y=-N.y)}return N.x=qM(N.x+this.long0),N}var rj=["Robinson","robin"],yj={init:zj,forward:nj,inverse:wj,names:rj};function cj(){this.name="geocent"}function aj(M){var N=BN(M,this.es,this.a);return N}function Ej(M){var N=bN(M,this.es,this.a,this.b);return N}var oj=["Geocentric","geocentric","geocent","Geocent"],Oj={init:cj,forward:aj,inverse:Ej,names:oj},xj={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Cj={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Sj(){if(Object.keys(Cj).forEach(function(M){if("undefined"===typeof this[M])this[M]=Cj[M].def;else{if(Cj[M].num&&isNaN(this[M]))throw new Error("Invalid parameter value, must be numeric "+M+" = "+this[M]);Cj[M].num&&(this[M]=parseFloat(this[M]))}Cj[M].degrees&&(this[M]=this[M]*eM)}.bind(this)),Math.abs(Math.abs(this.lat0)-MM)<iM?this.mode=this.lat0<0?xj.S_POLE:xj.N_POLE:Math.abs(this.lat0)<iM?this.mode=xj.EQUIT:(this.mode=xj.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var M=this.tilt,N=this.azi;this.cg=Math.cos(N),this.sg=Math.sin(N),this.cw=Math.cos(M),this.sw=Math.sin(M)}function lj(M){M.x-=this.long0;var N,D,t,i,e=Math.sin(M.y),j=Math.cos(M.y),T=Math.cos(M.x);switch(this.mode){case xj.OBLIQ:D=this.sinph0*e+this.cosph0*j*T;break;case xj.EQUIT:D=j*T;break;case xj.S_POLE:D=-e;break;case xj.N_POLE:D=e;break}switch(D=this.pn1/(this.p-D),N=D*j*Math.sin(M.x),this.mode){case xj.OBLIQ:D*=this.cosph0*e-this.sinph0*j*T;break;case xj.EQUIT:D*=e;break;case xj.N_POLE:D*=-j*T;break;case xj.S_POLE:D*=j*T;break}return t=D*this.cg+N*this.sg,i=1/(t*this.sw*this.h1+this.cw),N=(N*this.cg-D*this.sg)*this.cw*i,D=t*i,M.x=N*this.a,M.y=D*this.a,M}function kj(M){M.x/=this.a,M.y/=this.a;var N,D,t,i={x:M.x,y:M.y};t=1/(this.pn1-M.y*this.sw),N=this.pn1*M.x*t,D=this.pn1*M.y*this.cw*t,M.x=N*this.cg+D*this.sg,M.y=D*this.cg-N*this.sg;var e=$D(M.x,M.y);if(Math.abs(e)<iM)i.x=0,i.y=M.y;else{var j,T;switch(T=1-e*e*this.pfact,T=(this.p-Math.sqrt(T))/(this.pn1/e+e/this.pn1),j=Math.sqrt(1-T*T),this.mode){case xj.OBLIQ:i.y=Math.asin(j*this.sinph0+M.y*T*this.cosph0/e),M.y=(j-this.sinph0*Math.sin(i.y))*e,M.x*=T*this.cosph0;break;case xj.EQUIT:i.y=Math.asin(M.y*T/e),M.y=j*e,M.x*=T;break;case xj.N_POLE:i.y=Math.asin(j),M.y=-M.y;break;case xj.S_POLE:i.y=-Math.asin(j);break}i.x=Math.atan2(M.x,M.y)}return M.x=i.x+this.long0,M.y=i.y,M}var Qj=["Tilted_Perspective","tpers"],dj={init:Sj,forward:lj,inverse:kj,names:Qj};function Yj(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var M=1-this.es,N=1/M;this.radius_p=Math.sqrt(M),this.radius_p2=M,this.radius_p_inv2=N,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function Uj(M){var N,D,t,i,e=M.x,j=M.y;if(e-=this.long0,"ellipse"===this.shape){j=Math.atan(this.radius_p2*Math.tan(j));var T=this.radius_p/$D(this.radius_p*Math.cos(j),Math.sin(j));if(D=T*Math.cos(e)*Math.cos(j),t=T*Math.sin(e)*Math.cos(j),i=T*Math.sin(j),(this.radius_g-D)*D-t*t-i*i*this.radius_p_inv2<0)return M.x=Number.NaN,M.y=Number.NaN,M;N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/$D(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/$D(t,N)))}else"sphere"===this.shape&&(N=Math.cos(j),D=Math.cos(e)*N,t=Math.sin(e)*N,i=Math.sin(j),N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/$D(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/$D(t,N))));return M.x=M.x*this.a,M.y=M.y*this.a,M}function pj(M){var N,D,t,i,e=-1,j=0,T=0;if(M.x=M.x/this.a,M.y=M.y/this.a,"ellipse"===this.shape){this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*$D(1,T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*$D(1,j));var g=T/this.radius_p;if(N=j*j+g*g+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e),M.y=Math.atan(this.radius_p_inv2*Math.tan(M.y))}else if("sphere"===this.shape){if(this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*Math.sqrt(1+T*T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*Math.sqrt(1+j*j)),N=j*j+T*T+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e)}return M.x=M.x+this.long0,M}var hj=["Geostationary Satellite View","Geostationary_Satellite","geos"],fj={init:Yj,forward:Uj,inverse:pj,names:hj},mj=function(M){M.Proj.projections.add(qD),M.Proj.projections.add(st),M.Proj.projections.add(nt),M.Proj.projections.add(lt),M.Proj.projections.add(pt),M.Proj.projections.add(Bt),M.Proj.projections.add(Xt),M.Proj.projections.add(Jt),M.Proj.projections.add(Ni),M.Proj.projections.add(zi),M.Proj.projections.add(Ui),M.Proj.projections.add(bi),M.Proj.projections.add(Wi),M.Proj.projections.add(Ji),M.Proj.projections.add(Ne),M.Proj.projections.add(Te),M.Proj.projections.add(Ie),M.Proj.projections.add(re),M.Proj.projections.add(Oe),M.Proj.projections.add(ke),M.Proj.projections.add(pe),M.Proj.projections.add(Be),M.Proj.projections.add(Re),M.Proj.projections.add(Fe),M.Proj.projections.add(tj),M.Proj.projections.add(yj),M.Proj.projections.add(Oj),M.Proj.projections.add(dj),M.Proj.projections.add(fj)};tD.defaultDatum="WGS84",tD.Proj=mN,tD.WGS84=new tD.Proj("WGS84"),tD.Point=dD,tD.toPoint=FN,tD.defs=vM,tD.nadgrid=xN,tD.transform=KN,tD.mgrs=ID,tD.version="__VERSION__",mj(tD);var vj=tD,Bj={name:"app-contextMenu",components:{},props:{coordinates:{type:Array,required:!0},origin:{type:Object},destination:{type:Object},building:{type:Number,required:!0},floor:{type:Number,required:!0},floorName:{type:String,required:!0},loadRoute:{type:Function},setLocation:{type:Function},addContextMenuMarkerSelected:{type:Function},hasGraph:{type:Boolean}},data:function(){return{debugMode:!1,has_graph:this.hasGraph}},computed:{coordinates4326:function(){var M=Number(this.coordinates[1].toFixed(5)),N=Number(this.coordinates[0].toFixed(5));return[M,N]},coordinates3857:function(){var M=vj("EPSG:4326","EPSG:3857",[this.coordinates[0],this.coordinates[1]]);return[Number(M[0].toFixed(0)),Number(M[1].toFixed(0))]}},methods:{click:function(M){var N,D={geometry:{coordinates:this.coordinates,type:"Point"},properties:{level:this.floor,levelName:this.floorName,building:this.building,icon:"marcadores/pp_00-mk.svg"},type:"Feature",mode:"point"};this.setLocation([D]),this.loadRoute((N={i18n:this.$i18n},Object(I["a"])(N,M,D),Object(I["a"])(N,"contextual",!0),Object(I["a"])(N,"routeMode",!0),N)),this.addContextMenuMarkerSelected(D),this.close()},close:function(){this.$emit("close")},copyText:function(M){var N="";switch(M){case"lat":N=this.$refs.lat;break;case"lon":N=this.$refs.lon;break;case"x":N=this.$refs.x;break;case"y":N=this.$refs.y;break}N.select(),document.execCommand("copy")}}},bj=Bj,Pj=(D("39ac"),D("2877")),Zj=Object(Pj["a"])(bj,G,R,!1,null,"a15696fc",null),Gj=Zj.exports,Rj=D("bd28"),Wj=D("dfa0"),Xj=D("595b"),Hj=D("7618");function _j(M){var N=M&&"object"===Object(Hj["a"])(M);return N&&(M._isVue=!0,M.$options={},M.$refs={},M._data={}),M}var Fj=D("a09f");function Vj(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Jj(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Vj(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Vj(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var qj={name:"MapComponent",mixins:[x,P,m,Fj["a"]],components:{},props:{full_airport_loaded:!1,explorerMode:{type:Boolean,default:!1},printMode:{type:Boolean,default:!1},lat:{require:!1,type:String,default:""},lon:{require:!1,type:String,default:""}},data:function(){return{map:void 0,mapLoaded:!1,flying:!1,loaded:!1,popup:void 0,mapCanvas:void 0,contextMenuMarker:void 0,contextMenuMarkerSelected:[],contextMenuPopup:void 0,popupActive:!1,debugMode:!1,buildingId:this.$root.$data.building,floorId:this.$root.$data.floor}},mounted:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){var N,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return N=new c["Map"]({container:this.id,style:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",center:[0,0],zoom:2}),N.fitBounds(this.initialBbox),t=new c["NavigationControl"]({showCompass:!1}),N.addControl(t,"bottom-left"),_j(N),this.map=N,document.querySelectorAll(".mapboxgl-ctrl").forEach((function(M){return M.setAttribute("aria-hidden",!0)})),i=D("040e"),e=Object.entries(D("c68e")),M.next=11,new Promise((function(M){var N=new Image;N.src=i,N.onload=function(){var D=document.createElement("canvas");D.width=N.width,D.height=N.height,D.getContext("2d").drawImage(N,0,0,N.width,N.height),e.forEach((function(M){var N=D.getContext("2d").getImageData(M[1].x,M[1].y,M[1].width,M[1].height).data;j.map.addImage(M[0],{width:M[1].width,height:M[1].height,data:N},{pixelRatio:window.devicePixelRatio})})),M()}}));case 11:this.map.on("load",Object(A["a"])(regeneratorRuntime.mark((function M(){var N;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:j.mapLoaded=!0,""!==j.lat&&""!==j.lon&&(N=[j.lon,j.lat],j[z["a"].SET_COORDINATES]({coordinates:N,zoom:19}));case 2:case"end":return M.stop()}}),M)})))),this.map.on("movestart",(function(){j.removeContextMenu()})),this.map.on("click",(function(){j.removeContextMenu()})),this.map.on("moveend",(function(){j.flying&&(j.flying=!1,j.existLayer(Z["a"].POI_LIST)&&j.floor&&j.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible"))})),this.map.on("zoomend",(function(){var M=j.map.getZoom();if(!j.floor&&M>="16"){j[z["a"].BLOCK_BBOX](!0);var N=j.map.getBounds(),D=Object(Xj["point"])(N.getCenter().toArray()),t=Object(Xj["featureCollection"])(j.buildings.map((function(M){return Object(Xj["point"])(M.centroid.coordinates,{id:M.id,floor:M.default_level})}))),i=Object(Xj["nearestPoint"])(D,t);j.poi&&i.properties.id!==j.poi.properties.building||j.saveFloor({buildingId:i.properties.id,floorId:i.properties.floor,airportID:j.airportID})}else j.mapLoaded&&j.floor&&j.map.getZoom()<"14"&&!j.isRouteMode&&!j.poi&&j[z["a"].LOAD_FLOOR]()})),this.map.on("contextmenu",(function(M){(j.floor&&j.airport.has_graph&&!j.printMode||j.floor&&j.debugMode&&!j.printMode)&&(j.removeContextMenu(),j.addContextMenuPoint(M))})),window.addEventListener("resize",this.resize);case 18:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),destroyed:function(){window.removeEventListener("resize",this.resize),this.map.remove()},computed:Jj(Jj({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,id:z["b"].GET_ID,bbox:z["b"].GET_BBOX,coordinates:z["b"].GET_COORDINATES,zoom:z["b"].GET_ZOOM,accessToken:z["b"].GET_ACCESS_TOKEN,buildings:z["b"].GET_BUILDINGS,layerTree:z["b"].GET_LAYER_TREE,floor:z["b"].GET_FLOOR,building:z["b"].GET_BUILDING,category:z["b"].GET_CATEGORY,poisCatalog:z["b"].GET_POIS_CATALOG,poiId:z["b"].GET_POI_ID,poiDId:z["b"].GET_POID_ID,routeConfig:z["b"].GET_ROUTE_CONFIG,poi:z["b"].GET_POI,isRouteMode:z["b"].IS_ROUTE_MODE,hasRoute:z["b"].HAS_ROUTE,airportID:z["b"].GET_AIRPORT_ID,airport:z["b"].GET_AIRPORT,initialBbox:z["b"].GET_INITIAL_BBOX,homePosition:z["b"].GET_HOME_POSITION})),{},{mapAirportLoaded:function(){return this.mapLoaded&&this.full_airport_loaded},filterPois:function(){var M=["all"];return M.push(["==",["get","building"],this.building.id]),M.push(["==",["get","level"],this.floor.id]),this.category&&this.map.getSource(Z["a"].POI_LIST)&&this.map.getSource(Z["a"].POI_LIST).setData(this.filterCategoryPois),M},filterCategoryPois:function(){return a(this.poisList,this.category)}}),methods:Jj(Jj({},Object(n["b"])([z["a"].BLOCK_BBOX,z["a"].ADD_LAYER,z["a"].DELETE_LAYER,z["a"].SET_COORDINATES,z["a"].LOAD_TILES_BUILDING_FLOOR,z["a"].LOAD_FLOOR,z["a"].SET_HOME_POSITION,z["a"].LOAD_FLOOR])),{},{loadAirport:function(){this.loaded=!0,this.canvasMap=this.map.getCanvasContainer(),this.$root.$emit("mapLoaded",this.map),this.resize(),this.addPoisLayer(),this.bbox&&this.fitBounds(this.bbox),this.buildings.length&&this.addBuildings(this.buildings),(this.floor||this.category)&&this.setFloor(this.floor),this.poiId&&this.setPoi(this.poiId),this.routeConfig&&this.setContextualRoute()},resize:function(){var M=this,N=20,D=0,t=window.setInterval((function(){D+=N,M.map.resize(),D>=250&&window.clearInterval(t)}),N)},getMap:function(M){var N=this,D=function D(){N.loaded?M():setTimeout(D,50)};D()},fitBounds:function(M){this.flying=!0,this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");var N=document.getElementById("points-wrapper")||{};this.map.fitBounds(M,{padding:{left:this.isMobile?0:N.offsetWidth||0,bottom:64,top:64,right:64},duration:1e3})},flyTo:function(M){this.map.flyTo(Jj(Jj({},M),{},{speed:2.4})),this[z["a"].SET_COORDINATES]({coordinates:void 0})},getLayer:function(M){return this.map.getLayer(M)},setLayoutProperty:function(M,N){return this.map.setLayoutProperty(M,"visibility",N)},existLayer:function(M){return!!this.getLayer(M)},addLayerHandle:function(M){var N=M.id,D=M.source,t=M.data,i=M.url,e=M.layers;"raster"===D?this.addLayerRaster({id:N,source:D,url:i}):"mvt"===D?this.addLayerMVT({id:N,source:D,url:i,layers:e}):this.addLayerVector({id:N,source:D,data:t,url:i,layers:e})},addLayerRaster:function(M){var N=M.id,D=M.source,t=M.url;this.map.addSource(N,{type:D,tiles:[t],tileSize:256}),this.map.addLayer({id:N,type:D,source:N}),this.map.moveLayer(N,Z["a"].POI_LIST),this.existRouteLayer()&&this.moveRouteLayer()},addLayerMVT:function(M){var N=this,D=M.id,t=(M.source,M.url),i=M.layers;this.map.addSource(D,{type:"vector",tiles:t}),i.forEach((function(M){N.map.addLayer(Jj({source:D},M),N.existLayer(Z["a"].POI_LIST)?Z["a"].POI_LIST:null)})),this.existRouteLayer()&&this.moveRouteLayer()},addLayerVector:function(M){var N=this,D=M.id,t=M.source,i=M.url,e=M.data,j=M.layers,T=void 0===j?[]:j;this.existLayer(D)&&(T.forEach((function(M){N.map.removeLayer(M.id||D)})),this.map.removeSource(D));var g={type:t||"vector"},u={};i&&(g.url=i,u["source-layer"]=D),e&&(g.data=e,u["source"]=D),this.map.addSource(D,g),T.forEach((function(M){N.map.addLayer(Jj(Jj(Jj({},u),M),{},{id:M.id||D}))})),T.length||this.map.addLayer(u),this.existLayer(Z["a"].POI_LIST)&&this.map.moveLayer(Z["a"].POI_LIST),this.existLayer(Z["a"].POI_LIST_SELECTED)&&this.map.moveLayer(Z["a"].POI_LIST_SELECTED)},addContextMenuPoint:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:D=document.createElement("div"),D.className="context-menu-marker",this.contextMenuMarker=new c["Marker"](D).setLngLat(N.lngLat).addTo(this.map),t=null,M.prev=4,t=Gj,M.next=12;break;case 8:return M.prev=8,M.t0=M["catch"](4),console.error('[showPopup] Error importing component "context-menu" \n',M.t0),M.abrupt("return");case 12:i=u["a"].extend(Jj(Jj({},t),{},{i18n:this.$i18n})),e="context-menu",j=new i({propsData:{coordinates:[N.lngLat.lng,N.lngLat.lat],origin:this.origin,destination:this.destination,building:this.building.id,floorName:this.floor.name,floor:this.floor.id,loadRoute:this[z["a"].LOAD_ROUTE],addContextMenuMarkerSelected:this.addContextMenuMarkerSelected,setLocation:this.setLocation,hasGraph:this.airport.has_graph}}),this.contextMenuPopup=new c["Popup"]({closeButton:!1,closeOnClick:!0,anchor:"top-left",offset:12,className:"context-menu"}).setLngLat(N.lngLat).setHTML('<div id="'.concat(e,'"></div>')).addTo(this.map),this.contextMenuPopup.vue=j,j.$mount("#".concat(e)),this.contextMenuPopup._update(),j.$on("close",(function(){T.removeContextMenu()}));case 20:case"end":return M.stop()}}),M,this,[[4,8]])})));function N(N){return M.apply(this,arguments)}return N}(),addContextMenuMarkerSelected:function(M){var N=document.createElement("div");N.className="context-menu-marker-selected";var D=new c["Marker"](N,{anchor:"bottom"}).setLngLat(M.geometry.coordinates).addTo(this.map);this.contextMenuMarkerSelected.push(D)},removeContextMenu:function(){this.contextMenuMarker&&(this.contextMenuMarker.remove(),this.contextMenuMarker=void 0),this.contextMenuPopup&&(this.contextMenuPopup.vue.$destroy(),this.contextMenuPopup.remove(),this.contextMenuPopup=void 0)},removeContextMenuSelected:function(){this.contextMenuMarkerSelected.forEach((function(M){M.remove()})),this.contextMenuMarkerSelected=[]},addBuildings:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return D=N.reduce((function(M,N){var D,t=j.generateGeoJsonBuilding(N);return(D=M.features).push.apply(D,Object(y["a"])(t)),M}),{type:"FeatureCollection",features:[]}),t=Z["c"],t.data=D,t.layers[0].filter=!0,this.building&&(t.layers[0].filter=["!=",["get","id"],this.building.id]),this[z["a"].ADD_LAYER](Jj({},t)),i=N.reduce((function(M,N){var D=j.generateGeoJsonBuildingMarker(N);return M.features.push(D),M}),{type:"FeatureCollection",features:[]}),M.next=9,this.addMarkers();case 9:e=Z["d"],e.data=i,e.layers[0].filter=!0,this.building&&(e.layers[0].filter=["!=",["get","id"],this.building.id]),this[z["a"].ADD_LAYER](Jj({},e)),this.explorerMode&&(this.map.on("click",Z["c"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID,tag:"mapa",event:!0}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["c"].id,(function(M){if(!j.popupActive){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new c["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)}})),this.map.on("mouseleave",Z["c"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[24],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[18],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("click",Z["d"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["d"].id,(function(M){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new c["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)})),this.map.on("mouseleave",Z["d"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})));case 15:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),generateGeoJsonBuildingMarker:function(M){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,poi_name:M.short_name+M.color,color:M.color,fontColor:M.font_color},geometry:{type:M.centroid.type,coordinates:M.centroid.coordinates}}},generateGeoJsonBuilding:function(M){return M.bounds.geometries.map((function(N){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,color:M.color},geometry:{type:N.type,coordinates:N.coordinates}}}))},addMarkers:function(){var M=this,N=1===window.devicePixelRatio?1:2;this.buildings.filter((function(N){return N.id!==(M.building||{}).id})).forEach((function(D){var t=D.short_name+D.color;if(!M.map.hasImage(t)){var i="PARKING PUBLICO"===D.category,e=document.createElement("canvas"),j=(i?24:40)*N;e.width=j,e.height=j;var T=e.getContext("2d");T.imageSmoothingEnabled=!1,T.globalAlpha=1;var g=e.height/2;if(T.translate(g,g),g-=8,T.shadowColor="#999",T.shadowBlur=8,i){var u=4,s=2,L=j/2-s;T.moveTo(u-L,0-L),T.lineTo(L-u,0-L),T.arc(L-u,0-L+u,u,1.5*Math.PI,.2*Math.PI),T.moveTo(L,0-L+u+2),T.lineTo(L,L-u),T.arc(L-u,L-u,u,0*Math.PI,.5*Math.PI),T.moveTo(L-u,L),T.lineTo(u-L,L),T.arc(0-L+u,L-u,u,.5*Math.PI,1*Math.PI),T.moveTo(0-L,L-u),T.lineTo(0-L,0-L+u),T.arc(u-L,u-L,u,1*Math.PI,1.5*Math.PI),T.fillStyle=D.color,T.fillRect(0-L+.7,0-L+.5,j-u-1,j-u-1.5)}else T.arc(0,0,g,0,2*Math.PI),T.fillStyle=D.color,T.fill();T.shadowColor="transparent",T.shadowBlur=0,T.lineWidth=N,T.strokeStyle=D.font_color,T.stroke(),T.beginPath(),T.font="600 ".concat(12*N,"px Source Sans Pro"),T.textAlign="center",T.fillStyle=D.font_color,T.fillText(D.short_name,0,0+4*N);var I=e.getContext("2d").getImageData(0,0,j,j).data;M.map.addImage(t,{width:j,height:j,data:I},{pixelRatio:N})}}))},setSelectedPoi:function(M){var N=this;if(this.removeContextMenuSelected(),this.existLayer(Z["a"].POI_LIST_SELECTED)){var D={type:"FeatureCollection",features:[]};if(M){var t=this.poisList.features.find((function(N){return N.properties.id===M}));t||(t=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),D.features.push(t)}this.floor&&this.steps.filter((function(M){return!M.new})).forEach((function(M){"point"!==M.mode?D.features.push(M):N.addContextMenuMarkerSelected(M)})),this.map.getSource(Z["a"].POI_LIST_SELECTED).setData(D),this.map.setLayoutProperty(Z["a"].POI_LIST_SELECTED,"visibility",D.features.length?"visible":"none"),this.map.moveLayer(Z["a"].POI_LIST_SELECTED)}},setPoi:function(M){this.savePoi({poiId:M,airportID:this.airportID,tag:"mapa"}),this.setSelectedPoi(M)},existRouteLayer:function(){return this.existLayer(Z["a"].ROUTES[0])||this.existLayer(Z["a"].ROUTES[1])||this.existLayer(Z["a"].ROUTES[2])},moveRouteLayer:function(){this.map.moveLayer(Z["a"].ROUTES[0]),this.map.moveLayer(Z["a"].ROUTES[1]),this.map.moveLayer(Z["a"].ROUTES[2])},setRouteFloor:function(M){if(this.existRouteLayer()){this.moveRouteLayer(),this.map.setLayoutProperty(Z["a"].ROUTES[0],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[1],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[2],"visibility",M?"visible":"none");var N=Object(Wj["a"])(this.building,this.floor),D=N.layerOpacity,t=N.arrowOpacity,i=["all",["==",["get","level"],this.floor.id],["==",["get","building"],this.building.id]];this.map.setFilter(Z["a"].ROUTES[1],i),this.map.setPaintProperty(Z["a"].ROUTES[0],"line-opacity",D),this.map.setPaintProperty(Z["a"].ROUTES[2],"icon-opacity",t),this.setSelectedPoi()}},setFloor:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:if(this.existLayer(Z["a"].TILES)&&(this.map.removeLayer(Z["a"].TILES),this.map.removeSource(Z["a"].TILES),this[z["a"].DELETE_LAYER](Z["a"].TILES)),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none"),!N){M.next=17;break}if(this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,["!=",["get","id"],this.building.id]),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,["!=",["get","id"],this.building.id]),D=["all",["==",["get","building"],["to-string",this.building.id]],["==",["get","height"],this.floor.id]],this.existLayer(Z["b"].id)){M.next=13;break}return t=Jj({},Z["b"]),t.layers.forEach((function(M){M.filter=D})),M.next=11,this[z["a"].LOAD_TILES_BUILDING_FLOOR](Z["b"]);case 11:M.next=14;break;case 13:Z["b"].layers.forEach((function(M){i.map.setFilter(M.id,D)}));case 14:this.existLayer(Z["a"].POI_LIST)&&(this.map.setFilter(Z["a"].POI_LIST,this.filterPois),this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible")),M.next=21;break;case 17:this.existLayer(Z["b"].id)&&Z["b"].layers.forEach((function(M){i.map.setFilter(M.id,["to-boolean",0])})),this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,!0),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,!0),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");case 21:this.setRouteFloor(!0);case 22:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),addPoisLayer:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){var N,D,t=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:N=Z["e"],D=this.category?this.filterCategoryPois:this.poisList,N.data=Jj({},D),N.data.features=[].concat(Object(y["a"])(N.data.features),Object(y["a"])(this.uncategorizedPoisList.features)),N.layers[0].filter=!!this.floor&&this.filterPois,N.layers[0].layout.visibility=this.floor?"visible":"none",this[z["a"].ADD_LAYER](Jj({},N)),this[z["a"].ADD_LAYER](Z["f"]),this.explorerMode&&this.map.on("click",Z["a"].POI_LIST,(function(M){var N=M.features[0],D=N.properties.id,i=JSON.parse(N.properties.subcategories),e=t.poisList.features.find((function(M){return M.properties.id===D}));e||(e=t.uncategorizedPoisList.features.find((function(M){return M.properties.id===D})));var j="".concat(t.building.name,". Planta ").concat(e.properties.levelName,". ").concat(t.$t(e.properties.attrs.pat_nombre));if(t.isRouteMode){var T,g=(t.destinationName||"").includes("step")?"step":t.destinationName,u=g||(t.destination?"origin":"destination");t.setLocation([N]),t[z["a"].LOAD_ROUTE]((T={i18n:t.$i18n},Object(I["a"])(T,u,{geometry:{coordinates:[M.lngLat.lng,M.lngLat.lat],type:"Point"},properties:Jj(Jj({},N.properties),{},{attrs:JSON.parse(N.properties.attrs),subcategories:i}),type:"Feature"}),Object(I["a"])(T,"routeMode",!0),T))}else{t.setPoi(D);var s={eventCategory:"mapa",eventAction:"clic",eventLabel:Object(E["a"])(j),language:t.$i18n.locale,airportID:t.airportID};window.digitalChange("event",s)}})),this.map.on("mouseover",Z["a"].POI_LIST,(function(M){t.popupActive=!0,t.setPoiTooltip(M)})),this.map.on("mouseleave",Z["a"].POI_LIST,(function(){t.popupActive=!1,t.removePopup()})),this.map.on("mouseleave",Z["a"].POI_LIST_SELECTED,(function(){t.removePopup()})),this.map.on("mouseover",Z["a"].POI_LIST_SELECTED,(function(M){t.setPoiTooltip(M,!0)}));case 13:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),removePopup:function(){this.popup&&this.popup.remove()},setPoiTooltip:function(M,N){this.removePopup();var D=M.features[0],t=JSON.parse(D.properties.subcategories),i=Z["j"][Object(Rj["a"])(t)];this.canvasMap.style.cursor="pointer";var e=D.geometry.coordinates.slice(),j=i?this.$t(i.name):JSON.parse(D.properties.attrs).pat_nombre;this.popup=new c["Popup"]({closeButton:!1,anchor:"bottom",offset:{bottom:[0,N?-25:-10]}}),this.popup.setLngLat(e).setHTML(j).addTo(this.map)},setContextualRoute:function(){var M=this,N=this.poisList.features.filter((function(N){return M.routeConfig.steps.includes(N.properties.id)}));this.setLocation(N),this[z["a"].MOVE_ROUTE]({steps:N})},clearRoute:function(){this.existRouteLayer()&&(this.map.removeLayer(Z["a"].ROUTES[0]),this.map.removeLayer(Z["a"].ROUTES[1]),this.map.removeLayer(Z["a"].ROUTES[2]),this.map.removeSource(Z["a"].ROUTES[0]),this.map.removeSource(Z["a"].ROUTES[2]),this[z["a"].DELETE_LAYER](Z["a"].ROUTES[0]),this[z["a"].DELETE_LAYER](Z["a"].ROUTES[2])),this.setSelectedPoi()}}),watch:{mapAirportLoaded:function(M){M&&this.loadAirport()},bbox:function(M){M&&this.fitBounds(M)},accessToken:function(M){c["accessToken"]=M},layerTree:function(M){var N=this;M.forEach((function(M){N.existLayer(M.id)||N.addLayerHandle(M)}))},buildings:function(M){this.loaded&&this.addBuildings(M)},floor:function(M){this.loaded&&this.setFloor(M)},coordinates:function(M){var N=this;if(M&&(this.flyTo({center:M,zoom:this.zoom}),""!==this.lat&&""!==this.lon)){var D=[this.lon,this.lat],t=document.createElement("div"),i="YOU ARE HERE",e=new c["Popup"]({closeButton:!0,anchor:"bottom"});t.className="context-menu-marker",setTimeout((function(){e.setLngLat(D).setHTML(i).addTo(N.map),new c["Marker"](t).setPopup(e).setLngLat(D).addTo(N.map).togglePopup()}),1500)}},poi:function(M){this.setSelectedPoi(M&&M.properties.id),M&&this[z["a"].SET_COORDINATES]({coordinates:M.geometry.coordinates,zoom:19})},steps:function(){this.setSelectedPoi()},isRouteMode:function(M){M||this.clearRoute()},hasRoute:function(M){M?this.setSelectedPoi():this.clearRoute()},homePosition:function(M){var N=this;if(M&&this.homePosition){var D=this.poisList.features.find((function(M){return M.properties.id===N.homePosition})),t=this.buildings.find((function(M){return M.id===D.properties.building})),i=t.levels.find((function(M){return M.id===N.floorId})),e=[D.geometry.coordinates[0],D.geometry.coordinates[1]];this[z["a"].SET_COORDINATES]({coordinates:e,zoom:19}),this[z["a"].LOAD_FLOOR]({floor:i,building:t}),this.setPoi(this.homePosition),this[z["a"].SET_HOME_POSITION](!1)}}}},Kj=qj,$j=(D("585f"),Object(Pj["a"])(Kj,w,r,!1,null,"5dba0ef4",null)),MT=$j.exports,NT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"layers-container"},[N("DropDown",{ref:"dropdown",attrs:{"click-outside":!1,height:"auto"},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger"},[N("Icon",{attrs:{icon:"icon-layers.svg",size:"20px",fill:"#f6f7f9"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"header"},[N("p",[M._v("Capas")]),N("button",{staticClass:"close",on:{click:M.close}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"20px",fill:"#71777d"}})],1)]),N("div",{staticClass:"layers-wrapper"},M._l(M.layers,(function(D){return"poiList"===D.id?N("div",{key:D.id,staticClass:"layer"},[N("div",{staticClass:"layer-header"},[N("Checkbox",{attrs:{name:D.id,label:D.name},on:{change:M.onCheckboxChange},model:{value:D.active,callback:function(N){M.$set(D,"active",N)},expression:"layer.active"}})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enterLayer,"after-enter":M.afterEnterLayer,leave:M.leaveLayer}},[D.legend&&D.active?N("div",{staticClass:"legend"},[N("div",{staticClass:"wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.legend.title))]),N("div",{staticClass:"chart"},[N("div",{staticClass:"labels"},[N("p",[M._v(M._s(D.legend.range.min))]),N("p",[M._v(M._s(D.legend.range.max))])]),N("div",{staticClass:"bar",style:{"background-image":M.gradient(D.legend.range.range)}})]),N("p",{staticClass:"note"},[M._v(M._s(D.legend.note))])])]):M._e()])],1):M._e()})),0)]},proxy:!0}])})],1)},DT=[],tT={name:"Layers",mixins:[],components:{},props:{layers:{type:Array,required:!0}},data:function(){return{}},computed:{},methods:{close:function(){this.$refs.dropdown.close()},onCheckboxChange:function(M){this.$emit("change",M)},gradient:function(M){return"linear-gradient(to right, ".concat(M.join(",",""),")")},enterLayer:function(M){M.style.height="auto";var N=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=N}))},afterEnterLayer:function(M){M.style.height="auto"},leaveLayer:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}}},iT=tT,eT=(D("92e1"),Object(Pj["a"])(iT,NT,DT,!1,null,"566cf004",null)),jT=eT.exports,TT=(D("386d"),function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"header",ref:"header",staticClass:"headers-wrapper",class:{none:"aena-point-detail"===M.view},attrs:{role:"region"}},[M.search&&!M.isRouteMode?N("AenaSearch",{key:"search",ref:"search",attrs:{hidden:"aena-point-detail"===M.view&&!M.isMobile,search:M.currentProps.activeFilters.search,view:M.view},on:{onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey,onSelect:M.onSelect,onFocus:M.onInputFocus,onBlur:M.onInputBlur,onBack:M.goBack}}):M._e(),M.isRouteMode?N("div",{key:"route-header",staticClass:"aena-route-header"},[M.isMobile?N("button",{staticClass:"btn-back",on:{click:M.closeRoute}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),N("div",{staticClass:"top"},[M.toggleDrag?N("div",{staticClass:"graph absolute inert",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}}),M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M._l(M.stepsAdded,(function(D){return M.isMobile?M._e():[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}}),N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)]})),M.isMobile?M._e():N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}}),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],2):M._e(),M.explorerMode&&!M.isMobile?N("button",{staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE_ROUTE_CONFIG")},on:{click:M.closeRoute}},[N("Tooltip",{attrs:{text:M.$t("CLOSE_ROUTE_CONFIG"),position:"right"}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"30px",fill:"#90ce00"}})],1)],1):M._e(),N("div",{staticClass:"points"},[N("draggable",{attrs:{"ghost-class":"ghost",sort:!!M.explorerMode&&!M.addBlocked,handle:".graph"},on:{start:M.onDrag,end:M.onDrag},model:{value:M.steps,callback:function(N){M.steps=N},expression:"steps"}},[N("transition-group",[N("div",{key:"origin",staticClass:"input origin",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"right"}},[N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)],1),"origin"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(0,"origin")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.origin?["point"===M.origin.mode||void 0===M.origin.properties.attrs?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(M.origin.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.origin.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_ORIGIN",expression:"'SEARCH_ORIGIN'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"origin",attrs:{placeholder:M.origin&&"point"!==M.origin.mode?M.$t("ORIGIN")+". "+M.$t(M.origin.properties.attrs.pat_nombre)+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName+". "+M.$t("SEARCH_ORIGIN"):M.$t("SEARCH_ORIGIN"),name:"origin",autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(0)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP"),position:"right"}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e(),M.blockedPois||M.addBlocked||!M.isMobile||M.stepsAdded.length?M._e():N("button",{staticClass:"btn-add-mobile",on:{click:M.addStep}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1),M._l(M.stepsAdded,(function(D,t){return N("div",{key:"step"+t,staticClass:"input add",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:"Arrastra para reordenar",position:"top-left"}},[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),M.destinationName!=="step"+t?N("div",{staticClass:"input-selected short",class:{static:!M.blockedPois},on:{click:function(N){return M.clearStep(t+1,"step"+t,!0)}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),D.new?N("span",{directives:[{name:"t",rawName:"v-t",value:"SELECT_WAYPOINT",expression:"'SELECT_WAYPOINT'"}],staticClass:"placeholder"}):["point"===D.mode?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(D.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(D.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(D.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(D.properties.levelName)+"\n ")])]],2)]):M._e(),N("Searcher",{ref:"step"+t,refInFor:!0,attrs:{placeholder:D&&"point"!==D.mode&&D.properties?M.$t("WAYPOINT")+". "+M.$t(D.properties.attrs.pat_nombre)+". "+D.properties.location.name+". "+M.$t("FLOOR")+" "+D.properties.levelName+". "+M.$t("SELECT_WAYPOINT"):M.$t("SELECT_WAYPOINT"),name:"step"+t,autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(t+1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)})),N("div",{key:"destination",staticClass:"input destination",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"top-left"}},[N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}})],1),M.isMobile&&M.stepsAdded.length?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),"destination"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(M.steps.length-1,"destination")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.destination?["point"===M.destination.mode?N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates))+"\n ")]):N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.$t(M.destination.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.destination.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_DESTINATION",expression:"'SEARCH_DESTINATION'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"destination",attrs:{placeholder:M.destination&&"point"!==M.destination.mode?M.$t("DESTINATION")+". "+M.$t(M.destination.properties.attrs.pat_nombre)+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName+". "+M.$t("SEARCH_DESTINATION"):M.$t("SEARCH_DESTINATION"),name:"destination"},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(M.steps.length-1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)],2)],1)],1)]),!M.blockedPois&&!M.isMobile&&M.stepsAdded.length<3?N("button",{staticClass:"btn-add",class:{disabled:M.addBlocked},attrs:{"aria-disabled":M.addBlocked},on:{click:M.addStep}},[N("p",[M._v(M._s(M.$t("ADD_WAYPOINT")))]),M.addBlocked?N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}}):N("Tooltip",{attrs:{text:M.$t("ADD_WAYPOINT")}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1):M._e(),"true"===M.pmr_enabled?N("div",{staticClass:"pmr-content"},[N("ToggleSwitch",{attrs:{label:M.$t("ROUTES_NO_BARRIERS"),value:M.pmrActive},on:{change:M.togglePMR}}),N("button",{on:{click:M.showPMRConfig}},[N("span",[M._v(M._s(M.$t("SHOW_PMR")))])])],1):M._e()]):M._e(),M.isRouteMode&&!M.addBlocked?N("div",{key:"time",staticClass:"time",class:{shadow:!M.blockedPois}},[M.error?[N("div",{staticClass:"no-route"},[N("Icon",{staticClass:"clear",attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{staticClass:"top"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"NO_ROUTE",expression:"'NO_ROUTE'"}],staticClass:"description"})]),N("button",{directives:[{name:"t",rawName:"v-t",value:"TRY_AGAIN",expression:"'TRY_AGAIN'"}],staticClass:"btn-route error",attrs:{"aria-haspopup":"true","aria-expanded":"isVisible","aria-controls":"aena-route-container"},on:{click:function(N){return M.clearStep(0,"origin")}}})])],1)]:[M.isMobile?M._e():N("Icon",{staticClass:"clear",attrs:{icon:M.iconCondition,size:"30px",fill:"#1a2732"}}),N("div",{staticClass:"info"},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("div",{staticClass:"top"},[N("h3",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),N("p",{staticClass:"description",attrs:{tabindex:"0"}},[N("span",{staticClass:"security-control"},[M._v(M._s(M.$t(M.routeCondition.msg)))]),N("span",[M._v(M._s(M.$t(M.routeCondition.msg2)))])])]),M.isMobile?M._e():N("button",{directives:[{name:"t",rawName:"v-t",value:"ROUTE",expression:"'ROUTE'"}],staticClass:"btn-route",attrs:{"aria-label":(M.blockedPois?M.$t("CLOSE"):M.$t("VISUALIZE"))+" "+M.$t("ROUTE_SUMMARY"),"aria-hidden":M.blockedPois},on:{click:M.toggleBlocked}})]),M.isMobile?N("div",{staticClass:"buttons"},[N("button",{staticClass:"indications",on:{click:M.toggleBlocked}},[N("p",[M._v(M._s(M.$t("INDICATIONS")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-rating-jj.svg",size:"30px",fill:"#1A2732"}})],1),M.isAndroid||M.isIOS?N("button",{staticClass:"start",on:{click:M.toggleBanner}},[N("p",[M._v(M._s(M.$t("START")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):M._e()],M.loading?N("div",{staticClass:"loading"},[N("svg",{staticClass:"spinner",attrs:{width:"26px",height:"26px",viewBox:"0 0 26 26"}},[N("circle",{staticClass:"path",attrs:{fill:"none","stroke-width":"2","stroke-linecap":"round",cx:"13",cy:"13",r:"12"}})])]):M._e()],2):M._e(),N("transition",{attrs:{appear:"",name:"banner"}},[(M.isAndroid||M.isIOS)&&M.appBanner?N("div",{staticClass:"app-banner"},[N("div",{staticClass:"row"},[N("div",{staticClass:"image-wrapper"},[N("img",{attrs:{src:D("3f3a"),alt:""}})]),N("div",{staticClass:"content-wrapper"},[N("span",[N("h3",[M._v(M._s(M.$t("ASPA")))]),N("p",[M._v("Esta aplicación te ofrece la navegación en tiempo real con instrucciones visuales y por voz.")])])])]),N("div",{staticClass:"buttons"},[N("button",{staticClass:"not",on:{click:M.toggleBanner}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(M.$t("NOT_NOW")))])],1),N("a",{staticClass:"open",attrs:{href:M.appLink}},[N("p",[M._v(M._s(M.$t("OPEN_APP")))])])])]):M._e()])],1),M.addBlocked||M.blockedPois?N("div",{key:"container",ref:"container",staticClass:"aena-points-container",class:[M.deviceWidthClass,{visible:M.isVisible,"detail-mobile":M.isCollapsed}]},[N("transition",{attrs:{name:"fade",mode:"out-in"},on:{"after-enter":M.onTransitionEnter}},[N(M.view,M._b({ref:"component",tag:"component",on:{onSelect:M.onSelect,onFilter:M.onFilter,onCategory:M.onCategory,onCloseRoute:M.toggleBlocked,onCollapsed:M.toggleCollapsed,goBack:M.resetView}},"component",M.currentProps,!1))],1)],1):M._e()])}),gT=[],uT=(D("55dd"),D("5df3"),D("4f7f"),D("3b2b"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-search-container",class:[M.deviceWidthClass,{hidden:M.hidden,focus:M.focus&&"aena-point-detail"!==M.view,active:M.active}]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SEARCH_PLACEHOLDER")))]),N("Searcher",{attrs:{search:M.search,placeholder:M.$t("SEARCH_PLACEHOLDER")},on:{onActive:M.setActive,focus:M.onFocus,onEnterKey:M.onEnterKey,blur:M.onBlur}}),N("transition",{attrs:{name:"btn-back",appear:""}},[M.isMobile&&M.active&&M.hasRoute?N("button",{staticClass:"btn-back",on:{click:M.goBack}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#598000"}})],1):M._e()]),M.hasRoute?N("button",{staticClass:"btn-route",attrs:{type:"submit",tabindex:"0","aria-hidden":"true","aria-label":M.$t("CONFIG_ROUTE")},on:{click:M.goToRoute}},[N("Tooltip",{attrs:{text:M.$t("CONFIG_ROUTE"),position:"right"}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#525C65"}})],1)],1):M._e()],1)}),sT=[],LT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"input-wrapper",class:[M.deviceWidthClass,{active:M.active}]},[N("input",{directives:[{name:"model",rawName:"v-model",value:M.inputValue,expression:"inputValue"}],ref:"input",attrs:{type:"text",name:"search",autocomplete:"off",placeholder:M.placeholder,"aria-live":"assertive","aria-label":M.placeholder,"aria-labelledby":"search-results",lang:M.$i18n.locale},domProps:{value:M.inputValue},on:{input:[function(N){N.target.composing||(M.inputValue=N.target.value)},M.onInputChange],keypress:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter")?null:M.onEnterKey(N)},focus:M.onFocus,blur:M.onBlur}}),M.active?N("button",{staticClass:"clear",attrs:{type:"reset","aria-label":M.$t("CLEAR_INPUT")},on:{click:function(N){return M.onClear(!0)}}},[N("Icon",{attrs:{icon:"icon-clear-form.svg",size:"30px",fill:"#949d9e"}})],1):M._e(),M.active?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#1a2732","aria-hidden":"true"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#A8ABAD","aria-hidden":"true"}})],1)},IT=[],AT={name:"app-searcher",mixins:[Fj["a"]],components:{},props:{placeholder:{type:String,required:!1},name:{type:String,required:!1},search:{type:String,default:"",required:!1},autofocus:{type:Boolean,default:!1}},data:function(){return{inputValue:this.search}},mounted:function(){this.autofocus&&!this.search&&this.onFocus()},computed:{active:function(){return!!this.inputValue.length}},methods:{onFocus:function(){this.$refs.input.focus(),this.$emit("focus",this.name)},onEnterKey:function(){this.$emit("onEnterKey");var M=document.querySelector("#pois-list");M.focus()},onBlur:function(M){M.target.blur(),this.$emit("blur",this.name)},onInputChange:function(){if(this.$emit("onActive",this.active),!this.inputValue.length)return this.onClear();this.inputValue.length>=2&&(this.$emit("onInputChange",{value:this.inputValue,name:this.name}),this.$parent.$emit("onInputChange",{value:this.inputValue,name:this.name}))},onClear:function(M){return this.inputValue="",M&&this.onFocus(),this.$emit("onInputChange",{name:this.name}),this.$emit("onActive",this.active),this.$parent.$emit("onInputChange",{name:this.name})}},watch:{search:function(M){this.inputValue=M}}},zT=AT,nT=(D("6616"),Object(Pj["a"])(zT,LT,IT,!1,null,"674262d0",null)),wT=nT.exports;function rT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function yT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?rT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):rT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var cT={name:"app-aenaSearch",mixins:[Fj["a"]],components:{Searcher:wT},props:{hidden:{type:Boolean,default:!1},search:{type:String,required:!1},view:{type:String,required:!0}},data:function(){return{active:!1,focus:!1}},computed:yT(yT({},Object(n["c"])({airport:z["b"].GET_AIRPORT,isMobile:z["b"].GET_IS_MOBILE})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{setActive:function(M){this.active=M},onFocus:function(){this.active=!0,this.focus=!0,this.$emit("onFocus")},onEnterKey:function(){this.$emit("onEnterKey")},onBlur:function(){this.isMobile||(this.focus=!1),this.$emit("onBlur")},goToRoute:function(){this.focus=!1,this.$emit("onSelect",{component:"aena-route-pre"})},goBack:function(){this.focus=!1,this.$emit("onBack")}}},aT=cT,ET=(D("eb9c"),Object(Pj["a"])(aT,uT,sT,!1,null,"06365ee2",null)),oT=ET.exports,OT=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-highlighted-points-container",class:[M.deviceWidthClass,M.outdoorActived&&"route-mode"]},[M.outdoorDisabled?N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}}):N("Tabs",[N("Tab",{ref:"mainTab",staticClass:"airport",attrs:{name:M.$t("AIRPORT"),selected:"",id:"airport"}},[N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}})],1),N("Tab",{ref:"outdoorTab",staticClass:"outdoor",attrs:{name:M.$t("OUTDOOR"),disabled:M.outdoorDisabled,id:"outdoor"}},[N("Scrollbar",[N("div",{staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}})]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}}),N("ul",{staticClass:"list",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS")}},M._l(M.outdoorOptions,(function(D){return N("li",{staticClass:"item-wrapper"},[N("a",{staticClass:"item",attrs:{href:D.href,target:"_blank",rel:"noopener noreferrer"},on:{click:M.goToOutdoor}},[N("Icon",{attrs:{icon:D.icon,size:"50px",fill:"#72a300"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.title))])]),N("p",{staticClass:"location"},[N("span",[M._v(M._s(D.subtitle))])])]),N("Icon",{attrs:{icon:"arrow-diagonal-t.svg",size:"30px"}})],1)])})),0)])])],1)],1)],1)},xT=[],CT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-highlighted-points-list-container"},[N("div",{staticClass:"wrapper",class:{"with-tabs":!M.outdoorDisabled}},[N("Scrollbar",[N("div",{ref:"scroller",staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h1",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS_SHORT",expression:"'HIGHLIGHT_POINTS_SHORT'"}],attrs:{lang:M.$i18n.locale}}),M.isMobile?N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_SHORT",expression:"'ALL_SHORT'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS",expression:"'HIGHLIGHT_POINTS'"}],attrs:{lang:M.$i18n.locale,id:"highlighted-points-title"}}),N("ul",{staticClass:"grid",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS"),"aria-labelledby":"highlighted-points-title"}},M._l(M.highlighted,(function(D){return N("li",{staticClass:"item-wrapper"},[N("button",{staticClass:"item",attrs:{"aria-label":D.name},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"50px"}}),N("p",[M._v(M._s(D.name))])],1)])})),0)])])],1),N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1)])},ST=[];function lT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function kT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?lT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):lT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var QT={name:"AenaHighlightedPointsList",mixins:[],components:{},props:{highlighted:{type:Array,required:!0},outdoorDisabled:{type:Boolean,required:!0}},data:function(){return{}},mounted:function(){var M=this;this.$refs.scroller.addEventListener("mouseover",(function(){M.$refs.scroller.style.visibility="visible"})),this.$refs.scroller.addEventListener("mouseout",(function(){M.$refs.scroller.style.visibility="hidden"}))},computed:kT({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE})),methods:{selectPoint:function(M){this.$emit("onSelectPoint",M)},allPoints:function(){this.$emit("onAllPoints")}}},dT=QT,YT=(D("271e"),Object(Pj["a"])(dT,CT,ST,!1,null,"dddfb318",null)),UT=YT.exports;function pT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function hT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?pT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):pT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var fT={name:"app-aenaHighlightedPoints",mixins:[Fj["a"]],components:{AenaHighlightedPointsList:UT},props:{highlighted:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:hT(hT({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,airportID:z["b"].GET_AIRPORT_ID,isRoute:z["b"].IS_ROUTE_MODE,pois:z["b"].GET_POIS_LIST,transitionPoisList:z["b"].GET_TRANSITION_POIS_LIST,destinationC:z["b"].GET_DESTINATION,route:z["b"].GET_ROUTE,buildings:z["b"].GET_BUILDINGS})),{},{outdoorOptions:function(){var M=this,N="https://www.google.com/maps/dir",D="",t="";if(this.destinationC){var i=this.buildings.find((function(N){return N.id===M.destinationC.properties.building})).levels.find((function(N){return N.id===M.destinationC.properties.level})).oit_point,e=this.transitionPoisList.find((function(M){return M.properties.id===i}));t=e.geometry.coordinates.slice(0,2).reverse().toString()}return[{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e0"),icon:"car-t.svg",title:this.$t("OUTDOOR_OPTION_1"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")},{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e3"),icon:"Transporte_publico_T.svg",title:this.$t("OUTDOOR_OPTION_2"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")}]},outdoorActived:function(){return this.isRoute&&"origin"===this.route.destinationName},outdoorDisabled:function(){return!this.destinationC}}),methods:hT(hT({},Object(n["b"])([z["a"].LOAD_ROUTE])),{},{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(E["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},allPoints:function(){this.$emit("onSelect",{component:"aena-points-list"})},goToOutdoor:function(M){var N=this,D=this.buildings.find((function(M){return M.id===N.destinationC.properties.building})).levels.find((function(M){return M.id===N.destinationC.properties.level})).oit_point,t=this.transitionPoisList.find((function(M){return M.properties.id===D}));t?(t.mode="point",t.properties.icon="marcadores/pp_00-mk.svg",this[z["a"].LOAD_ROUTE]({origin:t})):console.warn("Destination Poi building (".concat(this.destinationC.properties.location.name,") has no transition poi"))}}),watch:{isRoute:{immediate:!0,handler:function(M){M||this.$refs.mainTab&&(this.$refs.outdoorTab.isActive=!1,this.$refs.mainTab.isActive=!0)}}}},mT=fT,vT=(D("aebe"),Object(Pj["a"])(mT,OT,xT,!1,null,"0a113b08",null)),BT=vT.exports,bT=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-list-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ALL_POINTS")))]),N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("POINTS_OF_INTEREST")},on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"POINTS_OF_INTEREST",expression:"'POINTS_OF_INTEREST'"}]})],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("ul",{attrs:{"aria-label":M.$t("ALL_POINTS")}},M._l(M.points,(function(D){return N("li",[N("button",{on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(D.name))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}})],1)])})),0)])])],1)])},PT=[];function ZT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function GT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ZT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ZT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var RT={name:"app-aenaPointsList",mixins:[Fj["a"]],components:{},props:{points:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:GT({},Object(n["c"])({airportID:z["b"].GET_AIRPORT_ID})),mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},methods:{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(E["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},goBack:function(){this.$emit("onSelect",{component:"aena-highlighted-points"})}}},WT=RT,XT=(D("72d9"),Object(Pj["a"])(WT,bT,PT,!1,null,"5c989fe8",null)),HT=XT.exports,_T=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-categories-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("AenaTerminalsFilter",{attrs:{airport:M.airport,filters:M.filters},on:{onFilterChange:M.setFilter}}),M.isMobile?M._e():N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"24px",fill:"#1A2732"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}]})],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",{ref:"scrollbar",on:{onScroll:M.onScroll}},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[M.showCategories?N("AenaTerminalsCategories",{attrs:{category:M.category,categories:M.categories},on:{onCategoryChange:M.setCategory,goBack:M.goBack}}):M._e(),N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST")))]),M.pois.length?N("ul",{class:{pb:M.search},attrs:{tabindex:"0",id:"pois-list","aria-label":(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST"))+". "+M.points.length+" "+M.$t("RESULTS")+" "+(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))}},M._l(M.pois,(function(D){return N("li",[N("button",{attrs:{"aria-label":M.$t("CATEGORY")+" "+M.getCategoryName(D.properties.subcategories[0])+". "+D.properties.attrs.pat_nombre+". "+D.properties.location.name+"."+M.$t("FLOOR")+". "+D.properties.levelName+". "+(D.total>1?D.total+M.$t("SAME_FLOOR_RESULTS"):"")},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.properties.icon,size:"30px"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.properties.attrs.pat_nombre))]),D.total>1?N("span",{staticClass:"total"},[M._v("("+M._s(D.total)+")")]):M._e()]),N("p",{staticClass:"location"},[N("b",[M._v(M._s(D.properties.location.name)+". ")]),N("span",[M._v(M._s(M.$t("FLOOR"))+" "+M._s(D.properties.levelName))])])])],1)])})),0):[N("div",{staticClass:"no-result"},[N("Icon",{attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{directives:[{name:"t",rawName:"v-t",value:"NO_RESULT_POIS",expression:"'NO_RESULT_POIS'"}],staticClass:"title"})])],1)]],2)])],1),M.isMobile?M._e():N("div",{staticClass:"results",attrs:{id:"search-results","aria-live":"assertive"}},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.points.length)+" "+M._s(M.$t("RESULTS"))+" "+M._s(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))+". "),N("span",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ENTER_TO_RESULTS")))])]),M.goToTopVisible?N("button",{on:{click:function(N){return M.goToTop()}}},[M._v(M._s(M.$t("GO_TO_TOP")))]):M._e()])],1)},FT=[],VT=(D("f400"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-filter-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_RESULTS_BY"))+" "+M._s(M.$t("TERMINALS"))+" "+M._s(M.$t("AND"))+" "+M._s(M.$t("FLOORS")))]),N("div",{ref:"menu",staticClass:"filters-wrapper"},[N("div",{staticClass:"all-filters"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"FILTER",expression:"'FILTER'"}],attrs:{"aria-hidden":"true"}}),N("Tooltip",{attrs:{text:M.$t("AIRPORT_RESULTS")}},[N("button",{staticClass:"filter all",class:{active:!M.activeFilter},attrs:{type:"button","aria-label":M.$t("FILTER_BY")+" "+M.$t("AIRPORT_RESULTS"),"aria-pressed":M.activeFilter?0:-1,tabindex:M.activeFilter?0:-1},on:{click:function(N){return M.setFilter()}}},[M._v("\n "+M._s(M.airport.iata_code)+"\n ")])])],1),N("div",{staticClass:"filter-options"},[N("Tooltip",{attrs:{text:M.$t("TERMINAL_RESULTS")+" "+M.$t("TERMINALS")+" "+M.$t("AND")+" "+M.$t("FLOORS"),"auto-hide":!0,"auto-hide-time":5e3}},[N("Scrollbar",{ref:"scrollbar",attrs:{"vertical-scroll":!1,"horizontal-scroll":!0}},[N("div",{ref:"scrollContent",staticClass:"scroll-content",attrs:{tabindex:"-1"}},[N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("TERMINALS")}},M._l(M.terminals,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter",class:{active:M.activeFilter===D.id},style:{backgroundColor:M.activeFilter===D.id?D.color:"#E9ECEF",color:M.activeFilter===D.id?D.font_color:"#1A2732",borderColor:M.activeFilter===D.id?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.activeFilter===D.id},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n ")])})),0),N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("PARKINGS")}},M._l(M.others,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter square",class:{active:M.isAssociateActive(D.id)},style:{backgroundColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF",color:M.isAssociateActive(D.id)?D.font_color:"#1A2732",borderColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.isAssociateActive(D.id)},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n "),D.color&&D.short_name.length<2?N("span",{staticClass:"triangle",style:{borderRightColor:D.color}}):M._e()])})),0)])])],1)],1)])])}),JT=[];D("2caf");function qT(M){return Array.isArray(M)?M[0]:M}function KT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function $T(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?KT(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):KT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Mg={name:"app-aenaTerminalsFilter",mixins:[Fj["a"]],components:{},props:{airport:{type:Object,required:!0},filters:{type:Array,required:!0}},data:function(){return{activeFilter:""}},created:function(){this.activeFilter=this.activeFilterC.building},mounted:function(){var M=this;if(this.activeFilter){var N=qT(this.$refs[this.activeFilter]);this.$refs.scrollbar.scrollTo(N.offsetLeft,0)}this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:$T($T({},Object(n["c"])({activeFilterC:C["b"].GET_ACTIVE_FILTERS})),{},{terminals:function(){return this.filters.filter((function(M){return"TERMINAL"===M.category}))},others:function(){return this.filters.filter((function(M){return"TERMINAL"!==M.category}))},associatedParking:function(){return this.activeFilterC.associatedParking||[]}}),methods:{setFilter:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.activeFilter=M.id,this.$emit("onFilterChange",M.id)},isAssociateActive:function(M){return this.activeFilter===M||(this.activeFilterC.associatedParking||[]).includes(M)}}},Ng=Mg,Dg=(D("47b0"),Object(Pj["a"])(Ng,VT,JT,!1,null,"5aaf0a8d",null)),tg=Dg.exports,ig=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-categories-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_BY_CATEGORIES")))]),M.isMobile?N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),M.isMobile?N("span",{staticClass:"vl"}):M._e(),N("ul",{staticClass:"options",attrs:{role:"menu","aria-label":M.$t("FILTER_BY")+" "+M.$t("CATEGORIES")}},[M.category&&!M.noDuplicate?N("li",{staticClass:"li-all",attrs:{role:"menuitem"}},[N("button",{staticClass:"category all",class:{active:!M.activeCategories.length},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+M.category.name+" "+M.$t("ALL"),"aria-checked":!M.activeCategories.length},on:{click:function(N){return M.onChange()}}},[N("b",[M._v(M._s(M.category.name))]),M._v(" ("+M._s(M.$t("ALL"))+")\n ")])]):M._e(),M._l(M.categoriesVisible,(function(D){return N("li",{key:D.id,attrs:{role:"menuitem"}},[N("button",{staticClass:"category",class:{active:M.isActive(D.id)},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+D.name,"aria-checked":M.isActive(D.id)},on:{click:function(N){return M.onChange(D)}}},[N("p",[M._v(M._s(D.name))])])])}))],2),M.categoriesHidden>0?N("button",{staticClass:"category more",attrs:{"aria-label":M.$t("MORE_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.categoriesHidden)+" "+M._s(M.$t("MORE")))])]):M._e(),M.toggle&&!M.categoriesHidden?N("button",{staticClass:"category less",attrs:{"aria-label":M.$t("LESS_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.$t("LESS_CATEGORIES")))])]):M._e()])},eg=[];function jg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Tg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?jg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):jg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var gg={name:"app-aenaTerminalsCategories",mixins:[Fj["a"]],components:{},props:{category:{type:Object},categories:{type:Array,required:!0}},data:function(){return{activeCategories:[],toggle:!1}},created:function(){this.updateSelected()},destroyed:function(){this.resetCategory()},computed:Tg(Tg({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,activeFilterC:z["b"].GET_ACTIVE_FILTERS,airportID:z["b"].GET_AIRPORT_ID})),{},{categoriesVisible:function(){var M=this.categories;return this.isMobile||(M=this.toggle?M:M.slice(0,6)),M},categoriesHidden:function(){return this.categories.length-this.categoriesVisible.length},noDuplicate:function(){if(this.category&&1===this.categoriesVisible.length&&this.category.name===this.categoriesVisible[0].name)return this.setCategory(this.categoriesVisible[0]),!0}}),methods:{updateSelected:function(){var M=this;this.activeFilterC.subcategories.forEach((function(N){var D=M.categories.find((function(M){return M.id===N}));M.setCategory(D)}))},resetCategory:function(){this.activeCategories=[],this.categories.forEach((function(M){M.active=!1}))},setCategory:function(M){if(M){u["a"].set(M,"active",!M.active);var N=this.activeCategories.includes(M.id);N?this.activeCategories=this.activeCategories.filter((function(N){return N!==M.id})):this.activeCategories.push(M.id)}else this.resetCategory()},onChange:function(M){this.setCategory(M),this.$emit("onCategoryChange",this.activeCategories);var N={eventCategory:"buscador",eventAction:"categoria",eventLabel:"".concat(Object(E["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},onToggle:function(){this.toggle=!this.toggle},isActive:function(M){return this.activeCategories.includes(M)},goBack:function(){this.$emit("goBack")}},watch:{"activeFilterC.subcategories":{handler:function(){this.resetCategory(),this.updateSelected()}}}},ug=gg,sg=(D("29f7"),Object(Pj["a"])(ug,ig,eg,!1,null,"7aa9179d",null)),Lg=sg.exports;function Ig(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Ag(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Ig(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Ig(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var zg={name:"app-aenaPointsCategories",mixins:[m,P,Fj["a"]],components:{AenaTerminalsFilter:tg,AenaTerminalsCategories:Lg},props:{points:{type:Array,required:!0},airport:{type:Object,required:!0},filters:{type:Array,required:!0},activeFilters:{type:Object,required:!0},category:{type:Object},categories:{type:Array,required:!0},search:{type:Boolean,default:!1},headerHeight:{type:Number,required:!0}},data:function(){return{grouped:new Map,goToTopVisible:!1}},created:function(){this.setLocation(this.points)},mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:Ag(Ag({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,isRouteMode:z["b"].IS_ROUTE_MODE,airportID:z["b"].GET_AIRPORT_ID})),{},{showCategories:function(){return this.category||this.categories&&this.categories.length},pois:function(){var M=this,N=new Map;return this.points.forEach((function(D){var t=D.properties.attrs.pat_nombre+D.properties.location.name+D.properties.level,i=N.get(t);if(i){var e=M.grouped.get(i.properties.id);e.push(D),M.grouped.set(i.properties.id,e),i.total++}else M.grouped.set(D.properties.id,[D]),D.total=1,N.set(t,D)})),Object(y["a"])(N.values())}}),methods:{setFilter:function(M){this.$emit("onFilter",M)},setCategory:function(M){this.$emit("onCategory",M),this.updateScrollbar()},selectPoint:function(M){if(this.isRouteMode){var N=this.moreClose(this.grouped.get(M.properties.id));this.$emit("onSelect",{component:"aena-route-poi",pointDetail:N})}else this.$emit("onSelect",{component:"aena-point-detail",pointDetail:M.properties,pointGrouped:this.grouped.get(M.properties.id)});var D="".concat(M.properties.location.name,". planta ").concat(M.properties.levelName,". ").concat(this.$t(M.properties.attrs.pat_nombre)),t={eventCategory:"buscador",eventAction:"buscar",eventLabel:"".concat(Object(E["a"])(D)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",t)},getBuildingName:function(M){return"".concat(this.$t("IN")," ").concat((this.filters.find((function(N){return N.id===M}))||{}).name)},getCategoryName:function(M){return"".concat((this.categories.find((function(N){return N.id===M}))||{}).name)},updateScrollbar:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update()}),360)},onScroll:function(M){M.y>=60?this.goToTopVisible=!0:this.goToTopVisible=!1},goToTop:function(){this.$refs.scrollbar.scrollTo(0,0)},goBack:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"aena-points-list";this.$emit("onSelect",{component:M,search:void 0})}},watch:{points:function(M){this.setLocation(M)}}},ng=zg,wg=(D("5a24"),Object(Pj["a"])(ng,_T,FT,!1,null,"2540be6c",null)),rg=wg.exports,yg=function(){var M=this,N=M._self._c;return N("div",{staticClass:"detail-wrapper",class:[M.deviceWidthClass]},[N("div",{staticClass:"spacer",class:{collapsed:M.isCollapsed}}),N("div",{ref:"section",staticClass:"aena-point-detail-container",class:{collapsed:M.isCollapsed},attrs:{tabindex:"0","aria-label":M.$t("POI_DETAIL")+" "+M.title}},[M.isCollapsed?N("button",{staticClass:"btn-close",on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#71777D"}})],1):M._e(),M.isCollapsed?N("button",{staticClass:"btn-more-info",on:{click:function(N){return M.expand()}}},[N("p",[M._v(M._s(M.$t("MORE_INFO")))])]):M._e(),N("header",{ref:"title",staticClass:"header"},[N("div",{staticClass:"title-wrapper"},[N("button",{staticClass:"back",attrs:{"aria-label":M.$t("GO_BACK")},on:{click:function(N){M.isMobile?M.expand():M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#ffffff"}})],1),N("div",{staticClass:"title"},[N("h2",{attrs:{"aria-label":M.title,lang:M.$i18n.locale}},[M._v(M._s(M.title))])])]),N("Icon",{attrs:{icon:M.icon,size:"50px"}})],1),N("div",{staticClass:"scroll-wrapper"},[M.poisGrouped&&M.poisGrouped.length>1&&!M.isCollapsed?N("Pagination",{ref:"pagination",attrs:{items:M.poisGrouped,"items-per-page":1,placeholder:M.placeholder},on:{change:M.onPaginate}}):M._e(),N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.debugMode&&M.poiID?N("p",{staticClass:"debug"},[M._v("POI ID: "+M._s(M.poiID))]):M._e(),M.showDescriptionBlock?N("div",{staticClass:"content"},[M.description||M.image?N("div",{staticClass:"top"},[M.image?N("img",{staticClass:"image",attrs:{src:M.image,alt:M.$t("STORE_IMAGE")}}):M._e(),N("span",{staticClass:"description"},[N("p",[M._v(M._s(M.description))])])]):M._e(),N("div",{staticClass:"observations"},[M._v(M._s(M.observations))]),N("ul",{staticClass:"categories",attrs:{"aria-label":M.$t("CATEGORIES")}},[M._l(M.subcategories,(function(D){return M.isCollapsed?M._e():N("li",{key:D.id},[N("button",{staticClass:"category",on:{click:function(N){return M.filterBySubcategory(D.id)}}},[N("p",[M._v(M._s(D.name))])])])})),M.isCollapsed?N("div",[N("p",M._l(M.subcategories,(function(D,t){return N("span",{key:D.id},[M._v(M._s(D.name)+M._s(t<M.subcategories.length-1?" · ":""))])})),0)]):M._e()],2),M.mail||M.web||M.time||M.phone?N("div",{staticClass:"hr-big"}):M._e(),M.mail||M.web?N("ul",{staticClass:"info-list",attrs:{role:"list","aria-label":M.$t("BRAND_INFO")}},[M.web?N("li",{staticClass:"web extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("VISIT_WEB"),"data-href":M.web,lang:M.$i18n.locale},on:{click:function(N){return M.visitWeb(M.web)}}},[N("p",[M._v(M._s(M.$t("VISIT_WEB")))]),N("Icon",{attrs:{icon:"icon-flecha-horizontal-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),M.mail?N("li",{staticClass:"mail extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("SEND_EMAIL"),lang:M.$i18n.locale},on:{click:function(N){return M.sendEmail(M.mail)}}},[N("p",[M._v(M._s(M.$t("SEND_EMAIL")))]),N("Icon",{attrs:{icon:"icon-contacto-sobre-de-carta-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e()]):M._e(),(M.mail||M.web)&&(M.time||M.phone)?N("div",{staticClass:"hr"}):M._e(),M.time||M.phone?N("ul",{staticClass:"contact-list",attrs:{role:"list","aria-label":M.$t("STORE_INFO")}},[M.time?N("li",{staticClass:"time extra",attrs:{role:"listitem","aria-labelledby":"time-description"}},[N("Icon",{attrs:{icon:"icon-horarios-mini-jj.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])],1):M._e(),M.phone?N("li",{staticClass:"phone extra",attrs:{role:"listitem","aria-labelledby":"phone-description"}},[N("Icon",{attrs:{icon:"icon-atencion-telefonica-t.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_PHONE")))]),N("p",[M._v(M._s(M.phone))])],1):M._e()]):M._e(),M.isCollapsed?N("div",{staticClass:"contact-list-collapsed"},[N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])]):M._e(),M.lastWait?[N("div",{staticClass:"hr"}),N("div",{staticClass:"wait-time"},[N("Icon",{attrs:{icon:"icon-seguridad-t.svg",size:"30px",fill:"#72A300"}}),N("p",[M._v("Atención: el tiempo estimado del paso de este control es de "),N("span",{staticClass:"strong"},[M._v(M._s(M.durationTime(M.lastWait)))])])],1)]:M._e()],2):M._e()])])],1),N("ul",{staticClass:"location",attrs:{role:"list","aria-label":M.$t("STORE_LOCATION")}},[N("li",{attrs:{"aria-label":M.$t("S_LOCATION")}},[N("div",{staticClass:"terminal"},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#72A300"}}),N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.name)+". ")]),N("b",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.floor))]),M._v(M._s(M.location.more?". "+M.location.more:""))])],1)]),M.isCollapsed?M._e():N("li",[M.hasRoute?N("button",{staticClass:"btn",on:{click:M.calculateRoute}},[N("p",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]}),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:M.hasRoute?"#1A2732":"#888888"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]),M.isCollapsed?N("li",[M.hasRoute?N("button",{staticClass:"btn",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.more?M.location.name+" · "+M.floor+" · ":M.placeholder))]),M._v(M._s(M.location.more?" · "+M.location.more:""))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]):M._e()])])])},cg=[],ag={filters:{capitalize:function(M){return M?(M=M.toString(),M.charAt(0).toUpperCase()+M.slice(1)):""}}};function Eg(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===M&&(M=""),M.replace(/(<([^>]+)>)/gi,"")}var og={methods:{durationTime:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},D=N.abbr,t=void 0===D||D,i=Math.round(parseFloat(M)||1),e=i/60;e=e>=1?Math.round(e):0;var j=Math.floor(e/60);j&&(e-=60*j);var T="".concat(i," ").concat(t?"s":this.$t("SECONDS"));if(e&&(T="".concat(e," ").concat(t?"min":this.$t("MINUTES"))),j){var g=T;T="".concat(j," ").concat(t?"h":this.$t("HOURS")),e&&(T+=" ".concat(g))}return T}}};function Og(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function xg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Og(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Og(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Cg={name:"app-aenaPointDetail",mixins:[m,ag,Fj["a"],og,x],components:{},props:{headerHeight:{type:Number,required:!0}},data:function(){return{placeholder:"",header:0,pagination:0,isCollapsed:!1,debugMode:!1}},mounted:function(){var M=this;if(this.isMupiMode&&this.poiId===this.poi.properties.id)this.calculateRoute();else{var N=this.$t("FLOOR");this.placeholder="".concat(this.location.name,". ").concat(N.charAt(0).toUpperCase()+N.slice(1)," ").concat(this.floor),this.$refs.title.focus(),setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$nextTick((function(){return M.$refs.scrollbar.update()}))}),260)}},destroyed:function(){this[z["a"].CLEAR_POI]()},computed:xg(xg({},Object(n["c"])({isMupiMode:z["b"].IS_MUPI_MODE,poiId:z["b"].GET_POI_ID,poiDId:z["b"].GET_POID_ID,isMobile:z["b"].GET_IS_MOBILE,poi:z["b"].GET_POI,poisGrouped:z["b"].GET_POI_GROUPED,poisCatalog:z["b"].GET_POIS_CATALOG,airportID:z["b"].GET_AIRPORT_ID,airport:z["b"].GET_AIRPORT})),{},{attrs:function(){return this.poi.properties.attrs||{}},title:function(){return this.$t(this.attrs.pat_nombre)},image:function(){var M=this.attrs.pat_imagen_marca_0||this.attrs.pat_imagen_marca_1;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},icon:function(){return this.poi.properties.icon},description:function(){return Eg(this.attrs.pat_descripcion_0||this.attrs.pat_descripcion_1)},subcategories:function(){var M=this;return this.poi.properties.subcategories.reduce((function(N,D){return M.poisCatalog.some((function(M){var t=M.subcategories.find((function(M){return M.id===D}));return t&&N.push(t),!!t})),N}),[])},phone:function(){return Eg(this.attrs.pat_telefono_0||this.attrs.pat_telefono_1)},mail:function(){return Eg(this.attrs.pat_email)},web:function(){return Eg(this.attrs.pat_enlace_0||this.attrs.pat_enlace_1)},moreInformation:function(){var M=this.attrs.pat_url;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},time:function(){return Eg(this.attrs.pat_horario_0||this.attrs.pat_horario_1)},floor:function(){return this.poi.properties.levelName},location:function(){return this.setLocation([this.poi]),this.poi.properties.location},showDescriptionBlock:function(){return this.image||this.description||this.subcategories.length||this.phone||this.mail||this.web||this.time||this.observations},tagLabel:function(){return"".concat(this.poi.properties.location.name,". Planta ").concat(this.poi.properties.levelName,". ").concat(this.$t(this.poi.properties.attrs.pat_nombre))},lastWait:function(){return 2*this.poi.properties.lastWait},hasRoute:function(){return this.airport.has_graph},poiID:function(){return this.poi.properties.id},coordinates:function(){var M=Number(this.poi.geometry.coordinates[1].toFixed(5)),N=Number(this.poi.geometry.coordinates[0].toFixed(5));return[M,N]},observations:function(){return this.attrs.pat_observaciones}}),methods:xg(xg({},Object(n["b"])([z["a"].LOAD_POI,z["a"].CLEAR_POI])),{},{onPaginate:function(M){var N=M[0];N.properties.id!==this.poi.properties.id&&this[z["a"].LOAD_POI]({poi:N,pointGrouped:this.poisGrouped})},filterBySubcategory:function(M){this.$emit("onSelect",{component:"aena-points-categories",subcategories:[M]})},goBack:function(){this.isMobile?this.$emit("goBack"):this.$emit("onSelect",{component:"aena-points-categories"})},calculateRoute:function(){if(this.$emit("onSelect",{pointDetail:this.poi,component:"aena-route-pre"}),this.poiDId){var M=this.findPoi(this.poiDId);this.$emit("onSelect",{pointDetail:M,component:"aena-route-pre"})}},expand:function(){var M=this;this.isCollapsed=!this.isCollapsed,this.$emit("onCollapsed",this.isCollapsed),window.setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$refs.scrollbar.update()}),260)},visitWeb:function(M){var N={eventCategory:"buscador",eventAction:"visitar web",eventLabel:Object(E["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")},sendEmail:function(M){var N={eventCategory:"buscador",eventAction:"enviar email",eventLabel:Object(E["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.location.href="mailto:".concat(M)},moreInfo:function(M){var N={eventCategory:"buscador",eventAction:"mas informacion",eventLabel:Object(E["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")}}),watch:{isMobile:{immediate:!0,handler:function(M){this.isCollapsed=M}}}},Sg=Cg,lg=(D("e182"),Object(Pj["a"])(Sg,yg,cg,!1,null,"0aae3214",null)),kg=lg.exports;function Qg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function dg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Qg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Qg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Yg=function(){var M=this,N=M._self._c;return M.route.length?N("div",{ref:"route",staticClass:"aena-route-container",class:[M.deviceWidthClass],attrs:{id:"aena-route-container",tabindex:"0","aria-label":M.$t("ROUTE_SUMMARY")}},[N("div",{staticClass:"time"},[N("h2",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),M.explorerMode?N("button",{directives:[{name:"t",rawName:"v-t",value:"CLOSE",expression:"'CLOSE'"}],staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE")+". "+M.$t("ROUTE_SUMMARY")},on:{click:M.close}}):M._e()]),N("Scrollbar",{ref:"scrollbar"},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("ul",{staticClass:"content",attrs:{role:"list",tabindex:"0"}},[N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{lang:M.$i18n.locale,"aria-label":M.$t("ORIGIN")+". "+("point"===M.origin.mode?M.$options.filters.displayCoordinates(M.origin.geometry.coordinates):M.$t(M.origin.properties.attrs.pat_nombre))+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName},on:{click:function(N){return M.viewInMap(M.origin.geometry.coordinates,M.origin.properties.building,M.origin.properties.level)}}},[N("Icon",{attrs:{icon:M.origin.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.origin.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.origin.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.origin.properties.levelName))])])],1)]),[M._l(M.route,(function(D,t){return[M._l(D.instructions,(function(i,e){return[i.hidden?M._e():N("li",{class:dg({"security-control":i.securityControl||i.oneWay},i.type),attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.getStepAriaLabel(i)},on:{click:function(N){M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))},keydown:function(N){if(!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter"))return null;M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))}}},[N("Icon",{attrs:{icon:"route-icons/"+i.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[N("p",[M._v(M._s("tag"!==i.type?M.$t("IN_PREPOSITION"):"")+" "),N("b",[M._v(M._s(M.getDistance(i.distance))+" m")])]),N("span",[M._v(M._s(M.$t(i.action,dg({},M.getMsg({destination:i.direction,transport:i.transport}))))+"\n "),"GO_UP"===i.action||"GO_DOWN"===i.action?[M._v(". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor))]:M._e()],2),"tag"!==i.type?N("p",{staticClass:"time"},[M._v(M._s(M.durationTime(i.time)))]):M._e()])],1)]),!i.hidden&&i.msg&&i.msg.label?N("li",{staticClass:"msg",class:{"security-control":i.securityControl||i.oneWay},attrs:{"aria-label":M.$t(i.msg.label,dg({},M.getMsg(i.msg.props))),role:"listitem"}},[N("span",[M._v(M._s(M.$t(i.msg.label,dg({},M.getMsg(i.msg.props)))))])]):M._e(),i.changeFloor||i.changeBuilding?N("li",{staticClass:"change-floor",class:i.type,attrs:{role:"listitem","aria-label":i.building.name+" "+M.$t("FLOOR")+" "+i.currentFloor}},[N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(i.building.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor)+"\n ")])]):M._e()]})),M.newPoints[t]?N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":("point"===M.newPoints[t].mode?M.$options.filters.displayCoordinates(M.newPoints[t].geometry.coordinates):M.$t(M.newPoints[t].properties.attrs.pat_nombre))+". "+M.newPoints[t].properties.location.name+". "+M.$t("FLOOR")+" "+M.newPoints[t].properties.levelName},on:{click:function(N){return M.viewInMap(M.newPoints[t].geometry.coordinates,M.newPoints[t].properties.building,M.newPoints[t].properties.level)}}},[N("Icon",{attrs:{icon:M.newPoints[t].properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.newPoints[t].mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.newPoints[t].geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.newPoints[t].properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.newPoints[t].properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.newPoints[t].properties.levelName))])])],1)]):M._e()]}))],N("li",{staticClass:"destination",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.$t("DESTINATION")+". "+("point"===M.destination.mode?M.$options.filters.displayCoordinates(M.destination.geometry.coordinates):M.$t(M.destination.properties.attrs.pat_nombre))+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName},on:{click:function(N){return M.viewInMap(M.destination.geometry.coordinates,M.destination.properties.building,M.destination.properties.level)}}},[N("Icon",{attrs:{icon:M.destination.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.destination.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.destination.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.destination.properties.levelName))])])],1)])],2)])])],1):M._e()},Ug=[],pg={filters:{displayCoordinates:function(M){if(!M||!M.length)return"";var N=M.slice(0,2);return[N[1],N[0]].map((function(M){return M.toFixed(5)})).join(", ")}}};function hg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function fg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?hg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):hg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var mg={name:"app-aenaRoute",mixins:[P,m,ag,og,x,pg,Fj["a"]],components:{Searcher:wT,AenaPoints:Nu},props:{headerHeight:{type:Number,required:!0}},data:function(){return{}},mounted:function(){this.accessibilityEvents()},updated:function(){this.updateScrollbar(),this.accessibilityEvents()},computed:fg({},Object(n["c"])({airportID:z["b"].GET_AIRPORT_ID,floor:z["b"].GET_FLOOR,building:z["b"].GET_BUILDING,explorerMode:z["b"].GET_EXPLORERMODE})),methods:fg(fg({},Object(n["b"])([z["a"].SET_COORDINATES])),{},{accessibilityEvents:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},close:function(){this.$emit("onCloseRoute")},viewInMap:function(M,N,D){this.saveFloor({buildingId:N,floorId:D,force:!0,airportID:this.airportID,tag:"explorador"}),this[z["a"].SET_COORDINATES]({coordinates:M,zoom:20})},selectGeometry:function(M,N,D){var t=D.oldStep,i=D.special,e=N[M.geometryindex],j=M.tag.type.toUpperCase(),T=e.geometry.coordinates.slice(0,2),g=e.properties.building;v["c"].includes(j)&&(g=(i?t:N[t.geometryindex]).properties.building);var u=e.geometry.coordinates[e.geometry.coordinates.length-1]/this.routeC.z;this.viewInMap(T,g,u)},getDistance:function(M){return this.$n(M>1?M:1,"noDecimal")},getMsg:function(M){var N=fg({},M);return N.direction&&(N.direction=this.$t(N.direction)),N.duration&&(N.duration=this.durationTime(N.duration)),N.destination&&(N.destination=this.$t(N.destination)),N.transport&&(N.transport=this.$t(N.transport)),N.oneWay&&(N.oneWay=this.$t("ONEWAY_OPENING")),N},getOldStep:function(M){var N=M.instructions,D=M.index,t=M.rootIndex;return D?{oldStep:N[D-1]}:t?{oldStep:this.newPoints[t-1],special:!0}:{oldStep:this.origin,special:!0}},getStepAriaLabel:function(M){var N="tag"===M.type,D="GO_UP"===M.action||"GO_DOWN"===M.action?this.$t("FLOOR")+M.currentFloor+". ":"",t="tag"!==M.type?this.durationTime(M.time,{abbr:!1})+". ":"";return"".concat(N?"":this.$t("IN_PREPOSITION")," ").concat(this.$n(M.distance,"noDecimal")," ").concat(this.$t("METERS"),". ").concat(this.$t(M.action,this.getMsg({destination:M.direction,transport:M.transport})),". ").concat(D," ").concat(t," ").concat(this.$t(M.msg.label,this.getMsg(M.msg.props)))},updateScrollbar:function(){var M=this;window.setTimeout((function(){M.$refs.scrollbar.update()}),100)}})},vg=mg,Bg=(D("2848"),Object(Pj["a"])(vg,Yg,Ug,!1,null,"4df4a570",null)),bg=Bg.exports;function Pg(M,N){var D=M.toLowerCase().split(" ");return D.every((function(M){var D=new RegExp(Zg(Gg(M)),"gi");return Zg(N).match(D)}))}function Zg(M){return M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Gg(M){return M.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Rg=D("b76a"),Wg=D.n(Rg);function Xg(M){var N=M;return Array.isArray(N)&&(N=N[0]),N}var Hg=D("efd7");D("1c4c");function _g(M,N,D){Array.from(N.children).forEach((function(N){N.classList.contains(M)||(Fg(N,D),Array.from(N.querySelectorAll("*")).forEach((function(M){Fg(M,D)})))}))}function Fg(M,N){var D=M.getAttribute("tabindex"),t=M.getAttribute("aria-hidden");N?(M.setAttribute("data-tabindex",null!==D?D:"none"),M.setAttribute("data-aria-hidden",null!==t?t:"none"),M.setAttribute("aria-hidden",N),M.setAttribute("tabindex",-1),M.setAttribute("data-inert",M.classList.contains("inert")?"true":"false"),M.classList.add("inert")):("none"!==M.getAttribute("data-tabindex")&&null!==M.getAttribute("data-tabindex")?M.setAttribute("tabindex",M.getAttribute("data-tabindex")):M.removeAttribute("tabindex"),"none"!==M.getAttribute("data-aria-hidden")&&null!==M.getAttribute("data-aria-hidden")?M.setAttribute("aria-hidden",M.getAttribute("data-aria-hidden")):M.removeAttribute("aria-hidden"),"false"===M.getAttribute("data-inert")&&M.classList.remove("inert"),M.removeAttribute("data-aria-hidden"),M.removeAttribute("data-tabindex"),M.removeAttribute("data-inert"))}function Vg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Jg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Vg(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Vg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var qg=navigator.userAgent||navigator.vendor||window.opera,Kg={name:"AenaPoints",mixins:[x,og,ag,P,pg,Fj["a"]],components:{draggable:Wg.a,AenaSearch:oT,Searcher:wT,"aena-highlighted-points":BT,"aena-points-list":HT,"aena-points-categories":rg,"aena-point-detail":kg,"aena-route":bg},props:{search:{type:Boolean,default:!0}},data:function(){return{view:"aena-highlighted-points",lastView:"",currentProps:{highlighted:[],points:[],airport:void 0,category:void 0,categories:[],filters:[],activeFilters:{subcategories:[],building:void 0,search:void 0,associatedParking:[]},search:!1,headerHeight:0},blockedPois:!1,toggleDrag:!1,searcherFocus:!1,memoryValue:void 0,isVisible:!1,appBanner:!1,isCollapsed:!1,pmr_enabled:"true"}},created:function(){this.category?this.onSelect({component:"aena-points-categories",subcategories:[this.category]}):this.setHigtLight(this.poisCatalog),this.poi&&this.setPoi(this.poi),this.routeConfig&&this.routeConfig.info&&(this[z["a"].LOAD_ROUTE]({routeMode:!0}),this.setDestination(),this.toggleBlocked())},updated:function(){this.$refs.header&&this.$refs.header.offsetHeight!==this.currentProps.headerHeight&&(this.currentProps.headerHeight=this.$refs.header.offsetHeight),this.$refs.time&&this.$refs.time.focus()},computed:Jg(Jg({},Object(n["c"])({isMupiMode:z["b"].IS_MUPI_MODE,isMobile:z["b"].GET_IS_MOBILE,explorerMode:z["b"].GET_EXPLORERMODE,airport:z["b"].GET_AIRPORT,airportID:z["b"].GET_AIRPORT_ID,category:z["b"].GET_CATEGORY,poisCatalog:z["b"].GET_POIS_CATALOG,activeFiltersC:z["b"].GET_ACTIVE_FILTERS,poisList:z["b"].GET_POIS_LIST,poi:z["b"].GET_POI,poiId:z["b"].GET_POI_ID,poiDId:z["b"].GET_POID_ID,buildings:z["b"].GET_BUILDINGS,isRouteMode:z["b"].IS_ROUTE_MODE,stepsAdded:z["b"].GET_NEW_POINT,hasNewPoint:z["b"].HAS_NEW_POINT,getView:z["b"].GET_VIEW,routeConfig:z["b"].GET_ROUTE_CONFIG,pmrProfile:z["b"].GET_PMR_PROFILE,pmrDefaultProfile:z["b"].GET_DEFAULT_PMR_PROFILE})),{},{currentCategory:function(){var M=this;return!!this.currentProps.category&&this.poisCatalog.find((function(N){return N.id===M.currentProps.category.id}))},addBlocked:function(){return!(this.origin&&this.destination)||this.hasNewPoint},pmrActive:function(){return null!==this.pmrProfile},isAndroid:function(){return/android/i.test(qg)},isIOS:function(){return/iPad|iPhone|iPod/.test(qg)&&!window.MSStream},appLink:function(){var M="";return this.isAndroid&&(M="https://play.google.com/store/apps/details?id=es.aena.mobile"),this.isIOS&&(M="https://apps.apple.com/es/app/aena/id686440022"),M}}),methods:Jg(Jg(Jg({},Object(n["b"])([z["a"].SET_FEEDBACK,z["a"].LOAD_ACTIVE_FILTERS,z["a"].LOAD_VIEW,z["a"].REMOVE_STEP,z["a"].SET_PMR_PROFILE])),Object(n["d"])([z["c"].SAVE_PMR_CONFIG_VISIBILITY])),{},{resetActiveFilters:function(){this.currentProps.category=void 0,this.currentProps.activeFilters={subcategories:[],building:this.currentProps.activeFilters.building,associatedParking:this.findAssociatedParkings(this.currentProps.activeFilters.building),search:void 0},this.saveActiveFilters()},getActiveFilters:function(){this.currentProps.activeFilters=this.activeFiltersC},saveActiveFilters:function(){this[z["a"].LOAD_ACTIVE_FILTERS](this.currentProps.activeFilters)},onInputFocus:function(){this.searcherFocus=!0,this.isVisible=!0},onInputBlur:function(){this.searcherFocus=!1},onInputChange:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},N=M.value,D=M.name;this.setDestination(D),this.currentProps.category=void 0,this.currentProps.activeFilters.subcategories=[],this.currentProps.activeFilters.categories=[],this.currentProps.activeFilters.search=N,this.currentProps.search=!!N,this.saveActiveFilters(),N?this.onSelect({component:"aena-points-categories",search:N}):(this.view="aena-points-list",this.onSelect({component:"aena-points-list"}))},onInputEnterKey:function(){this.$refs.component.$refs.section.focus()},goBack:function(){this.isVisible=!this.isVisible},onSelect:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T,g,u,s,L,A,n,w,r,y,c,a=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:i=N.category,e=N.component,j=N.pointDetail,T=N.search,g=N.pointGrouped,u=N.subcategories,M.t0=e,M.next="aena-highlighted-points"===M.t0?4:"aena-points-list"===M.t0?7:"aena-points-categories"===M.t0?10:"aena-point-detail"===M.t0?23:"aena-route-pre"===M.t0?26:"aena-route-poi"===M.t0?33:41;break;case 4:return this.resetActiveFilters(),this.setHigtLight(this.poisCatalog),M.abrupt("break",41);case 7:return this.resetActiveFilters(),this.setCategories(this.poisCatalog),M.abrupt("break",41);case 10:if(this.getActiveFilters(),s=i||this.currentProps.category,L=u&&u.length||this.currentProps.activeFilters.subcategories.length,A=this.currentProps.activeFilters.building,n=this.currentProps.activeFilters.search||T,s||L||A||n){M.next=18;break}return this.onSelect({component:this.lastView}),M.abrupt("return");case 18:return this.currentProps.activeFilters.subcategories=u||this.currentProps.activeFilters.subcategories,w=i||this.currentProps.category,!w&&this.currentProps.activeFilters.subcategories&&(w=this.poisCatalog.find((function(M){return M.subcategories.some((function(M){return M.id===a.currentProps.activeFilters.subcategories[0]}))}))),this.setPoisCategories({category:w,search:T||this.currentProps.activeFilters.search}),M.abrupt("break",41);case 23:return this.saveActiveFilters(),this.savePoi({poiId:j.id,pointGrouped:g,airportID:this.airportID,tag:"list"}),M.abrupt("break",41);case 26:return this.memoryValue=void 0,"aena-point-detail"===this.view&&this.onSelect({component:"aena-highlighted-points"}),r="destination",this.isMupiMode&&this.poiId===j.properties.id&&(r="origin"),this.isMupiMode&&this.poiDId===j.properties.id&&(r="destination"),this[z["a"].LOAD_ROUTE]((D={i18n:this.$i18n},Object(I["a"])(D,r,j),Object(I["a"])(D,"routeMode",!0),D)),M.abrupt("return");case 33:return this.memoryValue=void 0,y=(this.destinationName||"").includes("step")?"step":this.destinationName,c=y||(this.origin?"destination":"origin"),this.onSelect({component:"aena-highlighted-points"}),M.next=39,this[z["a"].LOAD_ROUTE]((t={i18n:this.$i18n},Object(I["a"])(t,c,j),Object(I["a"])(t,"routeMode",!0),t));case 39:return this.focus(),M.abrupt("return");case 41:e!==this.view&&(this.lastView=this.view),this.view=e,this.isMobile&&"aena-point-detail"===this.view&&(this.$refs.search.active=!1,this.$refs.search.focus=!1,this.isVisible=!0),!this.isMobile||"aena-point-detail"!==this.lastView&&"aena-route"!==this.lastView||"aena-highlighted-points"!==this.view||this.$nextTick((function(){a.$refs.search.active=!1,a.$refs.search.focus=!1,a.isVisible=!1}));case 45:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),onFilter:function(M){this.currentProps.activeFilters.building=M,this.currentProps.activeFilters.associatedParking=this.findAssociatedParkings(M),this.setPois(this.currentProps.activeFilters.search)},onCategory:function(M){this.onSubcategory(M,this.currentProps.activeFilters.search)},onSubcategory:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;this.currentProps.activeFilters.subcategories=M,this.setPois(N)},setFilterCategories:function(M){var N=this,D=M||this.currentProps.activeFilters.search;if(D){var t=this.poisCatalog.map((function(M){return M.subcategories})).flat(),i=this.currentProps.points.reduce((function(M,N){var i=N.properties.subcategories,e=i.reduce((function(M,N){var i=t.find((function(M){return M.id===N})),e=new RegExp(Zg(D),"gi");return i.name.match(e)&&M.push(N),M}),[]);return e.length?M.push.apply(M,Object(y["a"])(e)):M.push.apply(M,Object(y["a"])(i)),M}),[]);this.currentProps.categories=Object(y["a"])(new Set(i)).reduce((function(M,N){var D=t.find((function(M){return M.id===N}));return D&&M.push(D),M}),[])}else if(this.currentCategory)this.currentProps.categories=this.poisCatalog.find((function(M){return M.id===N.currentCategory.id})).subcategories;else{var e=this.poisCatalog.map((function(M){return M.subcategories})).flat();this.currentProps.categories=Object(y["a"])(new Set(e.map((function(M){return M.id})))).map((function(M){return e.find((function(N){return N.id===M}))}))}},setHigtLight:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.currentProps.highlighted=M.filter((function(M){return M.featured})).slice(0,6).sort((function(M,N){return M.featured_order-N.featured_order}))},setCategories:function(M){this.currentProps.points=M},setPois:function(M){var N=this;M&&M!==this.currentProps.activeFilters.search&&(this.currentProps.activeFilters.subcategories=[]);var D=M?this.poisCatalog.reduce((function(D,t){return D=D.concat(t.subcategories.filter((function(D){return N.findWord(D.name,M)}))),D}),[]).map((function(M){return M.id})):[];this.currentProps.points=this.poisList.features.filter((function(t){return N.findSubcategoriesInPois(t)&&N.findPoisInSubcategoriesActives(t)&&N.findPoisInBuildingActives(t)&&N.findPoisInSearchActives(t,M,D)})).sort(this.orderPois)},orderPois:function(M,N){if(M.properties.building>N.properties.building)return 1;if(M.properties.building<N.properties.building)return-1;if(M.properties.building===N.properties.building){if(M.properties.level>N.properties.level)return 1;if(M.properties.level<N.properties.level)return-1;if(M.properties.level===N.properties.level){if(M.properties.attrs.pat_nombre>N.properties.attrs.pat_nombre)return 1;if(M.properties.attrs.pat_nombre<N.properties.attrs.pat_nombre)return-1}}return 0},findSubcategoriesInPois:function(M){var N=this;return!this.currentProps.category||M.properties.subcategories.some((function(M){return N.currentCategory.subcategories.some((function(N){return N.id===M}))}))},findPoisInSubcategoriesActives:function(M){var N=this;return!this.currentProps.activeFilters.subcategories.length||M.properties.subcategories.some((function(M){return N.currentProps.activeFilters.subcategories.includes(M)}))},findPoisInBuildingActives:function(M){return!this.currentProps.activeFilters.building||M.properties.building===this.currentProps.activeFilters.building||this.currentProps.activeFilters.associatedParking.some((function(N){return N===M.properties.building}))},findPoisInSearchActives:function(M,N,D){return!N||this.findWord(M.properties.attrs.pat_nombre,N)||this.findSubcategoryWord(M.properties.subcategories,D)},findWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",N=arguments.length>1?arguments[1]:void 0;return!!M&&Pg(N,M)},findSubcategoryWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;return!!M.length&&M.some((function(M){return N.includes(M)}))},findAssociatedParkings:function(M){var N=this.buildings.find((function(N){return N.id===M}));return N?N.poi_search_group_ids:[]},setPoisCategories:function(M){var N=M.category,D=M.search;this.currentProps.airport=this.airport,this.currentProps.category=N,this.currentProps.filters=this.buildings,this.onSubcategory(this.currentProps.activeFilters.subcategories,D),this.setFilterCategories(D)},setPoi:function(M){this.onSelect({component:"aena-point-detail",pointDetail:{id:M.properties.id}})},closeRoute:function(){var M=this;this[z["a"].CLEAR_ROUTE](),this[z["a"].SET_FEEDBACK](),this.blockedPois=!1,this.memoryValue=void 0;var N="aena-route"===this.view?"aena-points-categories":this.view;this.onSelect({component:N,category:this.currentProps.category}),this.$nextTick((function(){M.isMobile&&"aena-highlighted-points"===N&&(M.$refs.container.classList.remove("visible"),M.isVisible=!1)}))},resetView:function(){this.onSelect({component:"aena-highlighted-points"})},clearStep:function(M,N,D){if(this.explorerMode){this.currentSearch=void 0;var t,i=this.steps.length>2&&!N,e=this.steps[M],j=!e||!e.new||!D;if(this.memoryValue)"origin"===this.destinationName&&M++,this[z["a"].LOAD_ROUTE]((t={i18n:this.$i18n},Object(I["a"])(t,this.destinationName,this.memoryValue),Object(I["a"])(t,"reset",!0),t));if(this.memoryValue=void 0,this.memoryValue=e&&!e.new?e:void 0,this.blockedPois=!1,this.resetView(),this.setDestination(N),this.focus(N),j){var T=Object(y["a"])(this.steps);if(this[z["a"].REMOVE_STEP]({index:M,hold:D}),i){var g,u=M===T.length-1?M-1:M+1;this[z["a"].LOAD_ROUTE]((g={i18n:this.$i18n},Object(I["a"])(g,this.destinationName,T[u]),Object(I["a"])(g,"reset",!0),g)),this[z["a"].REMOVE_STEP]({index:u})}}var s=Xg(this.$refs[N]);this.memoryValue&&"point"!==this.memoryValue.mode&&s&&(s.inputValue=this.$t(this.memoryValue.properties.attrs.pat_nombre),s.onInputChange())}},addStep:function(){this.blockedPois=!1,this.addBlocked||(this.setDestination("step"+this.stepsAdded.length),this.resetView(),this[z["a"].LOAD_ROUTE]({i18n:this.$i18n,reset:!0,routeMode:!0,step:{new:!0}}))},toggleBlocked:function(){if(!this.blockedPois&&(this.onSelect({component:"aena-route"}),this.origin&&this.destination)){var M=Object(Hg["a"])(this.origin,this.$i18n),N=Object(Hg["a"])(this.destination,this.$i18n),D={eventCategory:"como llegar",eventAction:"clic en ruta",eventLabel:"".concat(Object(E["a"])(M)," - ").concat(Object(E["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)}this.blockedPois=!this.blockedPois},focus:function(M){var N=M||this.destinationName;if(N){var D=Xg(this.$refs[N]);D.onFocus()}},onDrag:function(M){this.toggleDrag=!this.toggleDrag},onTransitionEnter:function(){this.searcherFocus||this.$refs.component.$refs.section.focus()},toggleBanner:function(){this.appBanner=!this.appBanner},toggleCollapsed:function(M){this.isCollapsed=M,this.$emit("toggle",M)},showPMRConfig:function(){this[z["c"].SAVE_PMR_CONFIG_VISIBILITY](!0),window.setTimeout((function(){var M=document.querySelector(".flughaveno-map"),N=document.querySelector(".pmr-popup");_g("pmr-wrapper",M,!0),N.focus()}),300)},togglePMR:function(){this[z["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.pmrDefaultProfile)}}),watch:{poisCatalog:function(M){this.setHigtLight(M)},poi:function(M,N){(!N||M&&M.properties.id!==N.properties.id)&&this.setPoi(M)},origin:function(M,N){!M&&N&&this.$refs.origin.onFocus()},destination:function(M,N){!M&&N&&this.$refs.destination.onFocus()},getView:function(M){M&&"aena-point-detail"===this.view&&this.onSelect({component:M}),this[z["a"].LOAD_VIEW]()},poisList:function(M){this.setPois()},isRouteMode:function(M){M||this.onSelect({component:"aena-highlighted-points"})}}},$g=Kg,Mu=(D("7aee"),Object(Pj["a"])($g,TT,gT,!1,null,"876da964",null)),Nu=Mu.exports,Du=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminal-selector-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("EXPLORE_MAP_TERMINAL_PARKING")))]),N("DropDown",{ref:"dropdown",attrs:{"click-outside":!0,"no-trigger":"",label:M.building&&M.floorC?M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING")+". "+M.$t("SELECTED")+" "+M.building.name+". "+M.$t("FLOOR")+" "+M.floorC.name:M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING"),height:M.isMobile?"100%":"auto"},on:{toggle:M.onDropdownToggle},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger",class:{selected:M.floorC,parking:M.floorC&&"TERMINAL"!==M.selected.category}},[M.floorC?M._e():N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),M.floorC||M.isMobile?M._e():N("p",{directives:[{name:"t",rawName:"v-t",value:"EXPLORE_TERMINAL_PARKING",expression:"'EXPLORE_TERMINAL_PARKING'"}]}),M.floorC?N("span",{staticClass:"icon-terminal",style:{backgroundColor:M.building.color,color:M.building.font_color}},[N("p",[M._v(M._s(M.building.short_name))])]):M._e(),M.floorC?N("p",[M._v(M._s(M.isMobile?"":M.building.name+".")+" "),M.isMobile?N("span",[M._v("P")]):N("span",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR"))))]),M._v(" "+M._s(M.floorC.name))]):M._e(),M.floorC&&M.isMobile?N("span",{staticClass:"line"}):M._e(),M.isMobile?M._e():N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:M.floorC?"#ffffff":"#1A2732"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"content-wrapper"},[M.isMobile?N("div",{staticClass:"header"},[M.selected?N("p",[M._v(M._s(M.$t("SELECT_FLOOR_SHORT")))]):N("p",[M._v(M._s(M.$t("EXPLORE_MOBILE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeDropdown}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),N("div",{staticClass:"primary"},[N("AenaTerminalsAccordion",{ref:"accordion",attrs:{data:M.accordionData,type:M.type,active:M.active},on:{onItemSelected:M.onItemSelected,onToggle:M.onToggle}})],1),N("div",{staticClass:"secondary"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.selected?N("div",{ref:"floors",staticClass:"selection",attrs:{"aria-label":M.$t("FLOORS"),tabindex:"0",role:"listbox"}},[N("h3",{directives:[{name:"t",rawName:"v-t",value:"FLOORS",expression:"'FLOORS'"}],attrs:{"aria-hidden":"true"}}),N("transition-group",{style:{"--total":M.selected.levels.length},attrs:{appear:"",tag:"ul",name:"slide-in"}},M._l(M.selected.levels,(function(D,t){return N("li",{key:D.id,staticClass:"floor",style:{"--i":t}},["A"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info left"},[N("Icon",{attrs:{icon:"categories/Llegadas_T.svg",fill:"#71777D"}})],1):M._e(),N("button",{class:{active:M.floor&&M.floor.id===D.id},attrs:{role:"option","aria-label":M.$t("FLOOR")+" "+D.name},on:{click:function(N){return M.onSelectFloor(D)}}},[M._v("\n "+M._s(D.name)+"\n ")]),"D"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info right"},[N("Icon",{attrs:{icon:"categories/Salidas_T.svg",fill:"#71777D"}})],1):M._e()])})),0)],1):N("div",{staticClass:"no-selection"},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s("terminals"===M.type?M.$t("SELECT_TERMINAL"):M.$t("SELECT_PARKING"))+" "),N("b",{directives:[{name:"t",rawName:"v-t",value:"FLOOR",expression:"'FLOOR'"}]})])])])])],1),N("button",{staticClass:"btn-back",class:{"no-selected":!M.floor},attrs:{disabled:!M.floor,"aria-label":M.$t("CLEAR_SELECTION")},on:{click:M.clear}},[M.floor?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#E9ECEF"}}),M.isMobile?N("p",[M._v(M._s(M.$t("EXIT")))]):M._e()],1)])]},proxy:!0}])})],1)},tu=[],iu=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-accordion-container"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[N("div",{staticClass:"terminals accordion-item",class:{active:"terminals"===M.activeItem},attrs:{role:"select"}},[N("button",{staticClass:"btn-accordion",class:{active:"terminals"===M.activeItem},attrs:{id:"btn-terminals",disabled:M.activeItem&&"terminals"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"terminals"===M.activeItem,"aria-controls":"sect-terminals"},on:{click:function(N){return M.toggle("terminals")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"TERMINALS",expression:"'TERMINALS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["terminals"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-terminals",role:"listbox","aria-labelledby":"btn-terminals"}},M._l(M.terminals,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,role:"option","aria-hidden":!D.levels.length},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+"\n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()]),N("span",{staticClass:"line"})],1),N("div",{staticClass:"parkings accordion-item",class:{active:"parkings"===M.activeItem}},[N("span",{staticClass:"line"}),N("button",{staticClass:"btn-accordion",class:{active:"parkings"===M.activeItem},attrs:{id:"btn-parkings",disabled:M.activeItem&&"parkings"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"parkings"===M.activeItem},on:{click:function(N){return M.toggle("parkings")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-p-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"PARKINGS",expression:"'PARKINGS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["parkings"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-parkings",role:"listbox","aria-labelledby":"btn-parkings"}},M._l(M.parkings,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content parking",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,"aria-hidden":!D.levels.length,role:"option"},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+" \n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()])],1),N("br",{staticClass:"clear"})])])],1)},eu=[],ju=D("9d63"),Tu=D.n(ju),gu={name:"app-aenaTerminalsAccordion",mixins:[],components:{VuePerfectScrollbar:Tu.a},props:{data:{type:[Object,Array],required:!0},type:{type:String,required:!0},active:{type:String,required:!1}},data:function(){return{activeItem:this.type,activeSubItem:this.active}},mounted:function(){this.updateScroll()},computed:{terminals:function(){return this.data.terminals.items},parkings:function(){return this.data.parkings.items}},methods:{toggle:function(M){this.activeItem=M,this.activeSubItem=void 0,this.$emit("onToggle",M),this.updateScroll()},select:function(M){this.activeSubItem=M.name,this.$emit("onItemSelected",M)},updateScroll:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update(),M.$refs.scrollbar.scrollTo(0,0)}),360)},enter:function(M){var N=this;M.style.height="auto";var D=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=D,N.updateScroll()}))},afterEnter:function(M){M.style.height="auto"},leave:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}},watch:{type:function(M){this.activeItem=M},active:function(M){this.activeSubItem=M}}},uu=gu,su=(D("8cf2"),Object(Pj["a"])(uu,iu,eu,!1,null,"731b6476",null)),Lu=su.exports;function Iu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Au(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Iu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Iu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var zu={name:"app-aenaTerminalSelector",mixins:[ag,Fj["a"]],components:{AenaTerminalsAccordion:Lu},props:{},data:function(){return{selected:void 0,floor:void 0,type:"terminals",open:!1}},created:function(){this.initData()},computed:Au(Au({},Object(n["c"])({isMobile:z["b"].GET_IS_MOBILE,buildings:z["b"].GET_BUILDINGS,building:z["b"].GET_BUILDING,floorC:z["b"].GET_FLOOR,airportID:z["b"].GET_AIRPORT_ID})),{},{accordionData:function(){var M={id:"1",title:"terminales",items:this.buildings.filter((function(M){return"TERMINAL"===M.category}))},N={id:"2",title:"parkings",items:this.buildings.filter((function(M){return"TERMINAL"!==M.category}))};return{terminals:M,parkings:N}},active:function(){return(this.selected||{}).name}}),methods:Au(Au({},Object(n["b"])([z["a"].LOAD_FLOOR,z["a"].LOAD_VIEW,z["a"].RESET_BBOX])),{},{initData:function(){this.type="terminals",this.selected=this.building,this.building&&(this.type="TERMINAL"===this.building.category?"terminals":"parkings"),this.floor=this.floorC,this.updateScrolls()},clear:function(){var M=this.selected;this.selected=null,this.floor=null,this[z["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected}),this[z["a"].RESET_BBOX](M),this.closeDropdown()},closeDropdown:function(){this.$refs.accordion.activeSubItem=void 0,this.$refs.dropdown.open=!1},onItemSelected:function(M){var N=this;this.selected=M,this.floor=void 0;var D={eventCategory:"explorador",eventAction:"clic",eventLabel:Object(E["a"])(M.name),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this.$nextTick((function(){N.updateScrolls(),N.$refs.floors.focus()}))},onToggle:function(M){this.type=M,this.selected=void 0,this.floor=void 0},onDropdownToggle:function(){this.initData(),this.updateScrolls()},updateScrolls:function(){var M=this;setTimeout((function(){M.$refs.accordion.$refs.scrollbar.update(),M.$refs.scrollbar.update()}),360)},onSelectFloor:function(M){this.floor=M,this[z["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected});var N="".concat(this.selected.name,". Planta ").concat(M.name),D={eventCategory:"explorador",eventAction:"clic",eventLabel:"".concat(Object(E["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this[z["a"].LOAD_VIEW]("aena-highlighted-points"),this.$refs.dropdown.$refs.button.focus(),this.isMobile&&(this.$refs.dropdown.open=!1)}}),watch:{building:function(M){this.selected=M},floorC:function(M){this.floor=M}}},nu=zu,wu=(D("a517"),Object(Pj["a"])(nu,Du,tu,!1,null,"0df5f4e4",null)),ru=wu.exports,yu=function(){var M=this,N=M._self._c;return N("Tooltip",{attrs:{text:M.$t("RESET_MAP"),position:"top-left"}},[N("button",{staticClass:"aena-home-button-container",class:[M.deviceWidthClass,{disabled:M.disabled}],attrs:{disabled:M.disabled,"aria-hidden":"true","aria-label":M.$t("RESET_MAP")+" · "+M.$t("AIRPORT_OVERVIEW")},on:{click:M.onReset}},[N("Icon",{staticClass:"icon",attrs:{icon:"reiniciar-home.svg",size:"30px",fill:"#1a2732"}})],1)])},cu=[];function au(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Eu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?au(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):au(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var ou={name:"HomeButton",mixins:[Fj["a"]],components:{},props:{},data:function(){return{}},computed:Eu(Eu({},Object(n["c"])({building:z["b"].GET_BUILDING,floor:z["b"].GET_FLOOR,poi:z["b"].GET_POI_ID})),{},{disabled:function(){return!this.building||!this.floor}}),methods:Eu(Eu({},Object(n["b"])([z["a"].LOAD_FLOOR,z["a"].LOAD_ROUTE,z["a"].CLEAR_ROUTE,z["a"].RESET_BBOX,z["a"].SET_HOME_POSITION])),{},{onReset:function(){this.poi?this[z["a"].SET_HOME_POSITION](this.poi):(this[z["a"].LOAD_FLOOR](),this[z["a"].LOAD_ROUTE]({reset:!0,routeMode:!1})),this[z["a"].CLEAR_ROUTE](),this[z["a"].RESET_BBOX]()}})},Ou=ou,xu=(D("427a"),Object(Pj["a"])(Ou,yu,cu,!1,null,"5ebebba4",null)),Cu=xu.exports,Su=function(){var M=this,N=M._self._c;return N("div",{staticClass:"legend-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("LEGEND")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_LEGEND")}},[N("button",{key:"button",staticClass:"button",attrs:{role:"button","aria-label":M.$t("LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"info-i-t.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.opened?N("div",{key:"box",ref:"legend",staticClass:"legend-box",attrs:{tabindex:"0"}},[N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("LEGEND"))+"\n "),N("Tooltip",{attrs:{text:M.$t("HIDE_LEGEND"),position:"top-right"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1),N("div",{staticClass:"body"},[N("h3",{staticClass:"separator",attrs:{id:"s01"}},[M._v(M._s(M.$t("SIGNALING")))]),N("ul",{attrs:{"aria-labelledby":"s01"}},[N("li",{staticClass:"row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pp.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("MAIN_INFORMATION")))])],1),N("li",{staticClass:"row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pc.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("SECONDARY_INFORMATION")))])],1)]),N("h3",{staticClass:"separator",attrs:{id:"s02"}},[M._v(M._s(M.$t("ZONES")))]),N("ul",{attrs:{"aria-labelledby":"s02"}},[N("li",{staticClass:"row"},[N("div",{staticClass:"dot free"}),N("p",[M._v(M._s(M.$t("FREE_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot pass-zone"}),N("p",[M._v(M._s(M.$t("PASS_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot markers"}),N("p",[M._v(M._s(M.$t("MARKERS_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot restricted"}),N("p",[M._v(M._s(M.$t("RESTRICTED_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot wc"}),N("p",[M._v(M._s(M.$t("WC_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot vip"}),N("p",[M._v(M._s(M.$t("VIP_ZONE")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"dot safety"}),N("p",[M._v(M._s(M.$t("SAFETY_CONTROL_PASSPORT")))])])]),M.hasRoute?[N("h3",{staticClass:"separator",attrs:{id:"s03"}},[M._v(M._s(M.$t("ROUTES")))]),N("ul",{attrs:{"aria-labelledby":"s03"}},[N("li",{staticClass:"row"},[N("div",{staticClass:"route current"}),N("p",[M._v(M._s(M.$t("ROUTE_CURRENT_FLOOR")))])]),N("li",{staticClass:"row"},[N("div",{staticClass:"route other"}),N("p",[M._v(M._s(M.$t("ROUTE_OTHER_PLACE")))])])])]:M._e()],2)]):M._e()])],1)},lu=[];function ku(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Qu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ku(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ku(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var du={name:"AenaLegend",mixins:[Fj["a"]],components:{},props:{},data:function(){return{opened:!1}},computed:Qu(Qu({},Object(n["c"])({airport:z["b"].GET_AIRPORT})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{toggle:function(){var M=this;this.opened=!this.opened,!0===this.opened&&window.setTimeout((function(){M.$refs.legend.focus()}),360)}}},Yu=du,Uu=(D("f31f"),Object(Pj["a"])(Yu,Su,lu,!1,null,"342d7f2b",null)),pu=Uu.exports,hu=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-pmr-container",class:[M.deviceWidthClass],attrs:{tabindex:"-1"}},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SHOW_PMR")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_PMR")}},[N("button",{key:"button",staticClass:"toggle-pmr btn-quaternary",attrs:{role:"button","aria-label":M.$t("PMR"),tabindex:"0"},on:{click:M.toggle}},[M.pmrActive?N("Icon",{staticClass:"icon",attrs:{icon:"pmr-active.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"icon",attrs:{icon:"pmr-config.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.pmrConfigVisible?N("div",{key:"pmr-box",staticClass:"pmr-box",attrs:{role:"dialog"},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.toggle("close")}}},[N("div",{ref:"popup",staticClass:"pmr-popup",attrs:{role:"document",tabindex:"0","aria-label":M.$t("PMR_CONFIGURATION"),lang:M.language}},[N("div",{staticClass:"header"},[N("Icon",{staticClass:"icon",attrs:{icon:"pmr-t.svg",size:"50px"}}),N("h1",{attrs:{id:"dialog-title"}},[M._v(M._s(M.$t("PMR_CONFIGURATION")))])],1),N("div",{staticClass:"content"},[N("div",{staticClass:"content-title-wrapper"},[N("h2",{staticClass:"content-title"},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS")))]),N("ToggleSwitch",{attrs:{value:M.pmrActive,role:"checkbox","aria-label":M.$t("ROUTES_NO_BARRIERS"),"aria-checked":M.pmrActive},on:{change:M.togglePMR}})],1),N("p",{staticClass:"nbt",attrs:{id:"dialog-description"}},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS_TEXT")))]),N("transition-group",{attrs:{height:"",name:"height"}},[M.pmrActive?N("div",{key:"pmr-options",staticClass:"pmr-options-content"},[N("h3",[M._v(M._s(M.$t("FLOOR_CONNECTORS")))]),N("p",{staticClass:"fct",attrs:{id:"dialogDesc"}},[M._v(M._s(M.$t("FLOOR_CONNECTORS_TEXT")))]),N("Checkbox",{attrs:{label:M.$t("ELEVATORS"),value:!0,disabled:!0}}),N("Checkbox",{attrs:{label:M.$t("ESCALATOR"),value:M.escalatorActive},on:{change:function(N){return M.setPMROption("escalatorActive",N.state)}}}),N("Checkbox",{attrs:{label:M.$t("MECHANICAL_RAMPS"),value:M.rampsActive},on:{change:function(N){return M.setPMROption("rampsActive",N.state)}}})],1):M._e()])],1),N("Tooltip",{staticClass:"close",attrs:{text:M.$t("HIDE_PMR"),position:"top-right",tabindex:"-1"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_PMR"),tabindex:"100"},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1)]):M._e()])],1)},fu=[];function mu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function vu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?mu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):mu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Bu={name:"AenaPmr",mixins:[Fj["a"]],components:{},props:{},data:function(){return{escalatorActive:!0,rampsActive:!1,language:this.$i18n.locale}},computed:vu(vu({},Object(n["c"])({pmrConfigVisible:z["b"].PMR_CONFIG_VISIBLE,pmrProfile:z["b"].GET_PMR_PROFILE,pmrDefaultProfile:z["b"].GET_DEFAULT_PMR_PROFILE})),{},{pmrActive:function(){return this.pmrProfile===this.pmrDefaultProfile&&this.setDefaultPMROptions(),null!==this.pmrProfile}}),methods:vu(vu(vu({},Object(n["b"])([z["a"].SET_PMR_PROFILE])),Object(n["d"])([z["c"].SAVE_PMR_CONFIG_VISIBILITY])),{},{getProfile:function(){return this.escalatorActive&&this.rampsActive?"pmr_4":this.escalatorActive?"pmr_3":this.rampsActive?"pmr_2":"pmr_1"},setPMROption:function(M,N){this[M]=N,this[z["a"].SET_PMR_PROFILE](this.getProfile())},toggle:function(M){var N=this;this[z["c"].SAVE_PMR_CONFIG_VISIBILITY](!this.pmrConfigVisible);var D=document.querySelector(".flughaveno-map");this.pmrConfigVisible&&"close"!==M?window.setTimeout((function(){var M=N.$refs.popup;_g("pmr-wrapper",D,!0),M.focus()}),300):(_g("pmr-wrapper",D,!1),document.removeEventListener("keydown",this.toggle))},togglePMR:function(){this.setDefaultPMROptions(),this[z["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.getProfile())},setDefaultPMROptions:function(){this.escalatorActive=!1,this.rampsActive=!1}})},bu=Bu,Pu=(D("36fd"),Object(Pj["a"])(bu,hu,fu,!1,null,"ac0eb094",null)),Zu=Pu.exports,Gu=function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"feedback",ref:"feedback",staticClass:"feedback-container",attrs:{role:"document",tabindex:"0","aria-label":M.$t("FEEDBACK_TITLE"),lang:M.language},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.onCloseNoFeedback.apply(null,arguments)}}},[N("div",{staticClass:"feedback-popup"},[N("div",{staticClass:"close"},[N("button",{staticClass:"btn icon",attrs:{role:"button","aria-label":M.$t("CLOSE")},on:{click:M.onCloseNoFeedback}},[N("Icon",{attrs:{icon:"cerrar-ico-jj.svg",size:"30px"}})],1)]),M.sent?[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"tick-ok-2-jj.svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE_SENT"))+"\n ")]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION_SENT"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg tertiary text",on:{click:M.onClose}},[M._v(M._s(M.$t("FEEDBACK_ACTION_SENT")))])])]:[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"group.svg",size:["192px","12px"]}}),N("Icon",{staticClass:"type",attrs:{icon:(M.pmr?"guaido_pmr":"guiado-pasajero")+".svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE"))+"\n ")]),N("div",{staticClass:"feedback"},[N("div",{staticClass:"top"},[M._l(M.feedbacks,(function(D){return[N("Tooltip",{attrs:{text:D.text,position:"top"}},[N("button",{staticClass:"star",attrs:{"aria-label":D.text},on:{click:function(N){return M.onFeedback(D.value)},mouseover:function(N){M.hovering=D.value},mouseout:function(N){M.hovering=0}}},[N("Icon",{attrs:{icon:(M.value>=D.value?"estrella-especial-full":"estrella-especial-jj")+".svg",size:"30px",fill:M.hovering>=D.value?"#598000":"#71777D"}})],1)])]}))],2),N("div",{staticClass:"bottom"},[M.value?N("span",{staticClass:"result"},[M._v(M._s(M.text))]):M._e()])]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg primary text",attrs:{disabled:!M.value},on:{click:M.onSubmit}},[M._v(M._s(M.$t("FEEDBACK_ACTION")))])])]],2)])])},Ru=[];function Wu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Xu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Wu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Wu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Hu={name:"app-feedback",mixins:[],components:{},props:{},data:function(){return{value:0,sent:!1,hovering:0,language:this.$i18n.locale}},computed:Xu(Xu({},Object(n["c"])({feedback:z["b"].GET_FEEDBACK,airportID:z["b"].GET_AIRPORT_ID,pmr:z["b"].GET_PMR_PROFILE})),{},{feedbacks:function(){return[{value:1,text:this.$t("FEEDBACK_VERY_LITTLE")},{value:2,text:this.$t("FEEDBACK_LITTLE")},{value:3,text:this.$t("FEEDBACK_NORMAL")},{value:4,text:this.$t("FEEDBACK_QUITE")},{value:5,text:this.$t("FEEDBACK_VERY_QUITE")}]},text:function(){var M=this;return this.value&&this.feedbacks.find((function(N){return N.value===M.value})).text}}),mounted:function(){var M=this,N=document.querySelector(".flughaveno-map");window.setTimeout((function(){var D=M.$refs.feedback;_g("feedback-wrapper",N,!0),D.focus()}),300)},beforeDestroy:function(){this.removeFeedbackFocus(),document.removeEventListener("keydown",this.onCloseNoFeedback)},methods:Xu(Xu(Xu({},Object(n["b"])([z["a"].SET_FEEDBACK])),Object(n["d"])([z["c"].SAVE_FEEDBACK])),{},{onClose:function(){this.removeFeedbackFocus(),this[z["c"].SAVE_FEEDBACK]()},onCloseNoFeedback:function(){this.sent||this.sentFeedback("encuesta descartada","no enviada"),this.onClose()},onFeedback:function(M){this.value=M},onSubmit:function(){this[z["a"].SET_FEEDBACK]({answered:!0}),this.sent=!0,this.sentFeedback(this.value)},sentFeedback:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enviada",D={eventCategory:"encuesta",eventAction:N,eventLabel:M,language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)},removeFeedbackFocus:function(){var M=document.querySelector(".flughaveno-map");_g("feedback-wrapper",M,!1)}})},_u=Hu,Fu=(D("941b"),Object(Pj["a"])(_u,Gu,Ru,!1,null,"6e183c38",null)),Vu=Fu.exports,Ju=D("704c");function qu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Ku(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?qu(Object(D),!0).forEach((function(N){Object(I["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):qu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var $u=12e4,Ms={name:"app-appShell",mixins:[x,Fj["a"]],components:{MapComponent:MT,AenaPoints:Nu,AenaTerminalSelector:ru,AenaHomeButton:Cu,AenaLegend:pu,AenaPmr:Zu,Feedback:Vu,Layers:jT},props:{},data:function(){return{loaded:!1,id:this.$root.$data.id,airport:this.$root.$data.airport,building:this.$root.$data.building,floor:this.$root.$data.floor,explorerMode:this.$root.$data.explorerMode,category:this.$root.$data.category,poi:(this.$root.$data.poi||"").toString(),poiD:(this.$root.$data.poiD||"").toString(),route:this.$root.$data.route,language:this.$root.$data.language,isPortrait:null,pmr_enabled:"true",interval:void 0,intervalPoiWait:void 0,container:null,printMode:this.$root.$data.printMode,layers:!1,lat:this.$root.$data.lat,lon:this.$root.$data.lon,mupiMode:this.$root.$data.mupiMode,avaMode:this.$root.$data.avaMode,intervalMupiResetPosition:void 0,pointsDetailCollapsed:!0}},created:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){var N=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:document.documentElement.setAttribute("lang",this.language),this.initFeedback(),this.saveConfig(),this[z["a"].LOAD_FULL_AIRPORT]().then((function(){N.building&&N.saveFloor({buildingId:N.building,floorId:N.floor,airportID:N.airport,tag:"explorador"}),N.airportC.access_controls_has_wait_info&&(N[z["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois}),N.intervalPoiWait=setInterval((function(){N[z["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois})}),3e5)),N.loaded=!0})),window.addEventListener("orientationchange",this.handleOrientation,!0),this.handleOrientation(),window.addEventListener("resize",this.checkIsMobile,!0),document.addEventListener("keydown",this.addAccesibilityClass,!0),document.addEventListener("mousedown",this.removeAccesibilityClass,!0),this.mupiMode&&(this[z["a"].CLEAR_ROUTE](),this.initMupiIntervalEvents());case 10:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),mounted:function(){this.container=document.querySelector(".flughaveno-map"),this.checkIsMobile()},beforeDestroy:function(){clearInterval(this.interval),clearInterval(this.intervalPoiWait),this.mupiMode&&clearInterval(this.intervalMupiResetPosition),window.removeEventListener("resize",this.checkIsMobile,!1),this.removeMupiInternalEvents()},computed:Ku(Ku({},Object(n["c"])({airportC:z["b"].GET_AIRPORT,pois:z["b"].GET_POIS_LIST,selectedPoi:z["b"].GET_POI,buildings:z["b"].GET_BUILDINGS,buildingC:z["b"].GET_BUILDING,floorC:z["b"].GET_FLOOR,routeConfig:z["b"].GET_ROUTE_CONFIG,isRouteMode:z["b"].IS_ROUTE_MODE,feedback:z["b"].GET_FEEDBACK,layerTree:z["b"].GET_LAYER_TREE})),{},{appId:function(){return this.id.split("#")[1]},hasRoute:function(){return this.airportC.has_graph}}),methods:Ku(Ku(Ku({},Object(n["b"])([z["a"].LOAD_FULL_AIRPORT,z["a"].SET_FEEDBACK,z["a"].LOAD_ACCESS_CONTROL_TIME,z["a"].SET_HOME_POSITION,z["a"].CLEAR_ROUTE,z["a"].CLEAR_POI])),Object(n["d"])([z["c"].SAVE_DEVICE_WIDTH,z["c"].SAVE_IS_MOBILE])),{},{resize:function(){this[z["c"].SAVE_DEVICE_WIDTH](this.$el.offsetWidth)},saveConfig:function(){this.$store.commit(z["c"].SAVE_CONFIG,{id:this.id,airport:this.airport,explorerMode:this.explorerMode,building:this.building,floor:this.floor,category:this.category,language:this.language,route:this.route,poi:this.poi,poiD:this.poiD,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode})},checkIsMobile:function(){this.resize(),this[z["c"].SAVE_IS_MOBILE](Object(Ju["a"])(this.id))},handleOrientation:function(){var M=this;window.setTimeout((function(){0===window.orientation&&window.innerWidth<=768&&window.innerWidth>=570?M.isPortrait=!0:M.isPortrait=!1}),5e3)},closeModal:function(){this.isPortrait=!1},initFeedback:function(){var M=this,N=function(){var M=JSON.parse(localStorage.getItem("feedback")||"{}");localStorage.removeItem("feedbacks");var N=new Date;M.time&&new Date(M.time).getUTCDate()===N.getUTCDate()||(M.time=N.toISOString(),M.count=1,M.answered=!1,localStorage.setItem("feedback",JSON.stringify(M)))};N(),this.interval=setInterval((function(){var N=JSON.parse(localStorage.getItem("feedback")||"{}");clearInterval(M.interval),N.count<5&&(N.count=4),localStorage.setItem("feedback",JSON.stringify(N)),M[z["a"].SET_FEEDBACK]()}),6e5)},initMupiIntervalEvents:function(){document.addEventListener("keydown",this.cancelIntervalMupi,!1),document.addEventListener("keypress",this.cancelIntervalMupi,!1),document.addEventListener("keyup",this.cancelIntervalMupi,!1),document.addEventListener("mousedown",this.cancelIntervalMupi,!1),document.addEventListener("mouseup",this.cancelIntervalMupi,!1),document.addEventListener("click",this.cancelIntervalMupi,!1),document.addEventListener("touchstart",this.cancelIntervalMupi,!1),document.addEventListener("touchend",this.cancelIntervalMupi,!1),document.addEventListener("touchcancel",this.cancelIntervalMupi,!1),document.addEventListener("touchleave",this.cancelIntervalMupi,!1),document.addEventListener("touchmove",this.cancelIntervalMupi,!1),this.initIntervalMupi()},removeMupiInternalEvents:function(){document.removeEventListener("keydown",this.cancelIntervalMupi,!1),document.removeEventListener("keypress",this.cancelIntervalMupi,!1),document.removeEventListener("keyup",this.cancelIntervalMupi,!1),document.removeEventListener("mousedown",this.cancelIntervalMupi,!1),document.removeEventListener("mouseup",this.cancelIntervalMupi,!1),document.removeEventListener("click",this.cancelIntervalMupi,!1),document.removeEventListener("touchstart",this.cancelIntervalMupi,!1),document.removeEventListener("touchend",this.cancelIntervalMupi,!1),document.removeEventListener("touchcancel",this.cancelIntervalMupi,!1),document.removeEventListener("touchleave",this.cancelIntervalMupi,!1),document.removeEventListener("touchmove",this.cancelIntervalMupi,!1)},initIntervalMupi:function(){var M=this;this.intervalMupiResetPosition=setInterval((function(){M[z["a"].CLEAR_ROUTE]().then((function(){M[z["a"].SET_HOME_POSITION](M.poi)})),clearInterval(M.intervalMupiResetPosition)}),$u)},cancelIntervalMupi:function(M){clearInterval(this.intervalMupiResetPosition),this.intervalMupiResetPosition=void 0,this.initIntervalMupi()},addAccesibilityClass:function(M){this.container.classList.contains("keyboard-nav")||"Tab"!==M.key||this.container.classList.add("keyboard-nav")},removeAccesibilityClass:function(){this.container.classList.remove("keyboard-nav")},onLayerChange:function(M){var N=this.$refs.map.getLayer(M.name);this.$refs.map.setLayoutProperty(N.id,"none"===N.visibility?"visible":"none")},onPointsToggle:function(M){this.pointsDetailCollapsed=M}}),watch:{floorC:function(){var M=Object(A["a"])(regeneratorRuntime.mark((function M(){return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:this.floor=(this.floorC||{}).id,this.building=(this.buildingC||{}).id,this.saveConfig();case 3:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),layerTree:function(M){var N=M.map((function(M){var N=M;return N.name="poiList"===M.id?"Puntos de interés":"building-contour"===M.id?"Contorno de edificios":"building-contour-marker"===M.id?"Marcadores de planta":"poiListSelected"===M.id?"POIs seleccionados":"spaces_base_fill"===M.id?"Relleno del espacio":M.id,N.active=!0,N}));this.layers=N}}},Ns=Ms,Ds=(D("4dfc"),Object(Pj["a"])(Ns,s,L,!1,null,null,null)),ts=Ds.exports,is=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],es=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function js(M,N){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+M),N&&console.warn(N.stack))}function Ts(M,N){"undefined"!==typeof console&&(console.error("[vue-i18n] "+M),N&&console.error(N.stack))}var gs=Array.isArray;function us(M){return null!==M&&"object"===typeof M}function ss(M){return"boolean"===typeof M}function Ls(M){return"string"===typeof M}var Is=Object.prototype.toString,As="[object Object]";function zs(M){return Is.call(M)===As}function ns(M){return null===M||void 0===M}function ws(M){return"function"===typeof M}function rs(){var M=[],N=arguments.length;while(N--)M[N]=arguments[N];var D=null,t=null;return 1===M.length?us(M[0])||gs(M[0])?t=M[0]:"string"===typeof M[0]&&(D=M[0]):2===M.length&&("string"===typeof M[0]&&(D=M[0]),(us(M[1])||gs(M[1]))&&(t=M[1])),{locale:D,params:t}}function ys(M){return JSON.parse(JSON.stringify(M))}function cs(M,N){if(M.delete(N))return M}function as(M){var N=[];return M.forEach((function(M){return N.push(M)})),N}function Es(M,N){return!!~M.indexOf(N)}var os=Object.prototype.hasOwnProperty;function Os(M,N){return os.call(M,N)}function xs(M){for(var N=arguments,D=Object(M),t=1;t<arguments.length;t++){var i=N[t];if(void 0!==i&&null!==i){var e=void 0;for(e in i)Os(i,e)&&(us(i[e])?D[e]=xs(D[e],i[e]):D[e]=i[e])}}return D}function Cs(M,N){if(M===N)return!0;var D=us(M),t=us(N);if(!D||!t)return!D&&!t&&String(M)===String(N);try{var i=gs(M),e=gs(N);if(i&&e)return M.length===N.length&&M.every((function(M,D){return Cs(M,N[D])}));if(i||e)return!1;var j=Object.keys(M),T=Object.keys(N);return j.length===T.length&&j.every((function(D){return Cs(M[D],N[D])}))}catch(g){return!1}}function Ss(M){return M.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ls(M){return null!=M&&Object.keys(M).forEach((function(N){"string"==typeof M[N]&&(M[N]=Ss(M[N]))})),M}function ks(M){M.prototype.hasOwnProperty("$i18n")||Object.defineProperty(M.prototype,"$i18n",{get:function(){return this._i18n}}),M.prototype.$t=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.$i18n;return t._t.apply(t,[M,t.locale,t._getMessages(),this].concat(N))},M.prototype.$tc=function(M,N){var D=[],t=arguments.length-2;while(t-- >0)D[t]=arguments[t+2];var i=this.$i18n;return i._tc.apply(i,[M,i.locale,i._getMessages(),this,N].concat(D))},M.prototype.$te=function(M,N){var D=this.$i18n;return D._te(M,D.locale,D._getMessages(),N)},M.prototype.$d=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).d.apply(N,[M].concat(D))},M.prototype.$n=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).n.apply(N,[M].concat(D))}}function Qs(M){function N(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===M&&(M=!1),M?{mounted:N}:{beforeCreate:function(){var M=this.$options;if(M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n)if(M.i18n instanceof lL){if(M.__i18nBridge||M.__i18n)try{var N=M.i18n&&M.i18n.messages?M.i18n.messages:{},D=M.__i18nBridge||M.__i18n;D.forEach((function(M){N=xs(N,JSON.parse(M))})),Object.keys(N).forEach((function(D){M.i18n.mergeLocaleMessage(D,N[D])}))}catch(g){0}this._i18n=M.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(zs(M.i18n)){var t=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lL?this.$root.$i18n:null;if(t&&(M.i18n.root=this.$root,M.i18n.formatter=t.formatter,M.i18n.fallbackLocale=t.fallbackLocale,M.i18n.formatFallbackMessages=t.formatFallbackMessages,M.i18n.silentTranslationWarn=t.silentTranslationWarn,M.i18n.silentFallbackWarn=t.silentFallbackWarn,M.i18n.pluralizationRules=t.pluralizationRules,M.i18n.preserveDirectiveContent=t.preserveDirectiveContent),M.__i18nBridge||M.__i18n)try{var i=M.i18n&&M.i18n.messages?M.i18n.messages:{},e=M.__i18nBridge||M.__i18n;e.forEach((function(M){i=xs(i,JSON.parse(M))})),M.i18n.messages=i}catch(g){0}var j=M.i18n,T=j.sharedMessages;T&&zs(T)&&(M.i18n.messages=xs(M.i18n.messages,T)),this._i18n=new lL(M.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===M.i18n.sync||M.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),t&&t.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lL?this._i18n=this.$root.$i18n:M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof lL&&(this._i18n=M.parent.$i18n)},beforeMount:function(){var M=this.$options;M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n?(M.i18n instanceof lL||zs(M.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof lL||M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof lL)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:N,beforeDestroy:function(){if(this._i18n){var M=this;this.$nextTick((function(){M._subscribing&&(M._i18n.unsubscribeDataChanging(M),delete M._subscribing),M._i18nWatcher&&(M._i18nWatcher(),M._i18n.destroyVM(),delete M._i18nWatcher),M._localeWatcher&&(M._localeWatcher(),delete M._localeWatcher)}))}}}}var ds={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(M,N){var D=N.data,t=N.parent,i=N.props,e=N.slots,j=t.$i18n;if(j){var T=i.path,g=i.locale,u=i.places,s=e(),L=j.i(T,g,Ys(s)||u?Us(s.default,u):s),I=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return I?M(I,D,L):L}}};function Ys(M){var N;for(N in M)if("default"!==N)return!1;return Boolean(N)}function Us(M,N){var D=N?ps(N):{};if(!M)return D;M=M.filter((function(M){return M.tag||""!==M.text.trim()}));var t=M.every(ms);return M.reduce(t?hs:fs,D)}function ps(M){return Array.isArray(M)?M.reduce(fs,{}):Object.assign({},M)}function hs(M,N){return N.data&&N.data.attrs&&N.data.attrs.place&&(M[N.data.attrs.place]=N),M}function fs(M,N,D){return M[D]=N,M}function ms(M){return Boolean(M.data&&M.data.attrs&&M.data.attrs.place)}var vs,Bs={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(M,N){var D=N.props,t=N.parent,i=N.data,e=t.$i18n;if(!e)return null;var j=null,T=null;Ls(D.format)?j=D.format:us(D.format)&&(D.format.key&&(j=D.format.key),T=Object.keys(D.format).reduce((function(M,N){var t;return Es(is,N)?Object.assign({},M,(t={},t[N]=D.format[N],t)):M}),null));var g=D.locale||e.locale,u=e._ntp(D.value,g,j,T),s=u.map((function(M,N){var D,t=i.scopedSlots&&i.scopedSlots[M.type];return t?t((D={},D[M.type]=M.value,D.index=N,D.parts=u,D)):M.value})),L=D.tag&&!0!==D.tag||!1===D.tag?D.tag:"span";return L?M(L,{attrs:i.attrs,class:i["class"],staticClass:i.staticClass},s):s}};function bs(M,N,D){Gs(M,D)&&Ws(M,N,D)}function Ps(M,N,D,t){if(Gs(M,D)){var i=D.context.$i18n;Rs(M,D)&&Cs(N.value,N.oldValue)&&Cs(M._localeMessage,i.getLocaleMessage(i.locale))||Ws(M,N,D)}}function Zs(M,N,D,t){var i=D.context;if(i){var e=D.context.$i18n||{};N.modifiers.preserve||e.preserveDirectiveContent||(M.textContent=""),M._vt=void 0,delete M["_vt"],M._locale=void 0,delete M["_locale"],M._localeMessage=void 0,delete M["_localeMessage"]}else js("Vue instance does not exists in VNode context")}function Gs(M,N){var D=N.context;return D?!!D.$i18n||(js("VueI18n instance does not exists in Vue instance"),!1):(js("Vue instance does not exists in VNode context"),!1)}function Rs(M,N){var D=N.context;return M._locale===D.$i18n.locale}function Ws(M,N,D){var t,i,e=N.value,j=Xs(e),T=j.path,g=j.locale,u=j.args,s=j.choice;if(T||g||u)if(T){var L=D.context;M._vt=M.textContent=null!=s?(t=L.$i18n).tc.apply(t,[T,s].concat(Hs(g,u))):(i=L.$i18n).t.apply(i,[T].concat(Hs(g,u))),M._locale=L.$i18n.locale,M._localeMessage=L.$i18n.getLocaleMessage(L.$i18n.locale)}else js("`path` is required in v-t directive");else js("value type not supported")}function Xs(M){var N,D,t,i;return Ls(M)?N=M:zs(M)&&(N=M.path,D=M.locale,t=M.args,i=M.choice),{path:N,locale:D,args:t,choice:i}}function Hs(M,N){var D=[];return M&&D.push(M),N&&(Array.isArray(N)||zs(N))&&D.push(N),D}function _s(M,N){void 0===N&&(N={bridge:!1}),_s.installed=!0,vs=M;vs.version&&Number(vs.version.split(".")[0]);ks(vs),vs.mixin(Qs(N.bridge)),vs.directive("t",{bind:bs,update:Ps,unbind:Zs}),vs.component(ds.name,ds),vs.component(Bs.name,Bs);var D=vs.config.optionMergeStrategies;D.i18n=function(M,N){return void 0===N?M:N}}var Fs=function(){this._caches=Object.create(null)};Fs.prototype.interpolate=function(M,N){if(!N)return[M];var D=this._caches[M];return D||(D=qs(M),this._caches[M]=D),Ks(D,N)};var Vs=/^(?:\d)+/,Js=/^(?:\w)+/;function qs(M){var N=[],D=0,t="";while(D<M.length){var i=M[D++];if("{"===i){t&&N.push({type:"text",value:t}),t="";var e="";i=M[D++];while(void 0!==i&&"}"!==i)e+=i,i=M[D++];var j="}"===i,T=Vs.test(e)?"list":j&&Js.test(e)?"named":"unknown";N.push({value:e,type:T})}else"%"===i?"{"!==M[D]&&(t+=i):t+=i}return t&&N.push({type:"text",value:t}),N}function Ks(M,N){var D=[],t=0,i=Array.isArray(N)?"list":us(N)?"named":"unknown";if("unknown"===i)return D;while(t<M.length){var e=M[t];switch(e.type){case"text":D.push(e.value);break;case"list":D.push(N[parseInt(e.value,10)]);break;case"named":"named"===i&&D.push(N[e.value]);break;case"unknown":0;break}t++}return D}var $s=0,ML=1,NL=2,DL=3,tL=0,iL=1,eL=2,jL=3,TL=4,gL=5,uL=6,sL=7,LL=8,IL=[];IL[tL]={ws:[tL],ident:[jL,$s],"[":[TL],eof:[sL]},IL[iL]={ws:[iL],".":[eL],"[":[TL],eof:[sL]},IL[eL]={ws:[eL],ident:[jL,$s],0:[jL,$s],number:[jL,$s]},IL[jL]={ident:[jL,$s],0:[jL,$s],number:[jL,$s],ws:[iL,ML],".":[eL,ML],"[":[TL,ML],eof:[sL,ML]},IL[TL]={"'":[gL,$s],'"':[uL,$s],"[":[TL,NL],"]":[iL,DL],eof:LL,else:[TL,$s]},IL[gL]={"'":[TL,$s],eof:LL,else:[gL,$s]},IL[uL]={'"':[TL,$s],eof:LL,else:[uL,$s]};var AL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function zL(M){return AL.test(M)}function nL(M){var N=M.charCodeAt(0),D=M.charCodeAt(M.length-1);return N!==D||34!==N&&39!==N?M:M.slice(1,-1)}function wL(M){if(void 0===M||null===M)return"eof";var N=M.charCodeAt(0);switch(N){case 91:case 93:case 46:case 34:case 39:return M;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function rL(M){var N=M.trim();return("0"!==M.charAt(0)||!isNaN(M))&&(zL(N)?nL(N):"*"+N)}function yL(M){var N,D,t,i,e,j,T,g=[],u=-1,s=tL,L=0,I=[];function A(){var N=M[u+1];if(s===gL&&"'"===N||s===uL&&'"'===N)return u++,t="\\"+N,I[$s](),!0}I[ML]=function(){void 0!==D&&(g.push(D),D=void 0)},I[$s]=function(){void 0===D?D=t:D+=t},I[NL]=function(){I[$s](),L++},I[DL]=function(){if(L>0)L--,s=TL,I[$s]();else{if(L=0,void 0===D)return!1;if(D=rL(D),!1===D)return!1;I[ML]()}};while(null!==s)if(u++,N=M[u],"\\"!==N||!A()){if(i=wL(N),T=IL[s],e=T[i]||T["else"]||LL,e===LL)return;if(s=e[0],j=I[e[1]],j&&(t=e[2],t=void 0===t?N:t,!1===j()))return;if(s===sL)return g}}var cL=function(){this._cache=Object.create(null)};cL.prototype.parsePath=function(M){var N=this._cache[M];return N||(N=yL(M),N&&(this._cache[M]=N)),N||[]},cL.prototype.getPathValue=function(M,N){if(!us(M))return null;var D=this.parsePath(N);if(0===D.length)return null;var t=D.length,i=M,e=0;while(e<t){var j=i[D[e]];if(void 0===j||null===j)return null;i=j,e++}return i};var aL,EL=/<\/?[\w\s="/.':;#-\/]+>/,oL=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,OL=/^@(?:\.([a-zA-Z]+))?:/,xL=/[()]/g,CL={upper:function(M){return M.toLocaleUpperCase()},lower:function(M){return M.toLocaleLowerCase()},capitalize:function(M){return""+M.charAt(0).toLocaleUpperCase()+M.substr(1)}},SL=new Fs,lL=function(M){var N=this;void 0===M&&(M={}),!vs&&"undefined"!==typeof window&&window.Vue&&_s(window.Vue);var D=M.locale||"en-US",t=!1!==M.fallbackLocale&&(M.fallbackLocale||"en-US"),i=M.messages||{},e=M.dateTimeFormats||M.datetimeFormats||{},j=M.numberFormats||{};this._vm=null,this._formatter=M.formatter||SL,this._modifiers=M.modifiers||{},this._missing=M.missing||null,this._root=M.root||null,this._sync=void 0===M.sync||!!M.sync,this._fallbackRoot=void 0===M.fallbackRoot||!!M.fallbackRoot,this._fallbackRootWithEmptyString=void 0===M.fallbackRootWithEmptyString||!!M.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==M.formatFallbackMessages&&!!M.formatFallbackMessages,this._silentTranslationWarn=void 0!==M.silentTranslationWarn&&M.silentTranslationWarn,this._silentFallbackWarn=void 0!==M.silentFallbackWarn&&!!M.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new cL,this._dataListeners=new Set,this._componentInstanceCreatedListener=M.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==M.preserveDirectiveContent&&!!M.preserveDirectiveContent,this.pluralizationRules=M.pluralizationRules||{},this._warnHtmlInMessage=M.warnHtmlInMessage||"off",this._postTranslation=M.postTranslation||null,this._escapeParameterHtml=M.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in M&&(this.__VUE_I18N_BRIDGE__=M.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(M,D){var t=Object.getPrototypeOf(N);if(t&&t.getChoiceIndex){var i=t.getChoiceIndex;return i.call(N,M,D)}var e=function(M,N){return M=Math.abs(M),2===N?M?M>1?1:0:1:M?Math.min(M,2):0};return N.locale in N.pluralizationRules?N.pluralizationRules[N.locale].apply(N,[M,D]):e(M,D)},this._exist=function(M,D){return!(!M||!D)&&(!ns(N._path.getPathValue(M,D))||!!M[D])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,i[M])})),this._initVM({locale:D,fallbackLocale:t,messages:i,dateTimeFormats:e,numberFormats:j})},kL={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};lL.prototype._checkLocaleMessage=function(M,N,D){var t=[],i=function(M,N,D,t){if(zs(D))Object.keys(D).forEach((function(e){var j=D[e];zs(j)?(t.push(e),t.push("."),i(M,N,j,t),t.pop(),t.pop()):(t.push(e),i(M,N,j,t),t.pop())}));else if(gs(D))D.forEach((function(D,e){zs(D)?(t.push("["+e+"]"),t.push("."),i(M,N,D,t),t.pop(),t.pop()):(t.push("["+e+"]"),i(M,N,D,t),t.pop())}));else if(Ls(D)){var e=EL.test(D);if(e){var j="Detected HTML in message '"+D+"' of keypath '"+t.join("")+"' at '"+N+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===M?js(j):"error"===M&&Ts(j)}}};i(N,M,D,t)},lL.prototype._initVM=function(M){var N=vs.config.silent;vs.config.silent=!0,this._vm=new vs({data:M,__VUE18N__INSTANCE__:!0}),vs.config.silent=N},lL.prototype.destroyVM=function(){this._vm.$destroy()},lL.prototype.subscribeDataChanging=function(M){this._dataListeners.add(M)},lL.prototype.unsubscribeDataChanging=function(M){cs(this._dataListeners,M)},lL.prototype.watchI18nData=function(){var M=this;return this._vm.$watch("$data",(function(){var N=as(M._dataListeners),D=N.length;while(D--)vs.nextTick((function(){N[D]&&N[D].$forceUpdate()}))}),{deep:!0})},lL.prototype.watchLocale=function(M){if(M){if(!this.__VUE_I18N_BRIDGE__)return null;var N=this,D=this._vm;return this.vm.$watch("locale",(function(t){D.$set(D,"locale",t),N.__VUE_I18N_BRIDGE__&&M&&(M.locale.value=t),D.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(M){t.$set(t,"locale",M),t.$forceUpdate()}),{immediate:!0})},lL.prototype.onComponentInstanceCreated=function(M){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(M,this)},kL.vm.get=function(){return this._vm},kL.messages.get=function(){return ys(this._getMessages())},kL.dateTimeFormats.get=function(){return ys(this._getDateTimeFormats())},kL.numberFormats.get=function(){return ys(this._getNumberFormats())},kL.availableLocales.get=function(){return Object.keys(this.messages).sort()},kL.locale.get=function(){return this._vm.locale},kL.locale.set=function(M){this._vm.$set(this._vm,"locale",M)},kL.fallbackLocale.get=function(){return this._vm.fallbackLocale},kL.fallbackLocale.set=function(M){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",M)},kL.formatFallbackMessages.get=function(){return this._formatFallbackMessages},kL.formatFallbackMessages.set=function(M){this._formatFallbackMessages=M},kL.missing.get=function(){return this._missing},kL.missing.set=function(M){this._missing=M},kL.formatter.get=function(){return this._formatter},kL.formatter.set=function(M){this._formatter=M},kL.silentTranslationWarn.get=function(){return this._silentTranslationWarn},kL.silentTranslationWarn.set=function(M){this._silentTranslationWarn=M},kL.silentFallbackWarn.get=function(){return this._silentFallbackWarn},kL.silentFallbackWarn.set=function(M){this._silentFallbackWarn=M},kL.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},kL.preserveDirectiveContent.set=function(M){this._preserveDirectiveContent=M},kL.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},kL.warnHtmlInMessage.set=function(M){var N=this,D=this._warnHtmlInMessage;if(this._warnHtmlInMessage=M,D!==M&&("warn"===M||"error"===M)){var t=this._getMessages();Object.keys(t).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,t[M])}))}},kL.postTranslation.get=function(){return this._postTranslation},kL.postTranslation.set=function(M){this._postTranslation=M},kL.sync.get=function(){return this._sync},kL.sync.set=function(M){this._sync=M},lL.prototype._getMessages=function(){return this._vm.messages},lL.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},lL.prototype._getNumberFormats=function(){return this._vm.numberFormats},lL.prototype._warnDefault=function(M,N,D,t,i,e){if(!ns(D))return D;if(this._missing){var j=this._missing.apply(null,[M,N,t,i]);if(Ls(j))return j}else 0;if(this._formatFallbackMessages){var T=rs.apply(void 0,i);return this._render(N,e,T.params,N)}return N},lL.prototype._isFallbackRoot=function(M){return(this._fallbackRootWithEmptyString?!M:ns(M))&&!ns(this._root)&&this._fallbackRoot},lL.prototype._isSilentFallbackWarn=function(M){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(M):this._silentFallbackWarn},lL.prototype._isSilentFallback=function(M,N){return this._isSilentFallbackWarn(N)&&(this._isFallbackRoot()||M!==this.fallbackLocale)},lL.prototype._isSilentTranslationWarn=function(M){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(M):this._silentTranslationWarn},lL.prototype._interpolate=function(M,N,D,t,i,e,j){if(!N)return null;var T,g=this._path.getPathValue(N,D);if(gs(g)||zs(g))return g;if(ns(g)){if(!zs(N))return null;if(T=N[D],!Ls(T)&&!ws(T))return null}else{if(!Ls(g)&&!ws(g))return null;T=g}return Ls(T)&&(T.indexOf("@:")>=0||T.indexOf("@.")>=0)&&(T=this._link(M,N,T,t,"raw",e,j)),this._render(T,i,e,D)},lL.prototype._link=function(M,N,D,t,i,e,j){var T=D,g=T.match(oL);for(var u in g)if(g.hasOwnProperty(u)){var s=g[u],L=s.match(OL),I=L[0],A=L[1],z=s.replace(I,"").replace(xL,"");if(Es(j,z))return T;j.push(z);var n=this._interpolate(M,N,z,t,"raw"===i?"string":i,"raw"===i?void 0:e,j);if(this._isFallbackRoot(n)){if(!this._root)throw Error("unexpected error");var w=this._root.$i18n;n=w._translate(w._getMessages(),w.locale,w.fallbackLocale,z,t,i,e)}n=this._warnDefault(M,z,n,t,gs(e)?e:[e],i),this._modifiers.hasOwnProperty(A)?n=this._modifiers[A](n):CL.hasOwnProperty(A)&&(n=CL[A](n)),j.pop(),T=n?T.replace(s,n):T}return T},lL.prototype._createMessageContext=function(M,N,D,t){var i=this,e=gs(M)?M:[],j=us(M)?M:{},T=function(M){return e[M]},g=function(M){return j[M]},u=this._getMessages(),s=this.locale;return{list:T,named:g,values:M,formatter:N,path:D,messages:u,locale:s,linked:function(M){return i._interpolate(s,u[s]||{},M,null,t,void 0,[M])}}},lL.prototype._render=function(M,N,D,t){if(ws(M))return M(this._createMessageContext(D,this._formatter||SL,t,N));var i=this._formatter.interpolate(M,D,t);return i||(i=SL.interpolate(M,D,t)),"string"!==N||Ls(i)?i:i.join("")},lL.prototype._appendItemToChain=function(M,N,D){var t=!1;return Es(M,N)||(t=!0,N&&(t="!"!==N[N.length-1],N=N.replace(/!/g,""),M.push(N),D&&D[N]&&(t=D[N]))),t},lL.prototype._appendLocaleToChain=function(M,N,D){var t,i=N.split("-");do{var e=i.join("-");t=this._appendItemToChain(M,e,D),i.splice(-1,1)}while(i.length&&!0===t);return t},lL.prototype._appendBlockToChain=function(M,N,D){for(var t=!0,i=0;i<N.length&&ss(t);i++){var e=N[i];Ls(e)&&(t=this._appendLocaleToChain(M,e,D))}return t},lL.prototype._getLocaleChain=function(M,N){if(""===M)return[];this._localeChainCache||(this._localeChainCache={});var D=this._localeChainCache[M];if(!D){N||(N=this.fallbackLocale),D=[];var t,i=[M];while(gs(i))i=this._appendBlockToChain(D,i,N);t=gs(N)?N:us(N)?N["default"]?N["default"]:null:N,i=Ls(t)?[t]:t,i&&this._appendBlockToChain(D,i,null),this._localeChainCache[M]=D}return D},lL.prototype._translate=function(M,N,D,t,i,e,j){for(var T,g=this._getLocaleChain(N,D),u=0;u<g.length;u++){var s=g[u];if(T=this._interpolate(s,M[s],t,i,e,j,[t]),!ns(T))return T}return null},lL.prototype._t=function(M,N,D,t){var i,e=[],j=arguments.length-4;while(j-- >0)e[j]=arguments[j+4];if(!M)return"";var T=rs.apply(void 0,e);this._escapeParameterHtml&&(T.params=ls(T.params));var g=T.locale||N,u=this._translate(D,g,this.fallbackLocale,M,t,"string",T.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[M].concat(e))}return u=this._warnDefault(g,M,u,t,e,"string"),this._postTranslation&&null!==u&&void 0!==u&&(u=this._postTranslation(u,M)),u},lL.prototype.t=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this)._t.apply(N,[M,this.locale,this._getMessages(),null].concat(D))},lL.prototype._i=function(M,N,D,t,i){var e=this._translate(D,N,this.fallbackLocale,M,t,"raw",i);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(M,N,i)}return this._warnDefault(N,M,e,t,[i],"raw")},lL.prototype.i=function(M,N,D){return M?(Ls(N)||(N=this.locale),this._i(M,N,this._getMessages(),null,D)):""},lL.prototype._tc=function(M,N,D,t,i){var e,j=[],T=arguments.length-5;while(T-- >0)j[T]=arguments[T+5];if(!M)return"";void 0===i&&(i=1);var g={count:i,n:i},u=rs.apply(void 0,j);return u.params=Object.assign(g,u.params),j=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((e=this)._t.apply(e,[M,N,D,t].concat(j)),i)},lL.prototype.fetchChoice=function(M,N){if(!M||!Ls(M))return null;var D=M.split("|");return N=this.getChoiceIndex(N,D.length),D[N]?D[N].trim():M},lL.prototype.tc=function(M,N){var D,t=[],i=arguments.length-2;while(i-- >0)t[i]=arguments[i+2];return(D=this)._tc.apply(D,[M,this.locale,this._getMessages(),null,N].concat(t))},lL.prototype._te=function(M,N,D){var t=[],i=arguments.length-3;while(i-- >0)t[i]=arguments[i+3];var e=rs.apply(void 0,t).locale||N;return this._exist(D[e],M)},lL.prototype.te=function(M,N){return this._te(M,this.locale,this._getMessages(),N)},lL.prototype.getLocaleMessage=function(M){return ys(this._vm.messages[M]||{})},lL.prototype.setLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,N)},lL.prototype.mergeLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,xs("undefined"!==typeof this._vm.messages[M]&&Object.keys(this._vm.messages[M]).length?Object.assign({},this._vm.messages[M]):{},N))},lL.prototype.getDateTimeFormat=function(M){return ys(this._vm.dateTimeFormats[M]||{})},lL.prototype.setDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,N),this._clearDateTimeFormat(M,N)},lL.prototype.mergeDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,xs(this._vm.dateTimeFormats[M]||{},N)),this._clearDateTimeFormat(M,N)},lL.prototype._clearDateTimeFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._dateTimeFormatters.hasOwnProperty(t)&&delete this._dateTimeFormatters[t]}},lL.prototype._localizeDateTime=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),u=0;u<g.length;u++){var s=g[u];if(T=t[s],j=s,!ns(T)&&!ns(T[i]))break}if(ns(T)||ns(T[i]))return null;var L,I=T[i];if(e)L=new Intl.DateTimeFormat(j,Object.assign({},I,e));else{var A=j+"__"+i;L=this._dateTimeFormatters[A],L||(L=this._dateTimeFormatters[A]=new Intl.DateTimeFormat(j,I))}return L.format(M)},lL.prototype._d=function(M,N,D,t){if(!D){var i=t?new Intl.DateTimeFormat(N,t):new Intl.DateTimeFormat(N);return i.format(M)}var e=this._localizeDateTime(M,N,this.fallbackLocale,this._getDateTimeFormats(),D,t);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(M,D,N)}return e||""},lL.prototype.d=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?(Ls(N[0])?i=N[0]:us(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key)),e=Object.keys(N[0]).reduce((function(M,D){var t;return Es(es,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&(Ls(N[0])&&(i=N[0]),Ls(N[1])&&(t=N[1])),this._d(M,t,i,e)},lL.prototype.getNumberFormat=function(M){return ys(this._vm.numberFormats[M]||{})},lL.prototype.setNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,N),this._clearNumberFormat(M,N)},lL.prototype.mergeNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,xs(this._vm.numberFormats[M]||{},N)),this._clearNumberFormat(M,N)},lL.prototype._clearNumberFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._numberFormatters.hasOwnProperty(t)&&delete this._numberFormatters[t]}},lL.prototype._getNumberFormatter=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),u=0;u<g.length;u++){var s=g[u];if(T=t[s],j=s,!ns(T)&&!ns(T[i]))break}if(ns(T)||ns(T[i]))return null;var L,I=T[i];if(e)L=new Intl.NumberFormat(j,Object.assign({},I,e));else{var A=j+"__"+i;L=this._numberFormatters[A],L||(L=this._numberFormatters[A]=new Intl.NumberFormat(j,I))}return L},lL.prototype._n=function(M,N,D,t){if(!lL.availabilities.numberFormat)return"";if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.format(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.format(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(M,Object.assign({},{key:D,locale:N},t))}return j||""},lL.prototype.n=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?Ls(N[0])?i=N[0]:us(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key),e=Object.keys(N[0]).reduce((function(M,D){var t;return Es(is,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&(Ls(N[0])&&(i=N[0]),Ls(N[1])&&(t=N[1])),this._n(M,t,i,e)},lL.prototype._ntp=function(M,N,D,t){if(!lL.availabilities.numberFormat)return[];if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.formatToParts(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.formatToParts(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(M,N,D,t)}return j||[]},Object.defineProperties(lL.prototype,kL),Object.defineProperty(lL,"availabilities",{get:function(){if(!aL){var M="undefined"!==typeof Intl;aL={dateTimeFormat:M&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:M&&"undefined"!==typeof Intl.NumberFormat}}return aL}}),lL.install=_s,lL.version="8.28.2";var QL=lL;function dL(){var M=D("49f8"),N={};return M.keys().forEach((function(D){var t=D.match(/([A-Za-z0-9-_]+)\./i);if(t&&t.length>1){var i=t[1];N[i]=M(D)}})),N}u["a"].use(QL);var YL=function(M){return new QL({dateTimeFormats:UL,numberFormats:pL,locale:M||"en",fallbackLocale:"en",messages:dL(),silentTranslationWarn:!0})},UL={en:{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},es:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},ca:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},eu:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},gl:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},va:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}}},pL={en:{currency:{style:"currency",currency:"USD"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},es:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},ca:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},eu:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},gl:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},va:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}}};function hL(M){var N=D("49f8"),t=!1;return N.keys().forEach((function(N){var D=N.match(/([A-Za-z0-9-_]+)\./i);D&&D.length>1&&D[1]===M&&(t=!0)})),t}u["a"].config.productionTip=!1,u["a"].config.ignoredElements=[/as-\w+/],Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION&&console.info("SDK version: ".concat(Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION));var fL=window.navigator.userAgent,mL=fL.indexOf("MSIE");if(mL>0||navigator.userAgent.match(/Trident.*rv:11\./)){var vL={functional:!0,render:function(M,N){var D=N.data,t=N.children;return M("span",D,t)}},BL={functional:!0,render:function(M,N){N.data;var D=N.children;return D}};u["a"].component("transition",BL),u["a"].component("transition-group",vL)}window.onerror=function(M,N,D,t,i){ZL({err:M,source:N,info:"in line ".concat(D,":").concat(t)})},u["a"].config.errorHandler=function(M,N,D){ZL({err:M,source:N,info:D})};var bL=D("b71f");bL.keys().forEach((function(M){var N=bL(M),D=M.split("/").pop().replace(/\.\w+$/,"");u["a"].component(D,N.default||N)}));var PL=function(){function M(N){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=D.airport,e=D.building,j=D.floor,T=D.explorerMode,g=D.category,u=D.poi,s=D.poiD,L=D.route,I=D.language,A=D.printMode,z=D.lat,n=D.lon,w=D.mupiMode,r=D.avaMode;t(this,M),this.id=N,this.airport=i,this.building=e,this.floor=j,this.explorerMode=T,this.category=g,this.poi=u,this.poiD=s,this.route=L,this.language=I,this.printMode=A,this.lat=z,this.lon=n,this.mupiMode=w||r,this.avaMode=r;try{this.checkErrors(),this.render()}catch(Ts){throw this.renderError(Ts),Ts}}return g(M,[{key:"setAirport",value:function(M){this.airport=M,this.render()}},{key:"setBuilding",value:function(M){this.building=M,this.render()}},{key:"setFloor",value:function(M){this.floor=M,this.render()}},{key:"setPOI",value:function(M){this.poi=M,this.render()}},{key:"SetPoiCategory",value:function(M,N){this.floor=M,this.category=N,this.render()}},{key:"setLanguage",value:function(M){this.language=M,this.render()}},{key:"setRoute",value:function(M){this.route=M,this.render()}},{key:"checkErrors",value:function(){if(!this.id)throw Error("Id is required");if(!this.airport)throw Error("Airport is required");if(this.printMode&&!this.explorerMode)throw Error("Explorer mode are required with print mode is setted");if(!this.explorerMode&&!(this.building||this.floor||this.route||this.poi))throw Error("Building or floor or poi ID are required when mode is in Context Mode");if(this.building&&!this.floor)throw Error("Floor is required with building setted");if(this.category&&!this.building&&!this.floor)throw Error("Building and floor are required with category setted");if(this.mupiMode&&!this.poi)throw Error("Poi ID is required with mupi mode");if(this.avaMode&&!this.poi)throw Error("Poi ID is required with ava mode")}},{key:"render",value:function(){this.finalize();var M=this.language&&hL(this.language)?this.language:"en";this.instance=new u["a"]({store:Object(z["d"])(),i18n:YL(M),data:{id:this.id,airport:this.airport,building:this.building,floor:this.floor,explorerMode:this.explorerMode,category:this.category,poi:this.poi,poiD:this.poiD,route:this.route,printMode:this.printMode,language:M,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode,avaMode:this.avaMode},render:function(M){return M(ts)}}).$mount(this.id)}},{key:"finalize",value:function(){this.instance&&(this.instance.$el.innerHTML="",this.instance.$destroy())}},{key:"renderError",value:function(M){var N=document.getElementById(this.id.split("#")[1]),D=document.createElement("div");D.style.width="100%",D.style.height="100%",D.style.display="flex",D.style.justifyContent="center",D.style.alignItems="center",D.style.backgroundColor="#9c9b9b",D.style.color="#fff",D.innerText=M.toString(),N.append(D)}}]),M}();function ZL(M){var N=M.err,D=M.source,t=M.info;console.error("Error: ",N),console.error("Source: ",D),console.error("Extra info: ",t)}window.AMap=PL},"576c":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
|
|
106
106
|
//! moment.js locale configuration
|
|
107
107
|
var N=M.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(M){var N=M%10,D=1===~~(M%100/10)?"th":1===N?"st":2===N?"nd":3===N?"rd":"th";return M+D},week:{dow:1,doy:4}});return N}))},"57b6":function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTQiIGhlaWdodD0iMTU0IiB2aWV3Qm94PSIwIDAgMTU0IDE1NCIgZmlsbD0iIzFBMjczMiI+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01NCA5My45YzMuMyAwIDYgMi43IDYgNlYxMjhoMzRWOTkuOWMwLTMuMyAyLjctNiA2LTZoMjh2LTM0aC0yOGMtMy4zIDAtNi0yLjctNi02VjI2SDYwdjI4YzAgMy4zLTIuNyA2LTYgNkgyNnYzNGwyOC0uMXpNOTQgMTI4djMtM3ptMCA2SDYwYy0zLjMgMC02LTIuNy02LTZWOTkuOUgyNS45Yy0zLjMgMC02LTIuNy02LTZ2LTM0YzAtMy4zIDIuNy02IDYtNmgyOHYtMjhjMC0zLjMgMi43LTYgNi02SDk0YzMuMyAwIDYgMi43IDYgNnYyOGgyOGMzLjMgMCA2IDIuNyA2IDZ2MzRjMCAzLjMtMi43IDYtNiA2aC0yOFYxMjhjMCAzLjMtMi43IDYtNiA2eiIvPgo8L3N2Zz4K"},"57e7":function(M,N,D){"use strict";var t=D("5ca1"),i=D("c366")(!1),e=[].indexOf,j=!!e&&1/[1].indexOf(1,-0)<0;t(t.P+t.F*(j||!D("2f21")(e)),"Array",{indexOf:function(M){return j?e.apply(this,arguments)||0:i(this,M,arguments[1])}})},"584a":function(M,N){var D=M.exports={version:"2.6.12"};"number"==typeof __e&&(__e=D)},"585f":function(M,N,D){"use strict";D("5aad")},"58b2":function(M,N,D){var t=D("5ca1");t(t.S+t.F*!D("9e1e"),"Object",{defineProperties:D("1495")})},5938:function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIiBmaWxsPSIjMUEyNzMyIiA+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjA3OCAyMC44NDRsLjMxMi4zMTJhLjM2NC4zNjQgMCAwIDEgMCAuNTA2bC00LjEzIDQuMTNjLS4xNzMuMTczLS40MzkuMTkyLS42MDUuMDU4TDMgMjQuMTk1YS4zNjUuMzY1IDAgMCAxIDAtLjUwN2wuMzEyLS4zMTFhLjM2NC4zNjQgMCAwIDEgLjUwNiAwbDEuMTEgMS4xMSAzLjY0My0zLjY0M2EuMzY1LjM2NSAwIDAgMSAuNTA3IDB6bTE3LjMxOCAyLjYxYS4zNS4zNSAwIDAgMSAuMzUuMzUxdi40NDhjMCAuMTk1LS4xNTUuMzUtLjM3LjM1SDEyLjI5M2EuMzUuMzUgMCAwIDEtLjM1LS4zNXYtLjQ0OGEuMzUuMzUgMCAwIDEgLjM1LS4zNWgxNC4xMDR6TTkuMDc4IDEyLjQxbC4zMTIuMzEyYS4zNjUuMzY1IDAgMCAxIDAgLjUwNmwtNC4xMyA0LjEzYS40Ny40NyAwIDAgMS0uNjgyIDBMMi45OCAxNS43NmEuMzY1LjM2NSAwIDAgMSAwLS41MDdsLjMxMi0uMzEyYS4zNjUuMzY1IDAgMCAxIC41MDcgMGwxLjExIDEuMTEgMy42NjItMy42NDJhLjM2NS4zNjUgMCAwIDEgLjUwNyAwem0xNy4zMTggMi42MWEuMzUuMzUgMCAwIDEgLjM1LjM1MXYuNDQ4YzAgLjE5NS0uMTU1LjM1LS4zNy4zNUgxMi4yOTNhLjM1LjM1IDAgMCAxLS4zNS0uMzV2LS40NDhhLjM1LjM1IDAgMCAxIC4zNS0uMzVoMTQuMTA0ek05LjA3OCAzLjk3NGwuMzEyLjMxMmEuMzY1LjM2NSAwIDAgMSAwIC41MDZsLTQuMTMgNC4xM2EuNDk0LjQ5NCAwIDAgMS0uNzAyIDBMMi45NjEgNy4zMjVhLjM2NS4zNjUgMCAwIDEgMC0uNTA3bC4zMzEtLjMxMmEuMzY1LjM2NSAwIDAgMSAuNTA3IDBsMS4xMSAxLjExIDMuNjYyLTMuNjQyYS4zNjUuMzY1IDAgMCAxIC41MDcgMHptMTcuMjk5IDIuNjFjLjE5NCAwIC4zNS4xNTYuMzUuMzUxdi40NDhjLjAyLjE5NS0uMTM2LjM1LS4zMy4zNUgxMi4yOTFhLjM1LjM1IDAgMCAxLS4zNS0uMzV2LS40NDhjMC0uMTk1LjE1NS0uMzUuMzUtLjM1aDE0LjA4NXoiLz4KPC9zdmc+Cg=="},"595b":function(M,N,D){!function(M,D){D(N)}(0,(function(M){"use strict";function N(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.bbox,i=D.id;if(void 0===M)throw new Error("geometry is required");if(N&&N.constructor!==Object)throw new Error("properties must be an Object");t&&C(t),i&&S(i);var e={type:"Feature"};return i&&(e.id=i),t&&(e.bbox=t),e.properties=N||{},e.geometry=M,e}function D(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i,j=D.bbox;if(!M)throw new Error("type is required");if(!N)throw new Error("coordinates is required");if(!Array.isArray(N))throw new Error("coordinates must be an Array");switch(j&&C(j),M){case"Point":i=t(N).geometry;break;case"LineString":i=T(N).geometry;break;case"Polygon":i=e(N).geometry;break;case"MultiPoint":i=L(N).geometry;break;case"MultiLineString":i=s(N).geometry;break;case"MultiPolygon":i=I(N).geometry;break;default:throw new Error(M+" is invalid")}return j&&(i.bbox=j),i}function t(M,D,t){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");if(M.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!O(M[0])||!O(M[1]))throw new Error("coordinates must contain numbers");return N({type:"Point",coordinates:M},D,t)}function i(M,N,D){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");return u(M.map((function(M){return t(M,N)})),D)}function e(M,D,t){if(!M)throw new Error("coordinates is required");for(var i=0;i<M.length;i++){var e=M[i];if(e.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var j=0;j<e[e.length-1].length;j++){if(0===i&&0===j&&!O(e[0][0])||!O(e[0][1]))throw new Error("coordinates must contain numbers");if(e[e.length-1][j]!==e[0][j])throw new Error("First and last Position are not equivalent.")}}return N({type:"Polygon",coordinates:M},D,t)}function j(M,N,D){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");return u(M.map((function(M){return e(M,N)})),D)}function T(M,D,t){if(!M)throw new Error("coordinates is required");if(M.length<2)throw new Error("coordinates must be an array of two or more positions");if(!O(M[0][1])||!O(M[0][1]))throw new Error("coordinates must contain numbers");return N({type:"LineString",coordinates:M},D,t)}function g(M,N,D){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");return u(M.map((function(M){return T(M,N)})),D)}function u(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox,t=N.id;if(!M)throw new Error("No features passed");if(!Array.isArray(M))throw new Error("features must be an Array");D&&C(D),t&&S(t);var i={type:"FeatureCollection"};return t&&(i.id=t),D&&(i.bbox=D),i.features=M,i}function s(M,D,t){if(!M)throw new Error("coordinates is required");return N({type:"MultiLineString",coordinates:M},D,t)}function L(M,D,t){if(!M)throw new Error("coordinates is required");return N({type:"MultiPoint",coordinates:M},D,t)}function I(M,D,t){if(!M)throw new Error("coordinates is required");return N({type:"MultiPolygon",coordinates:M},D,t)}function A(M,D,t){if(!M)throw new Error("geometries is required");if(!Array.isArray(M))throw new Error("geometries must be an Array");return N({type:"GeometryCollection",geometries:M},D,t)}function z(M,N){if(void 0===M||null===M||isNaN(M))throw new Error("num is required");if(N&&!(N>=0))throw new Error("precision must be a positive number");var D=Math.pow(10,N||0);return Math.round(M*D)/D}function n(M,N){if(void 0===M||null===M)throw new Error("radians is required");if(N&&"string"!=typeof N)throw new Error("units must be a string");var D=fe[N||"kilometers"];if(!D)throw new Error(N+" units is invalid");return M*D}function w(M,N){if(void 0===M||null===M)throw new Error("distance is required");if(N&&"string"!=typeof N)throw new Error("units must be a string");var D=fe[N||"kilometers"];if(!D)throw new Error(N+" units is invalid");return M/D}function r(M,N){return c(w(M,N))}function y(M){if(null===M||void 0===M)throw new Error("bearing is required");var N=M%360;return N<0&&(N+=360),N}function c(M){if(null===M||void 0===M)throw new Error("radians is required");return M%(2*Math.PI)*180/Math.PI}function a(M){if(null===M||void 0===M)throw new Error("degrees is required");return M%360*Math.PI/180}function E(M,N,D){if(null===M||void 0===M)throw new Error("length is required");if(!(M>=0))throw new Error("length must be a positive number");return n(w(M,N),D||"kilometers")}function o(M,N,D){if(null===M||void 0===M)throw new Error("area is required");if(!(M>=0))throw new Error("area must be a positive number");var t=ve[N||"meters"];if(!t)throw new Error("invalid original units");var i=ve[D||"kilometers"];if(!i)throw new Error("invalid final units");return M/t*i}function O(M){return!isNaN(M)&&null!==M&&!Array.isArray(M)}function x(M){return!!M&&M.constructor===Object}function C(M){if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be an Array");if(4!==M.length&&6!==M.length)throw new Error("bbox must be an Array of 4 or 6 numbers");M.forEach((function(M){if(!O(M))throw new Error("bbox must only contain numbers")}))}function S(M){if(!M)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof M))throw new Error("id must be a number or a string")}function l(M,N,D){if(null!==M)for(var t,i,e,j,T,g,u,s,L=0,I=0,A=M.type,z="FeatureCollection"===A,n="Feature"===A,w=z?M.features.length:1,r=0;r<w;r++){T=(s=!!(u=z?M.features[r].geometry:n?M.geometry:M)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var y=0;y<T;y++){var c=0,a=0;if(null!==(j=s?u.geometries[y]:u)){g=j.coordinates;var E=j.type;switch(L=!D||"Polygon"!==E&&"MultiPolygon"!==E?0:1,E){case null:break;case"Point":N(g,I,r,c,a),I++,c++;break;case"LineString":case"MultiPoint":for(t=0;t<g.length;t++)N(g[t],I,r,c,a),I++,"MultiPoint"===E&&c++;"LineString"===E&&c++;break;case"Polygon":case"MultiLineString":for(t=0;t<g.length;t++){for(i=0;i<g[t].length-L;i++)N(g[t][i],I,r,c,a),I++;"MultiLineString"===E&&c++,"Polygon"===E&&a++}"Polygon"===E&&c++;break;case"MultiPolygon":for(t=0;t<g.length;t++){for("MultiPolygon"===E&&(a=0),i=0;i<g[t].length;i++){for(e=0;e<g[t][i].length-L;e++)N(g[t][i][e],I,r,c,a),I++;a++}c++}break;case"GeometryCollection":for(t=0;t<j.geometries.length;t++)l(j.geometries[t],N,D);break;default:throw new Error("Unknown Geometry Type")}}}}}function k(M,N,D,t){var i=D;return l(M,(function(M,t,e,j,T){i=0===t&&void 0===D?M:N(i,M,t,e,j,T)}),t),i}function Q(M,N){var D;switch(M.type){case"FeatureCollection":for(D=0;D<M.features.length;D++)N(M.features[D].properties,D);break;case"Feature":N(M.properties,0)}}function d(M,N,D){var t=D;return Q(M,(function(M,i){t=0===i&&void 0===D?M:N(t,M,i)})),t}function Y(M,N){if("Feature"===M.type)N(M,0);else if("FeatureCollection"===M.type)for(var D=0;D<M.features.length;D++)N(M.features[D],D)}function U(M,N,D){var t=D;return Y(M,(function(M,i){t=0===i&&void 0===D?M:N(t,M,i)})),t}function p(M){var N=[];return l(M,(function(M){N.push(M)})),N}function h(M,N){var D,t,i,e,j,T,g,u,s,L,I=0,A="FeatureCollection"===M.type,z="Feature"===M.type,n=A?M.features.length:1;for(D=0;D<n;D++){for(T=A?M.features[D].geometry:z?M.geometry:M,u=A?M.features[D].properties:z?M.properties:{},s=A?M.features[D].bbox:z?M.bbox:void 0,L=A?M.features[D].id:z?M.id:void 0,j=(g=!!T&&"GeometryCollection"===T.type)?T.geometries.length:1,i=0;i<j;i++)if(null!==(e=g?T.geometries[i]:T))switch(e.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":N(e,I,u,s,L);break;case"GeometryCollection":for(t=0;t<e.geometries.length;t++)N(e.geometries[t],I,u,s,L);break;default:throw new Error("Unknown Geometry Type")}else N(null,I,u,s,L);I++}}function f(M,N,D){var t=D;return h(M,(function(M,i,e,j,T){t=0===i&&void 0===D?M:N(t,M,i,e,j,T)})),t}function m(M,D){h(M,(function(M,t,i,e,j){var T,g=null===M?null:M.type;switch(g){case null:case"Point":case"LineString":case"Polygon":return void D(N(M,i,{bbox:e,id:j}),t,0)}switch(g){case"MultiPoint":T="Point";break;case"MultiLineString":T="LineString";break;case"MultiPolygon":T="Polygon"}M.coordinates.forEach((function(M,e){D(N({type:T,coordinates:M},i),t,e)}))}))}function v(M,N,D){var t=D;return m(M,(function(M,i,e){t=0===i&&0===e&&void 0===D?M:N(t,M,i,e)})),t}function B(M,N){m(M,(function(M,D,t){var i=0;if(M.geometry){var e=M.geometry.type;"Point"!==e&&"MultiPoint"!==e&&k(M,(function(e,j,g,u,s,L){var I=T([e,j],M.properties);return N(I,D,t,L,i),i++,j}))}}))}function b(M,N,D){var t=D,i=!1;return B(M,(function(M,e,j,T,g){t=!1===i&&void 0===D?M:N(t,M,e,j,T,g),i=!0})),t}function P(M,N){if(!M)throw new Error("geojson is required");m(M,(function(M,D,t){if(null!==M.geometry){var i=M.geometry.type,e=M.geometry.coordinates;switch(i){case"LineString":N(M,D,t,0,0);break;case"Polygon":for(var j=0;j<e.length;j++)N(T(e[j],M.properties),D,t,j)}}}))}function Z(M,N,D){var t=D;return P(M,(function(M,i,e,j){t=0===i&&void 0===D?M:N(t,M,i,e,j)})),t}function G(M){var N=[1/0,1/0,-1/0,-1/0];return l(M,(function(M){N[0]>M[0]&&(N[0]=M[0]),N[1]>M[1]&&(N[1]=M[1]),N[2]<M[0]&&(N[2]=M[0]),N[3]<M[1]&&(N[3]=M[1])})),N}function R(M){if(!M)throw new Error("obj is required");var N=W(M);if(N.length>1&&O(N[0])&&O(N[1]))return N;throw new Error("Coordinate is not a valid Point")}function W(M){if(!M)throw new Error("obj is required");var N;if(M.length?N=M:M.coordinates?N=M.coordinates:M.geometry&&M.geometry.coordinates&&(N=M.geometry.coordinates),N)return X(N),N;throw new Error("No valid coordinates")}function X(M){if(M.length>1&&O(M[0])&&O(M[1]))return!0;if(Array.isArray(M[0])&&M[0].length)return X(M[0]);throw new Error("coordinates must only contain numbers")}function H(M,N,D){if(!N||!D)throw new Error("type and name required");if(!M||M.type!==N)throw new Error("Invalid input to "+D+": must be a "+N+", given "+M.type)}function _(M,N,D){if(!M)throw new Error("No feature passed");if(!D)throw new Error(".featureOf() requires a name");if(!M||"Feature"!==M.type||!M.geometry)throw new Error("Invalid input to "+D+", Feature with geometry required");if(!M.geometry||M.geometry.type!==N)throw new Error("Invalid input to "+D+": must be a "+N+", given "+M.geometry.type)}function F(M,N,D){if(!M)throw new Error("No featureCollection passed");if(!D)throw new Error(".collectionOf() requires a name");if(!M||"FeatureCollection"!==M.type)throw new Error("Invalid input to "+D+", FeatureCollection required");for(var t=0;t<M.features.length;t++){var i=M.features[t];if(!i||"Feature"!==i.type||!i.geometry)throw new Error("Invalid input to "+D+", Feature with geometry required");if(!i.geometry||i.geometry.type!==N)throw new Error("Invalid input to "+D+": must be a "+N+", given "+i.geometry.type)}}function V(M){if(!M)throw new Error("geojson is required");if(void 0!==M.geometry)return M.geometry;if(M.coordinates||M.geometries)return M;throw new Error("geojson must be a valid Feature or Geometry Object")}function J(){throw new Error("invariant.getGeomType has been deprecated in v5.0 in favor of invariant.getType")}function q(M,N){if(!M)throw new Error((N||"geojson")+" is required");if(M.geometry&&M.geometry.type)return M.geometry.type;if(M.type)return M.type;throw new Error((N||"geojson")+" is invalid")}function K(M,N,D){D=D||{};for(var t=Object.keys(Ze),i=0;i<t.length;i++){var e=t[i],j=D[e];j=void 0!==j&&null!==j?j:Ze[e],Ge[e]=j}Ge.verbose&&console.log("MarchingSquaresJS-isoContours: computing isocontour for "+N);var T=function(M){var N=[],D=0;return M.rows,M.cols,M.cells.forEach((function(t,i){t.forEach((function(t,e){if(void 0!==t&&!function(M){return 5===M.cval||10===M.cval}(t)&&!MM(t)){var j=function(M,N,D){var t,i,e,j=M.length,T=[],g=[0,0,1,1,0,0,0,0,-1,0,1,1,-1,0,-1,0],u=[0,-1,0,0,1,1,1,1,0,-1,0,0,0,-1,0,0],s=["none","bottom","right","right","top","top","top","top","left","bottom","right","right","left","bottom","left","none"],L=(M[N][D],M[N][D]),I=L.cval,A=DM(L,e=["none","left","bottom","left","right","none","bottom","left","top","top","none","top","right","right","bottom","none"][I]);T.push([D+A[0],N+A[1]]),A=DM(L,e=s[I]),T.push([D+A[0],N+A[1]]),NM(L);for(var z=D+g[I],n=N+u[I],w=I;z>=0&&n>=0&&n<j&&(z!=D||n!=N)&&void 0!==(L=M[n][z]);){if(0===(I=L.cval)||15===I)return{path:T,info:"mergeable"};e=s[I],t=g[I],i=u[I],5!==I&&10!==I||(5===I?L.flipped?-1===u[w]?(e="left",t=-1,i=0):(e="right",t=1,i=0):-1===g[w]&&(e="bottom",t=0,i=-1):10===I&&(L.flipped?-1===g[w]?(e="top",t=0,i=1):(e="bottom",t=0,i=-1):1===u[w]&&(e="left",t=-1,i=0))),A=DM(L,e),T.push([z+A[0],n+A[1]]),NM(L),z+=t,n+=i,w=I}return{path:T,info:"closed"}}(M.cells,i,e),T=!1;if("mergeable"===j.info)for(var g=j.path[j.path.length-1][0],u=j.path[j.path.length-1][1],s=D-1;s>=0;s--)if(Math.abs(N[s][0][0]-g)<=1e-7&&Math.abs(N[s][0][1]-u)<=1e-7){for(var L=j.path.length-2;L>=0;--L)N[s].unshift(j.path[L]);T=!0;break}T||(N[D++]=j.path)}}))})),N}(function(M,N){for(var D=M.length-1,t=M[0].length-1,i={rows:D,cols:t,cells:[]},e=0;e<D;++e){i.cells[e]=[];for(var j=0;j<t;++j){var T=0,g=M[e+1][j],u=M[e+1][j+1],s=M[e][j+1],L=M[e][j];if(!(isNaN(g)||isNaN(u)||isNaN(s)||isNaN(L))){T|=g>=N?8:0,T|=u>=N?4:0,T|=s>=N?2:0;var I,A,z,n,w=!1;if(5===(T|=L>=N?1:0)||10===T){var r=(g+u+s+L)/4;5===T&&r<N?(T=10,w=!0):10===T&&r<N&&(T=5,w=!0)}if(0!==T&&15!==T)I=A=z=n=.5,1===T?(z=1-$(N,g,L),A=1-$(N,s,L)):2===T?(A=$(N,L,s),n=1-$(N,u,s)):3===T?(z=1-$(N,g,L),n=1-$(N,u,s)):4===T?(I=$(N,g,u),n=$(N,s,u)):5===T?(I=$(N,g,u),n=$(N,s,u),A=1-$(N,s,L),z=1-$(N,g,L)):6===T?(A=$(N,L,s),I=$(N,g,u)):7===T?(z=1-$(N,g,L),I=$(N,g,u)):8===T?(z=$(N,L,g),I=1-$(N,u,g)):9===T?(A=1-$(N,s,L),I=1-$(N,u,g)):10===T?(I=1-$(N,u,g),n=1-$(N,u,s),A=$(N,L,s),z=$(N,L,g)):11===T?(I=1-$(N,u,g),n=1-$(N,u,s)):12===T?(z=$(N,L,g),n=$(N,s,u)):13===T?(A=1-$(N,s,L),n=$(N,s,u)):14===T?(z=$(N,L,g),A=$(N,L,s)):console.log("MarchingSquaresJS-isoContours: Illegal cval detected: "+T),i.cells[e][j]={cval:T,flipped:w,top:I,right:n,bottom:A,left:z}}}}return i}(M,N));return"function"==typeof Ge.successCallback&&Ge.successCallback(T),T}function $(M,N,D){return(M-N)/(D-N)}function MM(M){return 0===M.cval||15===M.cval}function NM(M){MM(M)||5===M.cval||10===M.cval||(M.cval=15)}function DM(M,N){return"top"===N?[M.top,1]:"bottom"===N?[M.bottom,0]:"right"===N?[1,M.right]:"left"===N?[0,M.left]:void 0}function tM(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.zProperty||"elevation",t=N.flip,i=N.flags;F(M,"Point","input must contain Points");for(var e=function(M,N){var D={};return Y(M,(function(M){var N=W(M)[1];D[N]||(D[N]=[]),D[N].push(M)})),Object.keys(D).map((function(M){var N=D[M],t=N.sort((function(M,N){return W(M)[0]-W(N)[0]}));return t})).sort((function(M,D){return N?W(M[0])[1]-W(D[0])[1]:W(D[0])[1]-W(M[0])[1]}))}(M,t),j=[],T=0;T<e.length;T++){for(var g=e[T],u=[],s=0;s<g.length;s++){var L=g[s];L.properties[D]?u.push(L.properties[D]):u.push(0),!0===i&&(L.properties.matrixPosition=[T,s])}j.push(u)}return j}function iM(M,N,D,t,i){for(D=D||0,t=t||M.length-1,i=i||function(M,N){return M<N?-1:M>N?1:0};t>D;){if(t-D>600){var e=t-D+1,j=N-D+1,T=Math.log(e),g=.5*Math.exp(2*T/3),u=.5*Math.sqrt(T*g*(e-g)/e)*(j-e/2<0?-1:1);iM(M,N,Math.max(D,Math.floor(N-j*g/e+u)),Math.min(t,Math.floor(N+(e-j)*g/e+u)),i)}var s=M[N],L=D,I=t;for(eM(M,D,N),i(M[t],s)>0&&eM(M,D,t);L<I;){for(eM(M,L,I),L++,I--;i(M[L],s)<0;)L++;for(;i(M[I],s)>0;)I--}0===i(M[D],s)?eM(M,D,I):eM(M,++I,t),I<=N&&(D=I+1),N<=I&&(t=I-1)}}function eM(M,N,D){var t=M[N];M[N]=M[D],M[D]=t}function jM(M,N){if(!(this instanceof jM))return new jM(M,N);this._maxEntries=Math.max(4,M||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),N&&this._initFormat(N),this.clear()}function TM(M,N){gM(M,0,M.children.length,N,M)}function gM(M,N,D,t,i){i||(i=wM(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var e,j=N;j<D;j++)e=M.children[j],uM(i,M.leaf?t(e):e);return i}function uM(M,N){return M.minX=Math.min(M.minX,N.minX),M.minY=Math.min(M.minY,N.minY),M.maxX=Math.max(M.maxX,N.maxX),M.maxY=Math.max(M.maxY,N.maxY),M}function sM(M,N){return M.minX-N.minX}function LM(M,N){return M.minY-N.minY}function IM(M){return(M.maxX-M.minX)*(M.maxY-M.minY)}function AM(M){return M.maxX-M.minX+(M.maxY-M.minY)}function zM(M,N){return M.minX<=N.minX&&M.minY<=N.minY&&N.maxX<=M.maxX&&N.maxY<=M.maxY}function nM(M,N){return N.minX<=M.maxX&&N.minY<=M.maxY&&N.maxX>=M.minX&&N.maxY>=M.minY}function wM(M){return{children:M,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function rM(M,N,D,t,i){for(var e,j=[N,D];j.length;)(D=j.pop())-(N=j.pop())<=t||(e=N+Math.ceil((D-N)/t/2)*t,Re(M,e,N,D,i),j.push(N,e,e,D))}function yM(M,N){return N={exports:{}},M(N,N.exports),N.exports}function cM(M,N){if(!(this instanceof cM))return new cM(M,N);if(this.data=M||[],this.length=this.data.length,this.compare=N||function(M,N){return M<N?-1:M>N?1:0},this.length>0)for(var D=(this.length>>1)-1;D>=0;D--)this._down(D)}function aM(M,N,D){N=Math.max(0,void 0===N?2:N),D=D||0;for(var t,i=function(M){for(var N=M[0],D=M[0],t=M[0],i=M[0],e=0;e<M.length;e++){var j=M[e];j[0]<N[0]&&(N=j),j[0]>t[0]&&(t=j),j[1]<D[1]&&(D=j),j[1]>i[1]&&(i=j)}var T=[N,D,t,i],g=T.slice();for(e=0;e<M.length;e++)Dj(M[e],T)||g.push(M[e]);var u=Ke(g),s=[];for(e=0;e<u.length;e++)s.push(g[u[e]]);return s}(M),e=We(16,["[0]","[1]","[0]","[1]"]).load(M),j=[],T=0;T<i.length;T++){var g=i[T];e.remove(g),t=CM(g,t),j.push(t)}var u=We(16);for(T=0;T<j.length;T++)u.insert(xM(j[T]));for(var s=N*N,L=D*D;j.length;){var I=j.shift(),A=I.p,z=I.next.p,n=SM(A,z);if(!(n<L)){var w=n/s;(g=function(M,N,D,t,i,e,j){for(var T=new Mj(null,EM),g=M.data;g;){for(var u=0;u<g.children.length;u++){var s=g.children[u],L=g.leaf?lM(s,D,t):function(M,N,D){if(oM(M,D)||oM(N,D))return 0;var t=kM(M[0],M[1],N[0],N[1],D.minX,D.minY,D.maxX,D.minY);if(0===t)return 0;var i=kM(M[0],M[1],N[0],N[1],D.minX,D.minY,D.minX,D.maxY);if(0===i)return 0;var e=kM(M[0],M[1],N[0],N[1],D.maxX,D.minY,D.maxX,D.maxY);if(0===e)return 0;var j=kM(M[0],M[1],N[0],N[1],D.minX,D.maxY,D.maxX,D.maxY);return 0===j?0:Math.min(t,i,e,j)}(D,t,s);L>e||T.push({node:s,dist:L})}for(;T.length&&!T.peek().node.children;){var I=T.pop(),A=I.node,z=lM(A,N,D),n=lM(A,t,i);if(I.dist<z&&I.dist<n&&OM(D,A,j)&&OM(t,A,j))return A}(g=T.pop())&&(g=g.node)}return null}(e,I.prev.p,A,z,I.next.next.p,w,u))&&Math.min(SM(g,A),SM(g,z))<=w&&(j.push(I),j.push(CM(g,I)),e.remove(g),u.remove(I),u.insert(xM(I)),u.insert(xM(I.next)))}}I=t;var r=[];do{r.push(I.p),I=I.next}while(I!==t);return r.push(I.p),r}function EM(M,N){return M.dist-N.dist}function oM(M,N){return M[0]>=N.minX&&M[0]<=N.maxX&&M[1]>=N.minY&&M[1]<=N.maxY}function OM(M,N,D){for(var t=Math.min(M[0],N[0]),i=Math.min(M[1],N[1]),e=Math.max(M[0],N[0]),j=Math.max(M[1],N[1]),T=D.search({minX:t,minY:i,maxX:e,maxY:j}),g=0;g<T.length;g++)if(function(M,N,D,t){return M!==t&&N!==D&&tj(M,N,D)>0!=tj(M,N,t)>0&&tj(D,t,M)>0!=tj(D,t,N)>0}(T[g].p,T[g].next.p,M,N))return!1;return!0}function xM(M){var N=M.p,D=M.next.p;return M.minX=Math.min(N[0],D[0]),M.minY=Math.min(N[1],D[1]),M.maxX=Math.max(N[0],D[0]),M.maxY=Math.max(N[1],D[1]),M}function CM(M,N){var D={p:M,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return N?(D.next=N.next,D.prev=N,N.next.prev=D,N.next=D):(D.prev=D,D.next=D),D}function SM(M,N){var D=M[0]-N[0],t=M[1]-N[1];return D*D+t*t}function lM(M,N,D){var t=N[0],i=N[1],e=D[0]-t,j=D[1]-i;if(0!==e||0!==j){var T=((M[0]-t)*e+(M[1]-i)*j)/(e*e+j*j);T>1?(t=D[0],i=D[1]):T>0&&(t+=e*T,i+=j*T)}return e=M[0]-t,j=M[1]-i,e*e+j*j}function kM(M,N,D,t,i,e,j,T){var g,u,s,L,I=D-M,A=t-N,z=j-i,n=T-e,w=M-i,r=N-e,y=I*I+A*A,c=I*z+A*n,a=z*z+n*n,E=I*w+A*r,o=z*w+n*r,O=y*a-c*c,x=O,C=O;0===O?(u=0,x=1,L=o,C=a):(L=y*o-c*E,(u=c*o-a*E)<0?(u=0,L=o,C=a):u>x&&(u=x,L=o+c,C=a)),L<0?(L=0,-E<0?u=0:-E>y?u=x:(u=-E,x=y)):L>C&&(L=C,-E+c<0?u=0:-E+c>y?u=x:(u=-E+c,x=y)),g=0===u?0:u/x;var S=(1-(s=0===L?0:L/C))*i+s*j-((1-g)*M+g*D),l=(1-s)*e+s*T-((1-g)*N+g*t);return S*S+l*l}function QM(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.concavity||1/0,t=[];if(l(M,(function(M){t.push([M[0],M[1]])})),!t.length)return null;var i=ij(t,D);return i.length>3?e([i]):null}function dM(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.ignoreBoundary;if(!M)throw new Error("point is required");if(!N)throw new Error("polygon is required");var i=R(M),e=W(N),j=N.geometry?N.geometry.type:N.type,T=N.bbox;if(T&&!1===function(M,N){return N[0]<=M[0]&&N[1]<=M[1]&&N[2]>=M[0]&&N[3]>=M[1]}(i,T))return!1;"Polygon"===j&&(e=[e]);for(var g=0,u=!1;g<e.length&&!u;g++)if(YM(i,e[g][0],t)){for(var s=!1,L=1;L<e[g].length&&!s;)YM(i,e[g][L],!t)&&(s=!0),L++;s||(u=!0)}return u}function YM(M,N,D){var t=!1;N[0][0]===N[N.length-1][0]&&N[0][1]===N[N.length-1][1]&&(N=N.slice(0,N.length-1));for(var i=0,e=N.length-1;i<N.length;e=i++){var j=N[i][0],T=N[i][1],g=N[e][0],u=N[e][1];if(M[1]*(j-g)+T*(g-M[0])+u*(M[0]-j)==0&&(j-M[0])*(g-M[0])<=0&&(T-M[1])*(u-M[1])<=0)return!D;T>M[1]!=u>M[1]&&M[0]<(g-j)*(M[1]-T)/(u-T)+j&&(t=!t)}return t}function UM(M,N){var D=[];return h(N,(function(N){Y(M,(function(M){dM(M,N)&&D.push(M)}))})),u(D)}function pM(M,N){if("FeatureCollection"!==M.type)throw new Error("points must be a FeatureCollection");var D=!1;return u(function(M){if(M.length<3)return[];M.sort(fM);for(var N,D,t,i,e,j,T=M.length-1,g=M[T].x,u=M[0].x,s=M[T].y,L=s;T--;)M[T].y<s&&(s=M[T].y),M[T].y>L&&(L=M[T].y);var I,A=u-g,z=L-s,n=A>z?A:z,w=.5*(u+g),r=.5*(L+s),y=[new hM({x:w-20*n,y:r-n,__sentinel:!0},{x:w,y:r+20*n,__sentinel:!0},{x:w+20*n,y:r-n,__sentinel:!0})],c=[],a=[];for(T=M.length;T--;){for(a.length=0,I=y.length;I--;)(A=M[T].x-y[I].x)>0&&A*A>y[I].r?(c.push(y[I]),y.splice(I,1)):(z=M[T].y-y[I].y,A*A+z*z>y[I].r||(a.push(y[I].a,y[I].b,y[I].b,y[I].c,y[I].c,y[I].a),y.splice(I,1)));for(mM(a),I=a.length;I;)D=a[--I],N=a[--I],t=M[T],i=D.x-N.x,e=D.y-N.y,j=2*(i*(t.y-D.y)-e*(t.x-D.x)),Math.abs(j)>1e-12&&y.push(new hM(N,D,t))}for(Array.prototype.push.apply(c,y),T=c.length;T--;)(c[T].a.__sentinel||c[T].b.__sentinel||c[T].c.__sentinel)&&c.splice(T,1);return c}(M.features.map((function(M){var t={x:M.geometry.coordinates[0],y:M.geometry.coordinates[1]};return N?t.z=M.properties[N]:3===M.geometry.coordinates.length&&(D=!0,t.z=M.geometry.coordinates[2]),t}))).map((function(M){var N=[M.a.x,M.a.y],t=[M.b.x,M.b.y],i=[M.c.x,M.c.y],j={};return D?(N.push(M.a.z),t.push(M.b.z),i.push(M.c.z)):j={a:M.a.z,b:M.b.z,c:M.c.z},e([[N,t,i,N]],j)})))}function hM(M,N,D){this.a=M,this.b=N,this.c=D;var t,i,e=N.x-M.x,j=N.y-M.y,T=D.x-M.x,g=D.y-M.y,u=e*(M.x+N.x)+j*(M.y+N.y),s=T*(M.x+D.x)+g*(M.y+D.y),L=2*(e*(D.y-N.y)-j*(D.x-N.x));this.x=(g*u-j*s)/L,this.y=(e*s-T*u)/L,t=this.x-M.x,i=this.y-M.y,this.r=t*t+i*i}function fM(M,N){return N.x-M.x}function mM(M){var N,D,t,i,e,j=M.length;M:for(;j;)for(D=M[--j],N=M[--j],t=j;t;)if(e=M[--t],i=M[--t],N===i&&D===e||N===e&&D===i){M.splice(j,2),M.splice(t,2),j-=2;continue M}}function vM(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units,i=R(M),e=R(N),j=a(e[1]-i[1]),T=a(e[0]-i[0]),g=a(i[1]),u=a(e[1]),s=Math.pow(Math.sin(j/2),2)+Math.pow(Math.sin(T/2),2)*Math.cos(g)*Math.cos(u);return n(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)),t)}function BM(M){if(!M)throw new Error("geojson is required");switch(M.type){case"Feature":return bM(M);case"FeatureCollection":return function(M){var N={type:"FeatureCollection"};return Object.keys(M).forEach((function(D){switch(D){case"type":case"features":return;default:N[D]=M[D]}})),N.features=M.features.map((function(M){return bM(M)})),N}(M);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return ZM(M);default:throw new Error("unknown GeoJSON type")}}function bM(M){var N={type:"Feature"};return Object.keys(M).forEach((function(D){switch(D){case"type":case"properties":case"geometry":return;default:N[D]=M[D]}})),N.properties=PM(M.properties),N.geometry=ZM(M.geometry),N}function PM(M){var N={};return M?(Object.keys(M).forEach((function(D){var t=M[D];"object"==typeof t?null===t?N[D]=null:t.length?N[D]=t.map((function(M){return M})):N[D]=PM(t):N[D]=t})),N):N}function ZM(M){var N={type:M.type};return M.bbox&&(N.bbox=M.bbox),"GeometryCollection"===M.type?(N.geometries=M.geometries.map((function(M){return ZM(M)})),N):(N.coordinates=GM(M.coordinates),N)}function GM(M){return"object"!=typeof M[0]?M.slice():M.map((function(M){return GM(M)}))}function RM(M,N){function D(M,N){N.length&&N.pop();for(var D=u[M<0?~M:M],t=0,i=D.length;t<i;++t)N.push(g(D[t],t));M<0&&gj(N,i)}function t(M){return g(M)}function i(M){for(var N=[],t=0,i=M.length;t<i;++t)D(M[t],N);return N.length<2&&N.push(N[0]),N}function e(M){for(var N=i(M);N.length<4;)N.push(N[0]);return N}function j(M){return M.map(e)}function T(M){var N,D=M.type;switch(D){case"GeometryCollection":return{type:D,geometries:M.geometries.map(T)};case"Point":N=t(M.coordinates);break;case"MultiPoint":N=M.coordinates.map(t);break;case"LineString":N=i(M.arcs);break;case"MultiLineString":N=M.arcs.map(i);break;case"Polygon":N=j(M.arcs);break;case"MultiPolygon":N=M.arcs.map(j);break;default:return null}return{type:D,coordinates:N}}var g=Tj(M.transform),u=M.arcs;return T(N)}function WM(M,N){function D(M){switch(M.type){case"GeometryCollection":M.geometries.forEach(D);break;case"Polygon":t(M.arcs);break;case"MultiPolygon":M.arcs.forEach(t)}}function t(M){M.forEach((function(N){N.forEach((function(N){(e[N=N<0?~N:N]||(e[N]=[])).push(M)}))})),j.push(M)}function i(N){return function(M){for(var N,D=-1,t=M.length,i=M[t-1],e=0;++D<t;)N=i,i=M[D],e+=N[0]*i[1]-N[1]*i[0];return Math.abs(e)}(RM(M,{type:"Polygon",arcs:[N]}).coordinates[0])}var e={},j=[],T=[];return N.forEach(D),j.forEach((function(M){if(!M._){var N=[],D=[M];for(M._=1,T.push(N);M=D.pop();)N.push(M),M.forEach((function(M){M.forEach((function(M){e[M<0?~M:M].forEach((function(M){M._||(M._=1,D.push(M))}))}))}))}})),j.forEach((function(M){delete M._})),{type:"MultiPolygon",arcs:T.map((function(N){var D,t=[];if(N.forEach((function(M){M.forEach((function(M){M.forEach((function(M){e[M<0?~M:M].length<2&&t.push(M)}))}))})),t=uj(M,t),(D=t.length)>1)for(var j,T,g=1,u=i(t[0]);g<D;++g)(j=i(t[g]))>u&&(T=t[0],t[0]=t[g],t[g]=T,u=j);return t}))}}function XM(M,N,D){for(var t,i=N+(D---N>>1);N<i;++N,--D)t=M[N],M[N]=M[D],M[D]=t}function HM(M){return null==M?{type:null}:("FeatureCollection"===M.type?function(M){var N={type:"GeometryCollection",geometries:M.features.map(_M)};return null!=M.bbox&&(N.bbox=M.bbox),N}:"Feature"===M.type?_M:FM)(M)}function _M(M){var N,D=FM(M.geometry);for(N in null!=M.id&&(D.id=M.id),null!=M.bbox&&(D.bbox=M.bbox),M.properties){D.properties=M.properties;break}return D}function FM(M){if(null==M)return{type:null};var N="GeometryCollection"===M.type?{type:"GeometryCollection",geometries:M.geometries.map(FM)}:"Point"===M.type||"MultiPoint"===M.type?{type:M.type,coordinates:M.coordinates}:{type:M.type,arcs:M.coordinates};return null!=M.bbox&&(N.bbox=M.bbox),N}function VM(M){var N,D=M[0],t=M[1];return t<D&&(N=D,D=t,t=N),D+31*t}function JM(M,N){var D,t=M[0],i=M[1],e=N[0],j=N[1];return i<t&&(D=t,t=i,i=D),j<e&&(D=e,e=j,j=D),t===e&&i===j}function qM(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if("FeatureCollection"!==q(M))throw new Error("geojson must be a FeatureCollection");if(!M.features.length)throw new Error("geojson is empty");!1!==D&&void 0!==D||(M=BM(M));var t=[],i=Z(M,(function(M,N){var D=function(M,N){var D,t=M.geometry.coordinates,i=N.geometry.coordinates,e=KM(t[0]),j=KM(t[t.length-1]),g=KM(i[0]),u=KM(i[i.length-1]);if(e===u)D=i.concat(t.slice(1));else if(g===j)D=t.concat(i.slice(1));else if(e===g)D=t.slice(1).reverse().concat(i);else{if(j!==u)return null;D=t.concat(i.reverse().slice(1))}return T(D)}(M,N);return D||(t.push(M),N)}));return i&&t.push(i),t.length?1===t.length?t[0]:s(t.map((function(M){return M.coordinates}))):null}function KM(M){return M[0].toString()+","+M[1].toString()}function $M(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if("FeatureCollection"!==q(M))throw new Error("geojson must be a FeatureCollection");if(!M.features.length)throw new Error("geojson is empty");!1!==D&&void 0!==D||(M=BM(M));var t=function(M){var N={};m(M,(function(M){N[M.geometry.type]=!0}));var D=Object.keys(N);return 1===D.length?D[0]:null}(M);if(!t)throw new Error("geojson must be homogenous");switch(t){case"LineString":return qM(M,N);case"Polygon":return function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if("FeatureCollection"!==q(M))throw new Error("geojson must be a FeatureCollection");if(!M.features.length)throw new Error("geojson is empty");!1!==D&&void 0!==D||(M=BM(M));var t=[];m(M,(function(M){t.push(M.geometry)}));var i=aj({geoms:A(t).geometry});return sj(i,i.objects.geoms.geometries)}(M,N);default:throw new Error(t+" is not supported")}}function MN(M,D){var t="object"==typeof D?D.mutate:D;if(!M)throw new Error("geojson is required");var i=q(M),e=[];switch(i){case"LineString":e=NN(M);break;case"MultiLineString":case"Polygon":W(M).forEach((function(M){e.push(NN(M))}));break;case"MultiPolygon":W(M).forEach((function(M){var N=[];M.forEach((function(M){N.push(NN(M))})),e.push(N)}));break;case"Point":return M;case"MultiPoint":var j={};W(M).forEach((function(M){var N=M.join("-");j.hasOwnProperty(N)||(e.push(M),j[N]=!0)}));break;default:throw new Error(i+" geometry not supported")}return M.coordinates?!0===t?(M.coordinates=e,M):{type:i,coordinates:e}:!0===t?(M.geometry.coordinates=e,M):N({type:i,coordinates:e},M.properties,M.bbox,M.id)}function NN(M){var N=W(M);if(2===N.length&&!function(M,N){return M[0]===N[0]&&M[1]===N[1]}(N[0],N[1]))return N;var D,t,i,e=[],j=N.length-1;e.push(N[0]);for(var T=1;T<j;T++)D=N[T-1],t=N[T],function(M,N,D){var t=D[0],i=D[1],e=M[0],j=M[1],T=N[0],g=N[1],u=T-e,s=g-j;return(t-e)*s-(i-j)*u==0&&(Math.abs(u)>=Math.abs(s)?u>0?e<=t&&t<=T:T<=t&&t<=e:s>0?j<=i&&i<=g:g<=i&&i<=j)}(D,i=N[T+1],t)||e.push(t);return e.push(i),e}function DN(M,N){var D=M.x-N.x,t=M.y-N.y;return D*D+t*t}function tN(M,N,D){var t=N.x,i=N.y,e=D.x-t,j=D.y-i;if(0!==e||0!==j){var T=((M.x-t)*e+(M.y-i)*j)/(e*e+j*j);T>1?(t=D.x,i=D.y):T>0&&(t+=e*T,i+=j*T)}return e=M.x-t,j=M.y-i,e*e+j*j}function iN(M,N,D,t,i){for(var e,j=t,T=N+1;T<D;T++){var g=tN(M[T],M[N],M[D]);g>j&&(e=T,j=g)}j>t&&(e-N>1&&iN(M,N,e,t,i),i.push(M[e]),D-e>1&&iN(M,e,D,t,i))}function eN(M,N,D){if(M.length<=2)return M;var t=void 0!==N?N*N:1;return M=D?M:function(M,N){for(var D,t=M[0],i=[t],e=1,j=M.length;e<j;e++)DN(D=M[e],t)>N&&(i.push(D),t=D);return t!==D&&i.push(D),i}(M,t),function(M,N){var D=M.length-1,t=[M[0]];return iN(M,0,D,N,t),t.push(M[D]),t}(M,t)}function jN(M,N,D){return eN(M.map((function(M){return{x:M[0],y:M[1],z:M[2]}})),N,D).map((function(M){return M.z?[M.x,M.y,M.z]:[M.x,M.y]}))}function TN(M,N,D){return M.map((function(M){var t=M.map((function(M){return{x:M[0],y:M[1]}}));if(t.length<4)throw new Error("invalid polygon");for(var i=eN(t,N,D).map((function(M){return[M.x,M.y]}));!function(M){return!(M.length<3||3===M.length&&M[2][0]===M[0][0]&&M[2][1]===M[0][1])}(i);)i=eN(t,N-=.01*N,D).map((function(M){return[M.x,M.y]}));return i[i.length-1][0]===i[0][0]&&i[i.length-1][1]===i[0][1]||i.push(i[0]),i}))}function gN(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.resolution||1e4,t=N.sharpness||.85;if(!M)throw new Error("line is required");if(!O(D))throw new Error("resolution must be an number");if(!O(t))throw new Error("sharpness must be an number");for(var i=[],e=new Ej({points:V(M).coordinates.map((function(M){return{x:M[0],y:M[1]}})),duration:D,sharpness:t}),j=0;j<e.duration;j+=10){var g=e.pos(j);Math.floor(j/100)%2==0&&i.push([g.x,g.y])}return T(i,M.properties)}function uN(M){C(M);var N=Number(M[0]),D=Number(M[1]),t=Number(M[2]),i=Number(M[3]);if(6===M.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var j=[N,D];return e([[j,[t,D],[t,i],[N,i],j]])}function sN(M){return uN(G(M))}function LN(M){var N=M[0],D=M[1],t=M[2],i=M[3];if(vM(M.slice(0,2),[t,D])>=vM(M.slice(0,2),[N,i])){var e=(D+i)/2;return[N,e-(t-N)/2,t,e+(t-N)/2]}var j=(N+t)/2;return[j-(i-D)/2,D,j+(i-D)/2,i]}function IN(M,N,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.units,j=i.properties,T=R(M),g=a(T[0]),u=a(T[1]),s=a(D),L=w(N,e),I=Math.asin(Math.sin(u)*Math.cos(L)+Math.cos(u)*Math.sin(L)*Math.cos(s));return t([c(g+Math.atan2(Math.sin(s)*Math.sin(L)*Math.cos(u),Math.cos(L)-Math.sin(u)*Math.sin(I))),c(I)],j)}function AN(M,N,D){var t=(D=D||{}).steps||64,i=D.properties;if(!M)throw new Error("center is required");if(!N)throw new Error("radius is required");if("object"!=typeof D)throw new Error("options must be an object");if("number"!=typeof t)throw new Error("steps must be a number");t=t||64,i=i||M.properties||{};for(var j=[],T=0;T<t;T++)j.push(IN(M,N,-360*T/t,D).geometry.coordinates);return j.push(j[0]),e([j],i)}function zN(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");if(!0===D.final)return function(M,N){var D=zN(N,M);return(D+180)%360}(M,N);var t=R(M),i=R(N),e=a(t[0]),j=a(i[0]),T=a(t[1]),g=a(i[1]),u=Math.sin(j-e)*Math.cos(g),s=Math.cos(T)*Math.sin(g)-Math.sin(T)*Math.cos(g)*Math.cos(j-e);return c(Math.atan2(u,s))}function nN(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties;if(!M)throw new Error("geojson is required");var i=G(M);return t([(i[0]+i[2])/2,(i[1]+i[3])/2],D)}function wN(M,N){var D=0,i=0,e=0;return l(M,(function(M){D+=M[0],i+=M[1],e++}),!0),t([D/e,i/e],N)}function rN(M,N){switch(q(M)){case"Point":return M;case"Polygon":var D=[];l(M,(function(M){D.push(M)}));var i,e,j,T,g,u,s,L,I=wN(M,N),A=I.geometry.coordinates,z=0,n=0,w=0,r=D.map((function(M){return[M[0]-A[0],M[1]-A[1]]}));for(i=0;i<D.length-1;i++)T=(e=r[i])[0],u=e[1],g=(j=r[i+1])[0],w+=L=T*(s=j[1])-g*u,z+=(T+g)*L,n+=(u+s)*L;if(0===w)return I;var y=1/(.5*w*6);return t([A[0]+y*z,A[1]+y*n],N);default:var c=QM(M);return c?rN(c,N):wN(M,N)}}function yN(M){var N=[];return"FeatureCollection"===M.type?Y(M,(function(M){l(M,(function(D){N.push(t(D,M.properties))}))})):l(M,(function(D){N.push(t(D,M.properties))})),u(N)}function cN(M,N,D){D=D||2;var t,i,e,j,T,g,u,s=N&&N.length,L=s?N[0]*D:M.length,I=aN(M,0,L,D,!0),A=[];if(!I)return A;if(s&&(I=function(M,N,D,t){var i,e,j,T,g,u=[];for(i=0,e=N.length;i<e;i++)j=N[i]*t,T=i<e-1?N[i+1]*t:M.length,(g=aN(M,j,T,t,!1))===g.next&&(g.steiner=!0),u.push(function(M){var N=M,D=M;do{N.x<D.x&&(D=N),N=N.next}while(N!==M);return D}(g));for(u.sort(ON),i=0;i<u.length;i++)!function(M,N){if(N=function(M,N){var D,t=N,i=M.x,e=M.y,j=-1/0;do{if(e<=t.y&&e>=t.next.y&&t.next.y!==t.y){var T=t.x+(e-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(T<=i&&T>j){if(j=T,T===i){if(e===t.y)return t;if(e===t.next.y)return t.next}D=t.x<t.next.x?t:t.next}}t=t.next}while(t!==N);if(!D)return null;if(i===j)return D.prev;var g,u=D,s=D.x,L=D.y,I=1/0;for(t=D.next;t!==u;)i>=t.x&&t.x>=s&&i!==t.x&&CN(e<L?i:j,e,s,L,e<L?j:i,e,t.x,t.y)&&((g=Math.abs(e-t.y)/(i-t.x))<I||g===I&&t.x>D.x)&&QN(t,M)&&(D=t,I=g),t=t.next;return D}(M,N)){var D=dN(N,M);EN(D,D.next)}}(u[i],D),D=EN(D,D.next);return D}(M,N,I,D)),M.length>80*D){t=e=M[0],i=j=M[1];for(var z=D;z<L;z+=D)T=M[z],g=M[z+1],T<t&&(t=T),g<i&&(i=g),T>e&&(e=T),g>j&&(j=g);u=0!==(u=Math.max(e-t,j-i))?1/u:0}return oN(I,A,D,t,i,u),A}function aN(M,N,D,t,i){var e,j;if(i===hN(M,N,D,t)>0)for(e=N;e<D;e+=t)j=YN(e,M[e],M[e+1],j);else for(e=D-t;e>=N;e-=t)j=YN(e,M[e],M[e+1],j);return j&&lN(j,j.next)&&(UN(j),j=j.next),j}function EN(M,N){if(!M)return M;N||(N=M);var D,t=M;do{if(D=!1,t.steiner||!lN(t,t.next)&&0!==SN(t.prev,t,t.next))t=t.next;else{if(UN(t),(t=N=t.prev)===t.next)break;D=!0}}while(D||t!==N);return N}function oN(M,N,D,t,i,e,j){if(M){!j&&e&&function(M,N,D,t){var i=M;do{null===i.z&&(i.z=xN(i.x,i.y,N,D,t)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==M);i.prevZ.nextZ=null,i.prevZ=null,function(M){var N,D,t,i,e,j,T,g,u=1;do{for(D=M,M=null,e=null,j=0;D;){for(j++,t=D,T=0,N=0;N<u&&(T++,t=t.nextZ);N++);for(g=u;T>0||g>0&&t;)0!==T&&(0===g||!t||D.z<=t.z)?(i=D,D=D.nextZ,T--):(i=t,t=t.nextZ,g--),e?e.nextZ=i:M=i,i.prevZ=e,e=i;D=t}e.nextZ=null,u*=2}while(j>1)}(i)}(M,t,i,e);for(var T,g,u=M;M.prev!==M.next;)if(T=M.prev,g=M.next,e?function(M,N,D,t){var i=M.prev,e=M,j=M.next;if(SN(i,e,j)>=0)return!1;for(var T=i.x<e.x?i.x<j.x?i.x:j.x:e.x<j.x?e.x:j.x,g=i.y<e.y?i.y<j.y?i.y:j.y:e.y<j.y?e.y:j.y,u=i.x>e.x?i.x>j.x?i.x:j.x:e.x>j.x?e.x:j.x,s=i.y>e.y?i.y>j.y?i.y:j.y:e.y>j.y?e.y:j.y,L=xN(T,g,N,D,t),I=xN(u,s,N,D,t),A=M.nextZ;A&&A.z<=I;){if(A!==M.prev&&A!==M.next&&CN(i.x,i.y,e.x,e.y,j.x,j.y,A.x,A.y)&&SN(A.prev,A,A.next)>=0)return!1;A=A.nextZ}for(A=M.prevZ;A&&A.z>=L;){if(A!==M.prev&&A!==M.next&&CN(i.x,i.y,e.x,e.y,j.x,j.y,A.x,A.y)&&SN(A.prev,A,A.next)>=0)return!1;A=A.prevZ}return!0}(M,t,i,e):function(M){var N=M.prev,D=M,t=M.next;if(SN(N,D,t)>=0)return!1;for(var i=M.next.next;i!==M.prev;){if(CN(N.x,N.y,D.x,D.y,t.x,t.y,i.x,i.y)&&SN(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}(M))N.push(T.i/D),N.push(M.i/D),N.push(g.i/D),UN(M),M=g.next,u=g.next;else if((M=g)===u){j?1===j?oN(M=function(M,N,D){var t=M;do{var i=t.prev,e=t.next.next;!lN(i,e)&&kN(i,t,t.next,e)&&QN(i,e)&&QN(e,i)&&(N.push(i.i/D),N.push(t.i/D),N.push(e.i/D),UN(t),UN(t.next),t=M=e),t=t.next}while(t!==M);return t}(M,N,D),N,D,t,i,e,2):2===j&&function(M,N,D,t,i,e){var j=M;do{for(var T=j.next.next;T!==j.prev;){if(j.i!==T.i&&function(M,N){return M.next.i!==N.i&&M.prev.i!==N.i&&!function(M,N){var D=M;do{if(D.i!==M.i&&D.next.i!==M.i&&D.i!==N.i&&D.next.i!==N.i&&kN(D,D.next,M,N))return!0;D=D.next}while(D!==M);return!1}(M,N)&&QN(M,N)&&QN(N,M)&&function(M,N){var D=M,t=!1,i=(M.x+N.x)/2,e=(M.y+N.y)/2;do{D.y>e!=D.next.y>e&&D.next.y!==D.y&&i<(D.next.x-D.x)*(e-D.y)/(D.next.y-D.y)+D.x&&(t=!t),D=D.next}while(D!==M);return t}(M,N)}(j,T)){var g=dN(j,T);return j=EN(j,j.next),g=EN(g,g.next),oN(j,N,D,t,i,e),void oN(g,N,D,t,i,e)}T=T.next}j=j.next}while(j!==M)}(M,N,D,t,i,e):oN(EN(M),N,D,t,i,e,1);break}}}function ON(M,N){return M.x-N.x}function xN(M,N,D,t,i){return M=32767*(M-D)*i,N=32767*(N-t)*i,M=16711935&(M|M<<8),M=252645135&(M|M<<4),M=858993459&(M|M<<2),M=1431655765&(M|M<<1),N=16711935&(N|N<<8),N=252645135&(N|N<<4),N=858993459&(N|N<<2),N=1431655765&(N|N<<1),M|N<<1}function CN(M,N,D,t,i,e,j,T){return(i-j)*(N-T)-(M-j)*(e-T)>=0&&(M-j)*(t-T)-(D-j)*(N-T)>=0&&(D-j)*(e-T)-(i-j)*(t-T)>=0}function SN(M,N,D){return(N.y-M.y)*(D.x-N.x)-(N.x-M.x)*(D.y-N.y)}function lN(M,N){return M.x===N.x&&M.y===N.y}function kN(M,N,D,t){return!!(lN(M,N)&&lN(D,t)||lN(M,t)&&lN(D,N))||SN(M,N,D)>0!=SN(M,N,t)>0&&SN(D,t,M)>0!=SN(D,t,N)>0}function QN(M,N){return SN(M.prev,M,M.next)<0?SN(M,N,M.next)>=0&&SN(M,M.prev,N)>=0:SN(M,N,M.prev)<0||SN(M,M.next,N)<0}function dN(M,N){var D=new pN(M.i,M.x,M.y),t=new pN(N.i,N.x,N.y),i=M.next,e=N.prev;return M.next=N,N.prev=M,D.next=i,i.prev=D,t.next=D,D.prev=t,e.next=t,t.prev=e,t}function YN(M,N,D,t){var i=new pN(M,N,D);return t?(i.next=t.next,i.prev=t,t.next.prev=i,t.next=i):(i.prev=i,i.next=i),i}function UN(M){M.next.prev=M.prev,M.prev.next=M.next,M.prevZ&&(M.prevZ.nextZ=M.nextZ),M.nextZ&&(M.nextZ.prevZ=M.prevZ)}function pN(M,N,D){this.i=M,this.x=N,this.y=D,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function hN(M,N,D,t){for(var i=0,e=N,j=D-t;e<D;e+=t)i+=(M[j]-M[e])*(M[e+1]+M[j+1]),j=e;return i}function fN(M){var N=function(M){for(var N=M[0][0].length,D={vertices:[],holes:[],dimensions:N},t=0,i=0;i<M.length;i++){for(var e=0;e<M[i].length;e++)for(var j=0;j<N;j++)D.vertices.push(M[i][e][j]);i>0&&(t+=M[i-1].length,D.holes.push(t))}return D}(M),D=oj(N.vertices,N.holes,2),t=[],i=[];D.forEach((function(M,t){var e=D[t];i.push([N.vertices[2*e],N.vertices[2*e+1]])}));for(var j=0;j<i.length;j+=3){var T=i.slice(j,j+3);T.push(i[j]),t.push(e([T]))}return t}function mN(M,N){if(!M)throw new Error("targetPoint is required");if(!N)throw new Error("points is required");var D,t=1/0;return Y(N,(function(N,i){var e=vM(M,N);e<t&&((D=BM(N)).properties.featureIndex=i,D.properties.distanceToPoint=e,t=e)})),D}function vN(M,N,D,t,i){BN(M,N,D||0,t||M.length-1,i||function(M,N){return M<N?-1:M>N?1:0})}function BN(M,N,D,t,i){for(;t>D;){if(t-D>600){var e=t-D+1,j=N-D+1,T=Math.log(e),g=.5*Math.exp(2*T/3),u=.5*Math.sqrt(T*g*(e-g)/e)*(j-e/2<0?-1:1);BN(M,N,Math.max(D,Math.floor(N-j*g/e+u)),Math.min(t,Math.floor(N+(e-j)*g/e+u)),i)}var s=M[N],L=D,I=t;for(bN(M,D,N),i(M[t],s)>0&&bN(M,D,t);L<I;){for(bN(M,L,I),L++,I--;i(M[L],s)<0;)L++;for(;i(M[I],s)>0;)I--}0===i(M[D],s)?bN(M,D,I):bN(M,++I,t),I<=N&&(D=I+1),N<=I&&(t=I-1)}}function bN(M,N,D){var t=M[N];M[N]=M[D],M[D]=t}function PN(M,N){if(!(this instanceof PN))return new PN(M,N);this._maxEntries=Math.max(4,M||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),N&&this._initFormat(N),this.clear()}function ZN(M,N){GN(M,0,M.children.length,N,M)}function GN(M,N,D,t,i){i||(i=JN(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var e,j=N;j<D;j++)e=M.children[j],RN(i,M.leaf?t(e):e);return i}function RN(M,N){return M.minX=Math.min(M.minX,N.minX),M.minY=Math.min(M.minY,N.minY),M.maxX=Math.max(M.maxX,N.maxX),M.maxY=Math.max(M.maxY,N.maxY),M}function WN(M,N){return M.minX-N.minX}function XN(M,N){return M.minY-N.minY}function HN(M){return(M.maxX-M.minX)*(M.maxY-M.minY)}function _N(M){return M.maxX-M.minX+(M.maxY-M.minY)}function FN(M,N){return M.minX<=N.minX&&M.minY<=N.minY&&N.maxX<=M.maxX&&N.maxY<=M.maxY}function VN(M,N){return N.minX<=M.maxX&&N.minY<=M.maxY&&N.maxX>=M.minX&&N.maxY>=M.minY}function JN(M){return{children:M,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function qN(M,N,D,t,i){for(var e,j=[N,D];j.length;)(D=j.pop())-(N=j.pop())<=t||(vN(M,e=N+Math.ceil((D-N)/t/2)*t,N,D,i),j.push(N,e,e,D))}function KN(M){var N=PN(M);return N.insert=function(M){if(Array.isArray(M)){var N=M;(M=$N(N)).bbox=N}else M.bbox=M.bbox?M.bbox:MD(M);return PN.prototype.insert.call(this,M)},N.load=function(M){var N=[];return Array.isArray(M)?M.forEach((function(M){var D=$N(M);D.bbox=M,N.push(D)})):Y(M,(function(M){M.bbox=M.bbox?M.bbox:MD(M),N.push(M)})),PN.prototype.load.call(this,N)},N.remove=function(M){if(Array.isArray(M)){var N=M;(M=$N(N)).bbox=N}return PN.prototype.remove.call(this,M)},N.clear=function(){return PN.prototype.clear.call(this)},N.search=function(M){return{type:"FeatureCollection",features:PN.prototype.search.call(this,this.toBBox(M))}},N.collides=function(M){return PN.prototype.collides.call(this,this.toBBox(M))},N.all=function(){return{type:"FeatureCollection",features:PN.prototype.all.call(this)}},N.toJSON=function(){return PN.prototype.toJSON.call(this)},N.fromJSON=function(M){return PN.prototype.fromJSON.call(this,M)},N.toBBox=function(M){var N;return N=M.bbox?M.bbox:Array.isArray(M)&&4===M.length?M:MD(M),{minX:N[0],minY:N[1],maxX:N[2],maxY:N[3]}},N}function $N(M){var N=[M[0],M[1]],D=[M[0],M[3]],t=[M[2],M[3]];return{type:"Feature",bbox:M,properties:{},geometry:{type:"Polygon",coordinates:[[N,[M[2],M[1]],t,D,N]]}}}function MD(M){var N=[1/0,1/0,-1/0,-1/0];return l(M,(function(M){N[0]>M[0]&&(N[0]=M[0]),N[1]>M[1]&&(N[1]=M[1]),N[2]<M[0]&&(N[2]=M[0]),N[3]<M[1]&&(N[3]=M[1])})),N}function ND(M){if(!M)throw new Error("geojson is required");var N=[];return m(M,(function(M){!function(M,N){var D=[],t=M.geometry;switch(t.type){case"Polygon":D=W(t);break;case"LineString":D=[W(t)]}D.forEach((function(D){var t=function(M,N){var D=[];return M.reduce((function(M,t){var i=T([M,t],N);return i.bbox=function(M,N){var D=M[0],t=M[1],i=N[0],e=N[1];return[D<i?D:i,t<e?t:e,D>i?D:i,t>e?t:e]}(M,t),D.push(i),t})),D}(D,M.properties);t.forEach((function(M){M.id=N.length,N.push(M)}))}))}(M,N)})),u(N)}function DD(M,D){var t={},i=[];if("LineString"===M.type&&(M=N(M)),"LineString"===D.type&&(D=N(D)),"Feature"===M.type&&"Feature"===D.type&&"LineString"===M.geometry.type&&"LineString"===D.geometry.type&&2===M.geometry.coordinates.length&&2===D.geometry.coordinates.length){var e=tD(M,D);return e&&i.push(e),u(i)}var j=KN();return j.load(ND(D)),Y(ND(M),(function(M){Y(j.search(M),(function(N){var D=tD(M,N);if(D){var e=W(D).join(",");t[e]||(t[e]=!0,i.push(D))}}))})),u(i)}function tD(M,N){var D=W(M),i=W(N);if(2!==D.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==i.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var e=D[0][0],j=D[0][1],T=D[1][0],g=D[1][1],u=i[0][0],s=i[0][1],L=i[1][0],I=i[1][1],A=(I-s)*(T-e)-(L-u)*(g-j),z=(L-u)*(j-s)-(I-s)*(e-u),n=(T-e)*(j-s)-(g-j)*(e-u);if(0===A)return null;var w=z/A,r=n/A;return w>=0&&w<=1&&r>=0&&r<=1?t([e+w*(T-e),j+w*(g-j)]):null}function iD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i=M.geometry?M.geometry.type:M.type;if("LineString"!==i&&"MultiLineString"!==i)throw new Error("lines must be LineString or MultiLineString");var e=t([1/0,1/0],{dist:1/0}),j=0;return m(M,(function(M){for(var i=W(M),g=0;g<i.length-1;g++){var u=t(i[g]);u.properties.dist=vM(N,u,D);var s=t(i[g+1]);s.properties.dist=vM(N,s,D);var L=vM(u,s,D),I=Math.max(u.properties.dist,s.properties.dist),A=zN(u,s),z=IN(N,I,A+90,D),n=IN(N,I,A-90,D),w=DD(T([z.geometry.coordinates,n.geometry.coordinates]),T([u.geometry.coordinates,s.geometry.coordinates])),r=null;w.features.length>0&&((r=w.features[0]).properties.dist=vM(N,r,D),r.properties.location=j+vM(u,r,D)),u.properties.dist<e.properties.dist&&((e=u).properties.index=g,e.properties.location=j),s.properties.dist<e.properties.dist&&((e=s).properties.index=g+1,e.properties.location=j+L),r&&r.properties.dist<e.properties.dist&&((e=r).properties.index=g),j+=L}})),e}function eD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t,i=D.final;if(!M)throw new Error("start point is required");if(!N)throw new Error("end point is required");return(t=i?jD(R(N),R(M)):jD(R(M),R(N)))>180?-(360-t):t}function jD(M,N){var D=a(M[1]),t=a(N[1]),i=a(N[0]-M[0]);i>Math.PI&&(i-=2*Math.PI),i<-Math.PI&&(i+=2*Math.PI);var e=Math.log(Math.tan(t/2+Math.PI/4)/Math.tan(D/2+Math.PI/4));return(c(Math.atan2(i,e))+360)%360}function TD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units;if(!M)throw new Error("from point is required");if(!N)throw new Error("to point is required");var i=R(M),e=R(N);return e[0]+=e[0]-i[0]>180?-360:i[0]-e[0]>180?360:0,E(function(M,N,D){var t=D=void 0===D?he:Number(D),i=M[1]*Math.PI/180,e=N[1]*Math.PI/180,j=e-i,T=Math.abs(N[0]-M[0])*Math.PI/180;T>Math.PI&&(T-=2*Math.PI);var g=Math.log(Math.tan(e/2+Math.PI/4)/Math.tan(i/2+Math.PI/4)),u=Math.abs(g)>1e-11?j/g:Math.cos(i);return Math.sqrt(j*j+u*u*T*T)*t}(i,e),"meters",t)}function gD(M,N){return sD(M,"mercator",N)}function uD(M,N){return sD(M,"wgs84",N)}function sD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.mutate;if(!M)throw new Error("geojson is required");return Array.isArray(M)&&O(M[0])?M="mercator"===N?LD(M):ID(M):(!0!==t&&(M=BM(M)),l(M,(function(M){var D="mercator"===N?LD(M):ID(M);M[0]=D[0],M[1]=D[1]}))),M}function LD(M){var N=Math.PI/180,D=20037508.342789244,t=[6378137*(Math.abs(M[0])<=180?M[0]:M[0]-360*function(M){return M<0?-1:M>0?1:0}(M[0]))*N,6378137*Math.log(Math.tan(.25*Math.PI+.5*M[1]*N))];return t[0]>D&&(t[0]=D),t[0]<-D&&(t[0]=-D),t[1]>D&&(t[1]=D),t[1]<-D&&(t[1]=-D),t}function ID(M){var N=180/Math.PI;return[M[0]*N/6378137,(.5*Math.PI-2*Math.atan(Math.exp(-M[1]/6378137)))*N]}function AD(M,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");if(!M)throw new Error("pt is required");if(Array.isArray(M)?M=t(M):"Point"===M.type?M=N(M):_(M,"Point","point"),!D)throw new Error("line is required");Array.isArray(D)?D=T(D):"LineString"===D.type?D=N(D):_(D,"LineString","line");var e=1/0,j=M.geometry.coordinates;return B(D,(function(M){var N=M.geometry.coordinates[0],D=M.geometry.coordinates[1],T=function(M,N,D,i){var e=i.mercator,j=!0!==e?vM(N,M,i):zD(N,M,i),T=y(!0!==e?zN(N,M):eD(N,M)),g=y(!0!==e?zN(N,D):eD(N,D)),u=Math.abs(T-g);if(u>90)return j;var s=(g+180)%360,L=y(!0!==e?zN(D,M):eD(D,M)),I=Math.abs(L-s);return I>180&&(I=Math.abs(I-360)),I>90?!0!==e?vM(M,D,i):zD(M,D,i):!0!==e?j*Math.sin(a(u)):function(M,N,D,i){var e=0;(Math.abs(M[0])>=180||Math.abs(N[0])>=180||Math.abs(D[0])>=180)&&(e=M[0]>0||N[0]>0||D[0]>0?-180:180);var j=t(D),T=gD([M[0]+e,M[1]]),g=gD([N[0]+e,N[1]]),u=gD([D[0]+e,D[1]]),s=uD(function(M,N,D){var t=M[0],i=M[1],e=N[0],j=N[1],T=D[0],g=D[1],u=e-t,s=j-i,L=((T-t)*u+(g-i)*s)/(u*u+s*s);return[t+L*u,i+L*s]}(T,g,u));return 0!==e&&(s[0]-=e),TD(j,s,i)}(N,D,M,i)}(j,N,D,i);e>T&&(e=T)})),e}function zD(M,N,D){var t=D.units,i=0;Math.abs(M[0])>=180&&(i=M[0]>0?-180:180),Math.abs(N[0])>=180&&(i=N[0]>0?-180:180);var e=gD([M[0]+i,M[1]]),j=gD([N[0]+i,N[1]]),T=function(M){return M*M},g=T(e[0]-j[0])+T(e[1]-j[1]);return E(Math.sqrt(g),"meters",t)}function nD(M){for(var D=function(M){return"FeatureCollection"!==M.type?"Feature"!==M.type?u([N(M)]):u([M]):M}(M),i=nN(D),e=!1,j=0;!e&&j<D.features.length;){var T,g=D.features[j].geometry,s=!1;if("Point"===g.type)i.geometry.coordinates[0]===g.coordinates[0]&&i.geometry.coordinates[1]===g.coordinates[1]&&(e=!0);else if("MultiPoint"===g.type){var L=!1;for(T=0;!L&&T<g.coordinates.length;)i.geometry.coordinates[0]===g.coordinates[T][0]&&i.geometry.coordinates[1]===g.coordinates[T][1]&&(e=!0,L=!0),T++}else if("LineString"===g.type)for(T=0;!s&&T<g.coordinates.length-1;)wD(i.geometry.coordinates[0],i.geometry.coordinates[1],g.coordinates[T][0],g.coordinates[T][1],g.coordinates[T+1][0],g.coordinates[T+1][1])&&(s=!0,e=!0),T++;else if("MultiLineString"===g.type)for(var I=0;I<g.coordinates.length;){s=!1,T=0;for(var A=g.coordinates[I];!s&&T<A.length-1;)wD(i.geometry.coordinates[0],i.geometry.coordinates[1],A[T][0],A[T][1],A[T+1][0],A[T+1][1])&&(s=!0,e=!0),T++;I++}else"Polygon"!==g.type&&"MultiPolygon"!==g.type||dM(i,g)&&(e=!0);j++}if(e)return i;var z=u([]);for(j=0;j<D.features.length;j++)z.features=z.features.concat(yN(D.features[j]).features);return t(mN(i,z).geometry.coordinates)}function wD(M,N,D,t,i,e){return Math.sqrt((i-D)*(i-D)+(e-t)*(e-t))===Math.sqrt((M-D)*(M-D)+(N-t)*(N-t))+Math.sqrt((i-M)*(i-M)+(e-N)*(e-N))}function rD(M){return f(M,(function(M,N){return M+yD(N)}),0)}function yD(M){var N,D=0;switch(M.type){case"Polygon":return cD(M.coordinates);case"MultiPolygon":for(N=0;N<M.coordinates.length;N++)D+=cD(M.coordinates[N]);return D;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(N=0;N<M.geometries.length;N++)D+=yD(M.geometries[N]);return D}}function cD(M){var N=0;if(M&&M.length>0){N+=Math.abs(aD(M[0]));for(var D=1;D<M.length;D++)N-=Math.abs(aD(M[D]))}return N}function aD(M){var N,D,t,i,e,j,T=0,g=M.length;if(g>2){for(j=0;j<g;j++)j===g-2?(t=g-2,i=g-1,e=0):j===g-1?(t=g-1,i=0,e=1):(t=j,i=j+1,e=j+2),N=M[t],D=M[i],T+=(ED(M[e][0])-ED(N[0]))*Math.sin(ED(D[1]));T=T*Cj*Cj/2}return T}function ED(M){return M*Math.PI/180}function oD(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");if(!M)throw new Error("geojson is required");return b(M,(function(M,D){var t=D.geometry.coordinates;return M+vM(t[0],t[1],N)}),0)}function OD(M,N,D,t){if(t=t||{},!x(t))throw new Error("options is invalid");var i,e=[];if("Feature"===M.type)i=M.geometry.coordinates;else{if("LineString"!==M.type)throw new Error("input must be a LineString Feature or Geometry");i=M.coordinates}for(var j,g,u,s=0,L=0;L<i.length&&!(N>=s&&L===i.length-1);L++){if(s>N&&0===e.length){if(!(j=N-s))return e.push(i[L]),T(e);g=zN(i[L],i[L-1])-180,u=IN(i[L],j,g,t),e.push(u.geometry.coordinates)}if(s>=D)return(j=D-s)?(g=zN(i[L],i[L-1])-180,u=IN(i[L],j,g,t),e.push(u.geometry.coordinates),T(e)):(e.push(i[L]),T(e));if(s>=N&&e.push(i[L]),L===i.length-1)return T(e);s+=vM(i[L],i[L+1],t)}return T(i[i.length-1])}function xD(M,N,D){var t=(D=D||{}).ignoreEndVertices;if(!x(D))throw new Error("invalid options");if(!M)throw new Error("pt is required");if(!N)throw new Error("line is required");for(var i=R(M),e=W(N),j=0;j<e.length-1;j++){var T=!1;if(t&&(0===j&&(T="start"),j===e.length-2&&(T="end"),0===j&&j+1===e.length-1&&(T="both")),function(M,N,D,t){var i=D[0],e=D[1],j=M[0],T=M[1],g=N[0],u=N[1],s=D[0]-j,L=D[1]-T,I=g-j,A=u-T;return s*A-L*I==0&&(t?"start"===t?Math.abs(I)>=Math.abs(A)?I>0?j<i&&i<=g:g<=i&&i<j:A>0?T<e&&e<=u:u<=e&&e<T:"end"===t?Math.abs(I)>=Math.abs(A)?I>0?j<=i&&i<g:g<i&&i<=j:A>0?T<=e&&e<u:u<e&&e<=T:"both"===t?Math.abs(I)>=Math.abs(A)?I>0?j<i&&i<g:g<i&&i<j:A>0?T<e&&e<u:u<e&&e<T:void 0:Math.abs(I)>=Math.abs(A)?I>0?j<=i&&i<=g:g<=i&&i<=j:A>0?T<=e&&e<=u:u<=e&&e<=T)}(e[j],e[j+1],i,T))return!0}return!1}function CD(M,N){var D=q(M),t=q(N),i=V(M),e=V(N);switch(D){case"Point":switch(t){case"MultiPoint":return function(M,N){var D,t=!1;for(D=0;D<N.coordinates.length;D++)if(lD(N.coordinates[D],M.coordinates)){t=!0;break}return t}(i,e);case"LineString":return xD(i,e,{ignoreEndVertices:!0});case"Polygon":return dM(i,e,{ignoreBoundary:!0});default:throw new Error("feature2 "+t+" geometry not supported")}case"MultiPoint":switch(t){case"MultiPoint":return function(M,N){for(var D=0;D<M.coordinates.length;D++){for(var t=!1,i=0;i<N.coordinates.length;i++)lD(M.coordinates[D],N.coordinates[i])&&(t=!0);if(!t)return!1}return!0}(i,e);case"LineString":return function(M,N){for(var D=!1,t=0;t<M.coordinates.length;t++){if(!xD(M.coordinates[t],N))return!1;D||(D=xD(M.coordinates[t],N,{ignoreEndVertices:!0}))}return D}(i,e);case"Polygon":return function(M,N){for(var D=!0,t=0;t<M.coordinates.length;t++){var i=dM(M.coordinates[1],N);if(!i){D=!1;break}i=dM(M.coordinates[1],N,{ignoreBoundary:!0})}return D&&i}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"LineString":switch(t){case"LineString":return function(M,N){for(var D=0;D<M.coordinates.length;D++)if(!xD(M.coordinates[D],N))return!1;return!0}(i,e);case"Polygon":return function(M,N){var D=G(N),t=G(M);if(!SD(D,t))return!1;for(var i=!1,e=0;e<M.coordinates.length-1;e++){if(!dM(M.coordinates[e],N))return!1;if(i||(i=dM(M.coordinates[e],N,{ignoreBoundary:!0})),!i){var j=function(M,N){return[(M[0]+N[0])/2,(M[1]+N[1])/2]}(M.coordinates[e],M.coordinates[e+1]);i=dM(j,N,{ignoreBoundary:!0})}}return i}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"Polygon":switch(t){case"Polygon":return function(M,N){var D=G(M);if(!SD(G(N),D))return!1;for(var t=0;t<M.coordinates[0].length;t++)if(!dM(M.coordinates[0][t],N))return!1;return!0}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}default:throw new Error("feature1 "+D+" geometry not supported")}}function SD(M,N){return!(M[0]>N[0])&&!(M[2]<N[2])&&!(M[1]>N[1])&&!(M[3]<N[3])}function lD(M,N){return M[0]===N[0]&&M[1]===N[1]}function kD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i=D.mask,e=D.properties,j=[];if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(q(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var T=M[0],g=M[1],s=M[2],L=M[3],I=N/vM([T,g],[s,g],D)*(s-T),A=N/vM([T,g],[T,L],D)*(L-g),z=s-T,n=L-g,w=Math.floor(z/I),r=(n-Math.floor(n/A)*A)/2,y=T+(z-w*I)/2;y<=s;){for(var c=g+r;c<=L;){var a=t([y,c],e);i?CD(a,i)&&j.push(a):j.push(a),c+=A}y+=I}return u(j)}function QD(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.precision,t=N.coordinates,i=N.mutate;if(D=void 0===D||null===D||isNaN(D)?6:D,t=void 0===t||null===t||isNaN(t)?3:t,!M)throw new Error("<geojson> is required");if("number"!=typeof D)throw new Error("<precision> must be a number");if("number"!=typeof t)throw new Error("<coordinates> must be a number");!1!==i&&void 0!==i||(M=JSON.parse(JSON.stringify(M)));var e=Math.pow(10,D);return l(M,(function(M){!function(M,N,D){M.length>D&&M.splice(D,M.length);for(var t=0;t<M.length;t++)M[t]=Math.round(M[t]*N)/N}(M,e,t)})),M}function dD(M,N){if(!M||!N)return!1;if(M.length!==N.length)return!1;for(var D=0,t=M.length;D<t;D++)if(M[D]instanceof Array&&N[D]instanceof Array){if(!dD(M[D],N[D]))return!1}else if(M[D]!==N[D])return!1;return!0}function YD(M,N){if(void 0===N&&(N=!0),3!=M.length)throw new Error("This function requires an array of three points [x,y]");return(M[1][0]-M[0][0])*(M[2][1]-M[0][1])-(M[1][1]-M[0][1])*(M[2][0]-M[0][0])>=0==N}function UD(M,N){if(!M||!N)return!1;if(M.length!=N.length)return!1;for(var D=0,t=M.length;D<t;D++)if(M[D]instanceof Array&&N[D]instanceof Array){if(!UD(M[D],N[D]))return!1}else if(M[D]!=N[D])return!1;return!0}function pD(M,N){var D=[],t=KN();return m(N,(function(N){if(D.forEach((function(M,N){M.id=N})),D.length){var i=t.search(N);if(i.features.length){var e=fD(N,i);D=D.filter((function(M){return M.id!==e.id})),t.remove(e),Y(hD(e,N),(function(M){D.push(M),t.insert(M)}))}}else(D=hD(M,N).features).forEach((function(M){M.bbox||(M.bbox=LN(G(M)))})),t.load(u(D))})),u(D)}function hD(M,N){var D=[],t=W(M)[0],i=W(M)[M.geometry.coordinates.length-1];if(mD(t,R(N))||mD(i,R(N)))return u([M]);var e=KN(),j=ND(M);e.load(j);var g=e.search(N);if(!g.features.length)return u([M]);var s=fD(N,g),L=U(j,(function(M,t,i){var e=W(t)[1],j=R(N);return i===s.id?(M.push(j),D.push(T(M)),mD(j,e)?[j]:[j,e]):(M.push(e),M)}),[t]);return L.length>1&&D.push(T(L)),u(D)}function fD(M,N){if(!N.features.length)throw new Error("lines must contain features");if(1===N.features.length)return N.features[0];var D,t=1/0;return Y(N,(function(N){var i=iD(N,M).properties.dist;i<t&&(D=N,t=i)})),D}function mD(M,N){return M[0]===N[0]&&M[1]===N[1]}function vD(M,N,D,t,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.steps,j=i.units;if(!M)throw new Error("center is required");if(!N)throw new Error("radius is required");if(void 0===D||null===D)throw new Error("bearing1 is required");if(void 0===t||null===t)throw new Error("bearing2 is required");if("object"!=typeof i)throw new Error("options must be an object");e=e||64;var g=BD(D),u=BD(t),s=M.properties;if(g===u)return T(AN(M,N,i).geometry.coordinates[0],s);for(var L=g,I=g<u?u:u+360,A=L,z=[],n=0;A<I;)z.push(IN(M,N,A,j).geometry.coordinates),A=L+360*++n/e;return A>I&&z.push(IN(M,N,I,j).geometry.coordinates),T(z,s)}function BD(M){var N=M%360;return N<0&&(N+=360),N}function bD(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties,t=q(M),i=W(M);if(D=D||M.properties||{},!i.length)throw new Error("polygon must contain coordinates");switch(t){case"Polygon":return PD(i,D);case"MultiPolygon":var e=[];return i.forEach((function(M){e.push(PD(M,D))})),u(e);default:throw new Error("geom "+t+" not supported")}}function PD(M,N){return M.length>1?s(M,N):T(M[0],N)}function ZD(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties,t=N.autoComplete,i=N.orderCoords;if(!M)throw new Error("lines is required");switch(t=void 0===t||t,i=void 0===i||i,q(M)){case"FeatureCollection":case"GeometryCollection":var e=[];return(M.features?M.features:M.geometries).forEach((function(M){e.push(W(GD(M,{},t,i)))})),I(e,D)}return GD(M,D,t,i)}function GD(M,N,D,t){N=N||M.properties||{};var i=W(M),j=q(M);if(!i.length)throw new Error("line must contain coordinates");switch(j){case"LineString":return D&&(i=RD(i)),e([i],N);case"MultiLineString":var g=[],u=0;return i.forEach((function(M){if(D&&(M=RD(M)),t){var N=function(M){var N=M[0],D=M[1],t=M[2],i=M[3];return Math.abs(N-t)*Math.abs(D-i)}(G(T(M)));N>u?(g.unshift(M),u=N):g.push(M)}else g.push(M)})),e(g,N);default:throw new Error("geometry type "+j+" is not supported")}}function RD(M){var N=M[0],D=N[0],t=N[1],i=M[M.length-1],e=i[0],j=i[1];return D===e&&t===j||M.push(N),M}function WD(M,N,D){var t,i,e,j,T,g=M.length,u=HD(M[0],N),s=[];for(D||(D=[]),t=1;t<g;t++){for(i=M[t-1],j=T=HD(e=M[t],N);;){if(!(u|j)){s.push(i),j!==T?(s.push(e),t<g-1&&(D.push(s),s=[])):t===g-1&&s.push(e);break}if(u&j)break;u?u=HD(i=XD(i,e,u,N),N):j=HD(e=XD(i,e,j,N),N)}u=T}return s.length&&D.push(s),D}function XD(M,N,D,t){return 8&D?[M[0]+(N[0]-M[0])*(t[3]-M[1])/(N[1]-M[1]),t[3]]:4&D?[M[0]+(N[0]-M[0])*(t[1]-M[1])/(N[1]-M[1]),t[1]]:2&D?[t[2],M[1]+(N[1]-M[1])*(t[2]-M[0])/(N[0]-M[0])]:1&D?[t[0],M[1]+(N[1]-M[1])*(t[0]-M[0])/(N[0]-M[0])]:null}function HD(M,N){var D=0;return M[0]<N[0]?D|=1:M[0]>N[2]&&(D|=2),M[1]<N[1]?D|=4:M[1]>N[3]&&(D|=8),D}function _D(M,N){for(var D=[],t=0;t<M.length;t++){var i=mj.polygon(M[t],N);i.length>0&&(i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]||i.push(i[0]),i.length>=4&&D.push(i))}return D}function FD(M){return"[object Arguments]"===Object.prototype.toString.call(M)}function VD(M,N,D){return D||(D={}),M===N||(M instanceof Date&&N instanceof Date?M.getTime()===N.getTime():!M||!N||"object"!=typeof M&&"object"!=typeof N?(D.strict,M===N):function(M,N,D){var t,i;if(JD(M)||JD(N))return!1;if(M.prototype!==N.prototype)return!1;if(FD(M))return!!FD(N)&&(M=vj.call(M),N=vj.call(N),VD(M,N,D));if(qD(M)){if(!qD(N))return!1;if(M.length!==N.length)return!1;for(t=0;t<M.length;t++)if(M[t]!==N[t])return!1;return!0}try{var e=Object.keys(M),j=Object.keys(N)}catch(M){return!1}if(e.length!==j.length)return!1;for(e.sort(),j.sort(),t=e.length-1;t>=0;t--)if(e[t]!==j[t])return!1;for(t=e.length-1;t>=0;t--)if(i=e[t],!VD(M[i],N[i],D))return!1;return typeof M==typeof N}(M,N,D))}function JD(M){return null===M||void 0===M}function qD(M){return!(!M||"object"!=typeof M||"number"!=typeof M.length)&&"function"==typeof M.copy&&"function"==typeof M.slice&&!(M.length>0&&"number"!=typeof M[0])}function KD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t,i=D.tolerance||0,e=[],j=KN();return j.load(ND(M)),B(N,(function(M){var N=!1;Y(j.search(M),(function(D){if(!1===N){var e=W(M).sort(),j=W(D).sort();VD(e,j)||(0===i?xD(e[0],D)&&xD(e[1],D):iD(D,e[0]).properties.dist<=i&&iD(D,e[1]).properties.dist<=i)?(N=!0,t=t?$D(t,M):M):(0===i?xD(j[0],M)&&xD(j[1],M):iD(M,j[0]).properties.dist<=i&&iD(M,j[1]).properties.dist<=i)&&(t=t?$D(t,D):D)}})),!1===N&&t&&(e.push(t),t=void 0)})),t&&e.push(t),u(e)}function $D(M,N){var D=W(N),t=W(M),i=t[0],e=t[t.length-1],j=M.geometry.coordinates;return VD(D[0],i)?j.unshift(D[1]):VD(D[0],e)?j.push(D[1]):VD(D[1],i)?j.unshift(D[0]):VD(D[1],e)&&j.push(D[0]),M}function Mt(M){var N=M%360;return N<0&&(N+=360),N}function Nt(M,N,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.units,j=i.properties;if(!M)throw new Error("origin is required");if(void 0===N||null===N)throw new Error("distance is required");if(void 0===D||null===D)throw new Error("bearing is required");if(!(N>=0))throw new Error("distance must be greater than 0");var T=E(N,e,"meters"),g=R(M),u=function(M,N,D,t){t=void 0===t?he:Number(t);var i=N/t,e=M[0]*Math.PI/180,j=a(M[1]),T=a(D),g=i*Math.cos(T),u=j+g;Math.abs(u)>Math.PI/2&&(u=u>0?Math.PI-u:-Math.PI-u);var s=Math.log(Math.tan(u/2+Math.PI/4)/Math.tan(j/2+Math.PI/4)),L=Math.abs(s)>1e-11?g/s:Math.cos(j),I=i*Math.sin(T)/L;return[(180*(e+I)/Math.PI+540)%360-180,180*u/Math.PI]}(g,T,D);return u[0]+=u[0]-g[0]>180?-360:g[0]-u[0]>180?360:0,t(u,j)}function Dt(M,N,D,t,i,e){for(var j=0;j<M.length;j++){var T=M[j],g=M[j+1];j===M.length-1&&(g=M[0]),t=tt(T,g,N),D<=0&&t>0?function(M,N,D){return tt(M,N,D)<0}(N,T,i)||(i=T):D>0&&t<=0&&(function(M,N,D){return tt(M,N,D)>0}(N,T,e)||(e=T)),D=t}return[i,e]}function tt(M,N,D){return(N[0]-M[0])*(D[1]-M[1])-(D[0]-M[0])*(N[1]-M[1])}function it(M){if(!M)throw new Error("line is required");var N=M.geometry?M.geometry.type:M.type;if(!Array.isArray(M)&&"LineString"!==N)throw new Error("geometry must be a LineString");for(var D,t,i=W(M),e=0,j=1;j<i.length;)D=t||i[0],e+=((t=i[j])[0]-D[0])*(t[1]+D[1]),j++;return e>0}function et(M,N){switch("Feature"===M.type?M.geometry.type:M.type){case"GeometryCollection":return h(M,(function(M){et(M,N)})),M;case"LineString":return jt(W(M),N),M;case"Polygon":return Tt(W(M),N),M;case"MultiLineString":return W(M).forEach((function(M){jt(M,N)})),M;case"MultiPolygon":return W(M).forEach((function(M){Tt(M,N)})),M;case"Point":case"MultiPoint":return M}}function jt(M,N){it(M)===N&&M.reverse()}function Tt(M,N){it(M[0])!==N&&M[0].reverse();for(var D=1;D<M.length;D++)it(M[D])===N&&M[D].reverse()}function gt(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.zProperty||"elevation",t=N.flip,i=N.flags;F(M,"Point","input must contain Points");for(var e=function(M,N){var D={};return Y(M,(function(M){var N=W(M)[1];D[N]||(D[N]=[]),D[N].push(M)})),Object.keys(D).map((function(M){var N=D[M],t=N.sort((function(M,N){return W(M)[0]-W(N)[0]}));return t})).sort((function(M,D){return N?W(M[0])[1]-W(D[0])[1]:W(D[0])[1]-W(M[0])[1]}))}(M,t),j=[],T=0;T<e.length;T++){for(var g=e[T],u=[],s=0;s<g.length;s++){var L=g[s];L.properties[D]?u.push(L.properties[D]):u.push(0),!0===i&&(L.properties.matrixPosition=[T,s])}j.push(u)}return j}function ut(M,N,D,t){t=t||{};for(var i=Object.keys(Bj),e=0;e<i.length;e++){var j=i[e],T=t[j];T=void 0!==T&&null!==T?T:Bj[j],bj[j]=T}bj.verbose&&console.log("MarchingSquaresJS-isoBands: computing isobands for ["+N+":"+(N+D)+"]");var g,u=function(M,N,D){for(var t=M.length-1,i=M[0].length-1,e={rows:t,cols:i,cells:[]},j=N+Math.abs(D),T=0;T<t;++T){e.cells[T]=[];for(var g=0;g<i;++g){var u=0,s=M[T+1][g],L=M[T+1][g+1],I=M[T][g+1],A=M[T][g];if(!(isNaN(s)||isNaN(L)||isNaN(I)||isNaN(A))){u|=s<N?0:s>j?128:64,u|=L<N?0:L>j?32:16,u|=I<N?0:I>j?8:4;var z=+(u|=A<N?0:A>j?2:1),n=0;if(17===u||18===u||33===u||34===u||38===u||68===u||72===u||98===u||102===u||132===u||136===u||137===u||152===u||153===u){var w=(s+L+I+A)/4;n=w>j?2:w<N?0:1,34===u?1===n?u=35:0===n&&(u=136):136===u?1===n?(u=35,n=4):0===n&&(u=34):17===u?1===n?(u=155,n=4):0===n&&(u=153):68===u?1===n?(u=103,n=4):0===n&&(u=102):153===u?1===n&&(u=155):102===u?1===n&&(u=103):152===u?n<2&&(u=156,n=1):137===u?n<2&&(u=139,n=1):98===u?n<2&&(u=99,n=1):38===u?n<2&&(u=39,n=1):18===u?n>0?(u=156,n=4):u=152:33===u?n>0?(u=139,n=4):u=137:72===u?n>0?(u=99,n=4):u=98:132===u&&(n>0?(u=39,n=4):u=38)}if(0!=u&&170!=u){var r,y,c,a,E,o,O,x;r=y=c=a=E=o=O=x=.5;var C=[];1===u?(c=1-st(N,I,A),x=1-st(N,s,A),C.push(CT[u])):169===u?(c=st(j,A,I),x=st(j,A,s),C.push(CT[u])):4===u?(o=1-st(N,L,I),a=st(N,A,I),C.push(OT[u])):166===u?(o=st(j,I,L),a=1-st(j,I,A),C.push(OT[u])):16===u?(E=st(N,I,L),y=st(N,s,L),C.push(oT[u])):154===u?(E=1-st(j,L,I),y=1-st(j,L,s),C.push(oT[u])):64===u?(O=st(N,A,s),r=1-st(N,L,s),C.push(lT[u])):106===u?(O=1-st(j,s,A),r=st(j,s,L),C.push(lT[u])):168===u?(a=st(j,A,I),c=st(N,A,I),x=st(N,A,s),O=st(j,A,s),C.push(xT[u]),C.push(CT[u])):2===u?(a=1-st(N,I,A),c=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),C.push(xT[u]),C.push(CT[u])):162===u?(E=st(j,I,L),o=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),C.push(xT[u]),C.push(CT[u])):8===u?(E=1-st(N,L,I),o=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),C.push(oT[u]),C.push(OT[u])):138===u?(E=1-st(N,L,I),o=1-st(j,L,I),r=1-st(j,L,s),y=1-st(N,L,s),C.push(oT[u]),C.push(OT[u])):32===u?(E=st(j,I,L),o=st(N,I,L),r=st(N,s,L),y=st(j,s,L),C.push(oT[u]),C.push(OT[u])):42===u?(x=1-st(j,s,A),O=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L),C.push(ST[u]),C.push(lT[u])):128===u&&(x=st(N,A,s),O=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s),C.push(ST[u]),C.push(lT[u])),5===u?(o=1-st(N,L,I),x=1-st(N,s,A),C.push(OT[u])):165===u?(o=st(j,I,L),x=st(j,A,s),C.push(OT[u])):20===u?(a=st(N,A,I),y=st(N,s,L),C.push(xT[u])):150===u?(a=1-st(j,I,A),y=1-st(j,L,s),C.push(xT[u])):80===u?(E=st(N,I,L),O=st(N,A,s),C.push(oT[u])):90===u?(E=1-st(j,L,I),O=1-st(j,s,A),C.push(oT[u])):65===u?(c=1-st(N,I,A),r=1-st(N,L,s),C.push(CT[u])):105===u?(c=st(j,A,I),r=st(j,s,L),C.push(CT[u])):160===u?(E=st(j,I,L),o=st(N,I,L),x=st(N,A,s),O=st(j,A,s),C.push(oT[u]),C.push(OT[u])):10===u?(E=1-st(N,L,I),o=1-st(j,L,I),x=1-st(j,s,A),O=1-st(N,s,A),C.push(oT[u]),C.push(OT[u])):130===u?(a=1-st(N,I,A),c=1-st(j,I,A),r=1-st(j,L,s),y=1-st(N,L,s),C.push(xT[u]),C.push(CT[u])):40===u?(a=st(j,A,I),c=st(N,A,I),r=st(N,s,L),y=st(j,s,L),C.push(xT[u]),C.push(CT[u])):101===u?(o=st(j,I,L),r=st(j,s,L),C.push(OT[u])):69===u?(o=1-st(N,L,I),r=1-st(N,L,s),C.push(OT[u])):149===u?(x=st(j,A,s),y=1-st(j,L,s),C.push(ST[u])):21===u?(x=1-st(N,s,A),y=st(N,s,L),C.push(ST[u])):86===u?(a=1-st(j,I,A),O=1-st(j,s,A),C.push(xT[u])):84===u?(a=st(N,A,I),O=st(N,A,s),C.push(xT[u])):89===u?(E=1-st(j,L,I),c=st(j,A,I),C.push(CT[u])):81===u?(E=st(N,I,L),c=1-st(N,I,A),C.push(CT[u])):96===u?(E=st(j,I,L),o=st(N,I,L),O=st(N,A,s),r=st(j,s,L),C.push(oT[u]),C.push(OT[u])):74===u?(E=1-st(N,L,I),o=1-st(j,L,I),O=1-st(j,s,A),r=1-st(N,L,s),C.push(oT[u]),C.push(OT[u])):24===u?(E=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),y=st(N,s,L),C.push(oT[u]),C.push(CT[u])):146===u?(E=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),y=1-st(j,L,s),C.push(oT[u]),C.push(CT[u])):6===u?(o=1-st(N,L,I),a=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),C.push(OT[u]),C.push(xT[u])):164===u?(o=st(j,I,L),a=st(N,A,I),x=st(N,A,s),O=st(j,A,s),C.push(OT[u]),C.push(xT[u])):129===u?(c=1-st(N,I,A),x=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s),C.push(CT[u]),C.push(ST[u])):41===u?(c=st(j,A,I),x=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L),C.push(CT[u]),C.push(ST[u])):66===u?(a=1-st(N,I,A),c=1-st(j,I,A),O=1-st(j,s,A),r=1-st(N,L,s),C.push(xT[u]),C.push(CT[u])):104===u?(a=st(j,A,I),c=st(N,A,I),O=st(N,A,s),r=st(j,s,L),C.push(CT[u]),C.push(kT[u])):144===u?(E=st(N,I,L),x=st(N,A,s),O=st(j,A,s),y=1-st(j,L,s),C.push(oT[u]),C.push(lT[u])):26===u?(E=1-st(j,L,I),x=1-st(j,s,A),O=1-st(N,s,A),y=st(N,s,L),C.push(oT[u]),C.push(lT[u])):36===u?(o=st(j,I,L),a=st(N,A,I),r=st(N,s,L),y=st(j,s,L),C.push(OT[u]),C.push(xT[u])):134===u?(o=1-st(N,L,I),a=1-st(j,I,A),r=1-st(j,L,s),y=1-st(N,L,s),C.push(OT[u]),C.push(xT[u])):9===u?(E=1-st(N,L,I),o=1-st(j,L,I),c=st(j,A,I),x=1-st(N,s,A),C.push(oT[u]),C.push(OT[u])):161===u?(E=st(j,I,L),o=st(N,I,L),c=1-st(N,I,A),x=st(j,A,s),C.push(oT[u]),C.push(OT[u])):37===u?(o=st(j,I,L),x=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L),C.push(OT[u]),C.push(ST[u])):133===u?(o=1-st(N,L,I),x=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s),C.push(OT[u]),C.push(ST[u])):148===u?(a=st(N,A,I),x=st(N,A,s),O=st(j,A,s),y=1-st(j,L,s),C.push(xT[u]),C.push(lT[u])):22===u?(a=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),y=st(N,s,L),C.push(xT[u]),C.push(lT[u])):82===u?(E=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),O=1-st(j,s,A),C.push(oT[u]),C.push(CT[u])):88===u?(E=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),O=st(N,A,s),C.push(oT[u]),C.push(CT[u])):73===u?(E=1-st(N,L,I),o=1-st(j,L,I),c=st(j,A,I),r=1-st(N,L,s),C.push(oT[u]),C.push(OT[u])):97===u?(E=st(j,I,L),o=st(N,I,L),c=1-st(N,I,A),r=st(j,s,L),C.push(oT[u]),C.push(OT[u])):145===u?(E=st(N,I,L),c=1-st(N,I,A),x=st(j,A,s),y=1-st(j,L,s),C.push(oT[u]),C.push(ST[u])):25===u?(E=1-st(j,L,I),c=st(j,A,I),x=1-st(N,s,A),y=st(N,s,L),C.push(oT[u]),C.push(ST[u])):70===u?(o=1-st(N,L,I),a=1-st(j,I,A),O=1-st(j,s,A),r=1-st(N,L,s),C.push(OT[u]),C.push(xT[u])):100===u?(o=st(j,I,L),a=st(N,A,I),O=st(N,A,s),r=st(j,s,L),C.push(OT[u]),C.push(xT[u])):34===u?(0===n?(E=1-st(N,L,I),o=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),x=st(N,A,s),O=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s)):(E=st(j,I,L),o=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L)),C.push(oT[u]),C.push(OT[u]),C.push(ST[u]),C.push(lT[u])):35===u?(4===n?(E=1-st(N,L,I),o=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),x=st(N,A,s),O=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s)):(E=st(j,I,L),o=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L)),C.push(oT[u]),C.push(OT[u]),C.push(CT[u]),C.push(lT[u])):136===u?(0===n?(E=st(j,I,L),o=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L)):(E=1-st(N,L,I),o=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),x=st(N,A,s),O=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s)),C.push(oT[u]),C.push(OT[u]),C.push(ST[u]),C.push(lT[u])):153===u?(0===n?(E=st(N,I,L),c=1-st(N,I,A),x=1-st(N,s,A),y=st(N,s,L)):(E=1-st(j,L,I),c=st(j,A,I),x=st(j,A,s),y=1-st(j,L,s)),C.push(oT[u]),C.push(CT[u])):102===u?(0===n?(o=1-st(N,L,I),a=st(N,A,I),O=st(N,A,s),r=1-st(N,L,s)):(o=st(j,I,L),a=1-st(j,I,A),O=1-st(j,s,A),r=st(j,s,L)),C.push(OT[u]),C.push(lT[u])):155===u?(4===n?(E=st(N,I,L),c=1-st(N,I,A),x=1-st(N,s,A),y=st(N,s,L)):(E=1-st(j,L,I),c=st(j,A,I),x=st(j,A,s),y=1-st(j,L,s)),C.push(oT[u]),C.push(ST[u])):103===u?(4===n?(o=1-st(N,L,I),a=st(N,A,I),O=st(N,A,s),r=1-st(N,L,s)):(o=st(j,I,L),a=1-st(j,I,A),O=1-st(j,s,A),r=st(j,s,L)),C.push(OT[u]),C.push(xT[u])):152===u?(0===n?(E=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),y=st(N,s,L)):(E=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),x=st(N,A,s),O=st(j,A,s),y=1-st(j,L,s)),C.push(oT[u]),C.push(xT[u]),C.push(CT[u])):156===u?(4===n?(E=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),y=st(N,s,L)):(E=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),x=st(N,A,s),O=st(j,A,s),y=1-st(j,L,s)),C.push(oT[u]),C.push(CT[u]),C.push(lT[u])):137===u?(0===n?(E=st(j,I,L),o=st(N,I,L),c=1-st(N,I,A),x=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L)):(E=1-st(N,L,I),o=1-st(j,L,I),c=st(j,A,I),x=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s)),C.push(oT[u]),C.push(OT[u]),C.push(CT[u])):139===u?(4===n?(E=st(j,I,L),o=st(N,I,L),c=1-st(N,I,A),x=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L)):(E=1-st(N,L,I),o=1-st(j,L,I),c=st(j,A,I),x=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s)),C.push(oT[u]),C.push(OT[u]),C.push(ST[u])):98===u?(0===n?(E=1-st(N,L,I),o=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),O=st(N,A,s),r=1-st(N,L,s)):(E=st(j,I,L),o=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),O=1-st(j,s,A),r=st(j,s,L)),C.push(oT[u]),C.push(OT[u]),C.push(lT[u])):99===u?(4===n?(E=1-st(N,L,I),o=1-st(j,L,I),a=st(j,A,I),c=st(N,A,I),O=st(N,A,s),r=1-st(N,L,s)):(E=st(j,I,L),o=st(N,I,L),a=1-st(N,I,A),c=1-st(j,I,A),O=1-st(j,s,A),r=st(j,s,L)),C.push(oT[u]),C.push(OT[u]),C.push(CT[u])):38===u?(0===n?(o=1-st(N,L,I),a=st(N,A,I),x=st(N,A,s),O=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s)):(o=st(j,I,L),a=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L)),C.push(OT[u]),C.push(ST[u]),C.push(lT[u])):39===u?(4===n?(o=1-st(N,L,I),a=st(N,A,I),x=st(N,A,s),O=st(j,A,s),r=1-st(j,L,s),y=1-st(N,L,s)):(o=st(j,I,L),a=1-st(j,I,A),x=1-st(j,s,A),O=1-st(N,s,A),r=st(N,s,L),y=st(j,s,L)),C.push(OT[u]),C.push(xT[u]),C.push(lT[u])):85===u&&(E=1,o=0,a=1,c=0,x=0,O=1,r=0,y=1),(r<0||r>1||y<0||y>1||E<0||E>1||a<0||a>1||x<0||x>1||O<0||O>1)&&console.log("MarchingSquaresJS-isoBands: "+u+" "+z+" "+s+","+L+","+I+","+A+" "+n+" "+r+" "+y+" "+E+" "+o+" "+a+" "+c+" "+x+" "+O),e.cells[T][g]={cval:u,cval_real:z,flipped:n,topleft:r,topright:y,righttop:E,rightbottom:o,bottomright:a,bottomleft:c,leftbottom:x,lefttop:O,edges:C}}}}}return e}(M,N,D);return bj.polygons?(bj.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),g=function(M){var N=[],D=0;return M.cells.forEach((function(M,t){M.forEach((function(M,i){if(void 0!==M){var e=dT[M.cval](M);"object"==typeof e&&Lt(e)?"object"==typeof e[0]&&Lt(e[0])?"object"==typeof e[0][0]&&Lt(e[0][0])?e.forEach((function(M){M.forEach((function(M){M[0]+=i,M[1]+=t})),N[D++]=M})):(e.forEach((function(M){M[0]+=i,M[1]+=t})),N[D++]=e):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}}))})),N}(u)):(bj.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),g=function(M){for(var N=[],D=M.rows,t=M.cols,i=[],e=0;e<D;e++)for(var j=0;j<t;j++)if(void 0!==M.cells[e][j]&&M.cells[e][j].edges.length>0){var T=M.cells[e][j],g=function(M){if(M.edges.length>0){var N=M.edges[M.edges.length-1],D=M.cval_real;switch(N){case 0:return D&Zj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[M.topleft,1],x:0,y:-1,o:0};case 1:return D&Gj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 2:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[M.topleft,1],x:0,y:-1,o:0};case 3:return D&Rj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 4:return D&Zj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[M.topright,1],x:0,y:-1,o:1};case 5:return D&Gj?{p:[M.topright,1],x:0,y:-1,o:1}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 6:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[M.topright,1],x:0,y:-1,o:1};case 7:return D&Rj?{p:[M.topright,1],x:0,y:-1,o:1}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 8:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[1,M.righttop],x:-1,y:0,o:1};case 9:return D&Rj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 10:return D&Rj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[1,M.righttop],x:-1,y:0,o:1};case 11:return D&Pj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[0,M.lefttop],x:1,y:0,o:1};case 12:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 13:return D&Rj?{p:[1,M.rightbottom],x:-1,y:0,o:0}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 14:return D&Rj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 15:return D&Pj?{p:[1,M.rightbottom],x:-1,y:0,o:0}:{p:[0,M.lefttop],x:1,y:0,o:1};case 16:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[0,M.leftbottom],x:1,y:0,o:0};case 17:return D&Pj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[0,M.lefttop],x:1,y:0,o:1};case 18:return D&Rj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 19:return D&Pj?{p:[M.bottomleft,0],x:0,y:1,o:0}:{p:[0,M.lefttop],x:1,y:0,o:1};case 20:return D&Pj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[0,M.leftbottom],x:1,y:0,o:0};case 21:return D&Zj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[M.topright,1],x:0,y:-1,o:1};case 22:return D&Pj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[0,M.lefttop],x:1,y:0,o:1};case 23:return D&Zj?{p:[0,M.lefttop],x:1,y:0,o:1}:{p:[M.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(M)}}return null}(T),u=null,s=j,L=e;null!==g&&i.push([g.p[0]+s,g.p[1]+L]);do{if(null===(u=function(M,N,D,t){var i,e,j,T,g,u=M.cval;switch(N){case-1:switch(t){case 0:i=OT[u],j=$j[u],T=MT[u],g=NT[u];break;default:i=oT[u],j=Jj[u],T=qj[u],g=Kj[u]}break;case 1:switch(t){case 0:i=ST[u],j=LT[u],T=IT[u],g=AT[u];break;default:i=lT[u],j=gT[u],T=uT[u],g=sT[u]}break;default:switch(D){case-1:switch(t){case 0:i=kT[u],j=Wj[u],T=Xj[u],g=Hj[u];break;default:i=QT[u],j=_j[u],T=Fj[u],g=Vj[u]}break;case 1:switch(t){case 0:i=CT[u],j=DT[u],T=tT[u],g=iT[u];break;default:i=xT[u],j=eT[u],T=jT[u],g=TT[u]}}}if(e=M.edges.indexOf(i),void 0===M.edges[e])return null;switch(function(M,N){delete M.edges[N];for(var D=N+1;D<M.edges.length;D++)M.edges[D-1]=M.edges[D];M.edges.pop()}(M,e),u=M.cval_real,i){case 0:u&Zj?(N=M.topleft,D=1):(N=1,D=M.righttop);break;case 1:u&Gj?(N=1,D=M.rightbottom):(N=M.topleft,D=1);break;case 2:u&Gj?(N=M.topleft,D=1):(N=M.bottomright,D=0);break;case 3:u&Rj?(N=M.bottomleft,D=0):(N=M.topleft,D=1);break;case 4:u&Zj?(N=M.topright,D=1):(N=1,D=M.righttop);break;case 5:u&Gj?(N=1,D=M.rightbottom):(N=M.topright,D=1);break;case 6:u&Gj?(N=M.topright,D=1):(N=M.bottomright,D=0);break;case 7:u&Rj?(N=M.bottomleft,D=0):(N=M.topright,D=1);break;case 8:u&Gj?(N=1,D=M.righttop):(N=M.bottomright,D=0);break;case 9:u&Rj?(N=M.bottomleft,D=0):(N=1,D=M.righttop);break;case 10:u&Rj?(N=1,D=M.righttop):(N=0,D=M.leftbottom);break;case 11:u&Pj?(N=0,D=M.lefttop):(N=1,D=M.righttop);break;case 12:u&Gj?(N=1,D=M.rightbottom):(N=M.bottomright,D=0);break;case 13:u&Rj?(N=M.bottomleft,D=0):(N=1,D=M.rightbottom);break;case 14:u&Rj?(N=1,D=M.rightbottom):(N=0,D=M.leftbottom);break;case 15:u&Pj?(N=0,D=M.lefttop):(N=1,D=M.rightbottom);break;case 16:u&Gj?(N=0,D=M.leftbottom):(N=M.bottomright,D=0);break;case 17:u&Pj?(N=0,D=M.lefttop):(N=M.bottomright,D=0);break;case 18:u&Rj?(N=M.bottomleft,D=0):(N=0,D=M.leftbottom);break;case 19:u&Pj?(N=0,D=M.lefttop):(N=M.bottomleft,D=0);break;case 20:u&Pj?(N=0,D=M.leftbottom):(N=M.topleft,D=1);break;case 21:u&Zj?(N=M.topright,D=1):(N=0,D=M.leftbottom);break;case 22:u&Pj?(N=0,D=M.lefttop):(N=M.topleft,D=1);break;case 23:u&Zj?(N=M.topright,D=1):(N=0,D=M.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(M),null}return void 0!==N&&void 0!==D&&void 0!==j&&void 0!==T&&void 0!==g||(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(M),console.log(N+" "+D+" "+j+" "+T+" "+g)),{p:[N,D],x:j,y:T,o:g}}(M.cells[L][s],g.x,g.y,g.o)))break;if(i.push([u.p[0]+s,u.p[1]+L]),s+=u.x,L+=u.y,g=u,L<0||L>=D||s<0||s>=t||void 0===M.cells[L][s]){s-=u.x,L-=u.y;var I=function(M,N,D,t,i,e){for(var j=M.cells[D][N],T=j.cval_real,g=N+t,u=D+i,s=[],L=!1;!L;){if(void 0===M.cells[u]||void 0===M.cells[u][g])if(u-=i,g-=t,j=M.cells[u][g],T=j.cval_real,-1===i)if(0===e)if(T&Rj)s.push([g,u]),t=-1,i=0,e=0;else{if(!(T&Gj)){s.push([g+j.bottomright,u]),t=0,i=1,e=1,L=!0;break}s.push([g+1,u]),t=1,i=0,e=0}else{if(!(T&Rj)){if(T&Gj){s.push([g+j.bottomright,u]),t=0,i=1,e=1,L=!0;break}s.push([g+j.bottomleft,u]),t=0,i=1,e=0,L=!0;break}s.push([g,u]),t=-1,i=0,e=0}else if(1===i)if(0===e){if(!(T&Zj)){if(T&Pj){s.push([g+j.topleft,u+1]),t=0,i=-1,e=0,L=!0;break}s.push([g+j.topright,u+1]),t=0,i=-1,e=1,L=!0;break}s.push([g+1,u+1]),t=1,i=0,e=1}else s.push([g+1,u+1]),t=1,i=0,e=1;else if(-1===t)if(0===e){if(!(T&Pj)){if(T&Rj){s.push([g,u+j.leftbottom]),t=1,i=0,e=0,L=!0;break}s.push([g,u+j.lefttop]),t=1,i=0,e=1,L=!0;break}s.push([g,u+1]),t=0,i=1,e=0}else{if(!(T&Pj)){console.log("MarchingSquaresJS-isoBands: wtf");break}s.push([g,u+1]),t=0,i=1,e=0}else{if(1!==t){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(0===e){if(!(T&Gj)){s.push([g+1,u+j.rightbottom]),t=-1,i=0,e=0,L=!0;break}s.push([g+1,u]),t=0,i=-1,e=1}else{if(!(T&Gj)){if(T&Zj){s.push([g+1,u+j.righttop]),t=-1,i=0,e=1;break}s.push([g+1,u+j.rightbottom]),t=-1,i=0,e=0,L=!0;break}s.push([g+1,u]),t=0,i=-1,e=1}}else if(j=M.cells[u][g],T=j.cval_real,-1===t)if(0===e)if(void 0!==M.cells[u-1]&&void 0!==M.cells[u-1][g])t=0,i=-1,e=1;else{if(!(T&Rj)){s.push([g+j.bottomright,u]),t=0,i=1,e=1,L=!0;break}s.push([g,u])}else{if(!(T&Pj)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+g+","+u);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(1===t){if(0===e){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==M.cells[u+1]&&void 0!==M.cells[u+1][g])t=0,i=1,e=0;else{if(!(T&Zj)){s.push([g+j.topleft,u+1]),t=0,i=-1,e=0,L=!0;break}s.push([g+1,u+1]),t=1,i=0,e=1}}else if(-1===i){if(1!==e){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==M.cells[u][g+1])t=1,i=0,e=1;else{if(!(T&Gj)){s.push([g+1,u+j.righttop]),t=-1,i=0,e=1,L=!0;break}s.push([g+1,u]),t=0,i=-1,e=1}}else{if(1!==i){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(0!==e){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==M.cells[u][g-1])t=-1,i=0,e=0;else{if(!(T&Pj)){s.push([g,u+j.leftbottom]),t=1,i=0,e=0,L=!0;break}s.push([g,u+1]),t=0,i=1,e=0}}if(g+=t,u+=i,g===N&&u===D)break}return{path:s,i:g,j:u,x:t,y:i,o:e}}(M,s,L,u.x,u.y,u.o);if(null===I)break;I.path.forEach((function(M){i.push(M)})),s=I.i,L=I.j,g=I}}while(void 0!==M.cells[L][s]&&M.cells[L][s].edges.length>0);N.push(i),i=[],M.cells[e][j].edges.length>0&&j--}return N}(u)),"function"==typeof bj.successCallback&&bj.successCallback(g),g}function st(M,N,D){return(M-N)/(D-N)}function Lt(M){return M.constructor.toString().indexOf("Array")>-1}function It(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.pivot,i=D.mutate;if(!M)throw new Error("geojson is required");if(void 0===N||null===N||isNaN(N))throw new Error("angle is required");return 0===N||(t||(t=wN(M)),!1!==i&&void 0!==i||(M=BM(M)),l(M,(function(M){var D=eD(t,M)+N,i=TD(t,M),e=W(Nt(t,i,D));M[0]=e[0],M[1]=e[1]}))),M}function At(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.origin,i=D.mutate;if(!M)throw new Error("geojson required");if("number"!=typeof N||0===N)throw new Error("invalid factor");var e=Array.isArray(t)||"object"==typeof t;return!0!==i&&(M=BM(M)),"FeatureCollection"!==M.type||e?zt(M,N,t):(Y(M,(function(D,i){M.features[i]=zt(D,N,t)})),M)}function zt(M,N,D){var i="Point"===q(M);return D=function(M,N){if(void 0!==N&&null!==N||(N="centroid"),Array.isArray(N)||"object"==typeof N)return R(N);var D=M.bbox?M.bbox:G(M),i=D[0],e=D[1],j=D[2],T=D[3];switch(N){case"sw":case"southwest":case"westsouth":case"bottomleft":return t([i,e]);case"se":case"southeast":case"eastsouth":case"bottomright":return t([j,e]);case"nw":case"northwest":case"westnorth":case"topleft":return t([i,T]);case"ne":case"northeast":case"eastnorth":case"topright":return t([j,T]);case"center":return nN(M);case void 0:case null:case"centroid":return wN(M);default:throw new Error("invalid origin")}}(M,D),1===N||i||l(M,(function(M){var t=TD(D,M),i=eD(D,M),e=W(Nt(D,t*N,i));M[0]=e[0],M[1]=e[1],3===M.length&&(M[2]*=N)})),M}function nt(M){var N=M[0],D=M[1];return[D[0]-N[0],D[1]-N[1]]}function wt(M,N){return M[0]*N[1]-N[0]*M[1]}function rt(M,N){return!function(M,N){return 0===wt(nt(M),nt(N))}(M,N)&&function(M,N){var D=M[0],t=nt(M),i=N[0],e=nt(N),j=wt(t,e);return function(M,N){return[M[0]+N[0],M[1]+N[1]]}(D,function(M,N){return[M*N[0],M*N[1]]}(wt(function(M,N){return[M[0]-N[0],M[1]-N[1]]}(i,D),e)/j,t))}(M,N)}function yt(M,N,D){var t=[],i=r(N,D),e=W(M),j=[];return e.forEach((function(M,N){if(N!==e.length-1){var D=function(M,N,D){var t=Math.sqrt((M[0]-N[0])*(M[0]-N[0])+(M[1]-N[1])*(M[1]-N[1])),i=M[0]+D*(N[1]-M[1])/t,e=N[0]+D*(N[1]-M[1])/t,j=M[1]+D*(M[0]-N[0])/t,T=N[1]+D*(M[0]-N[0])/t;return[[i,j],[e,T]]}(M,e[N+1],i);if(t.push(D),N>0){var T=t[N-1],g=rt(D,T);!1!==g&&(T[1]=g,D[0]=g),j.push(T[0]),N===e.length-2&&(j.push(D[0]),j.push(D[1]))}2===e.length&&(j.push(D[0]),j.push(D[1]))}})),T(j,M.properties)}function ct(M,N,D){var t=N[0]-M[0],i=N[1]-M[1],e=D[0]-N[0],j=D[1]-N[1];return Math.sign(t*j-e*i)}function at(M,N){return N.geometry.coordinates[0].every((function(N){return dM(t(N),M)}))}function Et(M,N){for(var D=0;D<M.coordinates.length-1;D++)if(function(M,N,D){var t=D[0]-M[0],i=D[1]-M[1],e=N[0]-M[0],j=N[1]-M[1];return t*j-i*e==0&&(Math.abs(e)>=Math.abs(j)?e>0?M[0]<=D[0]&&D[0]<=N[0]:N[0]<=D[0]&&D[0]<=M[0]:j>0?M[1]<=D[1]&&D[1]<=N[1]:N[1]<=D[1]&&D[1]<=M[1])}(M.coordinates[D],M.coordinates[D+1],N.coordinates))return!0;return!1}function ot(M,N){return DD(N,bD(M)).features.length>0}function Ot(M,N){return!(M[0]>N[0])&&!(M[2]<N[2])&&!(M[1]>N[1])&&!(M[3]<N[3])}function xt(M,N){return M[0]===N[0]&&M[1]===N[1]}function Ct(M,N){for(var D=!1,t=!1,i=M.coordinates.length,e=0;e<i&&!D&&!t;){for(var j=0;j<N.coordinates.length-1;j++){var T=!0;0!==j&&j!==N.coordinates.length-2||(T=!1),kt(N.coordinates[j],N.coordinates[j+1],M.coordinates[e],T)?D=!0:t=!0}e++}return D&&t}function St(M,N){return DD(M,bD(N)).features.length>0}function lt(M,N){for(var D=!1,i=!1,e=M.coordinates[0].length,j=0;j<e&&D&&i;)dM(t(M.coordinates[0][j]),N)?D=!0:i=!0,j++;return i&&i}function kt(M,N,D,t){var i=D[0]-M[0],e=D[1]-M[1],j=N[0]-M[0],T=N[1]-M[1];return 0==i*T-e*j&&(t?Math.abs(j)>=Math.abs(T)?j>0?M[0]<=D[0]&&D[0]<=N[0]:N[0]<=D[0]&&D[0]<=M[0]:T>0?M[1]<=D[1]&&D[1]<=N[1]:N[1]<=D[1]&&D[1]<=M[1]:Math.abs(j)>=Math.abs(T)?j>0?M[0]<D[0]&&D[0]<N[0]:N[0]<D[0]&&D[0]<M[0]:T>0?M[1]<D[1]&&D[1]<N[1]:N[1]<D[1]&&D[1]<M[1])}function Qt(M){return M.coordinates.map((function(N){return{type:M.type.replace("Multi",""),coordinates:N}}))}function dt(M,N){return M.hasOwnProperty("coordinates")?M.coordinates.length===N.coordinates.length:M.length===N.length}function Yt(M,N){return BT(M,N,{strict:!0})}function Ut(M,N){if(!M)throw new Error("feature1 is required");if(!N)throw new Error("feature2 is required");var D=q(M);if(D!==q(N))throw new Error("features must be of the same type");if("Point"===D)throw new Error("Point geometry not supported");if(new PT({precision:6}).compare(M,N))return!1;var t=0;switch(D){case"MultiPoint":var i=p(M),e=p(N);i.forEach((function(M){e.forEach((function(N){M[0]===N[0]&&M[1]===N[1]&&t++}))}));break;case"LineString":case"MultiLineString":B(M,(function(M){B(N,(function(N){KD(M,N).features.length&&t++}))}));break;case"Polygon":case"MultiPolygon":B(M,(function(M){B(N,(function(N){DD(M,N).features.length&&t++}))}))}return t>0}function pt(M,N,D){D=D||[];for(var t=0;t<M;t++)D[t]=N;return D}function ht(M,N){if(M.geometry&&M.geometry.type)return M.geometry.type;if(M.type)return M.type;throw new Error("Invalid GeoJSON object for "+N)}function ft(M){for(var N=M,D=[];N.parent;)D.unshift(N),N=N.parent;return D}function mt(M,N){N=N||{},this.nodes=[],this.diagonal=!!N.diagonal,this.grid=[];for(var D=0;D<M.length;D++){this.grid[D]=[];for(var t=0,i=M[D];t<i.length;t++){var e=new vt(D,t,i[t]);this.grid[D][t]=e,this.nodes.push(e)}}this.init()}function vt(M,N,D){this.x=M,this.y=N,this.weight=D}function Bt(M){this.content=[],this.scoreFunction=M}function bt(M){return M[0]}function Pt(M){return M[1]}function Zt(){this._=null}function Gt(M){M.U=M.C=M.L=M.R=M.P=M.N=null}function Rt(M,N){var D=N,t=N.R,i=D.U;i?i.L===D?i.L=t:i.R=t:M._=t,t.U=i,D.U=t,D.R=t.L,D.R&&(D.R.U=D),t.L=D}function Wt(M,N){var D=N,t=N.L,i=D.U;i?i.L===D?i.L=t:i.R=t:M._=t,t.U=i,D.U=t,D.L=t.R,D.L&&(D.L.U=D),t.R=D}function Xt(M){for(;M.L;)M=M.L;return M}function Ht(M,N,D,t){var i=[null,null],e=jg.push(i)-1;return i.left=M,i.right=N,D&&Ft(i,M,N,D),t&&Ft(i,N,M,t),ig[M.index].halfedges.push(e),ig[N.index].halfedges.push(e),i}function _t(M,N,D){var t=[N,D];return t.left=M,t}function Ft(M,N,D,t){M[0]||M[1]?M.left===D?M[1]=t:M[0]=t:(M[0]=t,M.left=N,M.right=D)}function Vt(M,N,D,t,i){var e,j=M[0],T=M[1],g=j[0],u=j[1],s=0,L=1,I=T[0]-g,A=T[1]-u;if(e=N-g,I||!(e>0)){if(e/=I,I<0){if(e<s)return;e<L&&(L=e)}else if(I>0){if(e>L)return;e>s&&(s=e)}if(e=t-g,I||!(e<0)){if(e/=I,I<0){if(e>L)return;e>s&&(s=e)}else if(I>0){if(e<s)return;e<L&&(L=e)}if(e=D-u,A||!(e>0)){if(e/=A,A<0){if(e<s)return;e<L&&(L=e)}else if(A>0){if(e>L)return;e>s&&(s=e)}if(e=i-u,A||!(e<0)){if(e/=A,A<0){if(e>L)return;e>s&&(s=e)}else if(A>0){if(e<s)return;e<L&&(L=e)}return!(s>0||L<1)||(s>0&&(M[0]=[g+s*I,u+s*A]),L<1&&(M[1]=[g+L*I,u+L*A]),!0)}}}}}function Jt(M,N,D,t,i){var e=M[1];if(e)return!0;var j,T,g=M[0],u=M.left,s=M.right,L=u[0],I=u[1],A=s[0],z=s[1],n=(L+A)/2,w=(I+z)/2;if(z===I){if(n<N||n>=t)return;if(L>A){if(g){if(g[1]>=i)return}else g=[n,D];e=[n,i]}else{if(g){if(g[1]<D)return}else g=[n,i];e=[n,D]}}else if(j=(L-A)/(z-I),T=w-j*n,j<-1||j>1)if(L>A){if(g){if(g[1]>=i)return}else g=[(D-T)/j,D];e=[(i-T)/j,i]}else{if(g){if(g[1]<D)return}else g=[(i-T)/j,i];e=[(D-T)/j,D]}else if(I<z){if(g){if(g[0]>=t)return}else g=[N,j*N+T];e=[t,j*t+T]}else{if(g){if(g[0]<N)return}else g=[t,j*t+T];e=[N,j*N+T]}return M[0]=g,M[1]=e,!0}function qt(M,N){var D=M.site,t=N.left,i=N.right;return D===i&&(i=t,t=D),i?Math.atan2(i[1]-t[1],i[0]-t[0]):(D===t?(t=N[1],i=N[0]):(t=N[0],i=N[1]),Math.atan2(t[0]-i[0],i[1]-t[1]))}function Kt(M,N){return N[+(N.left!==M.site)]}function $t(M,N){return N[+(N.left===M.site)]}function Mi(M){var N=M.P,D=M.N;if(N&&D){var t=N.site,i=M.site,e=D.site;if(t!==e){var j=i[0],T=i[1],g=t[0]-j,u=t[1]-T,s=e[0]-j,L=e[1]-T,I=2*(g*L-u*s);if(!(I>=-sg)){var A=g*g+u*u,z=s*s+L*L,n=(L*A-u*z)/I,w=(g*z-s*A)/I,r=Tg.pop()||new function(){Gt(this),this.x=this.y=this.arc=this.site=this.cy=null};r.arc=M,r.site=i,r.x=n+j,r.y=(r.cy=w+T)+Math.sqrt(n*n+w*w),M.circle=r;for(var y=null,c=eg._;c;)if(r.y<c.y||r.y===c.y&&r.x<=c.x){if(!c.L){y=c.P;break}c=c.L}else{if(!c.R){y=c;break}c=c.R}eg.insert(y,r),y||(Dg=r)}}}}function Ni(M){var N=M.circle;N&&(N.P||(Dg=N.N),eg.remove(N),Tg.push(N),Gt(N),M.circle=null)}function Di(M){var N=gg.pop()||new function(){Gt(this),this.edge=this.site=this.circle=null};return N.site=M,N}function ti(M){Ni(M),tg.remove(M),gg.push(M),Gt(M)}function ii(M){var N=M.circle,D=N.x,t=N.cy,i=[D,t],e=M.P,j=M.N,T=[M];ti(M);for(var g=e;g.circle&&Math.abs(D-g.circle.x)<ug&&Math.abs(t-g.circle.cy)<ug;)e=g.P,T.unshift(g),ti(g),g=e;T.unshift(g),Ni(g);for(var u=j;u.circle&&Math.abs(D-u.circle.x)<ug&&Math.abs(t-u.circle.cy)<ug;)j=u.N,T.push(u),ti(u),u=j;T.push(u),Ni(u);var s,L=T.length;for(s=1;s<L;++s)u=T[s],g=T[s-1],Ft(u.edge,g.site,u.site,i);g=T[0],(u=T[L-1]).edge=Ht(g.site,u.site,null,i),Mi(g),Mi(u)}function ei(M){for(var N,D,t,i,e=M[0],j=M[1],T=tg._;T;)if((t=ji(T,j)-e)>ug)T=T.L;else{if(!((i=e-function(M,N){var D=M.N;if(D)return ji(D,N);var t=M.site;return t[1]===N?t[0]:1/0}(T,j))>ug)){t>-ug?(N=T.P,D=T):i>-ug?(N=T,D=T.N):N=D=T;break}if(!T.R){N=T;break}T=T.R}!function(M){ig[M.index]={site:M,halfedges:[]}}(M);var g=Di(M);if(tg.insert(N,g),N||D){if(N===D)return Ni(N),D=Di(N.site),tg.insert(g,D),g.edge=D.edge=Ht(N.site,g.site),Mi(N),void Mi(D);if(D){Ni(N),Ni(D);var u=N.site,s=u[0],L=u[1],I=M[0]-s,A=M[1]-L,z=D.site,n=z[0]-s,w=z[1]-L,r=2*(I*w-A*n),y=I*I+A*A,c=n*n+w*w,a=[(w*y-A*c)/r+s,(I*c-n*y)/r+L];Ft(D.edge,u,z,a),g.edge=Ht(u,M,null,a),D.edge=Ht(M,z,null,a),Mi(N),Mi(D)}else g.edge=Ht(N.site,g.site)}}function ji(M,N){var D=M.site,t=D[0],i=D[1],e=i-N;if(!e)return t;var j=M.P;if(!j)return-1/0;var T=(D=j.site)[0],g=D[1],u=g-N;if(!u)return T;var s=T-t,L=1/e-1/u,I=s/u;return L?(-I+Math.sqrt(I*I-2*L*(s*s/(-2*u)-g+u/2+i-e/2)))/L+t:(t+T)/2}function Ti(M,N,D){return(M[0]-D[0])*(N[1]-M[1])-(M[0]-N[0])*(D[1]-M[1])}function gi(M,N){return N[1]-M[1]||N[0]-M[0]}function ui(M,N){var D,t,i,e=M.sort(gi).pop();for(jg=[],ig=new Array(M.length),tg=new Zt,eg=new Zt;;)if(i=Dg,e&&(!i||e[1]<i.y||e[1]===i.y&&e[0]<i.x))e[0]===D&&e[1]===t||(ei(e),D=e[0],t=e[1]),e=M.pop();else{if(!i)break;ii(i.arc)}if(function(){for(var M,N,D,t,i=0,e=ig.length;i<e;++i)if((M=ig[i])&&(t=(N=M.halfedges).length)){var j=new Array(t),T=new Array(t);for(D=0;D<t;++D)j[D]=D,T[D]=qt(M,jg[N[D]]);for(j.sort((function(M,N){return T[N]-T[M]})),D=0;D<t;++D)T[D]=N[j[D]];for(D=0;D<t;++D)N[D]=T[D]}}(),N){var j=+N[0][0],T=+N[0][1],g=+N[1][0],u=+N[1][1];!function(M,N,D,t){for(var i,e=jg.length;e--;)Jt(i=jg[e],M,N,D,t)&&Vt(i,M,N,D,t)&&(Math.abs(i[0][0]-i[1][0])>ug||Math.abs(i[0][1]-i[1][1])>ug)||delete jg[e]}(j,T,g,u),function(M,N,D,t){var i,e,j,T,g,u,s,L,I,A,z,n,w=ig.length,r=!0;for(i=0;i<w;++i)if(e=ig[i]){for(j=e.site,T=(g=e.halfedges).length;T--;)jg[g[T]]||g.splice(T,1);for(T=0,u=g.length;T<u;)z=(A=$t(e,jg[g[T]]))[0],n=A[1],L=(s=Kt(e,jg[g[++T%u]]))[0],I=s[1],(Math.abs(z-L)>ug||Math.abs(n-I)>ug)&&(g.splice(T,0,jg.push(_t(j,A,Math.abs(z-M)<ug&&t-n>ug?[M,Math.abs(L-M)<ug?I:t]:Math.abs(n-t)<ug&&D-z>ug?[Math.abs(I-t)<ug?L:D,t]:Math.abs(z-D)<ug&&n-N>ug?[D,Math.abs(L-D)<ug?I:N]:Math.abs(n-N)<ug&&z-M>ug?[Math.abs(I-N)<ug?L:M,N]:null))-1),++u);u&&(r=!1)}if(r){var y,c,a,E=1/0;for(i=0,r=null;i<w;++i)(e=ig[i])&&(a=(y=(j=e.site)[0]-M)*y+(c=j[1]-N)*c)<E&&(E=a,r=e);if(r){var o=[M,N],O=[M,t],x=[D,t],C=[D,N];r.halfedges.push(jg.push(_t(j=r.site,o,O))-1,jg.push(_t(j,O,x))-1,jg.push(_t(j,x,C))-1,jg.push(_t(j,C,o))-1)}}for(i=0;i<w;++i)(e=ig[i])&&(e.halfedges.length||delete ig[i])}(j,T,g,u)}this.edges=jg,this.cells=ig,tg=eg=jg=ig=null}function si(M){return(M=M.slice()).push(M[0]),e([M])}function Li(M,N,D,t){var i=(t=t||{}).steps||64,j=t.units||"kilometers",T=t.angle||0,g=t.pivot||M,u=t.properties||M.properties||{};if(!M)throw new Error("center is required");if(!N)throw new Error("xSemiAxis is required");if(!D)throw new Error("ySemiAxis is required");if(!x(t))throw new Error("options must be an object");if(!O(i))throw new Error("steps must be a number");if(!O(T))throw new Error("angle must be a number");var s=R(M);if("degrees"===j)var L=a(T);else N=Nt(M,N,90,{units:j}),D=Nt(M,D,0,{units:j}),N=R(N)[0]-s[0],D=R(D)[1]-s[1];for(var I=[],A=0;A<i;A+=1){var z=-360*A/i,n=N*D/Math.sqrt(Math.pow(D,2)+Math.pow(N,2)*Math.pow(Ii(z),2)),w=N*D/Math.sqrt(Math.pow(N,2)+Math.pow(D,2)/Math.pow(Ii(z),2));if(z<-90&&z>=-270&&(n=-n),z<-180&&z>=-360&&(w=-w),"degrees"===j){var r=n*Math.cos(L)+w*Math.sin(L),y=w*Math.cos(L)-n*Math.sin(L);n=r,w=y}I.push([n+s[0],w+s[1]])}return I.push(I[0]),"degrees"===j?e([I],u):It(e([I],u),T,{pivot:g})}function Ii(M){var N=M*Math.PI/180;return Math.tan(N)}function Ai(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties,i=N.weight;if(!M)throw new Error("geojson is required");var e=0,j=0,T=0;return h(M,(function(M,N,D){var t=D[i];if(t=void 0===t||null===t?1:t,!O(t))throw new Error("weight value must be a number for feature index "+N);(t=Number(t))>0&&l(M,(function(M){e+=M[0]*t,j+=M[1]*t,T+=t}))})),t([e/T,j/T],D)}function zi(M,N,D,i){var e=D.properties.tolerance||.001,j=0,T=0,g=0,u=0;if(Y(D,(function(N){var D=N.properties.weight,t=void 0===D||null===D?1:D;if(t=Number(t),!O(t))throw new Error("weight value must be a number");if(t>0){u+=1;var i=t*vM(N,M);0===i&&(i=1);var e=t/i;j+=N.geometry.coordinates[0]*e,T+=N.geometry.coordinates[1]*e,g+=e}})),u<1)throw new Error("no features to measure");var s=j/g,L=T/g;return 1===u||0===i||Math.abs(s-N[0])<e&&Math.abs(L-N[1])<e?t([s,L],{medianCandidates:D.properties.medianCandidates}):(D.properties.medianCandidates.push([s,L]),zi([s,L],M,D,i-1))}function ni(M,N){return{x:M[0]-N[0],y:M[1]-N[1]}}function wi(M){if(x(M)&&(M=M.bbox),M&&!Array.isArray(M))throw new Error("bbox is invalid");return M?function(M){return[Math.random()*(M[2]-M[0])+M[0],Math.random()*(M[3]-M[1])+M[1]]}(M):[360*ai(),180*ai()]}function ri(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox;void 0!==M&&null!==M||(M=1);for(var i=[],e=0;e<M;e++)i.push(t(wi(D)));return u(i)}function yi(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox,t=N.num_vertices,i=N.max_radial_length;void 0!==M&&null!==M||(M=1),O(t)||(t=10),O(i)||(i=10);for(var j=[],T=0;T<M;T++){var g=[],s=Array.apply(null,new Array(t+1)).map(Math.random);s.forEach((function(M,N,D){D[N]=N>0?M+D[N-1]:M})),s.forEach((function(M){M=2*M*Math.PI/s[s.length-1];var N=Math.random();g.push([N*i*Math.sin(M),N*i*Math.cos(M)])})),g[g.length-1]=g[0],g=g.map(function(M){return function(N){return[N[0]+M[0],N[1]+M[1]]}}(wi(D))),j.push(e([g]))}return u(j)}function ci(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox,t=N.num_vertices,i=N.max_length,e=N.max_rotation;void 0!==M&&null!==M||(M=1),(!O(t)||t<2)&&(t=10),O(i)||(i=1e-4),O(e)||(e=Math.PI/8);for(var j=[],g=0;g<M;g++){for(var s=[wi(D)],L=0;L<t-1;L++){var I=(0===L?2*Math.random()*Math.PI:Math.tan((s[L][1]-s[L-1][1])/(s[L][0]-s[L-1][0])))+(Math.random()-.5)*e*2,A=Math.random()*i;s.push([s[L][0]+A*Math.cos(I),s[L][1]+A*Math.sin(I)])}j.push(T(s))}return u(j)}function ai(){return Math.random()-.5}function Ei(M,N){if(!M)throw new Error("geojson is required");if("FeatureCollection"!==M.type)throw new Error("geojson must be a FeatureCollection");if(void 0===N||null===N)throw new Error("filter is required");var D=[];return Y(M,(function(M){Ci(M.properties,N)&&D.push(M)})),u(D)}function oi(M,N,D){if(!M)throw new Error("geojson is required");if("FeatureCollection"!==M.type)throw new Error("geojson must be a FeatureCollection");if(void 0===N||null===N)throw new Error("property is required");for(var t=xi(M,N),i=Object.keys(t),e=0;e<i.length;e++){for(var j=i[e],T=t[j],g=[],s=0;s<T.length;s++)g.push(M.features[T[s]]);D(u(g),j,e)}}function Oi(M,N,D,t){var i=t;return oi(M,N,(function(M,N,e){i=0===e&&void 0===t?M:D(i,M,N,e)})),i}function xi(M,N){var D={};return Y(M,(function(M,t){var i=M.properties||{};if(i.hasOwnProperty(N)){var e=i[N];D.hasOwnProperty(e)?D[e].push(t):D[e]=[t]}})),D}function Ci(M,N){if(void 0===M)return!1;var D=typeof N;if("number"===D||"string"===D)return M.hasOwnProperty(N);if(Array.isArray(N)){for(var t=0;t<N.length;t++)if(!Ci(M,N[t]))return!1;return!0}return Si(M,N)}function Si(M,N){for(var D=Object.keys(N),t=0;t<D.length;t++){var i=D[t];if(M[i]!==N[i])return!1}return!0}function li(M,N){if(!N)return{};if(!N.length)return{};for(var D={},t=0;t<N.length;t++){var i=N[t];M.hasOwnProperty(i)&&(D[i]=M[i])}return D}function ki(){}function Qi(M){this.message=M||""}function di(M){this.message=M||""}function Yi(){}function Ui(M){return null===M?Uu:M.color}function pi(M){return null===M?null:M.parent}function hi(M,N){null!==M&&(M.color=N)}function fi(M){return null===M?null:M.left}function mi(M){return null===M?null:M.right}function vi(){this.root_=null,this.size_=0}function Bi(){}function bi(){this.array_=[],arguments[0]instanceof ru&&this.addAll(arguments[0])}function Pi(){}function Zi(M){this.message=M||""}function Gi(){this.array_=[]}function Ri(M){switch(M.type){case"Polygon":return rD(M)>1?M:null;case"MultiPolygon":var N=[];if(m(M,(function(M){rD(M)>1&&N.push(M.geometry.coordinates)})),N.length)return{type:"MultiPolygon",coordinates:N}}}function Wi(){this.reset()}function Xi(M,N,D){var t=M.s=N+D,i=t-N,e=t-i;M.t=N-e+(D-i)}function Hi(M){return M>1?vA:M<-1?-vA:Math.asin(M)}function _i(){}function Fi(M,N){M&&KA.hasOwnProperty(M.type)&&KA[M.type](M,N)}function Vi(M,N,D){var t,i=-1,e=M.length-D;for(N.lineStart();++i<e;)t=M[i],N.point(t[0],t[1],t[2]);N.lineEnd()}function Ji(M,N){var D=-1,t=M.length;for(N.polygonStart();++D<t;)Vi(M[D],N,1);N.polygonEnd()}function qi(M){return[WA(M[1],M[0]),Hi(M[2])]}function Ki(M){var N=M[0],D=M[1],t=XA(D);return[t*XA(N),t*FA(N),FA(D)]}function $i(M,N){return M[0]*N[0]+M[1]*N[1]+M[2]*N[2]}function Me(M,N){return[M[1]*N[2]-M[2]*N[1],M[2]*N[0]-M[0]*N[2],M[0]*N[1]-M[1]*N[0]]}function Ne(M,N){M[0]+=N[0],M[1]+=N[1],M[2]+=N[2]}function De(M,N){return[M[0]*N,M[1]*N,M[2]*N]}function te(M){var N=VA(M[0]*M[0]+M[1]*M[1]+M[2]*M[2]);M[0]/=N,M[1]/=N,M[2]/=N}function ie(M,N){return[M>mA?M-bA:M<-mA?M+bA:M,N]}function ee(M,N,D){return(M%=bA)?N||D?Mz(Te(M),ge(N,D)):Te(M):N||D?ge(N,D):ie}function je(M){return function(N,D){return N+=M,[N>mA?N-bA:N<-mA?N+bA:N,D]}}function Te(M){var N=je(M);return N.invert=je(-M),N}function ge(M,N){function D(M,N){var D=XA(N),T=XA(M)*D,g=FA(M)*D,u=FA(N),s=u*t+T*i;return[WA(g*e-s*j,T*t-u*i),Hi(s*e+g*j)]}var t=XA(M),i=FA(M),e=XA(N),j=FA(N);return D.invert=function(M,N){var D=XA(N),T=XA(M)*D,g=FA(M)*D,u=FA(N),s=u*e-g*j;return[WA(g*e+u*j,T*t+s*i),Hi(s*t-T*i)]},D}function ue(M,N){(N=Ki(N))[0]-=M,te(N);var D=function(M){return M>1?0:M<-1?mA:Math.acos(M)}(-N[1]);return((-N[2]<0?-D:D)+bA-fA)%bA}function se(M,N,D,t){this.x=M,this.z=N,this.o=D,this.e=t,this.v=!1,this.n=this.p=null}function Le(M){if(N=M.length){for(var N,D,t=0,i=M[0];++t<N;)i.n=D=M[t],D.p=i,i=D;i.n=D=M[0],D.p=i}}function Ie(M,N,D,t){function i(i,e){return M<=i&&i<=D&&N<=e&&e<=t}function e(i,e,T,u){var s=0,L=0;if(null==i||(s=j(i,T))!==(L=j(e,T))||g(i,e)<0^T>0)do{u.point(0===s||3===s?M:D,s>1?t:N)}while((s=(s+T+4)%4)!==L);else u.point(e[0],e[1])}function j(t,i){return GA(t[0]-M)<fA?i>0?0:3:GA(t[0]-D)<fA?i>0?2:1:GA(t[1]-N)<fA?i>0?1:0:i>0?3:2}function T(M,N){return g(M.x,N.x)}function g(M,N){var D=j(M,1),t=j(N,1);return D!==t?D-t:0===D?N[1]-M[1]:1===D?M[0]-N[0]:2===D?M[1]-N[1]:N[0]-M[0]}return function(j){function g(M,N){i(M,N)&&E.point(M,N)}function u(e,j){var T=i(e,j);if(L&&I.push([e,j]),c)A=e,z=j,n=T,c=!1,T&&(E.lineStart(),E.point(e,j));else if(T&&y)E.point(e,j);else{var g=[w=Math.max(uz,Math.min(gz,w)),r=Math.max(uz,Math.min(gz,r))],u=[e=Math.max(uz,Math.min(gz,e)),j=Math.max(uz,Math.min(gz,j))];tz(g,u,M,N,D,t)?(y||(E.lineStart(),E.point(g[0],g[1])),E.point(u[0],u[1]),T||E.lineEnd(),a=!1):T&&(E.lineStart(),E.point(e,j),a=!1)}w=e,r=j,y=T}var s,L,I,A,z,n,w,r,y,c,a,E=j,o=Dz(),O={point:g,lineStart:function(){O.point=u,L&&L.push(I=[]),c=!0,y=!1,w=r=NaN},lineEnd:function(){s&&(u(A,z),n&&y&&o.rejoin(),s.push(o.result())),O.point=g,y&&E.lineEnd()},polygonStart:function(){E=o,s=[],L=[],a=!0},polygonEnd:function(){var N=function(){for(var N=0,D=0,i=L.length;D<i;++D)for(var e,j,T=L[D],g=1,u=T.length,s=T[0],I=s[0],A=s[1];g<u;++g)e=I,j=A,I=(s=T[g])[0],A=s[1],j<=t?A>t&&(I-e)*(t-j)>(A-j)*(M-e)&&++N:A<=t&&(I-e)*(t-j)<(A-j)*(M-e)&&--N;return N}(),D=a&&N,i=(s=Tz(s)).length;(D||i)&&(j.polygonStart(),D&&(j.lineStart(),e(null,null,1,j),j.lineEnd()),i&&ez(s,T,N,e,j),j.polygonEnd()),E=j,s=L=I=null}};return O}}function Ae(M){return M.length>1}function ze(M,N){return((M=M.x)[0]<0?M[1]-vA-fA:vA-M[1])-((N=N.x)[0]<0?N[1]-vA-fA:vA-N[1])}function ne(M){return function(N){var D=new we;for(var t in M)D[t]=M[t];return D.stream=N,D}}function we(){}function re(M,N,D){var t=N[1][0]-N[0][0],i=N[1][1]-N[0][1],e=M.clipExtent&&M.clipExtent();M.scale(150).translate([0,0]),null!=e&&M.clipExtent(null),$A(D,M.stream(wz));var j=wz.result(),T=Math.min(t/(j[1][0]-j[0][0]),i/(j[1][1]-j[0][1])),g=+N[0][0]+(t-T*(j[1][0]+j[0][0]))/2,u=+N[0][1]+(i-T*(j[1][1]+j[0][1]))/2;return null!=e&&M.clipExtent(e),M.scale(150*T).translate([g,u])}function ye(M){return function(M){function N(M){return M=u(M[0]*ZA,M[1]*ZA),[M[0]*n+j,T-M[1]*n]}function D(M,N){return M=e(M,N),[M[0]*n+j,T-M[1]*n]}function t(){u=Mz(g=ee(a,E,o),e);var M=e(y,c);return j=w-M[0]*n,T=r+M[1]*n,i()}function i(){return A=z=null,N}var e,j,T,g,u,s,L,I,A,z,n=150,w=480,r=250,y=0,c=0,a=0,E=0,o=0,O=null,x=yz,C=null,S=Lz,l=.5,k=oz(D,l);return N.stream=function(M){return A&&z===M?A:A=Oz(x(g,k(S(z=M))))},N.clipAngle=function(M){return arguments.length?(x=+M?cz(O=M*ZA,6*ZA):(O=null,yz),i()):O*PA},N.clipExtent=function(M){return arguments.length?(S=null==M?(C=s=L=I=null,Lz):Ie(C=+M[0][0],s=+M[0][1],L=+M[1][0],I=+M[1][1]),i()):null==C?null:[[C,s],[L,I]]},N.scale=function(M){return arguments.length?(n=+M,t()):n},N.translate=function(M){return arguments.length?(w=+M[0],r=+M[1],t()):[w,r]},N.center=function(M){return arguments.length?(y=M[0]%360*ZA,c=M[1]%360*ZA,t()):[y*PA,c*PA]},N.rotate=function(M){return arguments.length?(a=M[0]%360*ZA,E=M[1]%360*ZA,o=M.length>2?M[2]%360*ZA:0,t()):[a*PA,E*PA,o*PA]},N.precision=function(M){return arguments.length?(k=oz(D,l=M*M),i()):VA(l)},N.fitExtent=function(M,D){return re(N,M,D)},N.fitSize=function(M,D){return function(M,N,D){return re(M,[[0,0],N],D)}(N,M,D)},function(){return e=M.apply(this,arguments),N.invert=e.invert&&function(M){return(M=u.invert((M[0]-j)/n,(T-M[1])/n))&&[M[0]*PA,M[1]*PA]},t()}}((function(){return M}))()}function ce(M,N){return[M,_A(JA((vA+N)/2))]}function ae(M,N){return[_A(JA((vA+N)/2)),-M]}function Ee(M,D,t,i){var e=M.properties||{},j="Feature"===M.type?M.geometry:M;if("GeometryCollection"===j.type){var T=[];return h(M,(function(M){var N=Ee(M,D,t,i);N&&T.push(N)})),u(T)}var g,s=G(M),L=s[1]>50&&s[3]>50;g=L?{type:j.type,coordinates:Oe(j.coordinates,Ce(j))}:gD(j);var I,A=(new Es).read(g),z=n(w(D,t),"meters"),r=II.bufferOp(A,z);if(r=(new os).write(r),!oe(r.coordinates))return(I=L?{type:r.type,coordinates:xe(r.coordinates,Ce(j))}:uD(r)).geometry?I:N(I,e)}function oe(M){return Array.isArray(M[0])?oe(M[0]):isNaN(M[0])}function Oe(M,N){return"object"!=typeof M[0]?N(M):M.map((function(M){return Oe(M,N)}))}function xe(M,N){return"object"!=typeof M[0]?N.invert(M):M.map((function(M){return xe(M,N)}))}function Ce(M){var N=nN(M).geometry.coordinates.reverse(),D=N.map((function(M){return-M}));return xz().center(N).rotate(D).scale(he)}function Se(){for(var M=new Es,N=M.read(JSON.stringify(arguments[0].geometry)),D=1;D<arguments.length;D++)N=UA.union(N,M.read(JSON.stringify(arguments[D].geometry)));return N=(new os).write(N),{type:"Feature",geometry:N,properties:arguments[0].properties}}function le(M,D){var t=V(M),i=V(D);if(MN(QD(i,{precision:4})).coordinates[0].length<4)return null;if(MN(QD(t,{precision:4})).coordinates[0].length<4)return null;var e=new Es,j=e.read(QD(t)),T=e.read(QD(i)),g=OA.intersection(j,T);return g.isEmpty()?null:N((new os).write(g))}function ke(M,N){return function(M,N,D){var t,i;if(!Array.isArray(N))throw new Error("Get closest expects an array as second argument");return N.forEach((function(N,e){var j=D(N,M);j>=0&&(void 0===i||j<i)&&(i=j,t=e)})),t}(M,N,(function(M,N){return M-N}))}function Qe(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.properties||{},i=D.triangles,j=D.mask;if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(j&&-1===["Polygon","MultiPolygon"].indexOf(q(j)))throw new Error("options.mask must be a (Multi)Polygon");var T=M[0],g=M[1],s=M[2],L=M[3],I=(g+L)/2,A=(T+s)/2,z=2*N/vM([T,I],[s,I],D)*(s-T),n=2*N/vM([A,g],[A,L],D)*(L-g),w=z/2,r=2*w,y=Math.sqrt(3)/2*n,c=s-T,a=L-g,E=.75*r,o=y,C=(c-r)/(r-w/2),S=Math.floor(C),l=(S*E-w/2-c)/2-w/2+E/2,k=Math.floor((a-y)/y),Q=(a-k*y)/2,d=k*y-a>y/2;d&&(Q-=y/4);for(var Y=[],U=[],p=0;p<6;p++){var h=2*Math.PI/6*p;Y.push(Math.cos(h)),U.push(Math.sin(h))}for(var f=[],m=0;m<=S;m++)for(var v=0;v<=k;v++){var B=m%2==1;if((0!==v||!B)&&(0!==v||!d)){var b=m*E+T-l,P=v*o+g+Q;if(B&&(P-=y/2),!0===i)(function(M,N,D,t,i,j){for(var T=[],g=0;g<6;g++){var u=[];u.push(M),u.push([M[0]+N*i[g],M[1]+D*j[g]]),u.push([M[0]+N*i[(g+1)%6],M[1]+D*j[(g+1)%6]]),u.push(M),T.push(e([u],t))}return T})([b,P],z/2,n/2,t,Y,U).forEach((function(M){j?le(j,M)&&f.push(M):f.push(M)}));else{var Z=function(M,N,D,t,i,j){for(var T=[],g=0;g<6;g++){var u=M[0]+N*i[g],s=M[1]+D*j[g];T.push([u,s])}return T.push(T[0].slice()),e([T],t)}([b,P],z/2,n/2,t,Y,U);j?le(j,Z)&&f.push(Z):f.push(Z)}}}return u(f)}function de(M){if(M.features.length<=1)return M;var N=function(M){var N=We(),D=[];return m(M,(function(M,N){var t=G(M);D.push({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],geojson:M,index:N})})),N.load(D),N}(M),D=[],t={};return m(M,(function(M,i){if(t[i])return!0;for(N.remove({index:i},Ye),t[i]=!0;;){var e=G(M),j=N.search({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]});if(j.length>0){var T=j.map((function(M){return t[M.index]=!0,N.remove({index:M.index},Ye),M.geojson}));T.push(M),M=Se.apply(this,T)}if(0===j.length)break}D.push(M)})),u(D)}function Ye(M,N){return M.index===N.index}function Ue(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.properties,i=D.mask,j=[];if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(q(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var T=M[0],g=M[1],s=M[2],L=M[3],I=N/vM([T,g],[s,g],D)*(s-T),A=N/vM([T,g],[T,L],D)*(L-g),z=s-T,n=L-g,w=Math.floor(z/I),r=Math.floor(n/A),y=(n-r*A)/2,c=T+(z-w*I)/2,a=0;a<w;a++){for(var E=g+y,o=0;o<r;o++){var C=e([[[c,E],[c,E+A],[c+I,E+A],[c+I,E],[c,E]]],t);i?le(i,C)&&j.push(C):j.push(C),E+=A}c+=I}return u(j)}function pe(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.properties,i=D.mask,j=[];if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(q(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var T=N/vM([M[0],M[1]],[M[2],M[1]],D)*(M[2]-M[0]),g=N/vM([M[0],M[1]],[M[0],M[3]],D)*(M[3]-M[1]),s=0,L=M[0];L<=M[2];){for(var I=0,A=M[1];A<=M[3];){var z=null,n=null;s%2==0&&I%2==0?(z=e([[[L,A],[L,A+g],[L+T,A],[L,A]]],t),n=e([[[L,A+g],[L+T,A+g],[L+T,A],[L,A+g]]],t)):s%2==0&&I%2==1?(z=e([[[L,A],[L+T,A+g],[L+T,A],[L,A]]],t),n=e([[[L,A],[L,A+g],[L+T,A+g],[L,A]]],t)):I%2==0&&s%2==1?(z=e([[[L,A],[L,A+g],[L+T,A+g],[L,A]]],t),n=e([[[L,A],[L+T,A+g],[L+T,A],[L,A]]],t)):I%2==1&&s%2==1&&(z=e([[[L,A],[L,A+g],[L+T,A],[L,A]]],t),n=e([[[L,A+g],[L+T,A+g],[L+T,A],[L,A+g]]],t)),i?(le(i,z)&&j.push(z),le(i,n)&&j.push(n)):(j.push(z),j.push(n)),A+=g,I++}s++,L+=T}return u(j)}var he=6371008.8,fe={meters:he,metres:he,millimeters:1e3*he,millimetres:1e3*he,centimeters:100*he,centimetres:100*he,kilometers:he/1e3,kilometres:he/1e3,miles:he/1609.344,nauticalmiles:he/1852,inches:39.37*he,yards:he/1.0936,feet:3.28084*he,radians:1,degrees:he/111325},me={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/he,degrees:1/111325},ve={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006},Be=Object.freeze({earthRadius:he,factors:fe,unitsFactors:me,areaFactors:ve,feature:N,geometry:D,point:t,points:i,polygon:e,polygons:j,lineString:T,lineStrings:g,featureCollection:u,multiLineString:s,multiPoint:L,multiPolygon:I,geometryCollection:A,round:z,radiansToLength:n,lengthToRadians:w,lengthToDegrees:r,bearingToAzimuth:y,radiansToDegrees:c,degreesToRadians:a,convertLength:E,convertArea:o,isNumber:O,isObject:x,validateBBox:C,validateId:S,radians2degrees:function(){throw new Error("method has been renamed to `radiansToDegrees`")},degrees2radians:function(){throw new Error("method has been renamed to `degreesToRadians`")},distanceToDegrees:function(){throw new Error("method has been renamed to `lengthToDegrees`")},distanceToRadians:function(){throw new Error("method has been renamed to `lengthToRadians`")},radiansToDistance:function(){throw new Error("method has been renamed to `radiansToLength`")},bearingToAngle:function(){throw new Error("method has been renamed to `bearingToAzimuth`")},convertDistance:function(){throw new Error("method has been renamed to `convertLength`")}}),be=Object.freeze({coordEach:l,coordReduce:k,propEach:Q,propReduce:d,featureEach:Y,featureReduce:U,coordAll:p,geomEach:h,geomReduce:f,flattenEach:m,flattenReduce:v,segmentEach:B,segmentReduce:b,lineEach:P,lineReduce:Z}),Pe=Object.freeze({getCoord:R,getCoords:W,containsNumber:X,geojsonType:H,featureOf:_,collectionOf:F,getGeom:V,getGeomType:J,getType:q}),Ze={successCallback:null,verbose:!1},Ge={},Re=iM,We=jM;jM.prototype={all:function(){return this._all(this.data,[])},search:function(M){var N=this.data,D=[],t=this.toBBox;if(!nM(M,N))return D;for(var i,e,j,T,g=[];N;){for(i=0,e=N.children.length;i<e;i++)j=N.children[i],nM(M,T=N.leaf?t(j):j)&&(N.leaf?D.push(j):zM(M,T)?this._all(j,D):g.push(j));N=g.pop()}return D},collides:function(M){var N=this.data,D=this.toBBox;if(!nM(M,N))return!1;for(var t,i,e,j,T=[];N;){for(t=0,i=N.children.length;t<i;t++)if(e=N.children[t],j=N.leaf?D(e):e,nM(M,j)){if(N.leaf||zM(M,j))return!0;T.push(e)}N=T.pop()}return!1},load:function(M){if(!M||!M.length)return this;if(M.length<this._minEntries){for(var N=0,D=M.length;N<D;N++)this.insert(M[N]);return this}var t=this._build(M.slice(),0,M.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){var i=this.data;this.data=t,t=i}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this},insert:function(M){return M&&this._insert(M,this.data.height-1),this},clear:function(){return this.data=wM([]),this},remove:function(M,N){if(!M)return this;for(var D,t,i,e,j=this.data,T=this.toBBox(M),g=[],u=[];j||g.length;){if(j||(j=g.pop(),t=g[g.length-1],D=u.pop(),e=!0),j.leaf&&-1!==(i=function(M,N,D){if(!D)return N.indexOf(M);for(var t=0;t<N.length;t++)if(D(M,N[t]))return t;return-1}(M,j.children,N)))return j.children.splice(i,1),g.push(j),this._condense(g),this;e||j.leaf||!zM(j,T)?t?(D++,j=t.children[D],e=!1):j=null:(g.push(j),u.push(D),D=0,t=j,j=j.children[0])}return this},toBBox:function(M){return M},compareMinX:sM,compareMinY:LM,toJSON:function(){return this.data},fromJSON:function(M){return this.data=M,this},_all:function(M,N){for(var D=[];M;)M.leaf?N.push.apply(N,M.children):D.push.apply(D,M.children),M=D.pop();return N},_build:function(M,N,D,t){var i,e=D-N+1,j=this._maxEntries;if(e<=j)return i=wM(M.slice(N,D+1)),TM(i,this.toBBox),i;t||(t=Math.ceil(Math.log(e)/Math.log(j)),j=Math.ceil(e/Math.pow(j,t-1))),(i=wM([])).leaf=!1,i.height=t;var T,g,u,s,L=Math.ceil(e/j),I=L*Math.ceil(Math.sqrt(j));for(rM(M,N,D,I,this.compareMinX),T=N;T<=D;T+=I)for(rM(M,T,u=Math.min(T+I-1,D),L,this.compareMinY),g=T;g<=u;g+=L)s=Math.min(g+L-1,u),i.children.push(this._build(M,g,s,t-1));return TM(i,this.toBBox),i},_chooseSubtree:function(M,N,D,t){for(var i,e,j,T,g,u,s,L;t.push(N),!N.leaf&&t.length-1!==D;){for(s=L=1/0,i=0,e=N.children.length;i<e;i++)g=IM(j=N.children[i]),(u=function(M,N){return(Math.max(N.maxX,M.maxX)-Math.min(N.minX,M.minX))*(Math.max(N.maxY,M.maxY)-Math.min(N.minY,M.minY))}(M,j)-g)<L?(L=u,s=g<s?g:s,T=j):u===L&&g<s&&(s=g,T=j);N=T||N.children[0]}return N},_insert:function(M,N,D){var t=this.toBBox,i=D?M:t(M),e=[],j=this._chooseSubtree(i,this.data,N,e);for(j.children.push(M),uM(j,i);N>=0&&e[N].children.length>this._maxEntries;)this._split(e,N),N--;this._adjustParentBBoxes(i,e,N)},_split:function(M,N){var D=M[N],t=D.children.length,i=this._minEntries;this._chooseSplitAxis(D,i,t);var e=this._chooseSplitIndex(D,i,t),j=wM(D.children.splice(e,D.children.length-e));j.height=D.height,j.leaf=D.leaf,TM(D,this.toBBox),TM(j,this.toBBox),N?M[N-1].children.push(j):this._splitRoot(D,j)},_splitRoot:function(M,N){this.data=wM([M,N]),this.data.height=M.height+1,this.data.leaf=!1,TM(this.data,this.toBBox)},_chooseSplitIndex:function(M,N,D){var t,i,e,j,T,g,u,s;for(g=u=1/0,t=N;t<=D-N;t++)j=function(M,N){var D=Math.max(M.minX,N.minX),t=Math.max(M.minY,N.minY),i=Math.min(M.maxX,N.maxX),e=Math.min(M.maxY,N.maxY);return Math.max(0,i-D)*Math.max(0,e-t)}(i=gM(M,0,t,this.toBBox),e=gM(M,t,D,this.toBBox)),T=IM(i)+IM(e),j<g?(g=j,s=t,u=T<u?T:u):j===g&&T<u&&(u=T,s=t);return s},_chooseSplitAxis:function(M,N,D){var t=M.leaf?this.compareMinX:sM,i=M.leaf?this.compareMinY:LM;this._allDistMargin(M,N,D,t)<this._allDistMargin(M,N,D,i)&&M.children.sort(t)},_allDistMargin:function(M,N,D,t){M.children.sort(t);var i,e,j=this.toBBox,T=gM(M,0,N,j),g=gM(M,D-N,D,j),u=AM(T)+AM(g);for(i=N;i<D-N;i++)e=M.children[i],uM(T,M.leaf?j(e):e),u+=AM(T);for(i=D-N-1;i>=N;i--)e=M.children[i],uM(g,M.leaf?j(e):e),u+=AM(g);return u},_adjustParentBBoxes:function(M,N,D){for(var t=D;t>=0;t--)uM(N[t],M)},_condense:function(M){for(var N,D=M.length-1;D>=0;D--)0===M[D].children.length?D>0?(N=M[D-1].children).splice(N.indexOf(M[D]),1):this.clear():TM(M[D],this.toBBox)},_initFormat:function(M){var N=["return a"," - b",";"];this.compareMinX=new Function("a","b",N.join(M[0])),this.compareMinY=new Function("a","b",N.join(M[1])),this.toBBox=new Function("a","return {minX: a"+M[0]+", minY: a"+M[1]+", maxX: a"+M[2]+", maxY: a"+M[3]+"};")}};var Xe=function(M,N,D){var t=M*N,i=He*M,e=i-(i-M),j=M-e,T=He*N,g=T-(T-N),u=N-g,s=j*u-(t-e*g-j*g-e*u);return D?(D[0]=s,D[1]=t,D):[s,t]},He=+(Math.pow(2,27)+1),_e=function(M,N){var D=0|M.length,t=0|N.length;if(1===D&&1===t)return function(M,N){var D=M+N,t=D-M,i=M-(D-t)+(N-t);return i?[i,D]:[D]}(M[0],N[0]);var i,e,j=D+t,T=new Array(j),g=0,u=0,s=0,L=Math.abs,I=M[u],A=L(I),z=N[s],n=L(z);A<n?(e=I,(u+=1)<D&&(A=L(I=M[u]))):(e=z,(s+=1)<t&&(n=L(z=N[s]))),u<D&&A<n||s>=t?(i=I,(u+=1)<D&&(A=L(I=M[u]))):(i=z,(s+=1)<t&&(n=L(z=N[s])));for(var w,r,y=i+e,c=y-i,a=e-c,E=a,o=y;u<D&&s<t;)A<n?(i=I,(u+=1)<D&&(A=L(I=M[u]))):(i=z,(s+=1)<t&&(n=L(z=N[s]))),(a=(e=E)-(c=(y=i+e)-i))&&(T[g++]=a),E=o-((w=o+y)-(r=w-o))+(y-r),o=w;for(;u<D;)(a=(e=E)-(c=(y=(i=I)+e)-i))&&(T[g++]=a),E=o-((w=o+y)-(r=w-o))+(y-r),o=w,(u+=1)<D&&(I=M[u]);for(;s<t;)(a=(e=E)-(c=(y=(i=z)+e)-i))&&(T[g++]=a),E=o-((w=o+y)-(r=w-o))+(y-r),o=w,(s+=1)<t&&(z=N[s]);return E&&(T[g++]=E),o&&(T[g++]=o),g||(T[g++]=0),T.length=g,T},Fe=function(M,N,D){var t=M+N,i=t-M,e=N-i,j=M-(t-i);return D?(D[0]=j+e,D[1]=t,D):[j+e,t]},Ve=function(M,N){var D=M.length;if(1===D){var t=Xe(M[0],N);return t[0]?t:[t[1]]}var i=new Array(2*D),e=[.1,.1],j=[.1,.1],T=0;Xe(M[0],N,e),e[0]&&(i[T++]=e[0]);for(var g=1;g<D;++g){Xe(M[g],N,j);var u=e[1];Fe(u,j[0],e),e[0]&&(i[T++]=e[0]);var s=j[1],L=e[1],I=s+L,A=L-(I-s);e[1]=I,A&&(i[T++]=A)}return e[1]&&(i[T++]=e[1]),0===T&&(i[T++]=0),i.length=T,i},Je=function(M,N){var D=0|M.length,t=0|N.length;if(1===D&&1===t)return function(M,N){var D=M+N,t=D-M,i=M-(D-t)+(N-t);return i?[i,D]:[D]}(M[0],-N[0]);var i,e,j=D+t,T=new Array(j),g=0,u=0,s=0,L=Math.abs,I=M[u],A=L(I),z=-N[s],n=L(z);A<n?(e=I,(u+=1)<D&&(A=L(I=M[u]))):(e=z,(s+=1)<t&&(n=L(z=-N[s]))),u<D&&A<n||s>=t?(i=I,(u+=1)<D&&(A=L(I=M[u]))):(i=z,(s+=1)<t&&(n=L(z=-N[s])));for(var w,r,y=i+e,c=y-i,a=e-c,E=a,o=y;u<D&&s<t;)A<n?(i=I,(u+=1)<D&&(A=L(I=M[u]))):(i=z,(s+=1)<t&&(n=L(z=-N[s]))),(a=(e=E)-(c=(y=i+e)-i))&&(T[g++]=a),E=o-((w=o+y)-(r=w-o))+(y-r),o=w;for(;u<D;)(a=(e=E)-(c=(y=(i=I)+e)-i))&&(T[g++]=a),E=o-((w=o+y)-(r=w-o))+(y-r),o=w,(u+=1)<D&&(I=M[u]);for(;s<t;)(a=(e=E)-(c=(y=(i=z)+e)-i))&&(T[g++]=a),E=o-((w=o+y)-(r=w-o))+(y-r),o=w,(s+=1)<t&&(z=-N[s]);return E&&(T[g++]=E),o&&(T[g++]=o),g||(T[g++]=0),T.length=g,T},qe=yM((function(M){function N(M,N){for(var D=new Array(M.length-1),t=1;t<M.length;++t)for(var i=D[t-1]=new Array(M.length-1),e=0,j=0;e<M.length;++e)e!==N&&(i[j++]=M[t][e]);return D}function D(M){return 1&M?"-":""}function t(M){if(1===M.length)return M[0];if(2===M.length)return["sum(",M[0],",",M[1],")"].join("");var N=M.length>>1;return["sum(",t(M.slice(0,N)),",",t(M.slice(N)),")"].join("")}function i(M){if(2===M.length)return[["sum(prod(",M[0][0],",",M[1][1],"),prod(-",M[0][1],",",M[1][0],"))"].join("")];for(var e=[],j=0;j<M.length;++j)e.push(["scale(",t(i(N(M,j))),",",D(j),M[0][j],")"].join(""));return e}function e(M){for(var D=[],e=[],j=function(M){for(var N=new Array(M),D=0;D<M;++D){N[D]=new Array(M);for(var t=0;t<M;++t)N[D][t]=["m",t,"[",M-D-1,"]"].join("")}return N}(M),T=[],g=0;g<M;++g)0==(1&g)?D.push.apply(D,i(N(j,g))):e.push.apply(e,i(N(j,g))),T.push("m"+g);var u=t(D),s=t(e),L="orientation"+M+"Exact",I=["function ",L,"(",T.join(),"){var p=",u,",n=",s,",d=sub(p,n);return d[d.length-1];};return ",L].join("");return new Function("sum","prod","scale","sub",I)(_e,Xe,Ve,Je)}var j=5,T=e(3),g=e(4),u=[function(){return 0},function(){return 0},function(M,N){return N[0]-M[0]},function(M,N,D){var t,i=(M[1]-D[1])*(N[0]-D[0]),e=(M[0]-D[0])*(N[1]-D[1]),j=i-e;if(i>0){if(e<=0)return j;t=i+e}else{if(!(i<0))return j;if(e>=0)return j;t=-(i+e)}var g=33306690738754716e-32*t;return j>=g||j<=-g?j:T(M,N,D)},function(M,N,D,t){var i=M[0]-t[0],e=N[0]-t[0],j=D[0]-t[0],T=M[1]-t[1],u=N[1]-t[1],s=D[1]-t[1],L=M[2]-t[2],I=N[2]-t[2],A=D[2]-t[2],z=e*s,n=j*u,w=j*T,r=i*s,y=i*u,c=e*T,a=L*(z-n)+I*(w-r)+A*(y-c),E=7771561172376103e-31*((Math.abs(z)+Math.abs(n))*Math.abs(L)+(Math.abs(w)+Math.abs(r))*Math.abs(I)+(Math.abs(y)+Math.abs(c))*Math.abs(A));return a>E||-a>E?a:g(M,N,D,t)}];!function(){for(;u.length<=j;)u.push(e(u.length));for(var N=[],D=["slow"],t=0;t<=j;++t)N.push("a"+t),D.push("o"+t);var i=["function getOrientation(",N.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(t=2;t<=j;++t)i.push("case ",t,":return o",t,"(",N.slice(0,t).join(),");");i.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),D.push(i.join(""));var T=Function.apply(void 0,D);for(M.exports=T.apply(void 0,[function(M){var N=u[M.length];return N||(N=u[M.length]=e(M.length)),N.apply(void 0,M)}].concat(u)),t=0;t<=j;++t)M.exports[t]=u[t]}()})),Ke=function(M){var N=M.length;if(N<3){for(var D=new Array(N),t=0;t<N;++t)D[t]=t;return 2===N&&M[0][0]===M[1][0]&&M[0][1]===M[1][1]?[0]:D}var i=new Array(N);for(t=0;t<N;++t)i[t]=t;i.sort((function(N,D){var t=M[N][0]-M[D][0];return t||M[N][1]-M[D][1]}));var e=[i[0],i[1]],j=[i[0],i[1]];for(t=2;t<N;++t){for(var T=i[t],g=M[T],u=e.length;u>1&&$e(M[e[u-2]],M[e[u-1]],g)<=0;)u-=1,e.pop();for(e.push(T),u=j.length;u>1&&$e(M[j[u-2]],M[j[u-1]],g)>=0;)u-=1,j.pop();j.push(T)}D=new Array(j.length+e.length-2);for(var s=0,L=(t=0,e.length);t<L;++t)D[s++]=e[t];for(var I=j.length-2;I>0;--I)D[s++]=j[I];return D},$e=qe[3],Mj=cM,Nj=cM;cM.prototype={push:function(M){this.data.push(M),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var M=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),M}},peek:function(){return this.data[0]},_up:function(M){for(var N=this.data,D=this.compare,t=N[M];M>0;){var i=M-1>>1,e=N[i];if(D(t,e)>=0)break;N[M]=e,M=i}N[M]=t},_down:function(M){for(var N=this.data,D=this.compare,t=this.length>>1,i=N[M];M<t;){var e=1+(M<<1),j=e+1,T=N[e];if(j<this.length&&D(N[j],T)<0&&(e=j,T=N[j]),D(T,i)>=0)break;N[M]=T,M=e}N[M]=i}},Mj.default=Nj;var Dj=function(M,N){for(var D=M[0],t=M[1],i=!1,e=0,j=N.length-1;e<N.length;j=e++){var T=N[e][0],g=N[e][1],u=N[j][0],s=N[j][1];g>t!=s>t&&D<(u-T)*(t-g)/(s-g)+T&&(i=!i)}return i},tj=qe[3],ij=aM,ej=aM;ij.default=ej;var jj=function(M){return M},Tj=function(M){if(null==M)return jj;var N,D,t=M.scale[0],i=M.scale[1],e=M.translate[0],j=M.translate[1];return function(M,T){T||(N=D=0);var g=2,u=M.length,s=new Array(u);for(s[0]=(N+=M[0])*t+e,s[1]=(D+=M[1])*i+j;g<u;)s[g]=M[g],++g;return s}},gj=function(M,N){for(var D,t=M.length,i=t-N;i<--t;)D=M[i],M[i++]=M[t],M[t]=D},uj=function(M,N){function D(M,N){for(var D in M){var i=M[D];delete N[i.start],delete i.start,delete i.end,i.forEach((function(M){t[M<0?~M:M]=1})),j.push(i)}}var t={},i={},e={},j=[],T=-1;return N.forEach((function(D,t){var i,e=M.arcs[D<0?~D:D];e.length<3&&!e[1][0]&&!e[1][1]&&(i=N[++T],N[T]=D,N[t]=i)})),N.forEach((function(N){var D,t,j=function(N){var D,t=M.arcs[N<0?~N:N],i=t[0];return M.transform?(D=[0,0],t.forEach((function(M){D[0]+=M[0],D[1]+=M[1]}))):D=t[t.length-1],N<0?[D,i]:[i,D]}(N),T=j[0],g=j[1];if(D=e[T])if(delete e[D.end],D.push(N),D.end=g,t=i[g]){delete i[t.start];var u=t===D?D:D.concat(t);i[u.start=D.start]=e[u.end=t.end]=u}else i[D.start]=e[D.end]=D;else if(D=i[g])if(delete i[D.start],D.unshift(N),D.start=T,t=e[T]){delete e[t.end];var s=t===D?D:t.concat(D);i[s.start=t.start]=e[s.end=D.end]=s}else i[D.start]=e[D.end]=D;else i[(D=[N]).start=T]=e[D.end=g]=D})),D(e,i),D(i,e),N.forEach((function(M){t[M<0?~M:M]||j.push([M])})),j},sj=function(M){return RM(M,WM.apply(this,arguments))},Lj=function(M,N,D,t,i,e){3===arguments.length&&(t=e=Array,i=null);for(var j=new t(M=1<<Math.max(4,Math.ceil(Math.log(M)/Math.LN2))),T=new e(M),g=M-1,u=0;u<M;++u)j[u]=i;return{set:function(t,e){for(var u=N(t)&g,s=j[u],L=0;s!=i;){if(D(s,t))return T[u]=e;if(++L>=M)throw new Error("full hashmap");s=j[u=u+1&g]}return j[u]=t,T[u]=e,e},maybeSet:function(t,e){for(var u=N(t)&g,s=j[u],L=0;s!=i;){if(D(s,t))return T[u];if(++L>=M)throw new Error("full hashmap");s=j[u=u+1&g]}return j[u]=t,T[u]=e,e},get:function(t,e){for(var u=N(t)&g,s=j[u],L=0;s!=i;){if(D(s,t))return T[u];if(++L>=M)break;s=j[u=u+1&g]}return e},keys:function(){for(var M=[],N=0,D=j.length;N<D;++N){var t=j[N];t!=i&&M.push(t)}return M}}},Ij=function(M,N){return M[0]===N[0]&&M[1]===N[1]},Aj=new ArrayBuffer(16),zj=new Float64Array(Aj),nj=new Uint32Array(Aj),wj=function(M){zj[0]=M[0],zj[1]=M[1];var N=nj[0]^nj[1];return 2147483647&(N<<5^N>>7^nj[2]^nj[3])},rj=function(M){function N(M,N,D,t){if(I[D]!==M){I[D]=M;var i=A[D];if(i>=0){var e=z[D];i===N&&e===t||i===t&&e===N||(++w,n[D]=1)}else A[D]=N,z[D]=t}}function D(M){return wj(g[M])}function t(M,N){return Ij(g[M],g[N])}var i,e,j,T,g=M.coordinates,u=M.lines,s=M.rings,L=function(){for(var M=Lj(1.4*g.length,D,t,Int32Array,-1,Int32Array),N=new Int32Array(g.length),i=0,e=g.length;i<e;++i)N[i]=M.maybeSet(i,i);return N}(),I=new Int32Array(g.length),A=new Int32Array(g.length),z=new Int32Array(g.length),n=new Int8Array(g.length),w=0;for(i=0,e=g.length;i<e;++i)I[i]=A[i]=z[i]=-1;for(i=0,e=u.length;i<e;++i){var r=u[i],y=r[0],c=r[1];for(j=L[y],T=L[++y],++w,n[j]=1;++y<=c;)N(i,j,j=T,T=L[y]);++w,n[T]=1}for(i=0,e=g.length;i<e;++i)I[i]=-1;for(i=0,e=s.length;i<e;++i){var a=s[i],E=a[0]+1,o=a[1];for(N(i,L[o-1],j=L[E-1],T=L[E]);++E<=o;)N(i,j,j=T,T=L[E])}I=A=z=null;var O,x=function(M,N,D,t,i){3===arguments.length&&(t=Array,i=null);for(var e=new t(M=1<<Math.max(4,Math.ceil(Math.log(M)/Math.LN2))),j=M-1,T=0;T<M;++T)e[T]=i;return{add:function(t){for(var T=N(t)&j,g=e[T],u=0;g!=i;){if(D(g,t))return!0;if(++u>=M)throw new Error("full hashset");g=e[T=T+1&j]}return e[T]=t,!0},has:function(t){for(var T=N(t)&j,g=e[T],u=0;g!=i;){if(D(g,t))return!0;if(++u>=M)break;g=e[T=T+1&j]}return!1},values:function(){for(var M=[],N=0,D=e.length;N<D;++N){var t=e[N];t!=i&&M.push(t)}return M}}}(1.4*w,wj,Ij);for(i=0,e=g.length;i<e;++i)n[O=L[i]]&&x.add(g[O]);return x},yj=function(M){var N,D,t,i=rj(M),e=M.coordinates,j=M.lines,T=M.rings;for(D=0,t=j.length;D<t;++D)for(var g=j[D],u=g[0],s=g[1];++u<s;)i.has(e[u])&&(N={0:u,1:g[1]},g[1]=u,g=g.next=N);for(D=0,t=T.length;D<t;++D)for(var L=T[D],I=L[0],A=I,z=L[1],n=i.has(e[I]);++A<z;)i.has(e[A])&&(n?(N={0:A,1:L[1]},L[1]=A,L=L.next=N):(function(M,N,D,t){XM(M,N,D),XM(M,N,N+t),XM(M,N+t,D)}(e,I,z,z-A),e[z]=e[I],n=!0,A=I));return M},cj=function(M){function N(M){var N,D,t,i,e,j,T,g;if(t=A.get(N=u[M[0]]))for(T=0,g=t.length;T<g;++T)if(i=t[T],function(M,N){var D=M[0],t=N[0],i=M[1],e=N[1];if(D-i!=t-e)return!1;for(;D<=i;++D,++t)if(!Ij(u[D],u[t]))return!1;return!0}(i,M))return M[0]=i[0],void(M[1]=i[1]);if(e=A.get(D=u[M[1]]))for(T=0,g=e.length;T<g;++T)if(j=e[T],function(M,N){var D=M[0],t=N[0],i=M[1],e=N[1];if(D-i!=t-e)return!1;for(;D<=i;++D,--e)if(!Ij(u[D],u[e]))return!1;return!0}(j,M))return M[1]=j[0],void(M[0]=j[1]);t?t.push(M):A.set(N,[M]),e?e.push(M):A.set(D,[M]),z.push(M)}function D(M,N){var D=M[0],t=N[0],e=M[1]-D;if(e!==N[1]-t)return!1;for(var j=i(M),T=i(N),g=0;g<e;++g)if(!Ij(u[D+(g+j)%e],u[t+(g+T)%e]))return!1;return!0}function t(M,N){var D=M[0],t=N[0],e=M[1],j=N[1],T=e-D;if(T!==j-t)return!1;for(var g=i(M),s=T-i(N),L=0;L<T;++L)if(!Ij(u[D+(L+g)%T],u[j-(L+s)%T]))return!1;return!0}function i(M){for(var N=M[0],D=M[1],t=N,i=t,e=u[t];++t<D;){var j=u[t];(j[0]<e[0]||j[0]===e[0]&&j[1]<e[1])&&(i=t,e=j)}return i-N}var e,j,T,g,u=M.coordinates,s=M.lines,L=M.rings,I=s.length+L.length;for(delete M.lines,delete M.rings,T=0,g=s.length;T<g;++T)for(e=s[T];e=e.next;)++I;for(T=0,g=L.length;T<g;++T)for(j=L[T];j=j.next;)++I;var A=Lj(2*I*1.4,wj,Ij),z=M.arcs=[];for(T=0,g=s.length;T<g;++T){e=s[T];do{N(e)}while(e=e.next)}for(T=0,g=L.length;T<g;++T)if((j=L[T]).next)do{N(j)}while(j=j.next);else!function(M){var N,e,j,T,g;if(e=A.get(N=u[M[0]]))for(T=0,g=e.length;T<g;++T){if(j=e[T],D(j,M))return M[0]=j[0],void(M[1]=j[1]);if(t(j,M))return M[0]=j[1],void(M[1]=j[0])}if(e=A.get(N=u[M[0]+i(M)]))for(T=0,g=e.length;T<g;++T){if(j=e[T],D(j,M))return M[0]=j[0],void(M[1]=j[1]);if(t(j,M))return M[0]=j[1],void(M[1]=j[0])}e?e.push(M):A.set(N,[M]),z.push(M)}(j);return M},aj=function(M,N){function D(M){M&&s.hasOwnProperty(M.type)&&s[M.type](M)}function t(M){var N=[];do{var D=u.get(M);N.push(M[0]<M[1]?D:~D)}while(M=M.next);return N}function i(M){return M.map(t)}var e=function(M){function N(M){null!=M&&u.hasOwnProperty(M.type)&&u[M.type](M)}function D(M){var N=M[0],D=M[1];N<e&&(e=N),N>T&&(T=N),D<j&&(j=D),D>g&&(g=D)}function t(M){M.forEach(D)}function i(M){M.forEach(t)}var e=1/0,j=1/0,T=-1/0,g=-1/0,u={GeometryCollection:function(M){M.geometries.forEach(N)},Point:function(M){D(M.coordinates)},MultiPoint:function(M){M.coordinates.forEach(D)},LineString:function(M){t(M.arcs)},MultiLineString:function(M){M.arcs.forEach(t)},Polygon:function(M){M.arcs.forEach(t)},MultiPolygon:function(M){M.arcs.forEach(i)}};for(var s in M)N(M[s]);return T>=e&&g>=j?[e,j,T,g]:void 0}(M=function(M){var N,D={};for(N in M)D[N]=HM(M[N]);return D}(M)),j=N>0&&e&&function(M,N,D){function t(M){return[Math.round((M[0]-u)*A),Math.round((M[1]-s)*z)]}function i(M,N){for(var D,t,i,e,j,T=-1,g=0,L=M.length,I=new Array(L);++T<L;)D=M[T],e=Math.round((D[0]-u)*A),j=Math.round((D[1]-s)*z),e===t&&j===i||(I[g++]=[t=e,i=j]);for(I.length=g;g<N;)g=I.push([I[0][0],I[0][1]]);return I}function e(M){return i(M,2)}function j(M){return i(M,4)}function T(M){return M.map(j)}function g(M){null!=M&&n.hasOwnProperty(M.type)&&n[M.type](M)}var u=N[0],s=N[1],L=N[2],I=N[3],A=L-u?(D-1)/(L-u):1,z=I-s?(D-1)/(I-s):1,n={GeometryCollection:function(M){M.geometries.forEach(g)},Point:function(M){M.coordinates=t(M.coordinates)},MultiPoint:function(M){M.coordinates=M.coordinates.map(t)},LineString:function(M){M.arcs=e(M.arcs)},MultiLineString:function(M){M.arcs=M.arcs.map(e)},Polygon:function(M){M.arcs=T(M.arcs)},MultiPolygon:function(M){M.arcs=M.arcs.map(T)}};for(var w in M)g(M[w]);return{scale:[1/A,1/z],translate:[u,s]}}(M,e,N),T=cj(yj(function(M){function N(M){M&&u.hasOwnProperty(M.type)&&u[M.type](M)}function D(M){for(var N=0,D=M.length;N<D;++N)g[++e]=M[N];var t={0:e-D+1,1:e};return j.push(t),t}function t(M){for(var N=0,D=M.length;N<D;++N)g[++e]=M[N];var t={0:e-D+1,1:e};return T.push(t),t}function i(M){return M.map(t)}var e=-1,j=[],T=[],g=[],u={GeometryCollection:function(M){M.geometries.forEach(N)},LineString:function(M){M.arcs=D(M.arcs)},MultiLineString:function(M){M.arcs=M.arcs.map(D)},Polygon:function(M){M.arcs=M.arcs.map(t)},MultiPolygon:function(M){M.arcs=M.arcs.map(i)}};for(var s in M)N(M[s]);return{type:"Topology",coordinates:g,lines:j,rings:T,objects:M}}(M))),g=T.coordinates,u=Lj(1.4*T.arcs.length,VM,JM);M=T.objects,T.bbox=e,T.arcs=T.arcs.map((function(M,N){return u.set(M,N),g.slice(M[0],M[1]+1)})),delete T.coordinates,g=null;var s={GeometryCollection:function(M){M.geometries.forEach(D)},LineString:function(M){M.arcs=t(M.arcs)},MultiLineString:function(M){M.arcs=M.arcs.map(t)},Polygon:function(M){M.arcs=M.arcs.map(t)},MultiPolygon:function(M){M.arcs=M.arcs.map(i)}};for(var L in M)D(M[L]);return j&&(T.transform=j,T.arcs=function(M){for(var N=-1,D=M.length;++N<D;){for(var t,i,e=M[N],j=0,T=1,g=e.length,u=e[0],s=u[0],L=u[1];++j<g;)t=(u=e[j])[0],i=u[1],t===s&&i===L||(e[T++]=[t-s,i-L],s=t,L=i);1===T&&(e[T++]=[0,0]),e.length=T}return M}(T.arcs)),T},Ej=function(M){this.points=M.points||[],this.duration=M.duration||1e4,this.sharpness=M.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=M.stepLength||60,this.length=this.points.length,this.delay=0;for(var N=0;N<this.length;N++)this.points[N].z=this.points[N].z||0;for(N=0;N<this.length-1;N++){var D=this.points[N],t=this.points[N+1];this.centers.push({x:(D.x+t.x)/2,y:(D.y+t.y)/2,z:(D.z+t.z)/2})}for(this.controls.push([this.points[0],this.points[0]]),N=0;N<this.centers.length-1;N++){D=this.centers[N],t=this.centers[N+1];var i=this.points[N+1].x-(this.centers[N].x+this.centers[N+1].x)/2,e=this.points[N+1].y-(this.centers[N].y+this.centers[N+1].y)/2,j=this.points[N+1].z-(this.centers[N].y+this.centers[N+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[N+1].x+this.sharpness*(this.centers[N].x+i),y:(1-this.sharpness)*this.points[N+1].y+this.sharpness*(this.centers[N].y+e),z:(1-this.sharpness)*this.points[N+1].z+this.sharpness*(this.centers[N].z+j)},{x:(1-this.sharpness)*this.points[N+1].x+this.sharpness*(this.centers[N+1].x+i),y:(1-this.sharpness)*this.points[N+1].y+this.sharpness*(this.centers[N+1].y+e),z:(1-this.sharpness)*this.points[N+1].z+this.sharpness*(this.centers[N+1].z+j)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this};Ej.prototype.cacheSteps=function(M){var N=[],D=this.pos(0);N.push(0);for(var t=0;t<this.duration;t+=10){var i=this.pos(t);Math.sqrt((i.x-D.x)*(i.x-D.x)+(i.y-D.y)*(i.y-D.y)+(i.z-D.z)*(i.z-D.z))>M&&(N.push(t),D=i)}return N},Ej.prototype.vector=function(M){var N=this.pos(M+10),D=this.pos(M-10);return{angle:180*Math.atan2(N.y-D.y,N.x-D.x)/3.14,speed:Math.sqrt((D.x-N.x)*(D.x-N.x)+(D.y-N.y)*(D.y-N.y)+(D.z-N.z)*(D.z-N.z))}},Ej.prototype.pos=function(M){var N=M-this.delay;N<0&&(N=0),N>this.duration&&(N=this.duration-1);var D=N/this.duration;if(D>=1)return this.points[this.length-1];var t=Math.floor((this.points.length-1)*D);return function(M,N,D,t,i){var e=function(M){var N=M*M;return[N*M,3*N*(1-M),3*M*(1-M)*(1-M),(1-M)*(1-M)*(1-M)]}(M);return{x:i.x*e[0]+t.x*e[1]+D.x*e[2]+N.x*e[3],y:i.y*e[0]+t.y*e[1]+D.y*e[2]+N.y*e[3],z:i.z*e[0]+t.z*e[1]+D.z*e[2]+N.z*e[3]}}((this.length-1)*D-t,this.points[t],this.controls[t][1],this.controls[t+1][0],this.points[t+1])};var oj=cN,Oj=cN;cN.deviation=function(M,N,D,t){var i=N&&N.length,e=i?N[0]*D:M.length,j=Math.abs(hN(M,0,e,D));if(i)for(var T=0,g=N.length;T<g;T++){var u=N[T]*D,s=T<g-1?N[T+1]*D:M.length;j-=Math.abs(hN(M,u,s,D))}var L=0;for(T=0;T<t.length;T+=3){var I=t[T]*D,A=t[T+1]*D,z=t[T+2]*D;L+=Math.abs((M[I]-M[z])*(M[A+1]-M[I+1])-(M[I]-M[A])*(M[z+1]-M[I+1]))}return 0===j&&0===L?0:Math.abs((L-j)/j)},cN.flatten=function(M){for(var N=M[0][0].length,D={vertices:[],holes:[],dimensions:N},t=0,i=0;i<M.length;i++){for(var e=0;e<M[i].length;e++)for(var j=0;j<N;j++)D.vertices.push(M[i][e][j]);i>0&&(t+=M[i-1].length,D.holes.push(t))}return D},oj.default=Oj,PN.prototype={all:function(){return this._all(this.data,[])},search:function(M){var N=this.data,D=[],t=this.toBBox;if(!VN(M,N))return D;for(var i,e,j,T,g=[];N;){for(i=0,e=N.children.length;i<e;i++)j=N.children[i],VN(M,T=N.leaf?t(j):j)&&(N.leaf?D.push(j):FN(M,T)?this._all(j,D):g.push(j));N=g.pop()}return D},collides:function(M){var N=this.data,D=this.toBBox;if(!VN(M,N))return!1;for(var t,i,e,j,T=[];N;){for(t=0,i=N.children.length;t<i;t++)if(e=N.children[t],j=N.leaf?D(e):e,VN(M,j)){if(N.leaf||FN(M,j))return!0;T.push(e)}N=T.pop()}return!1},load:function(M){if(!M||!M.length)return this;if(M.length<this._minEntries){for(var N=0,D=M.length;N<D;N++)this.insert(M[N]);return this}var t=this._build(M.slice(),0,M.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){var i=this.data;this.data=t,t=i}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this},insert:function(M){return M&&this._insert(M,this.data.height-1),this},clear:function(){return this.data=JN([]),this},remove:function(M,N){if(!M)return this;for(var D,t,i,e,j=this.data,T=this.toBBox(M),g=[],u=[];j||g.length;){if(j||(j=g.pop(),t=g[g.length-1],D=u.pop(),e=!0),j.leaf&&-1!==(i=function(M,N,D){if(!D)return N.indexOf(M);for(var t=0;t<N.length;t++)if(D(M,N[t]))return t;return-1}(M,j.children,N)))return j.children.splice(i,1),g.push(j),this._condense(g),this;e||j.leaf||!FN(j,T)?t?(D++,j=t.children[D],e=!1):j=null:(g.push(j),u.push(D),D=0,t=j,j=j.children[0])}return this},toBBox:function(M){return M},compareMinX:WN,compareMinY:XN,toJSON:function(){return this.data},fromJSON:function(M){return this.data=M,this},_all:function(M,N){for(var D=[];M;)M.leaf?N.push.apply(N,M.children):D.push.apply(D,M.children),M=D.pop();return N},_build:function(M,N,D,t){var i,e=D-N+1,j=this._maxEntries;if(e<=j)return i=JN(M.slice(N,D+1)),ZN(i,this.toBBox),i;t||(t=Math.ceil(Math.log(e)/Math.log(j)),j=Math.ceil(e/Math.pow(j,t-1))),(i=JN([])).leaf=!1,i.height=t;var T,g,u,s,L=Math.ceil(e/j),I=L*Math.ceil(Math.sqrt(j));for(qN(M,N,D,I,this.compareMinX),T=N;T<=D;T+=I)for(qN(M,T,u=Math.min(T+I-1,D),L,this.compareMinY),g=T;g<=u;g+=L)s=Math.min(g+L-1,u),i.children.push(this._build(M,g,s,t-1));return ZN(i,this.toBBox),i},_chooseSubtree:function(M,N,D,t){for(var i,e,j,T,g,u,s,L;t.push(N),!N.leaf&&t.length-1!==D;){for(s=L=1/0,i=0,e=N.children.length;i<e;i++)g=HN(j=N.children[i]),(u=function(M,N){return(Math.max(N.maxX,M.maxX)-Math.min(N.minX,M.minX))*(Math.max(N.maxY,M.maxY)-Math.min(N.minY,M.minY))}(M,j)-g)<L?(L=u,s=g<s?g:s,T=j):u===L&&g<s&&(s=g,T=j);N=T||N.children[0]}return N},_insert:function(M,N,D){var t=this.toBBox,i=D?M:t(M),e=[],j=this._chooseSubtree(i,this.data,N,e);for(j.children.push(M),RN(j,i);N>=0&&e[N].children.length>this._maxEntries;)this._split(e,N),N--;this._adjustParentBBoxes(i,e,N)},_split:function(M,N){var D=M[N],t=D.children.length,i=this._minEntries;this._chooseSplitAxis(D,i,t);var e=this._chooseSplitIndex(D,i,t),j=JN(D.children.splice(e,D.children.length-e));j.height=D.height,j.leaf=D.leaf,ZN(D,this.toBBox),ZN(j,this.toBBox),N?M[N-1].children.push(j):this._splitRoot(D,j)},_splitRoot:function(M,N){this.data=JN([M,N]),this.data.height=M.height+1,this.data.leaf=!1,ZN(this.data,this.toBBox)},_chooseSplitIndex:function(M,N,D){var t,i,e,j,T,g,u,s;for(g=u=1/0,t=N;t<=D-N;t++)j=function(M,N){var D=Math.max(M.minX,N.minX),t=Math.max(M.minY,N.minY),i=Math.min(M.maxX,N.maxX),e=Math.min(M.maxY,N.maxY);return Math.max(0,i-D)*Math.max(0,e-t)}(i=GN(M,0,t,this.toBBox),e=GN(M,t,D,this.toBBox)),T=HN(i)+HN(e),j<g?(g=j,s=t,u=T<u?T:u):j===g&&T<u&&(u=T,s=t);return s},_chooseSplitAxis:function(M,N,D){var t=M.leaf?this.compareMinX:WN,i=M.leaf?this.compareMinY:XN;this._allDistMargin(M,N,D,t)<this._allDistMargin(M,N,D,i)&&M.children.sort(t)},_allDistMargin:function(M,N,D,t){M.children.sort(t);var i,e,j=this.toBBox,T=GN(M,0,N,j),g=GN(M,D-N,D,j),u=_N(T)+_N(g);for(i=N;i<D-N;i++)e=M.children[i],RN(T,M.leaf?j(e):e),u+=_N(T);for(i=D-N-1;i>=N;i--)e=M.children[i],RN(g,M.leaf?j(e):e),u+=_N(g);return u},_adjustParentBBoxes:function(M,N,D){for(var t=D;t>=0;t--)RN(N[t],M)},_condense:function(M){for(var N,D=M.length-1;D>=0;D--)0===M[D].children.length?D>0?(N=M[D-1].children).splice(N.indexOf(M[D]),1):this.clear():ZN(M[D],this.toBBox)},_initFormat:function(M){var N=["return a"," - b",";"];this.compareMinX=new Function("a","b",N.join(M[0])),this.compareMinY=new Function("a","b",N.join(M[1])),this.toBBox=new Function("a","return {minX: a"+M[0]+", minY: a"+M[1]+", maxX: a"+M[2]+", maxY: a"+M[3]+"};")}};var xj=Object.freeze({toMercator:gD,toWgs84:uD}),Cj=6378137,Sj=function(M,N,D){function t(M,D,t,i){var g,u,s=e[M][D],L=e[M][D+1],I=e[t][i],A=e[t][i+1],z=function(M,N,D,t){if(dD(M,D)||dD(M,t)||dD(N,D)||dD(t,D))return null;var i=M[0],e=M[1],j=N[0],T=N[1],g=D[0],u=D[1],s=t[0],L=t[1],I=(i-j)*(u-L)-(e-T)*(g-s);return 0===I?null:[((i*T-e*j)*(g-s)-(i-j)*(g*L-u*s))/I,((i*T-e*j)*(u-L)-(e-T)*(g*L-u*s))/I]}(s,L,I,A);if(null!==z&&(g=L[0]!==s[0]?(z[0]-s[0])/(L[0]-s[0]):(z[1]-s[1])/(L[1]-s[1]),u=A[0]!==I[0]?(z[0]-I[0])/(A[0]-I[0]):(z[1]-I[1])/(A[1]-I[1]),!(g>=1||g<=0||u>=1||u<=0))){var n=z,w=!T[n];w&&(T[n]=!0),N?j.push(N(z,M,D,s,L,g,t,i,I,A,u,w)):j.push(z)}}function i(M,N){var D,t,i,j,T=e[M][N],g=e[M][N+1];return T[0]<g[0]?(D=T[0],t=g[0]):(D=g[0],t=T[0]),T[1]<g[1]?(i=T[1],j=g[1]):(i=g[1],j=T[1]),{minX:D,minY:i,maxX:t,maxY:j,ring:M,edge:N}}if("Polygon"!==M.geometry.type)throw new Error("The input feature must be a Polygon");void 0===D&&(D=1);var e=M.geometry.coordinates,j=[],T={};if(D){for(var g=[],u=0;u<e.length;u++)for(var s=0;s<e[u].length-1;s++)g.push(i(u,s));var L=We();L.load(g)}for(var I=0;I<e.length;I++)for(var A=0;A<e[I].length-1;A++)if(D)L.search(i(I,A)).forEach((function(M){var N=M.ring,D=M.edge;t(I,A,N,D)}));else for(var z=0;z<e.length;z++)for(var n=0;n<e[z].length-1;n++)t(I,A,z,n);return N||(j={type:"Feature",geometry:{type:"MultiPoint",coordinates:j}}),j},lj=function(M){function N(){for(var M=[],N=0;N<z.features.length;N++)-1==z.features[N].properties.parent&&M.push(N);if(M.length>1)for(N=0;N<M.length;N++){for(var D=-1,t=0;t<z.features.length;t++)M[N]!=t&&dM(z.features[M[N]].geometry.coordinates[0][0],z.features[t],{ignoreBoundary:!0})&&rD(z.features[t])<1/0&&(D=t);z.features[M[N]].properties.parent=D}}function D(){for(var M=0;M<z.features.length;M++)if(-1==z.features[M].properties.parent){var N=z.features[M].properties.winding;z.features[M].properties.netWinding=N,t(M,N)}}function t(M,N){for(var D=0;D<z.features.length;D++)if(z.features[D].properties.parent==M){var i=N+z.features[D].properties.winding;z.features[D].properties.netWinding=i,t(D,i)}}if("Feature"!=M.type)throw new Error("The input must a geojson object of type Feature");if(void 0===M.geometry||null==M.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=M.geometry.type)throw new Error("The input must be a geojson Polygon");for(var i=M.geometry.coordinates.length,j=[],T=0;T<i;T++){var g=M.geometry.coordinates[T];UD(g[0],g[g.length-1])||g.push(g[0]),j.push.apply(j,g.slice(0,g.length-1))}if(!function(M){for(var N={},D=1,t=0,i=M.length;t<i;++t){if(N.hasOwnProperty(M[t])){D=0;break}N[M[t]]=1}return D}(j))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var s=j.length,L=Sj(M,(function(M,N,D,t,i,e,j,T,g,u,s,L){return[M,N,D,t,i,e,j,T,g,u,s,L]})),I=L.length;if(0==I){var A=[];for(T=0;T<i;T++)A.push(e([M.geometry.coordinates[T]],{parent:-1,winding:function(M){for(var N=0,D=0;D<M.length-1;D++)M[D][0]<M[N][0]&&(N=D);if(YD([M[(N-1).modulo(M.length-1)],M[N],M[(N+1).modulo(M.length-1)]],!0))var t=1;else t=-1;return t}(M.geometry.coordinates[T])}));var z=u(A);return N(),D(),z}var n=[],w=[];for(T=0;T<i;T++){n.push([]);for(var r=0;r<M.geometry.coordinates[T].length-1;r++)n[T].push([new kj(M.geometry.coordinates[T][(r+1).modulo(M.geometry.coordinates[T].length-1)],1,[T,r],[T,(r+1).modulo(M.geometry.coordinates[T].length-1)],void 0)]),w.push(new Qj(M.geometry.coordinates[T][r],[T,(r-1).modulo(M.geometry.coordinates[T].length-1)],[T,r],void 0,void 0,!1,!0))}for(T=0;T<I;T++)n[L[T][1]][L[T][2]].push(new kj(L[T][0],L[T][5],[L[T][1],L[T][2]],[L[T][6],L[T][7]],void 0)),L[T][11]&&w.push(new Qj(L[T][0],[L[T][1],L[T][2]],[L[T][6],L[T][7]],void 0,void 0,!0,!0));var y=w.length;for(T=0;T<n.length;T++)for(r=0;r<n[T].length;r++)n[T][r].sort((function(M,N){return M.param<N.param?-1:1}));var c=[];for(T=0;T<y;T++)c.push({minX:w[T].coord[0],minY:w[T].coord[1],maxX:w[T].coord[0],maxY:w[T].coord[1],index:T});var a=We();for(a.load(c),T=0;T<n.length;T++)for(r=0;r<n[T].length;r++)for(var E=0;E<n[T][r].length;E++){O=E==n[T][r].length-1?n[T][(r+1).modulo(M.geometry.coordinates[T].length-1)][0].coord:n[T][r][E+1].coord;var o=a.search({minX:O[0],minY:O[1],maxX:O[0],maxY:O[1]})[0];n[T][r][E].nxtIsectAlongEdgeIn=o.index}for(T=0;T<n.length;T++)for(r=0;r<n[T].length;r++)for(E=0;E<n[T][r].length;E++){var O=n[T][r][E].coord,x=(o=a.search({minX:O[0],minY:O[1],maxX:O[0],maxY:O[1]})[0]).index;x<s?w[x].nxtIsectAlongRingAndEdge2=n[T][r][E].nxtIsectAlongEdgeIn:UD(w[x].ringAndEdge1,n[T][r][E].ringAndEdgeIn)?w[x].nxtIsectAlongRingAndEdge1=n[T][r][E].nxtIsectAlongEdgeIn:w[x].nxtIsectAlongRingAndEdge2=n[T][r][E].nxtIsectAlongEdgeIn}var C=[];for(T=0,r=0;r<i;r++){var S=T;for(E=0;E<M.geometry.coordinates[r].length-1;E++)w[T].coord[0]<w[S].coord[0]&&(S=T),T++;var l=w[S].nxtIsectAlongRingAndEdge2;for(E=0;E<w.length;E++)if(w[E].nxtIsectAlongRingAndEdge1==S||w[E].nxtIsectAlongRingAndEdge2==S){var k=E;break}var Q=YD([w[k].coord,w[S].coord,w[l].coord],!0)?1:-1;C.push({isect:S,parent:-1,winding:Q})}for(C.sort((function(M,N){return w[M.isect].coord>w[N.isect].coord?-1:1})),A=[];C.length>0;){var d=C.pop(),Y=d.isect,U=d.parent,p=d.winding,h=A.length,f=[w[Y].coord],m=Y;if(w[Y].ringAndEdge1Walkable)var v=w[Y].ringAndEdge1,B=w[Y].nxtIsectAlongRingAndEdge1;else v=w[Y].ringAndEdge2,B=w[Y].nxtIsectAlongRingAndEdge2;for(;!UD(w[Y].coord,w[B].coord);){f.push(w[B].coord);var b=void 0;for(T=0;T<C.length;T++)if(C[T].isect==B){b=T;break}if(void 0!=b&&C.splice(b,1),UD(v,w[B].ringAndEdge1)){if(v=w[B].ringAndEdge2,w[B].ringAndEdge2Walkable=!1,w[B].ringAndEdge1Walkable){var P={isect:B};YD([w[m].coord,w[B].coord,w[w[B].nxtIsectAlongRingAndEdge2].coord],1==p)?(P.parent=U,P.winding=-p):(P.parent=h,P.winding=p),C.push(P)}m=B,B=w[B].nxtIsectAlongRingAndEdge2}else v=w[B].ringAndEdge1,w[B].ringAndEdge1Walkable=!1,w[B].ringAndEdge2Walkable&&(P={isect:B},YD([w[m].coord,w[B].coord,w[w[B].nxtIsectAlongRingAndEdge1].coord],1==p)?(P.parent=U,P.winding=-p):(P.parent=h,P.winding=p),C.push(P)),m=B,B=w[B].nxtIsectAlongRingAndEdge1}f.push(w[B].coord),A.push(e([f],{index:h,parent:U,winding:p,netWinding:void 0}))}return z=u(A),N(),D(),z},kj=function(M,N,D,t,i){this.coord=M,this.param=N,this.ringAndEdgeIn=D,this.ringAndEdgeOut=t,this.nxtIsectAlongEdgeIn=i},Qj=function(M,N,D,t,i,e,j){this.coord=M,this.ringAndEdge1=N,this.ringAndEdge2=D,this.nxtIsectAlongRingAndEdge1=t,this.nxtIsectAlongRingAndEdge2=i,this.ringAndEdge1Walkable=e,this.ringAndEdge2Walkable=j};Number.prototype.modulo=function(M){return(this%M+M)%M};var dj=Math.PI/180,Yj=180/Math.PI,Uj=function(M,N){this.lon=M,this.lat=N,this.x=dj*M,this.y=dj*N};Uj.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},Uj.prototype.antipode=function(){var M=-1*this.lat,N=this.lon<0?180+this.lon:-1*(180-this.lon);return new Uj(N,M)};var pj=function(){this.coords=[],this.length=0};pj.prototype.move_to=function(M){this.length++,this.coords.push(M)};var hj=function(M){this.properties=M||{},this.geometries=[]};hj.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var M=[],N=0;N<this.geometries.length;N++)M.push(this.geometries[N].coords);return{geometry:{type:"MultiLineString",coordinates:M},type:"Feature",properties:this.properties}},hj.prototype.wkt=function(){for(var M="",N="LINESTRING(",D=function(M){N+=M[0]+" "+M[1]+","},t=0;t<this.geometries.length;t++){if(0===this.geometries[t].coords.length)return"LINESTRING(empty)";this.geometries[t].coords.forEach(D),M+=N.substring(0,N.length-1)+")"}return M};var fj=function(M,N,D){if(!M||void 0===M.x||void 0===M.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!N||void 0===N.x||void 0===N.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new Uj(M.x,M.y),this.end=new Uj(N.x,N.y),this.properties=D||{};var t=this.start.x-this.end.x,i=this.start.y-this.end.y,e=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(t/2),2);if(this.g=2*Math.asin(Math.sqrt(e)),this.g===Math.PI)throw new Error("it appears "+M.view()+" and "+N.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+M+" and "+N)};fj.prototype.interpolate=function(M){var N=Math.sin((1-M)*this.g)/Math.sin(this.g),D=Math.sin(M*this.g)/Math.sin(this.g),t=N*Math.cos(this.start.y)*Math.cos(this.start.x)+D*Math.cos(this.end.y)*Math.cos(this.end.x),i=N*Math.cos(this.start.y)*Math.sin(this.start.x)+D*Math.cos(this.end.y)*Math.sin(this.end.x),e=N*Math.sin(this.start.y)+D*Math.sin(this.end.y),j=Yj*Math.atan2(e,Math.sqrt(Math.pow(t,2)+Math.pow(i,2)));return[Yj*Math.atan2(i,t),j]},fj.prototype.Arc=function(M,N){var D=[];if(!M||M<=2)D.push([this.start.lon,this.start.lat]),D.push([this.end.lon,this.end.lat]);else for(var t=1/(M-1),i=0;i<M;++i){var e=t*i,j=this.interpolate(e);D.push(j)}for(var T=!1,g=0,u=N&&N.offset?N.offset:10,s=180-u,L=-180+u,I=360-u,A=1;A<D.length;++A){var z=D[A-1][0],n=D[A][0],w=Math.abs(n-z);w>I&&(n>s&&z<L||z>s&&n<L)?T=!0:w>g&&(g=w)}var r=[];if(T&&g<u){var y=[];r.push(y);for(var c=0;c<D.length;++c){var a=parseFloat(D[c][0]);if(c>0&&Math.abs(a-D[c-1][0])>I){var E=parseFloat(D[c-1][0]),o=parseFloat(D[c-1][1]),O=parseFloat(D[c][0]),x=parseFloat(D[c][1]);if(E>-180&&E<L&&180===O&&c+1<D.length&&D[c-1][0]>-180&&D[c-1][0]<L){y.push([-180,D[c][1]]),c++,y.push([D[c][0],D[c][1]]);continue}if(E>s&&E<180&&-180===O&&c+1<D.length&&D[c-1][0]>s&&D[c-1][0]<180){y.push([180,D[c][1]]),c++,y.push([D[c][0],D[c][1]]);continue}if(E<L&&O>s){var C=E;E=O,O=C;var S=o;o=x,x=S}if(E>s&&O<L&&(O+=360),E<=180&&O>=180&&E<O){var l=(180-E)/(O-E),k=l*x+(1-l)*o;y.push([D[c-1][0]>s?180:-180,k]),(y=[]).push([D[c-1][0]>s?-180:180,k]),r.push(y)}else y=[],r.push(y);y.push([a,D[c][1]])}else y.push([D[c][0],D[c][1]])}}else{var Q=[];r.push(Q);for(var d=0;d<D.length;++d)Q.push([D[d][0],D[d][1]])}for(var Y=new hj(this.properties),U=0;U<r.length;++U){var p=new pj;Y.geometries.push(p);for(var h=r[U],f=0;f<h.length;++f)p.move_to(h[f])}return Y};var mj=WD;WD.polyline=WD,WD.polygon=function(M,N){var D,t,i,e,j,T,g;for(t=1;t<=8;t*=2){for(D=[],e=!(HD(i=M[M.length-1],N)&t),j=0;j<M.length;j++)(g=!(HD(T=M[j],N)&t))!==e&&D.push(XD(i,T,t,N)),g&&D.push(T),i=T,e=g;if(!(M=D).length)break}return D};var vj=Array.prototype.slice,Bj={successCallback:null,verbose:!1,polygons:!1},bj={},Pj=64,Zj=16,Gj=4,Rj=1,Wj=[],Xj=[],Hj=[],_j=[],Fj=[],Vj=[],Jj=[],qj=[],Kj=[],$j=[],MT=[],NT=[],DT=[],tT=[],iT=[],eT=[],jT=[],TT=[],gT=[],uT=[],sT=[],LT=[],IT=[],AT=[];Jj[85]=$j[85]=-1,qj[85]=MT[85]=0,Kj[85]=NT[85]=1,gT[85]=LT[85]=1,uT[85]=IT[85]=0,sT[85]=AT[85]=1,Wj[85]=_j[85]=0,Xj[85]=Fj[85]=-1,Hj[85]=iT[85]=0,eT[85]=DT[85]=0,jT[85]=tT[85]=1,Vj[85]=TT[85]=1,LT[1]=LT[169]=0,IT[1]=IT[169]=-1,AT[1]=AT[169]=0,DT[1]=DT[169]=-1,tT[1]=tT[169]=0,iT[1]=iT[169]=0,$j[4]=$j[166]=0,MT[4]=MT[166]=-1,NT[4]=NT[166]=1,eT[4]=eT[166]=1,jT[4]=jT[166]=0,TT[4]=TT[166]=0,Jj[16]=Jj[154]=0,qj[16]=qj[154]=1,Kj[16]=Kj[154]=1,_j[16]=_j[154]=1,Fj[16]=Fj[154]=0,Vj[16]=Vj[154]=1,gT[64]=gT[106]=0,uT[64]=uT[106]=1,sT[64]=sT[106]=0,Wj[64]=Wj[106]=-1,Xj[64]=Xj[106]=0,Hj[64]=Hj[106]=1,gT[2]=gT[168]=0,uT[2]=uT[168]=-1,sT[2]=sT[168]=1,LT[2]=LT[168]=0,IT[2]=IT[168]=-1,AT[2]=AT[168]=0,DT[2]=DT[168]=-1,tT[2]=tT[168]=0,iT[2]=iT[168]=0,eT[2]=eT[168]=-1,jT[2]=jT[168]=0,TT[2]=TT[168]=1,Jj[8]=Jj[162]=0,qj[8]=qj[162]=-1,Kj[8]=Kj[162]=0,$j[8]=$j[162]=0,MT[8]=MT[162]=-1,NT[8]=NT[162]=1,DT[8]=DT[162]=1,tT[8]=tT[162]=0,iT[8]=iT[162]=1,eT[8]=eT[162]=1,jT[8]=jT[162]=0,TT[8]=TT[162]=0,Jj[32]=Jj[138]=0,qj[32]=qj[138]=1,Kj[32]=Kj[138]=1,$j[32]=$j[138]=0,MT[32]=MT[138]=1,NT[32]=NT[138]=0,Wj[32]=Wj[138]=1,Xj[32]=Xj[138]=0,Hj[32]=Hj[138]=0,_j[32]=_j[138]=1,Fj[32]=Fj[138]=0,Vj[32]=Vj[138]=1,LT[128]=LT[42]=0,IT[128]=IT[42]=1,AT[128]=AT[42]=1,gT[128]=gT[42]=0,uT[128]=uT[42]=1,sT[128]=sT[42]=0,Wj[128]=Wj[42]=-1,Xj[128]=Xj[42]=0,Hj[128]=Hj[42]=1,_j[128]=_j[42]=-1,Fj[128]=Fj[42]=0,Vj[128]=Vj[42]=0,$j[5]=$j[165]=-1,MT[5]=MT[165]=0,NT[5]=NT[165]=0,LT[5]=LT[165]=1,IT[5]=IT[165]=0,AT[5]=AT[165]=0,eT[20]=eT[150]=0,jT[20]=jT[150]=1,TT[20]=TT[150]=1,_j[20]=_j[150]=0,Fj[20]=Fj[150]=-1,Vj[20]=Vj[150]=1,Jj[80]=Jj[90]=-1,qj[80]=qj[90]=0,Kj[80]=Kj[90]=1,gT[80]=gT[90]=1,uT[80]=uT[90]=0,sT[80]=sT[90]=1,DT[65]=DT[105]=0,tT[65]=tT[105]=1,iT[65]=iT[105]=0,Wj[65]=Wj[105]=0,Xj[65]=Xj[105]=-1,Hj[65]=Hj[105]=0,Jj[160]=Jj[10]=-1,qj[160]=qj[10]=0,Kj[160]=Kj[10]=1,$j[160]=$j[10]=-1,MT[160]=MT[10]=0,NT[160]=NT[10]=0,LT[160]=LT[10]=1,IT[160]=IT[10]=0,AT[160]=AT[10]=0,gT[160]=gT[10]=1,uT[160]=uT[10]=0,sT[160]=sT[10]=1,eT[130]=eT[40]=0,jT[130]=jT[40]=1,TT[130]=TT[40]=1,DT[130]=DT[40]=0,tT[130]=tT[40]=1,iT[130]=iT[40]=0,Wj[130]=Wj[40]=0,Xj[130]=Xj[40]=-1,Hj[130]=Hj[40]=0,_j[130]=_j[40]=0,Fj[130]=Fj[40]=-1,Vj[130]=Vj[40]=1,$j[37]=$j[133]=0,MT[37]=MT[133]=1,NT[37]=NT[133]=1,LT[37]=LT[133]=0,IT[37]=IT[133]=1,AT[37]=AT[133]=0,Wj[37]=Wj[133]=-1,Xj[37]=Xj[133]=0,Hj[37]=Hj[133]=0,_j[37]=_j[133]=1,Fj[37]=Fj[133]=0,Vj[37]=Vj[133]=0,eT[148]=eT[22]=-1,jT[148]=jT[22]=0,TT[148]=TT[22]=0,LT[148]=LT[22]=0,IT[148]=IT[22]=-1,AT[148]=AT[22]=1,gT[148]=gT[22]=0,uT[148]=uT[22]=1,sT[148]=sT[22]=1,_j[148]=_j[22]=-1,Fj[148]=Fj[22]=0,Vj[148]=Vj[22]=1,Jj[82]=Jj[88]=0,qj[82]=qj[88]=-1,Kj[82]=Kj[88]=1,eT[82]=eT[88]=1,jT[82]=jT[88]=0,TT[82]=TT[88]=1,DT[82]=DT[88]=-1,tT[82]=tT[88]=0,iT[82]=iT[88]=1,gT[82]=gT[88]=0,uT[82]=uT[88]=-1,sT[82]=sT[88]=0,Jj[73]=Jj[97]=0,qj[73]=qj[97]=1,Kj[73]=Kj[97]=0,$j[73]=$j[97]=0,MT[73]=MT[97]=-1,NT[73]=NT[97]=0,DT[73]=DT[97]=1,tT[73]=tT[97]=0,iT[73]=iT[97]=0,Wj[73]=Wj[97]=1,Xj[73]=Xj[97]=0,Hj[73]=Hj[97]=1,Jj[145]=Jj[25]=0,qj[145]=qj[25]=-1,Kj[145]=Kj[25]=0,DT[145]=DT[25]=1,tT[145]=tT[25]=0,iT[145]=iT[25]=1,LT[145]=LT[25]=0,IT[145]=IT[25]=1,AT[145]=AT[25]=1,_j[145]=_j[25]=-1,Fj[145]=Fj[25]=0,Vj[145]=Vj[25]=0,$j[70]=$j[100]=0,MT[70]=MT[100]=1,NT[70]=NT[100]=0,eT[70]=eT[100]=-1,jT[70]=jT[100]=0,TT[70]=TT[100]=1,gT[70]=gT[100]=0,uT[70]=uT[100]=-1,sT[70]=sT[100]=1,Wj[70]=Wj[100]=1,Xj[70]=Xj[100]=0,Hj[70]=Hj[100]=0,$j[101]=$j[69]=0,MT[101]=MT[69]=1,NT[101]=NT[69]=0,Wj[101]=Wj[69]=1,Xj[101]=Xj[69]=0,Hj[101]=Hj[69]=0,LT[149]=LT[21]=0,IT[149]=IT[21]=1,AT[149]=AT[21]=1,_j[149]=_j[21]=-1,Fj[149]=Fj[21]=0,Vj[149]=Vj[21]=0,eT[86]=eT[84]=-1,jT[86]=jT[84]=0,TT[86]=TT[84]=1,gT[86]=gT[84]=0,uT[86]=uT[84]=-1,sT[86]=sT[84]=1,Jj[89]=Jj[81]=0,qj[89]=qj[81]=-1,Kj[89]=Kj[81]=0,DT[89]=DT[81]=1,tT[89]=tT[81]=0,iT[89]=iT[81]=1,Jj[96]=Jj[74]=0,qj[96]=qj[74]=1,Kj[96]=Kj[74]=0,$j[96]=$j[74]=-1,MT[96]=MT[74]=0,NT[96]=NT[74]=1,gT[96]=gT[74]=1,uT[96]=uT[74]=0,sT[96]=sT[74]=0,Wj[96]=Wj[74]=1,Xj[96]=Xj[74]=0,Hj[96]=Hj[74]=1,Jj[24]=Jj[146]=0,qj[24]=qj[146]=-1,Kj[24]=Kj[146]=1,eT[24]=eT[146]=1,jT[24]=jT[146]=0,TT[24]=TT[146]=1,DT[24]=DT[146]=0,tT[24]=tT[146]=1,iT[24]=iT[146]=1,_j[24]=_j[146]=0,Fj[24]=Fj[146]=-1,Vj[24]=Vj[146]=0,$j[6]=$j[164]=-1,MT[6]=MT[164]=0,NT[6]=NT[164]=1,eT[6]=eT[164]=-1,jT[6]=jT[164]=0,TT[6]=TT[164]=0,LT[6]=LT[164]=0,IT[6]=IT[164]=-1,AT[6]=AT[164]=1,gT[6]=gT[164]=1,uT[6]=uT[164]=0,sT[6]=sT[164]=0,DT[129]=DT[41]=0,tT[129]=tT[41]=1,iT[129]=iT[41]=1,LT[129]=LT[41]=0,IT[129]=IT[41]=1,AT[129]=AT[41]=0,Wj[129]=Wj[41]=-1,Xj[129]=Xj[41]=0,Hj[129]=Hj[41]=0,_j[129]=_j[41]=0,Fj[129]=Fj[41]=-1,Vj[129]=Vj[41]=0,eT[66]=eT[104]=0,jT[66]=jT[104]=1,TT[66]=TT[104]=0,DT[66]=DT[104]=-1,tT[66]=tT[104]=0,iT[66]=iT[104]=1,gT[66]=gT[104]=0,uT[66]=uT[104]=-1,sT[66]=sT[104]=0,Wj[66]=Wj[104]=0,Xj[66]=Xj[104]=-1,Hj[66]=Hj[104]=1,Jj[144]=Jj[26]=-1,qj[144]=qj[26]=0,Kj[144]=Kj[26]=0,LT[144]=LT[26]=1,IT[144]=IT[26]=0,AT[144]=AT[26]=1,gT[144]=gT[26]=0,uT[144]=uT[26]=1,sT[144]=sT[26]=1,_j[144]=_j[26]=-1,Fj[144]=Fj[26]=0,Vj[144]=Vj[26]=1,$j[36]=$j[134]=0,MT[36]=MT[134]=1,NT[36]=NT[134]=1,eT[36]=eT[134]=0,jT[36]=jT[134]=1,TT[36]=TT[134]=0,Wj[36]=Wj[134]=0,Xj[36]=Xj[134]=-1,Hj[36]=Hj[134]=1,_j[36]=_j[134]=1,Fj[36]=Fj[134]=0,Vj[36]=Vj[134]=0,Jj[9]=Jj[161]=-1,qj[9]=qj[161]=0,Kj[9]=Kj[161]=0,$j[9]=$j[161]=0,MT[9]=MT[161]=-1,NT[9]=NT[161]=0,DT[9]=DT[161]=1,tT[9]=tT[161]=0,iT[9]=iT[161]=0,LT[9]=LT[161]=1,IT[9]=IT[161]=0,AT[9]=AT[161]=1,Jj[136]=0,qj[136]=1,Kj[136]=1,$j[136]=0,MT[136]=1,NT[136]=0,eT[136]=-1,jT[136]=0,TT[136]=1,DT[136]=-1,tT[136]=0,iT[136]=0,LT[136]=0,IT[136]=-1,AT[136]=0,gT[136]=0,uT[136]=-1,sT[136]=1,Wj[136]=1,Xj[136]=0,Hj[136]=0,_j[136]=1,Fj[136]=0,Vj[136]=1,Jj[34]=0,qj[34]=-1,Kj[34]=0,$j[34]=0,MT[34]=-1,NT[34]=1,eT[34]=1,jT[34]=0,TT[34]=0,DT[34]=1,tT[34]=0,iT[34]=1,LT[34]=0,IT[34]=1,AT[34]=1,gT[34]=0,uT[34]=1,sT[34]=0,Wj[34]=-1,Xj[34]=0,Hj[34]=1,_j[34]=-1,Fj[34]=0,Vj[34]=0,Jj[35]=0,qj[35]=1,Kj[35]=1,$j[35]=0,MT[35]=-1,NT[35]=1,eT[35]=1,jT[35]=0,TT[35]=0,DT[35]=-1,tT[35]=0,iT[35]=0,LT[35]=0,IT[35]=-1,AT[35]=0,gT[35]=0,uT[35]=1,sT[35]=0,Wj[35]=-1,Xj[35]=0,Hj[35]=1,_j[35]=1,Fj[35]=0,Vj[35]=1,Jj[153]=0,qj[153]=1,Kj[153]=1,DT[153]=-1,tT[153]=0,iT[153]=0,LT[153]=0,IT[153]=-1,AT[153]=0,_j[153]=1,Fj[153]=0,Vj[153]=1,$j[102]=0,MT[102]=-1,NT[102]=1,eT[102]=1,jT[102]=0,TT[102]=0,gT[102]=0,uT[102]=1,sT[102]=0,Wj[102]=-1,Xj[102]=0,Hj[102]=1,Jj[155]=0,qj[155]=-1,Kj[155]=0,DT[155]=1,tT[155]=0,iT[155]=1,LT[155]=0,IT[155]=1,AT[155]=1,_j[155]=-1,Fj[155]=0,Vj[155]=0,$j[103]=0,MT[103]=1,NT[103]=0,eT[103]=-1,jT[103]=0,TT[103]=1,gT[103]=0,uT[103]=-1,sT[103]=1,Wj[103]=1,Xj[103]=0,Hj[103]=0,Jj[152]=0,qj[152]=1,Kj[152]=1,eT[152]=-1,jT[152]=0,TT[152]=1,DT[152]=-1,tT[152]=0,iT[152]=0,LT[152]=0,IT[152]=-1,AT[152]=0,gT[152]=0,uT[152]=-1,sT[152]=1,_j[152]=1,Fj[152]=0,Vj[152]=1,Jj[156]=0,qj[156]=-1,Kj[156]=1,eT[156]=1,jT[156]=0,TT[156]=1,DT[156]=-1,tT[156]=0,iT[156]=0,LT[156]=0,IT[156]=-1,AT[156]=0,gT[156]=0,uT[156]=1,sT[156]=1,_j[156]=-1,Fj[156]=0,Vj[156]=1,Jj[137]=0,qj[137]=1,Kj[137]=1,$j[137]=0,MT[137]=1,NT[137]=0,DT[137]=-1,tT[137]=0,iT[137]=0,LT[137]=0,IT[137]=-1,AT[137]=0,Wj[137]=1,Xj[137]=0,Hj[137]=0,_j[137]=1,Fj[137]=0,Vj[137]=1,Jj[139]=0,qj[139]=1,Kj[139]=1,$j[139]=0,MT[139]=-1,NT[139]=0,DT[139]=1,tT[139]=0,iT[139]=0,LT[139]=0,IT[139]=1,AT[139]=0,Wj[139]=-1,Xj[139]=0,Hj[139]=0,_j[139]=1,Fj[139]=0,Vj[139]=1,Jj[98]=0,qj[98]=-1,Kj[98]=0,$j[98]=0,MT[98]=-1,NT[98]=1,eT[98]=1,jT[98]=0,TT[98]=0,DT[98]=1,tT[98]=0,iT[98]=1,gT[98]=0,uT[98]=1,sT[98]=0,Wj[98]=-1,Xj[98]=0,Hj[98]=1,Jj[99]=0,qj[99]=1,Kj[99]=0,$j[99]=0,MT[99]=-1,NT[99]=1,eT[99]=1,jT[99]=0,TT[99]=0,DT[99]=-1,tT[99]=0,iT[99]=1,gT[99]=0,uT[99]=-1,sT[99]=0,Wj[99]=1,Xj[99]=0,Hj[99]=1,$j[38]=0,MT[38]=-1,NT[38]=1,eT[38]=1,jT[38]=0,TT[38]=0,LT[38]=0,IT[38]=1,AT[38]=1,gT[38]=0,uT[38]=1,sT[38]=0,Wj[38]=-1,Xj[38]=0,Hj[38]=1,_j[38]=-1,Fj[38]=0,Vj[38]=0,$j[39]=0,MT[39]=1,NT[39]=1,eT[39]=-1,jT[39]=0,TT[39]=0,LT[39]=0,IT[39]=-1,AT[39]=1,gT[39]=0,uT[39]=1,sT[39]=0,Wj[39]=-1,Xj[39]=0,Hj[39]=1,_j[39]=1,Fj[39]=0,Vj[39]=0;var zT=function(M){return[[M.bottomleft,0],[0,0],[0,M.leftbottom]]},nT=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0]]},wT=function(M){return[[M.topright,1],[1,1],[1,M.righttop]]},rT=function(M){return[[0,M.lefttop],[0,1],[M.topleft,1]]},yT=function(M){return[[M.bottomright,0],[M.bottomleft,0],[0,M.leftbottom],[0,M.lefttop]]},cT=function(M){return[[M.bottomright,0],[M.bottomleft,0],[1,M.righttop],[1,M.rightbottom]]},aT=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.topleft,1],[M.topright,1]]},ET=function(M){return[[0,M.leftbottom],[0,M.lefttop],[M.topleft,1],[M.topright,1]]},oT=[],OT=[],xT=[],CT=[],ST=[],lT=[],kT=[],QT=[];CT[1]=ST[1]=18,CT[169]=ST[169]=18,xT[4]=OT[4]=12,xT[166]=OT[166]=12,oT[16]=QT[16]=4,oT[154]=QT[154]=4,lT[64]=kT[64]=22,lT[106]=kT[106]=22,xT[2]=lT[2]=17,CT[2]=ST[2]=18,xT[168]=lT[168]=17,CT[168]=ST[168]=18,oT[8]=CT[8]=9,OT[8]=xT[8]=12,oT[162]=CT[162]=9,OT[162]=xT[162]=12,oT[32]=QT[32]=4,OT[32]=kT[32]=1,oT[138]=QT[138]=4,OT[138]=kT[138]=1,ST[128]=QT[128]=21,lT[128]=kT[128]=22,ST[42]=QT[42]=21,lT[42]=kT[42]=22,OT[5]=ST[5]=14,OT[165]=ST[165]=14,xT[20]=QT[20]=6,xT[150]=QT[150]=6,oT[80]=lT[80]=11,oT[90]=lT[90]=11,CT[65]=kT[65]=3,CT[105]=kT[105]=3,oT[160]=lT[160]=11,OT[160]=ST[160]=14,oT[10]=lT[10]=11,OT[10]=ST[10]=14,xT[130]=QT[130]=6,CT[130]=kT[130]=3,xT[40]=QT[40]=6,CT[40]=kT[40]=3,OT[101]=kT[101]=1,OT[69]=kT[69]=1,ST[149]=QT[149]=21,ST[21]=QT[21]=21,xT[86]=lT[86]=17,xT[84]=lT[84]=17,oT[89]=CT[89]=9,oT[81]=CT[81]=9,oT[96]=kT[96]=0,OT[96]=lT[96]=15,oT[74]=kT[74]=0,OT[74]=lT[74]=15,oT[24]=xT[24]=8,CT[24]=QT[24]=7,oT[146]=xT[146]=8,CT[146]=QT[146]=7,OT[6]=lT[6]=15,xT[6]=ST[6]=16,OT[164]=lT[164]=15,xT[164]=ST[164]=16,CT[129]=QT[129]=7,ST[129]=kT[129]=20,CT[41]=QT[41]=7,ST[41]=kT[41]=20,xT[66]=kT[66]=2,CT[66]=lT[66]=19,xT[104]=kT[104]=2,CT[104]=lT[104]=19,oT[144]=ST[144]=10,lT[144]=QT[144]=23,oT[26]=ST[26]=10,lT[26]=QT[26]=23,OT[36]=QT[36]=5,xT[36]=kT[36]=2,OT[134]=QT[134]=5,xT[134]=kT[134]=2,oT[9]=ST[9]=10,OT[9]=CT[9]=13,oT[161]=ST[161]=10,OT[161]=CT[161]=13,OT[37]=QT[37]=5,ST[37]=kT[37]=20,OT[133]=QT[133]=5,ST[133]=kT[133]=20,xT[148]=ST[148]=16,lT[148]=QT[148]=23,xT[22]=ST[22]=16,lT[22]=QT[22]=23,oT[82]=xT[82]=8,CT[82]=lT[82]=19,oT[88]=xT[88]=8,CT[88]=lT[88]=19,oT[73]=kT[73]=0,OT[73]=CT[73]=13,oT[97]=kT[97]=0,OT[97]=CT[97]=13,oT[145]=CT[145]=9,ST[145]=QT[145]=21,oT[25]=CT[25]=9,ST[25]=QT[25]=21,OT[70]=kT[70]=1,xT[70]=lT[70]=17,OT[100]=kT[100]=1,xT[100]=lT[100]=17,oT[34]=CT[34]=9,OT[34]=xT[34]=12,ST[34]=QT[34]=21,lT[34]=kT[34]=22,oT[136]=QT[136]=4,OT[136]=kT[136]=1,xT[136]=lT[136]=17,CT[136]=ST[136]=18,oT[35]=QT[35]=4,OT[35]=xT[35]=12,CT[35]=ST[35]=18,lT[35]=kT[35]=22,oT[153]=QT[153]=4,CT[153]=ST[153]=18,OT[102]=xT[102]=12,lT[102]=kT[102]=22,oT[155]=CT[155]=9,ST[155]=QT[155]=23,OT[103]=kT[103]=1,xT[103]=lT[103]=17,oT[152]=QT[152]=4,xT[152]=lT[152]=17,CT[152]=ST[152]=18,oT[156]=xT[156]=8,CT[156]=ST[156]=18,lT[156]=QT[156]=23,oT[137]=QT[137]=4,OT[137]=kT[137]=1,CT[137]=ST[137]=18,oT[139]=QT[139]=4,OT[139]=CT[139]=13,ST[139]=kT[139]=20,oT[98]=CT[98]=9,OT[98]=xT[98]=12,lT[98]=kT[98]=22,oT[99]=kT[99]=0,OT[99]=xT[99]=12,CT[99]=lT[99]=19,OT[38]=xT[38]=12,ST[38]=QT[38]=21,lT[38]=kT[38]=22,OT[39]=QT[39]=5,xT[39]=ST[39]=16,lT[39]=kT[39]=22;var dT=[];dT[1]=dT[169]=zT,dT[4]=dT[166]=nT,dT[16]=dT[154]=wT,dT[64]=dT[106]=rT,dT[168]=dT[2]=yT,dT[162]=dT[8]=cT,dT[138]=dT[32]=aT,dT[42]=dT[128]=ET,dT[5]=dT[165]=function(M){return[[0,0],[0,M.leftbottom],[1,M.rightbottom],[1,0]]},dT[20]=dT[150]=function(M){return[[1,0],[M.bottomright,0],[M.topright,1],[1,1]]},dT[80]=dT[90]=function(M){return[[1,1],[1,M.righttop],[0,M.lefttop],[0,1]]},dT[65]=dT[105]=function(M){return[[M.bottomleft,0],[0,0],[0,1],[M.topleft,1]]},dT[160]=dT[10]=function(M){return[[1,M.righttop],[1,M.rightbottom],[0,M.leftbottom],[0,M.lefttop]]},dT[130]=dT[40]=function(M){return[[M.topleft,1],[M.topright,1],[M.bottomright,0],[M.bottomleft,0]]},dT[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},dT[101]=dT[69]=function(M){return[[1,M.rightbottom],[1,0],[0,0],[0,1],[M.topleft,1]]},dT[149]=dT[21]=function(M){return[[M.topright,1],[1,1],[1,0],[0,0],[0,M.leftbottom]]},dT[86]=dT[84]=function(M){return[[1,0],[M.bottomright,0],[0,M.lefttop],[0,1],[1,1]]},dT[89]=dT[81]=function(M){return[[1,1],[1,M.righttop],[M.bottomleft,0],[0,0],[0,1]]},dT[96]=dT[74]=function(M){return[[1,M.righttop],[1,M.rightbottom],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[24]=dT[146]=function(M){return[[1,1],[1,M.righttop],[M.bottomright,0],[M.bottomleft,0],[M.topright,1]]},dT[6]=dT[164]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.leftbottom],[0,M.lefttop]]},dT[129]=dT[41]=function(M){return[[M.topright,1],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topleft,1]]},dT[66]=dT[104]=function(M){return[[M.bottomright,0],[M.bottomleft,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[144]=dT[26]=function(M){return[[1,1],[1,M.righttop],[0,M.leftbottom],[0,M.lefttop],[M.topright,1]]},dT[36]=dT[134]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[M.topleft,1],[M.topright,1]]},dT[9]=dT[161]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomleft,0],[0,0],[0,M.leftbottom]]},dT[37]=dT[133]=function(M){return[[1,M.rightbottom],[1,0],[0,0],[0,M.leftbottom],[M.topleft,1],[M.topright,1]]},dT[148]=dT[22]=function(M){return[[1,1],[1,0],[M.bottomright,0],[0,M.leftbottom],[0,M.lefttop],[M.topright,1]]},dT[82]=dT[88]=function(M){return[[1,1],[1,M.righttop],[M.bottomright,0],[M.bottomleft,0],[0,M.lefttop],[0,1]]},dT[73]=dT[97]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomleft,0],[0,0],[0,1],[M.topleft,1]]},dT[145]=dT[25]=function(M){return[[1,1],[1,M.righttop],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topright,1]]},dT[70]=dT[100]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[34]=function(M){return[ET(M),cT(M)]},dT[35]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomright,0],[M.bottomleft,0],[0,M.leftbottom],[0,M.lefttop],[M.topleft,1],[M.topright,1]]},dT[136]=function(M){return[aT(M),yT(M)]},dT[153]=function(M){return[wT(M),zT(M)]},dT[102]=function(M){return[nT(M),rT(M)]},dT[155]=function(M){return[[1,1],[1,M.righttop],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topright,1]]},dT[103]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[152]=function(M){return[wT(M),yT(M)]},dT[156]=function(M){return[[1,1],[1,M.righttop],[M.bottomright,0],[M.bottomleft,0],[0,M.leftbottom],[0,M.lefttop],[M.topright,1]]},dT[137]=function(M){return[aT(M),zT(M)]},dT[139]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topleft,1],[M.topright,1]]},dT[98]=function(M){return[cT(M),rT(M)]},dT[99]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomright,0],[M.bottomleft,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[38]=function(M){return[nT(M),ET(M)]},dT[39]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.leftbottom],[0,M.lefttop],[M.topleft,1],[M.topright,1]]};var YT=function M(N){this.id=M.buildId(N),this.coordinates=N,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1};YT.buildId=function(M){return M.join(",")},YT.prototype.removeInnerEdge=function(M){this.innerEdges=this.innerEdges.filter((function(N){return N.from.id!==M.from.id}))},YT.prototype.removeOuterEdge=function(M){this.outerEdges=this.outerEdges.filter((function(N){return N.to.id!==M.to.id}))},YT.prototype.addOuterEdge=function(M){this.outerEdges.push(M),this.outerEdgesSorted=!1},YT.prototype.sortOuterEdges=function(){var M=this;this.outerEdgesSorted||(this.outerEdges.sort((function(N,D){var t=N.to,i=D.to;if(t.coordinates[0]-M.coordinates[0]>=0&&i.coordinates[0]-M.coordinates[0]<0)return 1;if(t.coordinates[0]-M.coordinates[0]<0&&i.coordinates[0]-M.coordinates[0]>=0)return-1;if(t.coordinates[0]-M.coordinates[0]==0&&i.coordinates[0]-M.coordinates[0]==0)return t.coordinates[1]-M.coordinates[1]>=0||i.coordinates[1]-M.coordinates[1]>=0?t.coordinates[1]-i.coordinates[1]:i.coordinates[1]-t.coordinates[1];var e=ct(M.coordinates,t.coordinates,i.coordinates);return e<0?1:e>0?-1:Math.pow(t.coordinates[0]-M.coordinates[0],2)+Math.pow(t.coordinates[1]-M.coordinates[1],2)-(Math.pow(i.coordinates[0]-M.coordinates[0],2)+Math.pow(i.coordinates[1]-M.coordinates[1],2))})),this.outerEdgesSorted=!0)},YT.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},YT.prototype.getOuterEdge=function(M){return this.sortOuterEdges(),this.outerEdges[M]},YT.prototype.addInnerEdge=function(M){this.innerEdges.push(M)};var UT=function(M,N){this.from=M,this.to=N,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)};UT.prototype.getSymetric=function(){return this.symetric||(this.symetric=new UT(this.to,this.from),this.symetric.symetric=this),this.symetric},UT.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},UT.prototype.isEqual=function(M){return this.from.id===M.from.id&&this.to.id===M.to.id},UT.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},UT.prototype.toLineString=function(){return T([this.from.coordinates,this.to.coordinates])},UT.prototype.compareTo=function(M){return ct(M.from.coordinates,M.to.coordinates,this.to.coordinates)};var pT=function(){this.edges=[],this.polygon=void 0,this.envelope=void 0},hT={length:{configurable:!0}};pT.prototype.push=function(M){this[this.edges.length]=M,this.edges.push(M),this.polygon=this.envelope=void 0},pT.prototype.get=function(M){return this.edges[M]},hT.length.get=function(){return this.edges.length},pT.prototype.forEach=function(M){this.edges.forEach(M)},pT.prototype.map=function(M){return this.edges.map(M)},pT.prototype.some=function(M){return this.edges.some(M)},pT.prototype.isValid=function(){return!0},pT.prototype.isHole=function(){var M=this,N=this.edges.reduce((function(N,D,t){return D.from.coordinates[1]>M.edges[N].from.coordinates[1]&&(N=t),N}),0),D=(0===N?this.length:N)-1,t=(N+1)%this.length,i=ct(this.edges[D].from.coordinates,this.edges[N].from.coordinates,this.edges[t].from.coordinates);return 0===i?this.edges[D].from.coordinates[0]>this.edges[t].from.coordinates[0]:i>0},pT.prototype.toMultiPoint=function(){return L(this.edges.map((function(M){return M.from.coordinates})))},pT.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var M=this.edges.map((function(M){return M.from.coordinates}));return M.push(this.edges[0].from.coordinates),this.polygon=e([M])},pT.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=sN(this.toPolygon())},pT.findEdgeRingContaining=function(M,N){var D,i,e=M.getEnvelope();return N.forEach((function(N){var j=N.getEnvelope();if(i&&(D=i.getEnvelope()),!function(M,N){var D=M.geometry.coordinates.map((function(M){return M[0]})),t=M.geometry.coordinates.map((function(M){return M[1]})),i=N.geometry.coordinates.map((function(M){return M[0]})),e=N.geometry.coordinates.map((function(M){return M[1]}));return Math.max(null,D)===Math.max(null,i)&&Math.max(null,t)===Math.max(null,e)&&Math.min(null,D)===Math.min(null,i)&&Math.min(null,t)===Math.min(null,e)}(j,e)&&at(j,e)){var T=M.map((function(M){return M.from.coordinates})).find((function(M){return!N.some((function(N){return function(M,N){return M[0]===N[0]&&M[1]===N[1]}(M,N.from.coordinates)}))}));T&&N.inside(t(T))&&(i&&!at(D,j)||(i=N))}})),i},pT.prototype.inside=function(M){return dM(M,this.toPolygon())},Object.defineProperties(pT.prototype,hT);var fT=function(){this.edges=[],this.nodes={}};fT.fromGeoJson=function(M){!function(M){if(!M)throw new Error("No geojson passed");if("FeatureCollection"!==M.type&&"GeometryCollection"!==M.type&&"MultiLineString"!==M.type&&"LineString"!==M.type&&"Feature"!==M.type)throw new Error("Invalid input type '"+M.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(M);var N=new fT;return m(M,(function(M){_(M,"LineString","Graph::fromGeoJson"),k(M,(function(M,D){if(M){var t=N.getNode(M),i=N.getNode(D);N.addEdge(t,i)}return D}))})),N},fT.prototype.getNode=function(M){var N=YT.buildId(M),D=this.nodes[N];return D||(D=this.nodes[N]=new YT(M)),D},fT.prototype.addEdge=function(M,N){var D=new UT(M,N),t=D.getSymetric();this.edges.push(D),this.edges.push(t)},fT.prototype.deleteDangles=function(){var M=this;Object.keys(this.nodes).map((function(N){return M.nodes[N]})).forEach((function(N){return M._removeIfDangle(N)}))},fT.prototype._removeIfDangle=function(M){var N=this;if(M.innerEdges.length<=1){var D=M.getOuterEdges().map((function(M){return M.to}));this.removeNode(M),D.forEach((function(M){return N._removeIfDangle(M)}))}},fT.prototype.deleteCutEdges=function(){var M=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(N){N.label===N.symetric.label&&(M.removeEdge(N.symetric),M.removeEdge(N))}))},fT.prototype._computeNextCWEdges=function(M){var N=this;void 0===M?Object.keys(this.nodes).forEach((function(M){return N._computeNextCWEdges(N.nodes[M])})):M.getOuterEdges().forEach((function(N,D){M.getOuterEdge((0===D?M.getOuterEdges().length:D)-1).symetric.next=N}))},fT.prototype._computeNextCCWEdges=function(M,N){for(var D,t,i=M.getOuterEdges(),e=i.length-1;e>=0;--e){var j=i[e],T=j.symetric,g=void 0,u=void 0;j.label===N&&(g=j),T.label===N&&(u=T),g&&u&&(u&&(t=u),g&&(t&&(t.next=g,t=void 0),D||(D=g)))}t&&(t.next=D)},fT.prototype._findLabeledEdgeRings=function(){var M=[],N=0;return this.edges.forEach((function(D){if(!(D.label>=0)){M.push(D);var t=D;do{t.label=N,t=t.next}while(!D.isEqual(t));N++}})),M},fT.prototype.getEdgeRings=function(){var M=this;this._computeNextCWEdges(),this.edges.forEach((function(M){M.label=void 0})),this._findLabeledEdgeRings().forEach((function(N){M._findIntersectionNodes(N).forEach((function(D){M._computeNextCCWEdges(D,N.label)}))}));var N=[];return this.edges.forEach((function(D){D.ring||N.push(M._findEdgeRing(D))})),N},fT.prototype._findIntersectionNodes=function(M){var N=[],D=M,t=function(){var t=0;D.from.getOuterEdges().forEach((function(N){N.label===M.label&&++t})),t>1&&N.push(D.from),D=D.next};do{t()}while(!M.isEqual(D));return N},fT.prototype._findEdgeRing=function(M){var N=M,D=new pT;do{D.push(N),N.ring=D,N=N.next}while(!M.isEqual(N));return D},fT.prototype.removeNode=function(M){var N=this;M.getOuterEdges().forEach((function(M){return N.removeEdge(M)})),M.innerEdges.forEach((function(M){return N.removeEdge(M)})),delete this.nodes[M.id]},fT.prototype.removeEdge=function(M){this.edges=this.edges.filter((function(N){return!N.isEqual(M)})),M.deleteEdge()};var mT=yM((function(M,N){function D(M){var N=[];for(var D in M)N.push(D);return N}(M.exports="function"==typeof Object.keys?Object.keys:D).shim=D})),vT=(mT.shim,yM((function(M,N){function D(M){return"[object Arguments]"==Object.prototype.toString.call(M)}function t(M){return M&&"object"==typeof M&&"number"==typeof M.length&&Object.prototype.hasOwnProperty.call(M,"callee")&&!Object.prototype.propertyIsEnumerable.call(M,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(N=M.exports=i?D:t).supported=D,N.unsupported=t}))),BT=(vT.supported,vT.unsupported,yM((function(M){function N(M){return null===M||void 0===M}function D(M){return!(!M||"object"!=typeof M||"number"!=typeof M.length)&&"function"==typeof M.copy&&"function"==typeof M.slice&&!(M.length>0&&"number"!=typeof M[0])}var t=Array.prototype.slice,i=M.exports=function(M,e,j){return j||(j={}),M===e||(M instanceof Date&&e instanceof Date?M.getTime()===e.getTime():!M||!e||"object"!=typeof M&&"object"!=typeof e?j.strict?M===e:M==e:function(M,e,j){var T,g;if(N(M)||N(e))return!1;if(M.prototype!==e.prototype)return!1;if(vT(M))return!!vT(e)&&(M=t.call(M),e=t.call(e),i(M,e,j));if(D(M)){if(!D(e))return!1;if(M.length!==e.length)return!1;for(T=0;T<M.length;T++)if(M[T]!==e[T])return!1;return!0}try{var u=mT(M),s=mT(e)}catch(M){return!1}if(u.length!=s.length)return!1;for(u.sort(),s.sort(),T=u.length-1;T>=0;T--)if(u[T]!=s[T])return!1;for(T=u.length-1;T>=0;T--)if(g=u[T],!i(M[g],e[g],j))return!1;return typeof M==typeof e}(M,e,j))}}))),bT=function(M){this.precision=M&&M.precision?M.precision:17,this.direction=!(!M||!M.direction)&&M.direction,this.pseudoNode=!(!M||!M.pseudoNode)&&M.pseudoNode,this.objectComparator=M&&M.objectComparator?M.objectComparator:Yt};bT.prototype.compare=function(M,N){if(M.type!==N.type||!dt(M,N))return!1;switch(M.type){case"Point":return this.compareCoord(M.coordinates,N.coordinates);case"LineString":return this.compareLine(M.coordinates,N.coordinates,0,!1);case"Polygon":return this.comparePolygon(M,N);case"Feature":return this.compareFeature(M,N);default:if(0===M.type.indexOf("Multi")){var D=this,t=Qt(M),i=Qt(N);return t.every((function(M){return this.some((function(N){return D.compare(M,N)}))}),i)}}return!1},bT.prototype.compareCoord=function(M,N){if(M.length!==N.length)return!1;for(var D=0;D<M.length;D++)if(M[D].toFixed(this.precision)!==N[D].toFixed(this.precision))return!1;return!0},bT.prototype.compareLine=function(M,N,D,t){if(!dt(M,N))return!1;var i=this.pseudoNode?M:this.removePseudo(M),e=this.pseudoNode?N:this.removePseudo(N);if(!t||this.compareCoord(i[0],e[0])||(e=this.fixStartIndex(e,i))){var j=this.compareCoord(i[D],e[D]);return this.direction||j?this.comparePath(i,e):!!this.compareCoord(i[D],e[e.length-(1+D)])&&this.comparePath(i.slice().reverse(),e)}},bT.prototype.fixStartIndex=function(M,N){for(var D,t=-1,i=0;i<M.length;i++)if(this.compareCoord(M[i],N[0])){t=i;break}return t>=0&&(D=[].concat(M.slice(t,M.length),M.slice(1,t+1))),D},bT.prototype.comparePath=function(M,N){var D=this;return M.every((function(M,N){return D.compareCoord(M,this[N])}),N)},bT.prototype.comparePolygon=function(M,N){if(this.compareLine(M.coordinates[0],N.coordinates[0],1,!0)){var D=M.coordinates.slice(1,M.coordinates.length),t=N.coordinates.slice(1,N.coordinates.length),i=this;return D.every((function(M){return this.some((function(N){return i.compareLine(M,N,1,!0)}))}),t)}return!1},bT.prototype.compareFeature=function(M,N){return!(M.id!==N.id||!this.objectComparator(M.properties,N.properties)||!this.compareBBox(M,N))&&this.compare(M.geometry,N.geometry)},bT.prototype.compareBBox=function(M,N){return!!(!M.bbox&&!N.bbox||M.bbox&&N.bbox&&this.compareCoord(M.bbox,N.bbox))},bT.prototype.removePseudo=function(M){return M};var PT=bT,ZT=yM((function(M){function N(M,N,D,t){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(M,N,D,t)}N.prototype.run=function(M,N,D,t){this._init(M,N,D,t);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var e=this._regionQuery(i);if(e.length<this.minPts)this.noise.push(i);else{var j=this.clusters.length;this.clusters.push([]),this._addToCluster(i,j),this._expandCluster(j,e)}}return this.clusters},N.prototype._init=function(M,N,D,t){if(M){if(!(M instanceof Array))throw Error("Dataset must be of type array, "+typeof M+" given");this.dataset=M,this.clusters=[],this.noise=[],this._datasetLength=M.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}N&&(this.epsilon=N),D&&(this.minPts=D),t&&(this.distance=t)},N.prototype._expandCluster=function(M,N){for(var D=0;D<N.length;D++){var t=N[D];if(1!==this._visited[t]){this._visited[t]=1;var i=this._regionQuery(t);i.length>=this.minPts&&(N=this._mergeArrays(N,i))}1!==this._assigned[t]&&this._addToCluster(t,M)}},N.prototype._addToCluster=function(M,N){this.clusters[N].push(M),this._assigned[M]=1},N.prototype._regionQuery=function(M){for(var N=[],D=0;D<this._datasetLength;D++)this.distance(this.dataset[M],this.dataset[D])<this.epsilon&&N.push(D);return N},N.prototype._mergeArrays=function(M,N){for(var D=N.length,t=0;t<D;t++){var i=N[t];M.indexOf(i)<0&&M.push(i)}return M},N.prototype._euclideanDistance=function(M,N){for(var D=0,t=Math.min(M.length,N.length);t--;)D+=(M[t]-N[t])*(M[t]-N[t]);return Math.sqrt(D)},M.exports&&(M.exports=N)})),GT=yM((function(M){function N(M,N,D){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(M,N,D)}N.prototype.init=function(M,N,D){this.assignments=[],this.centroids=[],void 0!==M&&(this.dataset=M),void 0!==N&&(this.k=N),void 0!==D&&(this.distance=D)},N.prototype.run=function(M,N){this.init(M,N);for(var D=this.dataset.length,t=0;t<this.k;t++)this.centroids[t]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var e=0;e<this.k;e++){for(var j=new Array(s),T=0,g=0;g<s;g++)j[g]=0;for(var u=0;u<D;u++){var s=this.dataset[u].length;if(e===this.assignments[u]){for(g=0;g<s;g++)j[g]+=this.dataset[u][g];T++}}if(T>0){for(g=0;g<s;g++)j[g]/=T;this.centroids[e]=j}else this.centroids[e]=this.randomCentroid(),i=!0}}return this.getClusters()},N.prototype.randomCentroid=function(){var M,N,D=this.dataset.length-1;do{N=Math.round(Math.random()*D),M=this.dataset[N]}while(this.centroids.indexOf(M)>=0);return M},N.prototype.assign=function(){for(var M,N=!1,D=this.dataset.length,t=0;t<D;t++)(M=this.argmin(this.dataset[t],this.centroids,this.distance))!=this.assignments[t]&&(this.assignments[t]=M,N=!0);return N},N.prototype.getClusters=function(){for(var M,N=new Array(this.k),D=0;D<this.assignments.length;D++)void 0===N[M=this.assignments[D]]&&(N[M]=[]),N[M].push(D);return N},N.prototype.argmin=function(M,N,D){for(var t,i=Number.MAX_VALUE,e=0,j=N.length,T=0;T<j;T++)(t=D(M,N[T]))<i&&(i=t,e=T);return e},N.prototype.distance=function(M,N){for(var D=0,t=Math.min(M.length,N.length);t--;){var i=M[t]-N[t];D+=i*i}return Math.sqrt(D)},M.exports&&(M.exports=N)})),RT=yM((function(M){function N(M,N,D){this._queue=[],this._priorities=[],this._sorting="desc",this._init(M,N,D)}N.prototype.insert=function(M,N){for(var D=this._queue.length,t=D;t--;){var i=this._priorities[t];"desc"===this._sorting?N>i&&(D=t):N<i&&(D=t)}this._insertAt(M,N,D)},N.prototype.remove=function(M){for(var N=this._queue.length;N--;)if(M===this._queue[N]){this._queue.splice(N,1),this._priorities.splice(N,1);break}},N.prototype.forEach=function(M){this._queue.forEach(M)},N.prototype.getElements=function(){return this._queue},N.prototype.getElementPriority=function(M){return this._priorities[M]},N.prototype.getPriorities=function(){return this._priorities},N.prototype.getElementsWithPriorities=function(){for(var M=[],N=0,D=this._queue.length;N<D;N++)M.push([this._queue[N],this._priorities[N]]);return M},N.prototype._init=function(M,N,D){if(M&&N){if(this._queue=[],this._priorities=[],M.length!==N.length)throw new Error("Arrays must have the same length");for(var t=0;t<M.length;t++)this.insert(M[t],N[t])}D&&(this._sorting=D)},N.prototype._insertAt=function(M,N,D){this._queue.length===D?(this._queue.push(M),this._priorities.push(N)):(this._queue.splice(D,0,M),this._priorities.splice(D,0,N))},M.exports&&(M.exports=N)})),WT=yM((function(M){function N(M,N,D,t){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(M,N,D,t)}if(M.exports)var D=RT;N.prototype.run=function(M,N,t,i){this._init(M,N,t,i);for(var e=0,j=this.dataset.length;e<j;e++)if(1!==this._processed[e]){this._processed[e]=1,this.clusters.push([e]);var T=this.clusters.length-1;this._orderedList.push(e);var g=new D(null,null,"asc"),u=this._regionQuery(e);void 0!==this._distanceToCore(e)&&(this._updateQueue(e,u,g),this._expandCluster(T,g))}return this.clusters},N.prototype.getReachabilityPlot=function(){for(var M=[],N=0,D=this._orderedList.length;N<D;N++){var t=this._orderedList[N],i=this._reachability[t];M.push([t,i])}return M},N.prototype._init=function(M,N,D,t){if(M){if(!(M instanceof Array))throw Error("Dataset must be of type array, "+typeof M+" given");this.dataset=M,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}N&&(this.epsilon=N),D&&(this.minPts=D),t&&(this.distance=t)},N.prototype._updateQueue=function(M,N,D){var t=this;this._coreDistance=this._distanceToCore(M),N.forEach((function(N){if(void 0===t._processed[N]){var i=t.distance(t.dataset[M],t.dataset[N]),e=Math.max(t._coreDistance,i);void 0===t._reachability[N]?(t._reachability[N]=e,D.insert(N,e)):e<t._reachability[N]&&(t._reachability[N]=e,D.remove(N),D.insert(N,e))}}))},N.prototype._expandCluster=function(M,N){for(var D=N.getElements(),t=0,i=D.length;t<i;t++){var e=D[t];if(void 0===this._processed[e]){var j=this._regionQuery(e);this._processed[e]=1,this.clusters[M].push(e),this._orderedList.push(e),void 0!==this._distanceToCore(e)&&(this._updateQueue(e,j,N),this._expandCluster(M,N))}}},N.prototype._distanceToCore=function(M){for(var N=this.epsilon,D=0;D<N;D++)if(this._regionQuery(M,D).length>=this.minPts)return D},N.prototype._regionQuery=function(M,N){N=N||this.epsilon;for(var D=[],t=0,i=this.dataset.length;t<i;t++)this.distance(this.dataset[M],this.dataset[t])<N&&D.push(t);return D},N.prototype._euclideanDistance=function(M,N){for(var D=0,t=Math.min(M.length,N.length);t--;)D+=(M[t]-N[t])*(M[t]-N[t]);return Math.sqrt(D)},M.exports&&(M.exports=N)})),XT=yM((function(M){M.exports&&(M.exports={DBSCAN:ZT,KMEANS:GT,OPTICS:WT,PriorityQueue:RT})})),HT=(XT.DBSCAN,XT.KMEANS,XT.OPTICS,XT.PriorityQueue,function(M,N,D){for(var t=M.length,i=0,e=0;e<t;e++){var j=(M[e]||0)-(N[e]||0);i+=j*j}return D?Math.sqrt(i):i}),_T=HT,FT=function(M,N,D){var t=Math.abs(M-N);return D?t:t*t},VT=HT,JT=function(M,N){for(var D={},t=[],i=N<<2,e=M.length,j=M[0].length>0;t.length<N&&i-- >0;){var T=M[Math.floor(Math.random()*e)],g=j?T.join("_"):""+T;D[g]||(D[g]=!0,t.push(T))}if(t.length<N)throw new Error("Error initializating clusters");return t},qT=function(M,N){var D=M[0].length?_T:FT,t=[],i=M.length,e=M[0].length>0,j=M[Math.floor(Math.random()*i)];for(e&&j.join("_"),t.push(j);t.length<N;){for(var T=[],g=t.length,u=0,s=[],L=0;L<i;L++){for(var I=1/0,A=0;A<g;A++){var z=D(M[L],t[A]);z<=I&&(I=z)}T[L]=I}for(var n=0;n<i;n++)u+=T[n];for(var w=0;w<i;w++)s[w]={i:w,v:M[w],pr:T[w]/u,cs:0};s.sort((function(M,N){return M.pr-N.pr})),s[0].cs=s[0].pr;for(var r=1;r<i;r++)s[r].cs=s[r-1].cs+s[r].pr;for(var y=Math.random(),c=0;c<i-1&&s[c++].cs<y;);t.push(s[c-1].v)}return t},KT=1e4,$T=function(M,N,D,t){var i=[],e=[],j=[],T=[],g=!1,u=t||KT,s=M.length,L=M[0].length,I=L>0,A=[];if(D)i="kmrand"==D?JT(M,N):"kmpp"==D?qT(M,N):D;else for(var z={};i.length<N;){var n=Math.floor(Math.random()*s);z[n]||(z[n]=!0,i.push(M[n]))}do{pt(N,0,A);for(var w=0;w<s;w++){for(var r=1/0,y=0,c=0;c<N;c++)(T=I?VT(M[w],i[c]):Math.abs(M[w]-i[c]))<=r&&(r=T,y=c);j[w]=y,A[y]++}for(var a=[],E=(e=[],0);E<N;E++)a[E]=I?pt(L,0,a[E]):0,e[E]=i[E];if(I){for(var o=0;o<N;o++)i[o]=[];for(var O=0;O<s;O++)for(var x=a[j[O]],C=M[O],S=0;S<L;S++)x[S]+=C[S];g=!0;for(var l=0;l<N;l++){for(var k=i[l],Q=a[l],d=e[l],Y=A[l],U=0;U<L;U++)k[U]=Q[U]/Y||0;if(g)for(var p=0;p<L;p++)if(d[p]!=k[p]){g=!1;break}}}else{for(var h=0;h<s;h++)a[j[h]]+=M[h];for(var f=0;f<N;f++)i[f]=a[f]/A[f]||0;g=!0;for(var m=0;m<N;m++)if(e[m]!=i[m]){g=!1;break}}g=g||--u<=0}while(!g);return{it:KT-u,k:N,idxs:j,centroids:i}},Mg={search:function(M,N,D,t){M.cleanDirty();var i=(t=t||{}).heuristic||Mg.heuristics.manhattan,e=t.closest||!1,j=new Bt((function(M){return M.f})),T=N;for(N.h=i(N,D),j.push(N);j.size()>0;){var g=j.pop();if(g===D)return ft(g);g.closed=!0;for(var u=M.neighbors(g),s=0,L=u.length;s<L;++s){var I=u[s];if(!I.closed&&!I.isWall()){var A=g.g+I.getCost(g),z=I.visited;(!z||A<I.g)&&(I.visited=!0,I.parent=g,I.h=I.h||i(I,D),I.g=A,I.f=I.g+I.h,M.markDirty(I),e&&(I.h<T.h||I.h===T.h&&I.g<T.g)&&(T=I),z?j.rescoreElement(I):j.push(I))}}}return e?ft(T):[]},heuristics:{manhattan:function(M,N){return Math.abs(N.x-M.x)+Math.abs(N.y-M.y)},diagonal:function(M,N){var D=Math.sqrt(2),t=Math.abs(N.x-M.x),i=Math.abs(N.y-M.y);return 1*(t+i)+(D-2)*Math.min(t,i)}},cleanNode:function(M){M.f=0,M.g=0,M.h=0,M.visited=!1,M.closed=!1,M.parent=null}};mt.prototype.init=function(){this.dirtyNodes=[];for(var M=0;M<this.nodes.length;M++)Mg.cleanNode(this.nodes[M])},mt.prototype.cleanDirty=function(){for(var M=0;M<this.dirtyNodes.length;M++)Mg.cleanNode(this.dirtyNodes[M]);this.dirtyNodes=[]},mt.prototype.markDirty=function(M){this.dirtyNodes.push(M)},mt.prototype.neighbors=function(M){var N=[],D=M.x,t=M.y,i=this.grid;return i[D-1]&&i[D-1][t]&&N.push(i[D-1][t]),i[D+1]&&i[D+1][t]&&N.push(i[D+1][t]),i[D]&&i[D][t-1]&&N.push(i[D][t-1]),i[D]&&i[D][t+1]&&N.push(i[D][t+1]),this.diagonal&&(i[D-1]&&i[D-1][t-1]&&N.push(i[D-1][t-1]),i[D+1]&&i[D+1][t-1]&&N.push(i[D+1][t-1]),i[D-1]&&i[D-1][t+1]&&N.push(i[D-1][t+1]),i[D+1]&&i[D+1][t+1]&&N.push(i[D+1][t+1])),N},mt.prototype.toString=function(){for(var M,N,D,t,i=[],e=this.grid,j=0,T=e.length;j<T;j++){for(M=[],D=0,t=(N=e[j]).length;D<t;D++)M.push(N[D].weight);i.push(M.join(" "))}return i.join("\n")},vt.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},vt.prototype.getCost=function(M){return M&&M.x!==this.x&&M.y!==this.y?1.41421*this.weight:this.weight},vt.prototype.isWall=function(){return 0===this.weight},Bt.prototype={push:function(M){this.content.push(M),this.sinkDown(this.content.length-1)},pop:function(){var M=this.content[0],N=this.content.pop();return this.content.length>0&&(this.content[0]=N,this.bubbleUp(0)),M},remove:function(M){var N=this.content.indexOf(M),D=this.content.pop();N!==this.content.length-1&&(this.content[N]=D,this.scoreFunction(D)<this.scoreFunction(M)?this.sinkDown(N):this.bubbleUp(N))},size:function(){return this.content.length},rescoreElement:function(M){this.sinkDown(this.content.indexOf(M))},sinkDown:function(M){for(var N=this.content[M];M>0;){var D=(M+1>>1)-1,t=this.content[D];if(!(this.scoreFunction(N)<this.scoreFunction(t)))break;this.content[D]=N,this.content[M]=t,M=D}},bubbleUp:function(M){for(var N=this.content.length,D=this.content[M],t=this.scoreFunction(D);;){var i,e=M+1<<1,j=e-1,T=null;if(j<N){var g=this.content[j];(i=this.scoreFunction(g))<t&&(T=j)}if(e<N){var u=this.content[e];this.scoreFunction(u)<(null===T?t:i)&&(T=e)}if(null===T)break;this.content[M]=this.content[T],this.content[T]=D,M=T}}};var Ng=function(M){return function(){return M}};Zt.prototype={constructor:Zt,insert:function(M,N){var D,t,i;if(M){if(N.P=M,N.N=M.N,M.N&&(M.N.P=N),M.N=N,M.R){for(M=M.R;M.L;)M=M.L;M.L=N}else M.R=N;D=M}else this._?(M=Xt(this._),N.P=null,N.N=M,M.P=M.L=N,D=M):(N.P=N.N=null,this._=N,D=null);for(N.L=N.R=null,N.U=D,N.C=!0,M=N;D&&D.C;)D===(t=D.U).L?(i=t.R)&&i.C?(D.C=i.C=!1,t.C=!0,M=t):(M===D.R&&(Rt(this,D),D=(M=D).U),D.C=!1,t.C=!0,Wt(this,t)):(i=t.L)&&i.C?(D.C=i.C=!1,t.C=!0,M=t):(M===D.L&&(Wt(this,D),D=(M=D).U),D.C=!1,t.C=!0,Rt(this,t)),D=M.U;this._.C=!1},remove:function(M){M.N&&(M.N.P=M.P),M.P&&(M.P.N=M.N),M.N=M.P=null;var N,D,t,i=M.U,e=M.L,j=M.R;if(D=e?j?Xt(j):e:j,i?i.L===M?i.L=D:i.R=D:this._=D,e&&j?(t=D.C,D.C=M.C,D.L=e,e.U=D,D!==j?(i=D.U,D.U=M.U,M=D.R,i.L=M,D.R=j,j.U=D):(D.U=i,i=D,M=D.R)):(t=M.C,M=D),M&&(M.U=i),!t)if(M&&M.C)M.C=!1;else{do{if(M===this._)break;if(M===i.L){if((N=i.R).C&&(N.C=!1,i.C=!0,Rt(this,i),N=i.R),N.L&&N.L.C||N.R&&N.R.C){N.R&&N.R.C||(N.L.C=!1,N.C=!0,Wt(this,N),N=i.R),N.C=i.C,i.C=N.R.C=!1,Rt(this,i),M=this._;break}}else if((N=i.L).C&&(N.C=!1,i.C=!0,Wt(this,i),N=i.L),N.L&&N.L.C||N.R&&N.R.C){N.L&&N.L.C||(N.R.C=!1,N.C=!0,Rt(this,N),N=i.L),N.C=i.C,i.C=N.L.C=!1,Wt(this,i),M=this._;break}N.C=!0,M=i,i=i.U}while(!M.C);M&&(M.C=!1)}}};var Dg,tg,ig,eg,jg,Tg=[],gg=[],ug=1e-6,sg=1e-12;ui.prototype={constructor:ui,polygons:function(){var M=this.edges;return this.cells.map((function(N){var D=N.halfedges.map((function(D){return Kt(N,M[D])}));return D.data=N.site.data,D}))},triangles:function(){var M=[],N=this.edges;return this.cells.forEach((function(D,t){if(e=(i=D.halfedges).length)for(var i,e,j,T=D.site,g=-1,u=N[i[e-1]],s=u.left===T?u.right:u.left;++g<e;)j=s,s=(u=N[i[g]]).left===T?u.right:u.left,j&&s&&t<j.index&&t<s.index&&Ti(T,j,s)<0&&M.push([T.data,j.data,s.data])})),M},links:function(){return this.edges.filter((function(M){return M.right})).map((function(M){return{source:M.left.data,target:M.right.data}}))},find:function(M,N,D){for(var t,i,e=this,j=e._found||0,T=e.cells.length;!(i=e.cells[j]);)if(++j>=T)return null;var g=M-i.site[0],u=N-i.site[1],s=g*g+u*u;do{i=e.cells[t=j],j=null,i.halfedges.forEach((function(D){var t=e.edges[D],T=t.left;if(T!==i.site&&T||(T=t.right)){var g=M-T[0],u=N-T[1],L=g*g+u*u;L<s&&(s=L,j=T.index)}}))}while(null!==j);return e._found=t,null==D||s<=D*D?i.site:null}};var Lg=function(){function M(M){return new ui(M.map((function(t,i){var e=[Math.round(N(t,i,M)/ug)*ug,Math.round(D(t,i,M)/ug)*ug];return e.index=i,e.data=t,e})),t)}var N=bt,D=Pt,t=null;return M.polygons=function(N){return M(N).polygons()},M.links=function(N){return M(N).links()},M.triangles=function(N){return M(N).triangles()},M.x=function(D){return arguments.length?(N="function"==typeof D?D:Ng(+D),M):N},M.y=function(N){return arguments.length?(D="function"==typeof N?N:Ng(+N),M):D},M.extent=function(N){return arguments.length?(t=null==N?null:[[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]],M):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},M.size=function(N){return arguments.length?(t=null==N?null:[[0,0],[+N[0],+N[1]]],M):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},M},Ig=Object.freeze({randomPosition:wi,randomPoint:ri,randomPolygon:yi,randomLineString:ci}),Ag=Object.freeze({getCluster:Ei,clusterEach:oi,clusterReduce:Oi,createBins:xi,applyFilter:Ci,propertiesContainsFilter:Si,filterProperties:li});"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(M){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var N=Object(this),D=Math.max(Math.min(N.length,9007199254740991),0)||0,t=1 in arguments&&parseInt(Number(arguments[1]),10)||0;t=t<0?Math.max(D+t,0):Math.min(t,D);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:D;for(i=i<0?Math.max(D+arguments[2],0):Math.min(i,D);t<i;)N[t]=M,++t;return N},writable:!0}),Number.isFinite=Number.isFinite||function(M){return"number"==typeof M&&isFinite(M)},Number.isInteger=Number.isInteger||function(M){return"number"==typeof M&&isFinite(M)&&Math.floor(M)===M},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(M){return M!=M},Math.trunc=Math.trunc||function(M){return M<0?Math.ceil(M):Math.floor(M)};var zg=function(){};zg.prototype.interfaces_=function(){return[]},zg.prototype.getClass=function(){return zg},zg.prototype.equalsWithTolerance=function(M,N,D){return Math.abs(M-N)<=D};var ng=function(){},wg=function(){},rg={MAX_VALUE:{configurable:!0}};wg.isNaN=function(M){return Number.isNaN(M)},wg.doubleToLongBits=function(M){return M},wg.longBitsToDouble=function(M){return M},wg.isInfinite=function(M){return!Number.isFinite(M)},rg.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(wg,rg);var yg=function(){},cg=function(){},ag=function(){},Eg=function M(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=M.NULL_ORDINATE;else if(1===arguments.length){var N=arguments[0];this.x=N.x,this.y=N.y,this.z=N.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=M.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},og={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};Eg.prototype.setOrdinate=function(M,N){switch(M){case Eg.X:this.x=N;break;case Eg.Y:this.y=N;break;case Eg.Z:this.z=N;break;default:throw new ng("Invalid ordinate index: "+M)}},Eg.prototype.equals2D=function(){if(1===arguments.length){var M=arguments[0];return this.x===M.x&&this.y===M.y}if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!zg.equalsWithTolerance(this.x,N.x,D)&&!!zg.equalsWithTolerance(this.y,N.y,D)}},Eg.prototype.getOrdinate=function(M){switch(M){case Eg.X:return this.x;case Eg.Y:return this.y;case Eg.Z:return this.z}throw new ng("Invalid ordinate index: "+M)},Eg.prototype.equals3D=function(M){return this.x===M.x&&this.y===M.y&&(this.z===M.z||wg.isNaN(this.z))&&wg.isNaN(M.z)},Eg.prototype.equals=function(M){return M instanceof Eg&&this.equals2D(M)},Eg.prototype.equalInZ=function(M,N){return zg.equalsWithTolerance(this.z,M.z,N)},Eg.prototype.compareTo=function(M){var N=M;return this.x<N.x?-1:this.x>N.x?1:this.y<N.y?-1:this.y>N.y?1:0},Eg.prototype.clone=function(){},Eg.prototype.copy=function(){return new Eg(this)},Eg.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},Eg.prototype.distance3D=function(M){var N=this.x-M.x,D=this.y-M.y,t=this.z-M.z;return Math.sqrt(N*N+D*D+t*t)},Eg.prototype.distance=function(M){var N=this.x-M.x,D=this.y-M.y;return Math.sqrt(N*N+D*D)},Eg.prototype.hashCode=function(){var M=17;return M=37*M+Eg.hashCode(this.x),37*M+Eg.hashCode(this.y)},Eg.prototype.setCoordinate=function(M){this.x=M.x,this.y=M.y,this.z=M.z},Eg.prototype.interfaces_=function(){return[yg,cg,ki]},Eg.prototype.getClass=function(){return Eg},Eg.hashCode=function(){if(1===arguments.length){var M=arguments[0],N=wg.doubleToLongBits(M);return Math.trunc((N^N)>>>32)}},og.DimensionalComparator.get=function(){return Og},og.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},og.NULL_ORDINATE.get=function(){return wg.NaN},og.X.get=function(){return 0},og.Y.get=function(){return 1},og.Z.get=function(){return 2},Object.defineProperties(Eg,og);var Og=function(M){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var N=arguments[0];if(2!==N&&3!==N)throw new ng("only 2 or 3 dimensions may be specified");this._dimensionsToTest=N}};Og.prototype.compare=function(M,N){var D=M,t=N,i=Og.compare(D.x,t.x);if(0!==i)return i;var e=Og.compare(D.y,t.y);return 0!==e?e:this._dimensionsToTest<=2?0:Og.compare(D.z,t.z)},Og.prototype.interfaces_=function(){return[ag]},Og.prototype.getClass=function(){return Og},Og.compare=function(M,N){return M<N?-1:M>N?1:wg.isNaN(M)?wg.isNaN(N)?0:-1:wg.isNaN(N)?1:0};var xg=function(){};xg.prototype.create=function(){},xg.prototype.interfaces_=function(){return[]},xg.prototype.getClass=function(){return xg};var Cg=function(){},Sg={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};Cg.prototype.interfaces_=function(){return[]},Cg.prototype.getClass=function(){return Cg},Cg.toLocationSymbol=function(M){switch(M){case Cg.EXTERIOR:return"e";case Cg.BOUNDARY:return"b";case Cg.INTERIOR:return"i";case Cg.NONE:return"-"}throw new ng("Unknown location value: "+M)},Sg.INTERIOR.get=function(){return 0},Sg.BOUNDARY.get=function(){return 1},Sg.EXTERIOR.get=function(){return 2},Sg.NONE.get=function(){return-1},Object.defineProperties(Cg,Sg);var lg=function(M,N){return M.interfaces_&&M.interfaces_().indexOf(N)>-1},kg=function(){},Qg={LOG_10:{configurable:!0}};kg.prototype.interfaces_=function(){return[]},kg.prototype.getClass=function(){return kg},kg.log10=function(M){var N=Math.log(M);return wg.isInfinite(N)||wg.isNaN(N)?N:N/kg.LOG_10},kg.min=function(M,N,D,t){var i=M;return N<i&&(i=N),D<i&&(i=D),t<i&&(i=t),i},kg.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var M=arguments[0],N=arguments[1],D=arguments[2];return M<N?N:M>D?D:M}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var t=arguments[0],i=arguments[1],e=arguments[2];return t<i?i:t>e?e:t}},kg.wrap=function(M,N){return M<0?N- -M%N:M%N},kg.max=function(){if(3===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2],t=M;return N>t&&(t=N),D>t&&(t=D),t}if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3],g=i;return e>g&&(g=e),j>g&&(g=j),T>g&&(g=T),g}},kg.average=function(M,N){return(M+N)/2},Qg.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(kg,Qg);var dg=function(M){this.str=M};dg.prototype.append=function(M){this.str+=M},dg.prototype.setCharAt=function(M,N){this.str=this.str.substr(0,M)+N+this.str.substr(M+1)},dg.prototype.toString=function(M){return this.str};var Yg=function(M){this.value=M};Yg.prototype.intValue=function(){return this.value},Yg.prototype.compareTo=function(M){return this.value<M?-1:this.value>M?1:0},Yg.isNaN=function(M){return Number.isNaN(M)};var Ug=function(){};Ug.isWhitespace=function(M){return M<=32&&M>=0||127===M},Ug.toUpperCase=function(M){return M.toUpperCase()};var pg=function M(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var N=arguments[0];this.init(N)}else if(arguments[0]instanceof M){var D=arguments[0];this.init(D)}else if("string"==typeof arguments[0]){var t=arguments[0];M.call(this,M.parse(t))}}else if(2===arguments.length){var i=arguments[0],e=arguments[1];this.init(i,e)}},hg={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};pg.prototype.le=function(M){return(this._hi<M._hi||this._hi===M._hi)&&this._lo<=M._lo},pg.prototype.extractSignificantDigits=function(M,N){var D=this.abs(),t=pg.magnitude(D._hi),i=pg.TEN.pow(t);(D=D.divide(i)).gt(pg.TEN)?(D=D.divide(pg.TEN),t+=1):D.lt(pg.ONE)&&(D=D.multiply(pg.TEN),t-=1);for(var e=t+1,j=new dg,T=pg.MAX_PRINT_DIGITS-1,g=0;g<=T;g++){M&&g===e&&j.append(".");var u=Math.trunc(D._hi);if(u<0)break;var s=!1,L=0;u>9?(s=!0,L="9"):L="0"+u,j.append(L),D=D.subtract(pg.valueOf(u)).multiply(pg.TEN),s&&D.selfAdd(pg.TEN);var I=!0,A=pg.magnitude(D._hi);if(A<0&&Math.abs(A)>=T-g&&(I=!1),!I)break}return N[0]=t,j.toString()},pg.prototype.sqr=function(){return this.multiply(this)},pg.prototype.doubleValue=function(){return this._hi+this._lo},pg.prototype.subtract=function(){if(arguments[0]instanceof pg){var M=arguments[0];return this.add(M.negate())}if("number"==typeof arguments[0]){var N=arguments[0];return this.add(-N)}},pg.prototype.equals=function(){if(1===arguments.length){var M=arguments[0];return this._hi===M._hi&&this._lo===M._lo}},pg.prototype.isZero=function(){return 0===this._hi&&0===this._lo},pg.prototype.selfSubtract=function(){if(arguments[0]instanceof pg){var M=arguments[0];return this.isNaN()?this:this.selfAdd(-M._hi,-M._lo)}if("number"==typeof arguments[0]){var N=arguments[0];return this.isNaN()?this:this.selfAdd(-N,0)}},pg.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},pg.prototype.min=function(M){return this.le(M)?this:M},pg.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof pg){var M=arguments[0];return this.selfDivide(M._hi,M._lo)}if("number"==typeof arguments[0]){var N=arguments[0];return this.selfDivide(N,0)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1],i=null,e=null,j=null,T=null,g=null,u=null,s=null,L=null;return g=this._hi/D,u=pg.SPLIT*g,i=u-g,L=pg.SPLIT*D,i=u-i,e=g-i,j=L-D,s=g*D,j=L-j,T=D-j,L=i*j-s+i*T+e*j+e*T,u=(this._hi-s-L+this._lo-g*t)/D,L=g+u,this._hi=L,this._lo=g-L+u,this}},pg.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},pg.prototype.divide=function(){if(arguments[0]instanceof pg){var M=arguments[0],N=null,D=null,t=null,i=null,e=null,j=null,T=null,g=null;return D=(e=this._hi/M._hi)-(N=(j=pg.SPLIT*e)-(N=j-e)),g=N*(t=(g=pg.SPLIT*M._hi)-(t=g-M._hi))-(T=e*M._hi)+N*(i=M._hi-t)+D*t+D*i,j=(this._hi-T-g+this._lo-e*M._lo)/M._hi,new pg(g=e+j,e-g+j)}if("number"==typeof arguments[0]){var u=arguments[0];return wg.isNaN(u)?pg.createNaN():pg.copy(this).selfDivide(u,0)}},pg.prototype.ge=function(M){return(this._hi>M._hi||this._hi===M._hi)&&this._lo>=M._lo},pg.prototype.pow=function(M){if(0===M)return pg.valueOf(1);var N=new pg(this),D=pg.valueOf(1),t=Math.abs(M);if(t>1)for(;t>0;)t%2==1&&D.selfMultiply(N),(t/=2)>0&&(N=N.sqr());else D=N;return M<0?D.reciprocal():D},pg.prototype.ceil=function(){if(this.isNaN())return pg.NaN;var M=Math.ceil(this._hi),N=0;return M===this._hi&&(N=Math.ceil(this._lo)),new pg(M,N)},pg.prototype.compareTo=function(M){var N=M;return this._hi<N._hi?-1:this._hi>N._hi?1:this._lo<N._lo?-1:this._lo>N._lo?1:0},pg.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},pg.prototype.setValue=function(){if(arguments[0]instanceof pg){var M=arguments[0];return this.init(M),this}if("number"==typeof arguments[0]){var N=arguments[0];return this.init(N),this}},pg.prototype.max=function(M){return this.ge(M)?this:M},pg.prototype.sqrt=function(){if(this.isZero())return pg.valueOf(0);if(this.isNegative())return pg.NaN;var M=1/Math.sqrt(this._hi),N=this._hi*M,D=pg.valueOf(N),t=this.subtract(D.sqr())._hi*(.5*M);return D.add(t)},pg.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof pg){var M=arguments[0];return this.selfAdd(M._hi,M._lo)}if("number"==typeof arguments[0]){var N=arguments[0],D=null,t=null,i=null,e=null,j=null,T=null;return i=this._hi+N,j=i-this._hi,e=i-j,e=N-j+(this._hi-e),T=e+this._lo,D=i+T,t=T+(i-D),this._hi=D+t,this._lo=t+(D-this._hi),this}}else if(2===arguments.length){var g=arguments[0],u=arguments[1],s=null,L=null,I=null,A=null,z=null,n=null,w=null;A=this._hi+g,L=this._lo+u,z=A-(n=A-this._hi),I=L-(w=L-this._lo);var r=(s=A+(n=(z=g-n+(this._hi-z))+L))+(n=(I=u-w+(this._lo-I))+(n+(A-s))),y=n+(s-r);return this._hi=r,this._lo=y,this}},pg.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof pg){var M=arguments[0];return this.selfMultiply(M._hi,M._lo)}if("number"==typeof arguments[0]){var N=arguments[0];return this.selfMultiply(N,0)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1],i=null,e=null,j=null,T=null,g=null,u=null;i=(g=pg.SPLIT*this._hi)-this._hi,u=pg.SPLIT*D,i=g-i,e=this._hi-i,j=u-D;var s=(g=this._hi*D)+(u=i*(j=u-j)-g+i*(T=D-j)+e*j+e*T+(this._hi*t+this._lo*D)),L=u+(i=g-s);return this._hi=s,this._lo=L,this}},pg.prototype.selfSqr=function(){return this.selfMultiply(this)},pg.prototype.floor=function(){if(this.isNaN())return pg.NaN;var M=Math.floor(this._hi),N=0;return M===this._hi&&(N=Math.floor(this._lo)),new pg(M,N)},pg.prototype.negate=function(){return this.isNaN()?this:new pg(-this._hi,-this._lo)},pg.prototype.clone=function(){},pg.prototype.multiply=function(){if(arguments[0]instanceof pg){var M=arguments[0];return M.isNaN()?pg.createNaN():pg.copy(this).selfMultiply(M)}if("number"==typeof arguments[0]){var N=arguments[0];return wg.isNaN(N)?pg.createNaN():pg.copy(this).selfMultiply(N,0)}},pg.prototype.isNaN=function(){return wg.isNaN(this._hi)},pg.prototype.intValue=function(){return Math.trunc(this._hi)},pg.prototype.toString=function(){var M=pg.magnitude(this._hi);return M>=-3&&M<=20?this.toStandardNotation():this.toSciNotation()},pg.prototype.toStandardNotation=function(){var M=this.getSpecialNumberString();if(null!==M)return M;var N=new Array(1).fill(null),D=this.extractSignificantDigits(!0,N),t=N[0]+1,i=D;if("."===D.charAt(0))i="0"+D;else if(t<0)i="0."+pg.stringOfChar("0",-t)+D;else if(-1===D.indexOf(".")){var e=t-D.length;i=D+pg.stringOfChar("0",e)+".0"}return this.isNegative()?"-"+i:i},pg.prototype.reciprocal=function(){var M=null,N=null,D=null,t=null,i=null,e=null,j=null,T=null;N=(i=1/this._hi)-(M=(e=pg.SPLIT*i)-(M=e-i)),D=(T=pg.SPLIT*this._hi)-this._hi;var g=i+(e=(1-(j=i*this._hi)-(T=M*(D=T-D)-j+M*(t=this._hi-D)+N*D+N*t)-i*this._lo)/this._hi);return new pg(g,i-g+e)},pg.prototype.toSciNotation=function(){if(this.isZero())return pg.SCI_NOT_ZERO;var M=this.getSpecialNumberString();if(null!==M)return M;var N=new Array(1).fill(null),D=this.extractSignificantDigits(!1,N),t=pg.SCI_NOT_EXPONENT_CHAR+N[0];if("0"===D.charAt(0))throw new Error("Found leading zero: "+D);var i="";D.length>1&&(i=D.substring(1));var e=D.charAt(0)+"."+i;return this.isNegative()?"-"+e+t:e+t},pg.prototype.abs=function(){return this.isNaN()?pg.NaN:this.isNegative()?this.negate():new pg(this)},pg.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},pg.prototype.lt=function(M){return(this._hi<M._hi||this._hi===M._hi)&&this._lo<M._lo},pg.prototype.add=function(){if(arguments[0]instanceof pg){var M=arguments[0];return pg.copy(this).selfAdd(M)}if("number"==typeof arguments[0]){var N=arguments[0];return pg.copy(this).selfAdd(N)}},pg.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var M=arguments[0];this._hi=M,this._lo=0}else if(arguments[0]instanceof pg){var N=arguments[0];this._hi=N._hi,this._lo=N._lo}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this._hi=D,this._lo=t}},pg.prototype.gt=function(M){return(this._hi>M._hi||this._hi===M._hi)&&this._lo>M._lo},pg.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},pg.prototype.trunc=function(){return this.isNaN()?pg.NaN:this.isPositive()?this.floor():this.ceil()},pg.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},pg.prototype.interfaces_=function(){return[ki,yg,cg]},pg.prototype.getClass=function(){return pg},pg.sqr=function(M){return pg.valueOf(M).selfMultiply(M)},pg.valueOf=function(){if("string"==typeof arguments[0]){var M=arguments[0];return pg.parse(M)}if("number"==typeof arguments[0]){var N=arguments[0];return new pg(N)}},pg.sqrt=function(M){return pg.valueOf(M).sqrt()},pg.parse=function(M){for(var N=0,D=M.length;Ug.isWhitespace(M.charAt(N));)N++;var t=!1;if(N<D){var i=M.charAt(N);"-"!==i&&"+"!==i||(N++,"-"===i&&(t=!0))}for(var e=new pg,j=0,T=0,g=0;!(N>=D);){var u=M.charAt(N);if(N++,Ug.isDigit(u)){var s=u-"0";e.selfMultiply(pg.TEN),e.selfAdd(s),j++}else{if("."!==u){if("e"===u||"E"===u){var L=M.substring(N);try{g=Yg.parseInt(L)}catch(N){throw N instanceof Error?new Error("Invalid exponent "+L+" in string "+M):N}break}throw new Error("Unexpected character '"+u+"' at position "+N+" in string "+M)}T=j}}var I=e,A=j-T-g;if(0===A)I=e;else if(A>0){var z=pg.TEN.pow(A);I=e.divide(z)}else if(A<0){var n=pg.TEN.pow(-A);I=e.multiply(n)}return t?I.negate():I},pg.createNaN=function(){return new pg(wg.NaN,wg.NaN)},pg.copy=function(M){return new pg(M)},pg.magnitude=function(M){var N=Math.abs(M),D=Math.log(N)/Math.log(10),t=Math.trunc(Math.floor(D));return 10*Math.pow(10,t)<=N&&(t+=1),t},pg.stringOfChar=function(M,N){for(var D=new dg,t=0;t<N;t++)D.append(M);return D.toString()},hg.PI.get=function(){return new pg(3.141592653589793,12246467991473532e-32)},hg.TWO_PI.get=function(){return new pg(6.283185307179586,24492935982947064e-32)},hg.PI_2.get=function(){return new pg(1.5707963267948966,6123233995736766e-32)},hg.E.get=function(){return new pg(2.718281828459045,14456468917292502e-32)},hg.NaN.get=function(){return new pg(wg.NaN,wg.NaN)},hg.EPS.get=function(){return 123259516440783e-46},hg.SPLIT.get=function(){return 134217729},hg.MAX_PRINT_DIGITS.get=function(){return 32},hg.TEN.get=function(){return pg.valueOf(10)},hg.ONE.get=function(){return pg.valueOf(1)},hg.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},hg.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(pg,hg);var fg=function(){},mg={DP_SAFE_EPSILON:{configurable:!0}};fg.prototype.interfaces_=function(){return[]},fg.prototype.getClass=function(){return fg},fg.orientationIndex=function(M,N,D){var t=fg.orientationIndexFilter(M,N,D);if(t<=1)return t;var i=pg.valueOf(N.x).selfAdd(-M.x),e=pg.valueOf(N.y).selfAdd(-M.y),j=pg.valueOf(D.x).selfAdd(-N.x),T=pg.valueOf(D.y).selfAdd(-N.y);return i.selfMultiply(T).selfSubtract(e.selfMultiply(j)).signum()},fg.signOfDet2x2=function(M,N,D,t){return M.multiply(t).selfSubtract(N.multiply(D)).signum()},fg.intersection=function(M,N,D,t){var i=pg.valueOf(t.y).selfSubtract(D.y).selfMultiply(pg.valueOf(N.x).selfSubtract(M.x)),e=pg.valueOf(t.x).selfSubtract(D.x).selfMultiply(pg.valueOf(N.y).selfSubtract(M.y)),j=i.subtract(e),T=pg.valueOf(t.x).selfSubtract(D.x).selfMultiply(pg.valueOf(M.y).selfSubtract(D.y)),g=pg.valueOf(t.y).selfSubtract(D.y).selfMultiply(pg.valueOf(M.x).selfSubtract(D.x)),u=T.subtract(g).selfDivide(j).doubleValue(),s=pg.valueOf(M.x).selfAdd(pg.valueOf(N.x).selfSubtract(M.x).selfMultiply(u)).doubleValue(),L=pg.valueOf(N.x).selfSubtract(M.x).selfMultiply(pg.valueOf(M.y).selfSubtract(D.y)),I=pg.valueOf(N.y).selfSubtract(M.y).selfMultiply(pg.valueOf(M.x).selfSubtract(D.x)),A=L.subtract(I).selfDivide(j).doubleValue(),z=pg.valueOf(D.y).selfAdd(pg.valueOf(t.y).selfSubtract(D.y).selfMultiply(A)).doubleValue();return new Eg(s,z)},fg.orientationIndexFilter=function(M,N,D){var t=null,i=(M.x-D.x)*(N.y-D.y),e=(M.y-D.y)*(N.x-D.x),j=i-e;if(i>0){if(e<=0)return fg.signum(j);t=i+e}else{if(!(i<0))return fg.signum(j);if(e>=0)return fg.signum(j);t=-i-e}var T=fg.DP_SAFE_EPSILON*t;return j>=T||-j>=T?fg.signum(j):2},fg.signum=function(M){return M>0?1:M<0?-1:0},mg.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(fg,mg);var vg=function(){},Bg={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};Bg.X.get=function(){return 0},Bg.Y.get=function(){return 1},Bg.Z.get=function(){return 2},Bg.M.get=function(){return 3},vg.prototype.setOrdinate=function(M,N,D){},vg.prototype.size=function(){},vg.prototype.getOrdinate=function(M,N){},vg.prototype.getCoordinate=function(){},vg.prototype.getCoordinateCopy=function(M){},vg.prototype.getDimension=function(){},vg.prototype.getX=function(M){},vg.prototype.clone=function(){},vg.prototype.expandEnvelope=function(M){},vg.prototype.copy=function(){},vg.prototype.getY=function(M){},vg.prototype.toCoordinateArray=function(){},vg.prototype.interfaces_=function(){return[cg]},vg.prototype.getClass=function(){return vg},Object.defineProperties(vg,Bg);var bg=function(){},Pg=function(M){function N(){M.call(this,"Projective point not representable on the Cartesian plane.")}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(bg),Zg=function(){};Zg.arraycopy=function(M,N,D,t,i){for(var e=0,j=N;j<N+i;j++)D[t+e]=M[j],e++},Zg.getProperty=function(M){return{"line.separator":"\n"}[M]};var Gg=function M(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var N=arguments[0];this.x=N.x,this.y=N.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var D=arguments[0],t=arguments[1];this.x=D,this.y=t,this.w=1}else if(arguments[0]instanceof M&&arguments[1]instanceof M){var i=arguments[0],e=arguments[1];this.x=i.y*e.w-e.y*i.w,this.y=e.x*i.w-i.x*e.w,this.w=i.x*e.y-e.x*i.y}else if(arguments[0]instanceof Eg&&arguments[1]instanceof Eg){var j=arguments[0],T=arguments[1];this.x=j.y-T.y,this.y=T.x-j.x,this.w=j.x*T.y-T.x*j.y}}else if(3===arguments.length){var g=arguments[0],u=arguments[1],s=arguments[2];this.x=g,this.y=u,this.w=s}else if(4===arguments.length){var L=arguments[0],I=arguments[1],A=arguments[2],z=arguments[3],n=L.y-I.y,w=I.x-L.x,r=L.x*I.y-I.x*L.y,y=A.y-z.y,c=z.x-A.x,a=A.x*z.y-z.x*A.y;this.x=w*a-c*r,this.y=y*r-n*a,this.w=n*c-y*w}};Gg.prototype.getY=function(){var M=this.y/this.w;if(wg.isNaN(M)||wg.isInfinite(M))throw new Pg;return M},Gg.prototype.getX=function(){var M=this.x/this.w;if(wg.isNaN(M)||wg.isInfinite(M))throw new Pg;return M},Gg.prototype.getCoordinate=function(){var M=new Eg;return M.x=this.getX(),M.y=this.getY(),M},Gg.prototype.interfaces_=function(){return[]},Gg.prototype.getClass=function(){return Gg},Gg.intersection=function(M,N,D,t){var i=M.y-N.y,e=N.x-M.x,j=M.x*N.y-N.x*M.y,T=D.y-t.y,g=t.x-D.x,u=D.x*t.y-t.x*D.y,s=i*g-T*e,L=(e*u-g*j)/s,I=(T*j-i*u)/s;if(wg.isNaN(L)||wg.isInfinite(L)||wg.isNaN(I)||wg.isInfinite(I))throw new Pg;return new Eg(L,I)};var Rg=function M(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof Eg){var N=arguments[0];this.init(N.x,N.x,N.y,N.y)}else if(arguments[0]instanceof M){var D=arguments[0];this.init(D)}}else if(2===arguments.length){var t=arguments[0],i=arguments[1];this.init(t.x,i.x,t.y,i.y)}else if(4===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2],g=arguments[3];this.init(e,j,T,g)}},Wg={serialVersionUID:{configurable:!0}};Rg.prototype.getArea=function(){return this.getWidth()*this.getHeight()},Rg.prototype.equals=function(M){if(!(M instanceof Rg))return!1;var N=M;return this.isNull()?N.isNull():this._maxx===N.getMaxX()&&this._maxy===N.getMaxY()&&this._minx===N.getMinX()&&this._miny===N.getMinY()},Rg.prototype.intersection=function(M){if(this.isNull()||M.isNull()||!this.intersects(M))return new Rg;var N=this._minx>M._minx?this._minx:M._minx,D=this._miny>M._miny?this._miny:M._miny,t=this._maxx<M._maxx?this._maxx:M._maxx,i=this._maxy<M._maxy?this._maxy:M._maxy;return new Rg(N,t,D,i)},Rg.prototype.isNull=function(){return this._maxx<this._minx},Rg.prototype.getMaxX=function(){return this._maxx},Rg.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof Eg){var M=arguments[0];return this.covers(M.x,M.y)}if(arguments[0]instanceof Rg){var N=arguments[0];return!this.isNull()&&!N.isNull()&&N.getMinX()>=this._minx&&N.getMaxX()<=this._maxx&&N.getMinY()>=this._miny&&N.getMaxY()<=this._maxy}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return!this.isNull()&&D>=this._minx&&D<=this._maxx&&t>=this._miny&&t<=this._maxy}},Rg.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof Rg){var M=arguments[0];return!this.isNull()&&!M.isNull()&&!(M._minx>this._maxx||M._maxx<this._minx||M._miny>this._maxy||M._maxy<this._miny)}if(arguments[0]instanceof Eg){var N=arguments[0];return this.intersects(N.x,N.y)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return!this.isNull()&&!(D>this._maxx||D<this._minx||t>this._maxy||t<this._miny)}},Rg.prototype.getMinY=function(){return this._miny},Rg.prototype.getMinX=function(){return this._minx},Rg.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof Eg){var M=arguments[0];this.expandToInclude(M.x,M.y)}else if(arguments[0]instanceof Rg){var N=arguments[0];if(N.isNull())return null;this.isNull()?(this._minx=N.getMinX(),this._maxx=N.getMaxX(),this._miny=N.getMinY(),this._maxy=N.getMaxY()):(N._minx<this._minx&&(this._minx=N._minx),N._maxx>this._maxx&&(this._maxx=N._maxx),N._miny<this._miny&&(this._miny=N._miny),N._maxy>this._maxy&&(this._maxy=N._maxy))}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.isNull()?(this._minx=D,this._maxx=D,this._miny=t,this._maxy=t):(D<this._minx&&(this._minx=D),D>this._maxx&&(this._maxx=D),t<this._miny&&(this._miny=t),t>this._maxy&&(this._maxy=t))}},Rg.prototype.minExtent=function(){if(this.isNull())return 0;var M=this.getWidth(),N=this.getHeight();return M<N?M:N},Rg.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},Rg.prototype.compareTo=function(M){var N=M;return this.isNull()?N.isNull()?0:-1:N.isNull()?1:this._minx<N._minx?-1:this._minx>N._minx?1:this._miny<N._miny?-1:this._miny>N._miny?1:this._maxx<N._maxx?-1:this._maxx>N._maxx?1:this._maxy<N._maxy?-1:this._maxy>N._maxy?1:0},Rg.prototype.translate=function(M,N){if(this.isNull())return null;this.init(this.getMinX()+M,this.getMaxX()+M,this.getMinY()+N,this.getMaxY()+N)},Rg.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},Rg.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},Rg.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},Rg.prototype.maxExtent=function(){if(this.isNull())return 0;var M=this.getWidth(),N=this.getHeight();return M>N?M:N},Rg.prototype.expandBy=function(){if(1===arguments.length){var M=arguments[0];this.expandBy(M,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this.isNull())return null;this._minx-=N,this._maxx+=N,this._miny-=D,this._maxy+=D,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},Rg.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof Rg){var M=arguments[0];return this.covers(M)}if(arguments[0]instanceof Eg){var N=arguments[0];return this.covers(N)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return this.covers(D,t)}},Rg.prototype.centre=function(){return this.isNull()?null:new Eg((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},Rg.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof Eg){var M=arguments[0];this.init(M.x,M.x,M.y,M.y)}else if(arguments[0]instanceof Rg){var N=arguments[0];this._minx=N._minx,this._maxx=N._maxx,this._miny=N._miny,this._maxy=N._maxy}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.init(D.x,t.x,D.y,t.y)}else if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3];i<e?(this._minx=i,this._maxx=e):(this._minx=e,this._maxx=i),j<T?(this._miny=j,this._maxy=T):(this._miny=T,this._maxy=j)}},Rg.prototype.getMaxY=function(){return this._maxy},Rg.prototype.distance=function(M){if(this.intersects(M))return 0;var N=0;this._maxx<M._minx?N=M._minx-this._maxx:this._minx>M._maxx&&(N=this._minx-M._maxx);var D=0;return this._maxy<M._miny?D=M._miny-this._maxy:this._miny>M._maxy&&(D=this._miny-M._maxy),0===N?D:0===D?N:Math.sqrt(N*N+D*D)},Rg.prototype.hashCode=function(){var M=17;return M=37*M+Eg.hashCode(this._minx),M=37*M+Eg.hashCode(this._maxx),M=37*M+Eg.hashCode(this._miny),37*M+Eg.hashCode(this._maxy)},Rg.prototype.interfaces_=function(){return[yg,ki]},Rg.prototype.getClass=function(){return Rg},Rg.intersects=function(){if(3===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2];return D.x>=(M.x<N.x?M.x:N.x)&&D.x<=(M.x>N.x?M.x:N.x)&&D.y>=(M.y<N.y?M.y:N.y)&&D.y<=(M.y>N.y?M.y:N.y)}if(4===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2],j=arguments[3],T=Math.min(e.x,j.x),g=Math.max(e.x,j.x),u=Math.min(t.x,i.x),s=Math.max(t.x,i.x);return!(u>g)&&!(s<T)&&(T=Math.min(e.y,j.y),g=Math.max(e.y,j.y),u=Math.min(t.y,i.y),s=Math.max(t.y,i.y),!(u>g)&&!(s<T))}},Wg.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(Rg,Wg);var Xg={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},Hg=function(M){this.geometryFactory=M||new ns};Hg.prototype.read=function(M){var N,D,t;M=M.replace(/[\n\r]/g," ");var i=Xg.typeStr.exec(M);if(-1!==M.search("EMPTY")&&((i=Xg.emptyTypeStr.exec(M))[2]=void 0),i&&(D=i[1].toLowerCase(),t=i[2],Fg[D]&&(N=Fg[D].apply(this,[t]))),void 0===N)throw new Error("Could not parse WKT "+M);return N},Hg.prototype.write=function(M){return this.extractGeometry(M)},Hg.prototype.extractGeometry=function(M){var N=M.getGeometryType().toLowerCase();if(!_g[N])return null;var D=N.toUpperCase();return M.isEmpty()?D+" EMPTY":D+"("+_g[N].apply(this,[M])+")"};var _g={coordinate:function(M){return M.x+" "+M.y},point:function(M){return _g.coordinate.call(this,M._coordinates._coordinates[0])},multipoint:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push("("+_g.point.apply(this,[M._geometries[D]])+")");return N.join(",")},linestring:function(M){for(var N=[],D=0,t=M._points._coordinates.length;D<t;++D)N.push(_g.coordinate.apply(this,[M._points._coordinates[D]]));return N.join(",")},linearring:function(M){for(var N=[],D=0,t=M._points._coordinates.length;D<t;++D)N.push(_g.coordinate.apply(this,[M._points._coordinates[D]]));return N.join(",")},multilinestring:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push("("+_g.linestring.apply(this,[M._geometries[D]])+")");return N.join(",")},polygon:function(M){var N=[];N.push("("+_g.linestring.apply(this,[M._shell])+")");for(var D=0,t=M._holes.length;D<t;++D)N.push("("+_g.linestring.apply(this,[M._holes[D]])+")");return N.join(",")},multipolygon:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push("("+_g.polygon.apply(this,[M._geometries[D]])+")");return N.join(",")},geometrycollection:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push(this.extractGeometry(M._geometries[D]));return N.join(",")}},Fg={point:function(M){if(void 0===M)return this.geometryFactory.createPoint();var N=M.trim().split(Xg.spaces);return this.geometryFactory.createPoint(new Eg(Number.parseFloat(N[0]),Number.parseFloat(N[1])))},multipoint:function(M){if(void 0===M)return this.geometryFactory.createMultiPoint();for(var N,D=M.trim().split(","),t=[],i=0,e=D.length;i<e;++i)N=D[i].replace(Xg.trimParens,"$1"),t.push(Fg.point.apply(this,[N]));return this.geometryFactory.createMultiPoint(t)},linestring:function(M){if(void 0===M)return this.geometryFactory.createLineString();for(var N,D=M.trim().split(","),t=[],i=0,e=D.length;i<e;++i)N=D[i].trim().split(Xg.spaces),t.push(new Eg(Number.parseFloat(N[0]),Number.parseFloat(N[1])));return this.geometryFactory.createLineString(t)},linearring:function(M){if(void 0===M)return this.geometryFactory.createLinearRing();for(var N,D=M.trim().split(","),t=[],i=0,e=D.length;i<e;++i)N=D[i].trim().split(Xg.spaces),t.push(new Eg(Number.parseFloat(N[0]),Number.parseFloat(N[1])));return this.geometryFactory.createLinearRing(t)},multilinestring:function(M){if(void 0===M)return this.geometryFactory.createMultiLineString();for(var N,D=M.trim().split(Xg.parenComma),t=[],i=0,e=D.length;i<e;++i)N=D[i].replace(Xg.trimParens,"$1"),t.push(Fg.linestring.apply(this,[N]));return this.geometryFactory.createMultiLineString(t)},polygon:function(M){if(void 0===M)return this.geometryFactory.createPolygon();for(var N,D,t,i,e=M.trim().split(Xg.parenComma),j=[],T=0,g=e.length;T<g;++T)N=e[T].replace(Xg.trimParens,"$1"),D=Fg.linestring.apply(this,[N]),t=this.geometryFactory.createLinearRing(D._points),0===T?i=t:j.push(t);return this.geometryFactory.createPolygon(i,j)},multipolygon:function(M){if(void 0===M)return this.geometryFactory.createMultiPolygon();for(var N,D=M.trim().split(Xg.doubleParenComma),t=[],i=0,e=D.length;i<e;++i)N=D[i].replace(Xg.trimParens,"$1"),t.push(Fg.polygon.apply(this,[N]));return this.geometryFactory.createMultiPolygon(t)},geometrycollection:function(M){if(void 0===M)return this.geometryFactory.createGeometryCollection();for(var N=(M=M.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),D=[],t=0,i=N.length;t<i;++t)D.push(this.read(N[t]));return this.geometryFactory.createGeometryCollection(D)}},Vg=function(M){this.parser=new Hg(M)};Vg.prototype.write=function(M){return this.parser.write(M)},Vg.toLineString=function(M,N){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+M.x+" "+M.y+", "+N.x+" "+N.y+" )"};var Jg=function(M){function N(N){M.call(this,N),this.name="RuntimeException",this.message=N,this.stack=(new M).stack}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N}(Error),qg=function(M){function N(){if(M.call(this),0===arguments.length)M.call(this);else if(1===arguments.length){var N=arguments[0];M.call(this,N)}}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Jg),Kg=function(){};Kg.prototype.interfaces_=function(){return[]},Kg.prototype.getClass=function(){return Kg},Kg.shouldNeverReachHere=function(){if(0===arguments.length)Kg.shouldNeverReachHere(null);else if(1===arguments.length){var M=arguments[0];throw new qg("Should never reach here"+(null!==M?": "+M:""))}},Kg.isTrue=function(){var M,N;if(1===arguments.length)M=arguments[0],Kg.isTrue(M,null);else if(2===arguments.length&&(M=arguments[0],N=arguments[1],!M))throw null===N?new qg:new qg(N)},Kg.equals=function(){var M,N,D;if(2===arguments.length)M=arguments[0],N=arguments[1],Kg.equals(M,N,null);else if(3===arguments.length&&(M=arguments[0],N=arguments[1],D=arguments[2],!N.equals(M)))throw new qg("Expected "+M+" but encountered "+N+(null!==D?": "+D:""))};var $g=function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new Eg,this._intPt[1]=new Eg,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},Mu={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};$g.prototype.getIndexAlongSegment=function(M,N){return this.computeIntLineIndex(),this._intLineIndex[M][N]},$g.prototype.getTopologySummary=function(){var M=new dg;return this.isEndPoint()&&M.append(" endpoint"),this._isProper&&M.append(" proper"),this.isCollinear()&&M.append(" collinear"),M.toString()},$g.prototype.computeIntersection=function(M,N,D,t){this._inputLines[0][0]=M,this._inputLines[0][1]=N,this._inputLines[1][0]=D,this._inputLines[1][1]=t,this._result=this.computeIntersect(M,N,D,t)},$g.prototype.getIntersectionNum=function(){return this._result},$g.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var M=arguments[0];this.getEdgeDistance(M,0)>this.getEdgeDistance(M,1)?(this._intLineIndex[M][0]=0,this._intLineIndex[M][1]=1):(this._intLineIndex[M][0]=1,this._intLineIndex[M][1]=0)}},$g.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},$g.prototype.setPrecisionModel=function(M){this._precisionModel=M},$g.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var M=arguments[0],N=0;N<this._result;N++)if(!this._intPt[N].equals2D(this._inputLines[M][0])&&!this._intPt[N].equals2D(this._inputLines[M][1]))return!0;return!1}},$g.prototype.getIntersection=function(M){return this._intPt[M]},$g.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},$g.prototype.hasIntersection=function(){return this._result!==$g.NO_INTERSECTION},$g.prototype.getEdgeDistance=function(M,N){return $g.computeEdgeDistance(this._intPt[N],this._inputLines[M][0],this._inputLines[M][1])},$g.prototype.isCollinear=function(){return this._result===$g.COLLINEAR_INTERSECTION},$g.prototype.toString=function(){return Vg.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+Vg.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},$g.prototype.getEndpoint=function(M,N){return this._inputLines[M][N]},$g.prototype.isIntersection=function(M){for(var N=0;N<this._result;N++)if(this._intPt[N].equals2D(M))return!0;return!1},$g.prototype.getIntersectionAlongSegment=function(M,N){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[M][N]]},$g.prototype.interfaces_=function(){return[]},$g.prototype.getClass=function(){return $g},$g.computeEdgeDistance=function(M,N,D){var t=Math.abs(D.x-N.x),i=Math.abs(D.y-N.y),e=-1;if(M.equals(N))e=0;else if(M.equals(D))e=t>i?t:i;else{var j=Math.abs(M.x-N.x),T=Math.abs(M.y-N.y);0!==(e=t>i?j:T)||M.equals(N)||(e=Math.max(j,T))}return Kg.isTrue(!(0===e&&!M.equals(N)),"Bad distance calculation"),e},$g.nonRobustComputeEdgeDistance=function(M,N,D){var t=M.x-N.x,i=M.y-N.y,e=Math.sqrt(t*t+i*i);return Kg.isTrue(!(0===e&&!M.equals(N)),"Invalid distance calculation"),e},Mu.DONT_INTERSECT.get=function(){return 0},Mu.DO_INTERSECT.get=function(){return 1},Mu.COLLINEAR.get=function(){return 2},Mu.NO_INTERSECTION.get=function(){return 0},Mu.POINT_INTERSECTION.get=function(){return 1},Mu.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties($g,Mu);var Nu=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.isInSegmentEnvelopes=function(M){var N=new Rg(this._inputLines[0][0],this._inputLines[0][1]),D=new Rg(this._inputLines[1][0],this._inputLines[1][1]);return N.contains(M)&&D.contains(M)},N.prototype.computeIntersection=function(){if(3!==arguments.length)return M.prototype.computeIntersection.apply(this,arguments);var N=arguments[0],D=arguments[1],t=arguments[2];if(this._isProper=!1,Rg.intersects(D,t,N)&&0===iu.orientationIndex(D,t,N)&&0===iu.orientationIndex(t,D,N))return this._isProper=!0,(N.equals(D)||N.equals(t))&&(this._isProper=!1),this._result=M.POINT_INTERSECTION,null;this._result=M.NO_INTERSECTION},N.prototype.normalizeToMinimum=function(M,N,D,t,i){i.x=this.smallestInAbsValue(M.x,N.x,D.x,t.x),i.y=this.smallestInAbsValue(M.y,N.y,D.y,t.y),M.x-=i.x,M.y-=i.y,N.x-=i.x,N.y-=i.y,D.x-=i.x,D.y-=i.y,t.x-=i.x,t.y-=i.y},N.prototype.safeHCoordinateIntersection=function(M,D,t,i){var e=null;try{e=Gg.intersection(M,D,t,i)}catch(j){if(!(j instanceof Pg))throw j;e=N.nearestEndpoint(M,D,t,i)}return e},N.prototype.intersection=function(M,D,t,i){var e=this.intersectionWithNormalization(M,D,t,i);return this.isInSegmentEnvelopes(e)||(e=new Eg(N.nearestEndpoint(M,D,t,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(e),e},N.prototype.smallestInAbsValue=function(M,N,D,t){var i=M,e=Math.abs(i);return Math.abs(N)<e&&(i=N,e=Math.abs(N)),Math.abs(D)<e&&(i=D,e=Math.abs(D)),Math.abs(t)<e&&(i=t),i},N.prototype.checkDD=function(M,N,D,t,i){var e=fg.intersection(M,N,D,t),j=this.isInSegmentEnvelopes(e);Zg.out.println("DD in env = "+j+" --------------------- "+e),i.distance(e)>1e-4&&Zg.out.println("Distance = "+i.distance(e))},N.prototype.intersectionWithNormalization=function(M,N,D,t){var i=new Eg(M),e=new Eg(N),j=new Eg(D),T=new Eg(t),g=new Eg;this.normalizeToEnvCentre(i,e,j,T,g);var u=this.safeHCoordinateIntersection(i,e,j,T);return u.x+=g.x,u.y+=g.y,u},N.prototype.computeCollinearIntersection=function(N,D,t,i){var e=Rg.intersects(N,D,t),j=Rg.intersects(N,D,i),T=Rg.intersects(t,i,N),g=Rg.intersects(t,i,D);return e&&j?(this._intPt[0]=t,this._intPt[1]=i,M.COLLINEAR_INTERSECTION):T&&g?(this._intPt[0]=N,this._intPt[1]=D,M.COLLINEAR_INTERSECTION):e&&T?(this._intPt[0]=t,this._intPt[1]=N,!t.equals(N)||j||g?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):e&&g?(this._intPt[0]=t,this._intPt[1]=D,!t.equals(D)||j||T?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):j&&T?(this._intPt[0]=i,this._intPt[1]=N,!i.equals(N)||e||g?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):j&&g?(this._intPt[0]=i,this._intPt[1]=D,!i.equals(D)||e||T?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):M.NO_INTERSECTION},N.prototype.normalizeToEnvCentre=function(M,N,D,t,i){var e=M.x<N.x?M.x:N.x,j=M.y<N.y?M.y:N.y,T=M.x>N.x?M.x:N.x,g=M.y>N.y?M.y:N.y,u=D.x<t.x?D.x:t.x,s=D.y<t.y?D.y:t.y,L=D.x>t.x?D.x:t.x,I=D.y>t.y?D.y:t.y,A=((e>u?e:u)+(T<L?T:L))/2,z=((j>s?j:s)+(g<I?g:I))/2;i.x=A,i.y=z,M.x-=i.x,M.y-=i.y,N.x-=i.x,N.y-=i.y,D.x-=i.x,D.y-=i.y,t.x-=i.x,t.y-=i.y},N.prototype.computeIntersect=function(N,D,t,i){if(this._isProper=!1,!Rg.intersects(N,D,t,i))return M.NO_INTERSECTION;var e=iu.orientationIndex(N,D,t),j=iu.orientationIndex(N,D,i);if(e>0&&j>0||e<0&&j<0)return M.NO_INTERSECTION;var T=iu.orientationIndex(t,i,N),g=iu.orientationIndex(t,i,D);return T>0&&g>0||T<0&&g<0?M.NO_INTERSECTION:0===e&&0===j&&0===T&&0===g?this.computeCollinearIntersection(N,D,t,i):(0===e||0===j||0===T||0===g?(this._isProper=!1,N.equals2D(t)||N.equals2D(i)?this._intPt[0]=N:D.equals2D(t)||D.equals2D(i)?this._intPt[0]=D:0===e?this._intPt[0]=new Eg(t):0===j?this._intPt[0]=new Eg(i):0===T?this._intPt[0]=new Eg(N):0===g&&(this._intPt[0]=new Eg(D))):(this._isProper=!0,this._intPt[0]=this.intersection(N,D,t,i)),M.POINT_INTERSECTION)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.nearestEndpoint=function(M,N,D,t){var i=M,e=iu.distancePointLine(M,D,t),j=iu.distancePointLine(N,D,t);return j<e&&(e=j,i=N),(j=iu.distancePointLine(D,M,N))<e&&(e=j,i=D),(j=iu.distancePointLine(t,M,N))<e&&(e=j,i=t),i},N}($g),Du=function(){};Du.prototype.interfaces_=function(){return[]},Du.prototype.getClass=function(){return Du},Du.orientationIndex=function(M,N,D){var t=N.x-M.x,i=N.y-M.y,e=D.x-N.x,j=D.y-N.y;return Du.signOfDet2x2(t,i,e,j)},Du.signOfDet2x2=function(M,N,D,t){var i=null,e=null,j=null;if(i=1,0===M||0===t)return 0===N||0===D?0:N>0?D>0?-i:i:D>0?i:-i;if(0===N||0===D)return t>0?M>0?i:-i:M>0?-i:i;if(N>0?t>0?N<=t||(i=-i,e=M,M=D,D=e,e=N,N=t,t=e):N<=-t?(i=-i,D=-D,t=-t):(e=M,M=-D,D=e,e=N,N=-t,t=e):t>0?-N<=t?(i=-i,M=-M,N=-N):(e=-M,M=D,D=e,e=-N,N=t,t=e):N>=t?(M=-M,N=-N,D=-D,t=-t):(i=-i,e=-M,M=-D,D=e,e=-N,N=-t,t=e),M>0){if(!(D>0))return i;if(!(M<=D))return i}else{if(D>0)return-i;if(!(M>=D))return-i;i=-i,M=-M,D=-D}for(;;){if(j=Math.floor(D/M),D-=j*M,(t-=j*N)<0)return-i;if(t>N)return i;if(M>D+D){if(N<t+t)return i}else{if(N>t+t)return-i;D=M-D,t=N-t,i=-i}if(0===t)return 0===D?0:-i;if(0===D)return i;if(j=Math.floor(M/D),M-=j*D,(N-=j*t)<0)return i;if(N>t)return-i;if(D>M+M){if(t<N+N)return-i}else{if(t>N+N)return i;M=D-M,N=t-N,i=-i}if(0===N)return 0===M?0:i;if(0===M)return-i}};var tu=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var M=arguments[0];this._p=M};tu.prototype.countSegment=function(M,N){if(M.x<this._p.x&&N.x<this._p.x)return null;if(this._p.x===N.x&&this._p.y===N.y)return this._isPointOnSegment=!0,null;if(M.y===this._p.y&&N.y===this._p.y){var D=M.x,t=N.x;return D>t&&(D=N.x,t=M.x),this._p.x>=D&&this._p.x<=t&&(this._isPointOnSegment=!0),null}if(M.y>this._p.y&&N.y<=this._p.y||N.y>this._p.y&&M.y<=this._p.y){var i=M.x-this._p.x,e=M.y-this._p.y,j=N.x-this._p.x,T=N.y-this._p.y,g=Du.signOfDet2x2(i,e,j,T);if(0===g)return this._isPointOnSegment=!0,null;T<e&&(g=-g),g>0&&this._crossingCount++}},tu.prototype.isPointInPolygon=function(){return this.getLocation()!==Cg.EXTERIOR},tu.prototype.getLocation=function(){return this._isPointOnSegment?Cg.BOUNDARY:this._crossingCount%2==1?Cg.INTERIOR:Cg.EXTERIOR},tu.prototype.isOnSegment=function(){return this._isPointOnSegment},tu.prototype.interfaces_=function(){return[]},tu.prototype.getClass=function(){return tu},tu.locatePointInRing=function(){if(arguments[0]instanceof Eg&&lg(arguments[1],vg)){for(var M=arguments[0],N=arguments[1],D=new tu(M),t=new Eg,i=new Eg,e=1;e<N.size();e++)if(N.getCoordinate(e,t),N.getCoordinate(e-1,i),D.countSegment(t,i),D.isOnSegment())return D.getLocation();return D.getLocation()}if(arguments[0]instanceof Eg&&arguments[1]instanceof Array){for(var j=arguments[0],T=arguments[1],g=new tu(j),u=1;u<T.length;u++){var s=T[u],L=T[u-1];if(g.countSegment(s,L),g.isOnSegment())return g.getLocation()}return g.getLocation()}};var iu=function(){},eu={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};iu.prototype.interfaces_=function(){return[]},iu.prototype.getClass=function(){return iu},iu.orientationIndex=function(M,N,D){return fg.orientationIndex(M,N,D)},iu.signedArea=function(){if(arguments[0]instanceof Array){var M=arguments[0];if(M.length<3)return 0;for(var N=0,D=M[0].x,t=1;t<M.length-1;t++){var i=M[t].x-D,e=M[t+1].y;N+=i*(M[t-1].y-e)}return N/2}if(lg(arguments[0],vg)){var j=arguments[0],T=j.size();if(T<3)return 0;var g=new Eg,u=new Eg,s=new Eg;j.getCoordinate(0,u),j.getCoordinate(1,s);var L=u.x;s.x-=L;for(var I=0,A=1;A<T-1;A++)g.y=u.y,u.x=s.x,u.y=s.y,j.getCoordinate(A+1,s),s.x-=L,I+=u.x*(g.y-s.y);return I/2}},iu.distanceLineLine=function(M,N,D,t){if(M.equals(N))return iu.distancePointLine(M,D,t);if(D.equals(t))return iu.distancePointLine(t,M,N);var i=!1;if(Rg.intersects(M,N,D,t)){var e=(N.x-M.x)*(t.y-D.y)-(N.y-M.y)*(t.x-D.x);if(0===e)i=!0;else{var j=(M.y-D.y)*(t.x-D.x)-(M.x-D.x)*(t.y-D.y),T=((M.y-D.y)*(N.x-M.x)-(M.x-D.x)*(N.y-M.y))/e,g=j/e;(g<0||g>1||T<0||T>1)&&(i=!0)}}else i=!0;return i?kg.min(iu.distancePointLine(M,D,t),iu.distancePointLine(N,D,t),iu.distancePointLine(D,M,N),iu.distancePointLine(t,M,N)):0},iu.isPointInRing=function(M,N){return iu.locatePointInRing(M,N)!==Cg.EXTERIOR},iu.computeLength=function(M){var N=M.size();if(N<=1)return 0;var D=0,t=new Eg;M.getCoordinate(0,t);for(var i=t.x,e=t.y,j=1;j<N;j++){M.getCoordinate(j,t);var T=t.x,g=t.y,u=T-i,s=g-e;D+=Math.sqrt(u*u+s*s),i=T,e=g}return D},iu.isCCW=function(M){var N=M.length-1;if(N<3)throw new ng("Ring has fewer than 4 points, so orientation cannot be determined");for(var D=M[0],t=0,i=1;i<=N;i++){var e=M[i];e.y>D.y&&(D=e,t=i)}var j=t;do{(j-=1)<0&&(j=N)}while(M[j].equals2D(D)&&j!==t);var T=t;do{T=(T+1)%N}while(M[T].equals2D(D)&&T!==t);var g=M[j],u=M[T];if(g.equals2D(D)||u.equals2D(D)||g.equals2D(u))return!1;var s=iu.computeOrientation(g,D,u),L=!1;return L=0===s?g.x>u.x:s>0,L},iu.locatePointInRing=function(M,N){return tu.locatePointInRing(M,N)},iu.distancePointLinePerpendicular=function(M,N,D){var t=(D.x-N.x)*(D.x-N.x)+(D.y-N.y)*(D.y-N.y),i=((N.y-M.y)*(D.x-N.x)-(N.x-M.x)*(D.y-N.y))/t;return Math.abs(i)*Math.sqrt(t)},iu.computeOrientation=function(M,N,D){return iu.orientationIndex(M,N,D)},iu.distancePointLine=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];if(0===N.length)throw new ng("Line array must contain at least one vertex");for(var D=M.distance(N[0]),t=0;t<N.length-1;t++){var i=iu.distancePointLine(M,N[t],N[t+1]);i<D&&(D=i)}return D}if(3===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2];if(j.x===T.x&&j.y===T.y)return e.distance(j);var g=(T.x-j.x)*(T.x-j.x)+(T.y-j.y)*(T.y-j.y),u=((e.x-j.x)*(T.x-j.x)+(e.y-j.y)*(T.y-j.y))/g;if(u<=0)return e.distance(j);if(u>=1)return e.distance(T);var s=((j.y-e.y)*(T.x-j.x)-(j.x-e.x)*(T.y-j.y))/g;return Math.abs(s)*Math.sqrt(g)}},iu.isOnLine=function(M,N){for(var D=new Nu,t=1;t<N.length;t++){var i=N[t-1],e=N[t];if(D.computeIntersection(M,i,e),D.hasIntersection())return!0}return!1},eu.CLOCKWISE.get=function(){return-1},eu.RIGHT.get=function(){return iu.CLOCKWISE},eu.COUNTERCLOCKWISE.get=function(){return 1},eu.LEFT.get=function(){return iu.COUNTERCLOCKWISE},eu.COLLINEAR.get=function(){return 0},eu.STRAIGHT.get=function(){return iu.COLLINEAR},Object.defineProperties(iu,eu);var ju=function(){};ju.prototype.filter=function(M){},ju.prototype.interfaces_=function(){return[]},ju.prototype.getClass=function(){return ju};var Tu=function(){var M=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=M,this._SRID=M.getSRID()},gu={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};Tu.prototype.isGeometryCollection=function(){return this.getSortIndex()===Tu.SORTINDEX_GEOMETRYCOLLECTION},Tu.prototype.getFactory=function(){return this._factory},Tu.prototype.getGeometryN=function(M){return this},Tu.prototype.getArea=function(){return 0},Tu.prototype.isRectangle=function(){return!1},Tu.prototype.equals=function(){if(arguments[0]instanceof Tu){var M=arguments[0];return null!==M&&this.equalsTopo(M)}if(arguments[0]instanceof Object){var N=arguments[0];if(!(N instanceof Tu))return!1;var D=N;return this.equalsExact(D)}},Tu.prototype.equalsExact=function(M){return this===M||this.equalsExact(M,0)},Tu.prototype.geometryChanged=function(){this.apply(Tu.geometryChangedFilter)},Tu.prototype.geometryChangedAction=function(){this._envelope=null},Tu.prototype.equalsNorm=function(M){return null!==M&&this.norm().equalsExact(M.norm())},Tu.prototype.getLength=function(){return 0},Tu.prototype.getNumGeometries=function(){return 1},Tu.prototype.compareTo=function(){if(1===arguments.length){var M=arguments[0],N=M;return this.getSortIndex()!==N.getSortIndex()?this.getSortIndex()-N.getSortIndex():this.isEmpty()&&N.isEmpty()?0:this.isEmpty()?-1:N.isEmpty()?1:this.compareToSameClass(M)}if(2===arguments.length){var D=arguments[0],t=arguments[1];return this.getSortIndex()!==D.getSortIndex()?this.getSortIndex()-D.getSortIndex():this.isEmpty()&&D.isEmpty()?0:this.isEmpty()?-1:D.isEmpty()?1:this.compareToSameClass(D,t)}},Tu.prototype.getUserData=function(){return this._userData},Tu.prototype.getSRID=function(){return this._SRID},Tu.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},Tu.prototype.checkNotGeometryCollection=function(M){if(M.getSortIndex()===Tu.SORTINDEX_GEOMETRYCOLLECTION)throw new ng("This method does not support GeometryCollection arguments")},Tu.prototype.equal=function(M,N,D){return 0===D?M.equals(N):M.distance(N)<=D},Tu.prototype.norm=function(){var M=this.copy();return M.normalize(),M},Tu.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},Tu.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new Rg(this._envelope)},Tu.prototype.setSRID=function(M){this._SRID=M},Tu.prototype.setUserData=function(M){this._userData=M},Tu.prototype.compare=function(M,N){for(var D=M.iterator(),t=N.iterator();D.hasNext()&&t.hasNext();){var i=D.next(),e=t.next(),j=i.compareTo(e);if(0!==j)return j}return D.hasNext()?1:t.hasNext()?-1:0},Tu.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},Tu.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===Tu.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===Tu.SORTINDEX_MULTIPOINT||this.getSortIndex()===Tu.SORTINDEX_MULTILINESTRING||this.getSortIndex()===Tu.SORTINDEX_MULTIPOLYGON},Tu.prototype.interfaces_=function(){return[cg,yg,ki]},Tu.prototype.getClass=function(){return Tu},Tu.hasNonEmptyElements=function(M){for(var N=0;N<M.length;N++)if(!M[N].isEmpty())return!0;return!1},Tu.hasNullElements=function(M){for(var N=0;N<M.length;N++)if(null===M[N])return!0;return!1},gu.serialVersionUID.get=function(){return 0x799ea46522854c00},gu.SORTINDEX_POINT.get=function(){return 0},gu.SORTINDEX_MULTIPOINT.get=function(){return 1},gu.SORTINDEX_LINESTRING.get=function(){return 2},gu.SORTINDEX_LINEARRING.get=function(){return 3},gu.SORTINDEX_MULTILINESTRING.get=function(){return 4},gu.SORTINDEX_POLYGON.get=function(){return 5},gu.SORTINDEX_MULTIPOLYGON.get=function(){return 6},gu.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},gu.geometryChangedFilter.get=function(){return uu},Object.defineProperties(Tu,gu);var uu=function(){};uu.interfaces_=function(){return[ju]},uu.filter=function(M){M.geometryChangedAction()};var su=function(){};su.prototype.filter=function(M){},su.prototype.interfaces_=function(){return[]},su.prototype.getClass=function(){return su};var Lu=function(){},Iu={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};Lu.prototype.isInBoundary=function(M){},Lu.prototype.interfaces_=function(){return[]},Lu.prototype.getClass=function(){return Lu},Iu.Mod2BoundaryNodeRule.get=function(){return Au},Iu.EndPointBoundaryNodeRule.get=function(){return zu},Iu.MultiValentEndPointBoundaryNodeRule.get=function(){return nu},Iu.MonoValentEndPointBoundaryNodeRule.get=function(){return wu},Iu.MOD2_BOUNDARY_RULE.get=function(){return new Au},Iu.ENDPOINT_BOUNDARY_RULE.get=function(){return new zu},Iu.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new nu},Iu.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new wu},Iu.OGC_SFS_BOUNDARY_RULE.get=function(){return Lu.MOD2_BOUNDARY_RULE},Object.defineProperties(Lu,Iu);var Au=function(){};Au.prototype.isInBoundary=function(M){return M%2==1},Au.prototype.interfaces_=function(){return[Lu]},Au.prototype.getClass=function(){return Au};var zu=function(){};zu.prototype.isInBoundary=function(M){return M>0},zu.prototype.interfaces_=function(){return[Lu]},zu.prototype.getClass=function(){return zu};var nu=function(){};nu.prototype.isInBoundary=function(M){return M>1},nu.prototype.interfaces_=function(){return[Lu]},nu.prototype.getClass=function(){return nu};var wu=function(){};wu.prototype.isInBoundary=function(M){return 1===M},wu.prototype.interfaces_=function(){return[Lu]},wu.prototype.getClass=function(){return wu};var ru=function(){};ru.prototype.add=function(){},ru.prototype.addAll=function(){},ru.prototype.isEmpty=function(){},ru.prototype.iterator=function(){},ru.prototype.size=function(){},ru.prototype.toArray=function(){},ru.prototype.remove=function(){};var yu=function(M){function N(N){M.call(this),this.message=N||""}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={name:{configurable:!0}};return D.name.get=function(){return"IndexOutOfBoundsException"},Object.defineProperties(N,D),N}(Error),cu=function(){};cu.prototype.hasNext=function(){},cu.prototype.next=function(){},cu.prototype.remove=function(){};var au=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.get=function(){},N.prototype.set=function(){},N.prototype.isEmpty=function(){},N}(ru);(Qi.prototype=new Error).name="NoSuchElementException";var Eu=function(M){function N(){M.call(this),this.array_=[],arguments[0]instanceof ru&&this.addAll(arguments[0])}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.ensureCapacity=function(){},N.prototype.interfaces_=function(){return[M,ru]},N.prototype.add=function(M){return 1===arguments.length?this.array_.push(M):this.array_.splice(arguments[0],arguments[1]),!0},N.prototype.clear=function(){this.array_=[]},N.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next());return!0},N.prototype.set=function(M,N){var D=this.array_[M];return this.array_[M]=N,D},N.prototype.iterator=function(){return new ou(this)},N.prototype.get=function(M){if(M<0||M>=this.size())throw new yu;return this.array_[M]},N.prototype.isEmpty=function(){return 0===this.array_.length},N.prototype.size=function(){return this.array_.length},N.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M},N.prototype.remove=function(M){for(var N=!1,D=0,t=this.array_.length;D<t;D++)if(this.array_[D]===M){this.array_.splice(D,1),N=!0;break}return N},N}(au),ou=function(M){function N(N){M.call(this),this.arrayList_=N,this.position_=0}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new Qi;return this.arrayList_.get(this.position_++)},N.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},N.prototype.set=function(M){return this.arrayList_.set(this.position_-1,M)},N.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},N}(cu),Ou=function(M){function N(){if(M.call(this),0===arguments.length);else if(1===arguments.length){var N=arguments[0];this.ensureCapacity(N.length),this.add(N,!0)}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.ensureCapacity(D.length),this.add(D,t)}}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={coordArrayType:{configurable:!0}};return D.coordArrayType.get=function(){return new Array(0).fill(null)},N.prototype.getCoordinate=function(M){return this.get(M)},N.prototype.addAll=function(){if(2===arguments.length){for(var N=arguments[0],D=arguments[1],t=!1,i=N.iterator();i.hasNext();)this.add(i.next(),D),t=!0;return t}return M.prototype.addAll.apply(this,arguments)},N.prototype.clone=function(){for(var N=M.prototype.clone.call(this),D=0;D<this.size();D++)N.add(D,this.get(D).copy());return N},N.prototype.toCoordinateArray=function(){return this.toArray(N.coordArrayType)},N.prototype.add=function(){if(1===arguments.length){var N=arguments[0];M.prototype.add.call(this,N)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var D=arguments[0],t=arguments[1];return this.add(D,t,!0),!0}if(arguments[0]instanceof Eg&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(i))return null;M.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var e=arguments[0],j=arguments[1];return this.add(e,j),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var T=arguments[0],g=arguments[1];if(arguments[2])for(var u=0;u<T.length;u++)this.add(T[u],g);else for(var s=T.length-1;s>=0;s--)this.add(T[s],g);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof Eg){var L=arguments[0],I=arguments[1];if(!arguments[2]){var A=this.size();if(A>0){if(L>0&&this.get(L-1).equals2D(I))return null;if(L<A&&this.get(L).equals2D(I))return null}}M.prototype.add.call(this,L,I)}}else if(4===arguments.length){var z=arguments[0],n=arguments[1],w=arguments[2],r=arguments[3],y=1;w>r&&(y=-1);for(var c=w;c!==r;c+=y)this.add(z[c],n);return!0}},N.prototype.closeRing=function(){this.size()>0&&this.add(new Eg(this.get(0)),!1)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},Object.defineProperties(N,D),N}(Eu),xu=function(){},Cu={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};Cu.ForwardComparator.get=function(){return Su},Cu.BidirectionalComparator.get=function(){return lu},Cu.coordArrayType.get=function(){return new Array(0).fill(null)},xu.prototype.interfaces_=function(){return[]},xu.prototype.getClass=function(){return xu},xu.isRing=function(M){return!(M.length<4)&&!!M[0].equals2D(M[M.length-1])},xu.ptNotInList=function(M,N){for(var D=0;D<M.length;D++){var t=M[D];if(xu.indexOf(t,N)<0)return t}return null},xu.scroll=function(M,N){var D=xu.indexOf(N,M);if(D<0)return null;var t=new Array(M.length).fill(null);Zg.arraycopy(M,D,t,0,M.length-D),Zg.arraycopy(M,0,t,M.length-D,D),Zg.arraycopy(t,0,M,0,M.length)},xu.equals=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];if(M===N)return!0;if(null===M||null===N)return!1;if(M.length!==N.length)return!1;for(var D=0;D<M.length;D++)if(!M[D].equals(N[D]))return!1;return!0}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];if(t===i)return!0;if(null===t||null===i)return!1;if(t.length!==i.length)return!1;for(var j=0;j<t.length;j++)if(0!==e.compare(t[j],i[j]))return!1;return!0}},xu.intersection=function(M,N){for(var D=new Ou,t=0;t<M.length;t++)N.intersects(M[t])&&D.add(M[t],!0);return D.toCoordinateArray()},xu.hasRepeatedPoints=function(M){for(var N=1;N<M.length;N++)if(M[N-1].equals(M[N]))return!0;return!1},xu.removeRepeatedPoints=function(M){return xu.hasRepeatedPoints(M)?new Ou(M,!1).toCoordinateArray():M},xu.reverse=function(M){for(var N=M.length-1,D=Math.trunc(N/2),t=0;t<=D;t++){var i=M[t];M[t]=M[N-t],M[N-t]=i}},xu.removeNull=function(M){for(var N=0,D=0;D<M.length;D++)null!==M[D]&&N++;var t=new Array(N).fill(null);if(0===N)return t;for(var i=0,e=0;e<M.length;e++)null!==M[e]&&(t[i++]=M[e]);return t},xu.copyDeep=function(){if(1===arguments.length){for(var M=arguments[0],N=new Array(M.length).fill(null),D=0;D<M.length;D++)N[D]=new Eg(M[D]);return N}if(5===arguments.length)for(var t=arguments[0],i=arguments[1],e=arguments[2],j=arguments[3],T=arguments[4],g=0;g<T;g++)e[j+g]=new Eg(t[i+g])},xu.isEqualReversed=function(M,N){for(var D=0;D<M.length;D++){var t=M[D],i=N[M.length-D-1];if(0!==t.compareTo(i))return!1}return!0},xu.envelope=function(M){for(var N=new Rg,D=0;D<M.length;D++)N.expandToInclude(M[D]);return N},xu.toCoordinateArray=function(M){return M.toArray(xu.coordArrayType)},xu.atLeastNCoordinatesOrNothing=function(M,N){return N.length>=M?N:[]},xu.indexOf=function(M,N){for(var D=0;D<N.length;D++)if(M.equals(N[D]))return D;return-1},xu.increasingDirection=function(M){for(var N=0;N<Math.trunc(M.length/2);N++){var D=M.length-1-N,t=M[N].compareTo(M[D]);if(0!==t)return t}return 1},xu.compare=function(M,N){for(var D=0;D<M.length&&D<N.length;){var t=M[D].compareTo(N[D]);if(0!==t)return t;D++}return D<N.length?-1:D<M.length?1:0},xu.minCoordinate=function(M){for(var N=null,D=0;D<M.length;D++)(null===N||N.compareTo(M[D])>0)&&(N=M[D]);return N},xu.extract=function(M,N,D){N=kg.clamp(N,0,M.length);var t=(D=kg.clamp(D,-1,M.length))-N+1;D<0&&(t=0),N>=M.length&&(t=0),D<N&&(t=0);var i=new Array(t).fill(null);if(0===t)return i;for(var e=0,j=N;j<=D;j++)i[e++]=M[j];return i},Object.defineProperties(xu,Cu);var Su=function(){};Su.prototype.compare=function(M,N){return xu.compare(M,N)},Su.prototype.interfaces_=function(){return[ag]},Su.prototype.getClass=function(){return Su};var lu=function(){};lu.prototype.compare=function(M,N){var D=M,t=N;if(D.length<t.length)return-1;if(D.length>t.length)return 1;if(0===D.length)return 0;var i=xu.compare(D,t);return xu.isEqualReversed(D,t)?0:i},lu.prototype.OLDcompare=function(M,N){var D=M,t=N;if(D.length<t.length)return-1;if(D.length>t.length)return 1;if(0===D.length)return 0;for(var i=xu.increasingDirection(D),e=xu.increasingDirection(t),j=i>0?0:D.length-1,T=e>0?0:D.length-1,g=0;g<D.length;g++){var u=D[j].compareTo(t[T]);if(0!==u)return u;j+=i,T+=e}return 0},lu.prototype.interfaces_=function(){return[ag]},lu.prototype.getClass=function(){return lu};var ku=function(){};ku.prototype.get=function(){},ku.prototype.put=function(){},ku.prototype.size=function(){},ku.prototype.values=function(){},ku.prototype.entrySet=function(){};var Qu=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N}(ku);(di.prototype=new Error).name="OperationNotSupported",(Yi.prototype=new ru).contains=function(){};var du=function(M){function N(){M.call(this),this.array_=[],arguments[0]instanceof ru&&this.addAll(arguments[0])}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.contains=function(M){for(var N=0,D=this.array_.length;N<D;N++)if(this.array_[N]===M)return!0;return!1},N.prototype.add=function(M){return!this.contains(M)&&(this.array_.push(M),!0)},N.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next());return!0},N.prototype.remove=function(M){throw new Error},N.prototype.size=function(){return this.array_.length},N.prototype.isEmpty=function(){return 0===this.array_.length},N.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M},N.prototype.iterator=function(){return new Yu(this)},N}(Yi),Yu=function(M){function N(N){M.call(this),this.hashSet_=N,this.position_=0}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new Qi;return this.hashSet_.array_[this.position_++]},N.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},N.prototype.remove=function(){throw new di},N}(cu),Uu=0;(vi.prototype=new Qu).get=function(M){for(var N=this.root_;null!==N;){var D=M.compareTo(N.key);if(D<0)N=N.left;else{if(!(D>0))return N.value;N=N.right}}return null},vi.prototype.put=function(M,N){if(null===this.root_)return this.root_={key:M,value:N,left:null,right:null,parent:null,color:Uu,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var D,t,i=this.root_;do{if(D=i,(t=M.compareTo(i.key))<0)i=i.left;else{if(!(t>0)){var e=i.value;return i.value=N,e}i=i.right}}while(null!==i);var j={key:M,left:null,right:null,value:N,parent:D,color:Uu,getValue:function(){return this.value},getKey:function(){return this.key}};return t<0?D.left=j:D.right=j,this.fixAfterInsertion(j),this.size_++,null},vi.prototype.fixAfterInsertion=function(M){for(M.color=1;null!=M&&M!==this.root_&&1===M.parent.color;)if(pi(M)===fi(pi(pi(M)))){var N=mi(pi(pi(M)));1===Ui(N)?(hi(pi(M),Uu),hi(N,Uu),hi(pi(pi(M)),1),M=pi(pi(M))):(M===mi(pi(M))&&(M=pi(M),this.rotateLeft(M)),hi(pi(M),Uu),hi(pi(pi(M)),1),this.rotateRight(pi(pi(M))))}else{var D=fi(pi(pi(M)));1===Ui(D)?(hi(pi(M),Uu),hi(D,Uu),hi(pi(pi(M)),1),M=pi(pi(M))):(M===fi(pi(M))&&(M=pi(M),this.rotateRight(M)),hi(pi(M),Uu),hi(pi(pi(M)),1),this.rotateLeft(pi(pi(M))))}this.root_.color=Uu},vi.prototype.values=function(){var M=new Eu,N=this.getFirstEntry();if(null!==N)for(M.add(N.value);null!==(N=vi.successor(N));)M.add(N.value);return M},vi.prototype.entrySet=function(){var M=new du,N=this.getFirstEntry();if(null!==N)for(M.add(N);null!==(N=vi.successor(N));)M.add(N);return M},vi.prototype.rotateLeft=function(M){if(null!=M){var N=M.right;M.right=N.left,null!=N.left&&(N.left.parent=M),N.parent=M.parent,null===M.parent?this.root_=N:M.parent.left===M?M.parent.left=N:M.parent.right=N,N.left=M,M.parent=N}},vi.prototype.rotateRight=function(M){if(null!=M){var N=M.left;M.left=N.right,null!=N.right&&(N.right.parent=M),N.parent=M.parent,null===M.parent?this.root_=N:M.parent.right===M?M.parent.right=N:M.parent.left=N,N.right=M,M.parent=N}},vi.prototype.getFirstEntry=function(){var M=this.root_;if(null!=M)for(;null!=M.left;)M=M.left;return M},vi.successor=function(M){if(null===M)return null;if(null!==M.right){for(var N=M.right;null!==N.left;)N=N.left;return N}for(var D=M.parent,t=M;null!==D&&t===D.right;)t=D,D=D.parent;return D},vi.prototype.size=function(){return this.size_};var pu=function(){};pu.prototype.interfaces_=function(){return[]},pu.prototype.getClass=function(){return pu},Bi.prototype=new Yi,(bi.prototype=new Bi).contains=function(M){for(var N=0,D=this.array_.length;N<D;N++)if(0===this.array_[N].compareTo(M))return!0;return!1},bi.prototype.add=function(M){if(this.contains(M))return!1;for(var N=0,D=this.array_.length;N<D;N++)if(1===this.array_[N].compareTo(M))return this.array_.splice(N,0,M),!0;return this.array_.push(M),!0},bi.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next());return!0},bi.prototype.remove=function(M){throw new di},bi.prototype.size=function(){return this.array_.length},bi.prototype.isEmpty=function(){return 0===this.array_.length},bi.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M},bi.prototype.iterator=function(){return new hu(this)};var hu=function(M){this.treeSet_=M,this.position_=0};hu.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new Qi;return this.treeSet_.array_[this.position_++]},hu.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},hu.prototype.remove=function(){throw new di};var fu=function(){};fu.sort=function(){var M,N,D,t,i=arguments[0];if(1===arguments.length)t=function(M,N){return M.compareTo(N)},i.sort(t);else if(2===arguments.length)D=arguments[1],t=function(M,N){return D.compare(M,N)},i.sort(t);else if(3===arguments.length){(N=i.slice(arguments[1],arguments[2])).sort();var e=i.slice(0,arguments[1]).concat(N,i.slice(arguments[2],i.length));for(i.splice(0,i.length),M=0;M<e.length;M++)i.push(e[M])}else if(4===arguments.length)for(N=i.slice(arguments[1],arguments[2]),D=arguments[3],t=function(M,N){return D.compare(M,N)},N.sort(t),e=i.slice(0,arguments[1]).concat(N,i.slice(arguments[2],i.length)),i.splice(0,i.length),M=0;M<e.length;M++)i.push(e[M])},fu.asList=function(M){for(var N=new Eu,D=0,t=M.length;D<t;D++)N.add(M[D]);return N};var mu=function(){},vu={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};vu.P.get=function(){return 0},vu.L.get=function(){return 1},vu.A.get=function(){return 2},vu.FALSE.get=function(){return-1},vu.TRUE.get=function(){return-2},vu.DONTCARE.get=function(){return-3},vu.SYM_FALSE.get=function(){return"F"},vu.SYM_TRUE.get=function(){return"T"},vu.SYM_DONTCARE.get=function(){return"*"},vu.SYM_P.get=function(){return"0"},vu.SYM_L.get=function(){return"1"},vu.SYM_A.get=function(){return"2"},mu.prototype.interfaces_=function(){return[]},mu.prototype.getClass=function(){return mu},mu.toDimensionSymbol=function(M){switch(M){case mu.FALSE:return mu.SYM_FALSE;case mu.TRUE:return mu.SYM_TRUE;case mu.DONTCARE:return mu.SYM_DONTCARE;case mu.P:return mu.SYM_P;case mu.L:return mu.SYM_L;case mu.A:return mu.SYM_A}throw new ng("Unknown dimension value: "+M)},mu.toDimensionValue=function(M){switch(Ug.toUpperCase(M)){case mu.SYM_FALSE:return mu.FALSE;case mu.SYM_TRUE:return mu.TRUE;case mu.SYM_DONTCARE:return mu.DONTCARE;case mu.SYM_P:return mu.P;case mu.SYM_L:return mu.L;case mu.SYM_A:return mu.A}throw new ng("Unknown dimension symbol: "+M)},Object.defineProperties(mu,vu);var Bu=function(){};Bu.prototype.filter=function(M){},Bu.prototype.interfaces_=function(){return[]},Bu.prototype.getClass=function(){return Bu};var bu=function(){};bu.prototype.filter=function(M,N){},bu.prototype.isDone=function(){},bu.prototype.isGeometryChanged=function(){},bu.prototype.interfaces_=function(){return[]},bu.prototype.getClass=function(){return bu};var Pu=function(M){function N(N,D){if(M.call(this,D),this._geometries=N||[],M.hasNullElements(this._geometries))throw new ng("geometries must not contain null elements")}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){for(var M=new Rg,N=0;N<this._geometries.length;N++)M.expandToInclude(this._geometries[N].getEnvelopeInternal());return M},N.prototype.getGeometryN=function(M){return this._geometries[M]},N.prototype.getSortIndex=function(){return M.SORTINDEX_GEOMETRYCOLLECTION},N.prototype.getCoordinates=function(){for(var M=new Array(this.getNumPoints()).fill(null),N=-1,D=0;D<this._geometries.length;D++)for(var t=this._geometries[D].getCoordinates(),i=0;i<t.length;i++)M[++N]=t[i];return M},N.prototype.getArea=function(){for(var M=0,N=0;N<this._geometries.length;N++)M+=this._geometries[N].getArea();return M},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];if(!this.isEquivalentClass(N))return!1;var t=N;if(this._geometries.length!==t._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(t._geometries[i],D))return!1;return!0}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){for(var M=0;M<this._geometries.length;M++)this._geometries[M].normalize();fu.sort(this._geometries)},N.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},N.prototype.getBoundaryDimension=function(){for(var M=mu.FALSE,N=0;N<this._geometries.length;N++)M=Math.max(M,this._geometries[N].getBoundaryDimension());return M},N.prototype.getDimension=function(){for(var M=mu.FALSE,N=0;N<this._geometries.length;N++)M=Math.max(M,this._geometries[N].getDimension());return M},N.prototype.getLength=function(){for(var M=0,N=0;N<this._geometries.length;N++)M+=this._geometries[N].getLength();return M},N.prototype.getNumPoints=function(){for(var M=0,N=0;N<this._geometries.length;N++)M+=this._geometries[N].getNumPoints();return M},N.prototype.getNumGeometries=function(){return this._geometries.length},N.prototype.reverse=function(){for(var M=this._geometries.length,N=new Array(M).fill(null),D=0;D<this._geometries.length;D++)N[D]=this._geometries[D].reverse();return this.getFactory().createGeometryCollection(N)},N.prototype.compareToSameClass=function(){if(1===arguments.length){var M=arguments[0],N=new bi(fu.asList(this._geometries)),D=new bi(fu.asList(M._geometries));return this.compare(N,D)}if(2===arguments.length){for(var t=arguments[0],i=arguments[1],e=t,j=this.getNumGeometries(),T=e.getNumGeometries(),g=0;g<j&&g<T;){var u=this.getGeometryN(g),s=e.getGeometryN(g),L=u.compareToSameClass(s,i);if(0!==L)return L;g++}return g<j?1:g<T?-1:0}},N.prototype.apply=function(){if(lg(arguments[0],su))for(var M=arguments[0],N=0;N<this._geometries.length;N++)this._geometries[N].apply(M);else if(lg(arguments[0],bu)){var D=arguments[0];if(0===this._geometries.length)return null;for(var t=0;t<this._geometries.length&&(this._geometries[t].apply(D),!D.isDone());t++);D.isGeometryChanged()&&this.geometryChanged()}else if(lg(arguments[0],Bu)){var i=arguments[0];i.filter(this);for(var e=0;e<this._geometries.length;e++)this._geometries[e].apply(i)}else if(lg(arguments[0],ju)){var j=arguments[0];j.filter(this);for(var T=0;T<this._geometries.length;T++)this._geometries[T].apply(j)}},N.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),Kg.shouldNeverReachHere(),null},N.prototype.clone=function(){var N=M.prototype.clone.call(this);N._geometries=new Array(this._geometries.length).fill(null);for(var D=0;D<this._geometries.length;D++)N._geometries[D]=this._geometries[D].clone();return N},N.prototype.getGeometryType=function(){return"GeometryCollection"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.isEmpty=function(){for(var M=0;M<this._geometries.length;M++)if(!this._geometries[M].isEmpty())return!1;return!0},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(N,D),N}(Tu),Zu=function(M){function N(){M.apply(this,arguments)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Tu.SORTINDEX_MULTILINESTRING},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&M.prototype.equalsExact.call(this,N,D)}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.getBoundaryDimension=function(){return this.isClosed()?mu.FALSE:0},N.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var M=0;M<this._geometries.length;M++)if(!this._geometries[M].isClosed())return!1;return!0},N.prototype.getDimension=function(){return 1},N.prototype.reverse=function(){for(var M=this._geometries.length,N=new Array(M).fill(null),D=0;D<this._geometries.length;D++)N[M-1-D]=this._geometries[D].reverse();return this.getFactory().createMultiLineString(N)},N.prototype.getBoundary=function(){return new Gu(this).getBoundary()},N.prototype.getGeometryType=function(){return"MultiLineString"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.interfaces_=function(){return[pu]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(N,D),N}(Pu),Gu=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var M=arguments[0],N=Lu.MOD2_BOUNDARY_RULE;this._geom=M,this._geomFact=M.getFactory(),this._bnRule=N}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this._geom=D,this._geomFact=D.getFactory(),this._bnRule=t}};Gu.prototype.boundaryMultiLineString=function(M){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var N=this.computeBoundaryCoordinates(M);return 1===N.length?this._geomFact.createPoint(N[0]):this._geomFact.createMultiPointFromCoords(N)},Gu.prototype.getBoundary=function(){return this._geom instanceof _u?this.boundaryLineString(this._geom):this._geom instanceof Zu?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},Gu.prototype.boundaryLineString=function(M){return this._geom.isEmpty()?this.getEmptyMultiPoint():M.isClosed()?this._bnRule.isInBoundary(2)?M.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([M.getStartPoint(),M.getEndPoint()])},Gu.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},Gu.prototype.computeBoundaryCoordinates=function(M){var N=new Eu;this._endpointMap=new vi;for(var D=0;D<M.getNumGeometries();D++){var t=M.getGeometryN(D);0!==t.getNumPoints()&&(this.addEndpoint(t.getCoordinateN(0)),this.addEndpoint(t.getCoordinateN(t.getNumPoints()-1)))}for(var i=this._endpointMap.entrySet().iterator();i.hasNext();){var e=i.next(),j=e.getValue().count;this._bnRule.isInBoundary(j)&&N.add(e.getKey())}return xu.toCoordinateArray(N)},Gu.prototype.addEndpoint=function(M){var N=this._endpointMap.get(M);null===N&&(N=new Ru,this._endpointMap.put(M,N)),N.count++},Gu.prototype.interfaces_=function(){return[]},Gu.prototype.getClass=function(){return Gu},Gu.getBoundary=function(){if(1===arguments.length){var M=arguments[0];return new Gu(M).getBoundary()}if(2===arguments.length){var N=arguments[0],D=arguments[1];return new Gu(N,D).getBoundary()}};var Ru=function(){this.count=null};Ru.prototype.interfaces_=function(){return[]},Ru.prototype.getClass=function(){return Ru};var Wu=function(){},Xu={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};Wu.prototype.interfaces_=function(){return[]},Wu.prototype.getClass=function(){return Wu},Wu.chars=function(M,N){for(var D=new Array(N).fill(null),t=0;t<N;t++)D[t]=M;return String(D)},Wu.getStackTrace=function(){if(1===arguments.length){var M=arguments[0],N=new function(){},D=new function(){}(N);return M.printStackTrace(D),N.toString()}if(2===arguments.length){for(var t=arguments[0],i=arguments[1],e="",j=new function(){}(new function(){}(Wu.getStackTrace(t))),T=0;T<i;T++)try{e+=j.readLine()+Wu.NEWLINE}catch(M){if(!(M instanceof Pi))throw M;Kg.shouldNeverReachHere()}return e}},Wu.split=function(M,N){for(var D=N.length,t=new Eu,i=""+M,e=i.indexOf(N);e>=0;){var j=i.substring(0,e);t.add(j),e=(i=i.substring(e+D)).indexOf(N)}i.length>0&&t.add(i);for(var T=new Array(t.size()).fill(null),g=0;g<T.length;g++)T[g]=t.get(g);return T},Wu.toString=function(){if(1===arguments.length){var M=arguments[0];return Wu.SIMPLE_ORDINATE_FORMAT.format(M)}},Wu.spaces=function(M){return Wu.chars(" ",M)},Xu.NEWLINE.get=function(){return Zg.getProperty("line.separator")},Xu.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(Wu,Xu);var Hu=function(){};Hu.prototype.interfaces_=function(){return[]},Hu.prototype.getClass=function(){return Hu},Hu.copyCoord=function(M,N,D,t){for(var i=Math.min(M.getDimension(),D.getDimension()),e=0;e<i;e++)D.setOrdinate(t,e,M.getOrdinate(N,e))},Hu.isRing=function(M){var N=M.size();return 0===N||!(N<=3)&&M.getOrdinate(0,vg.X)===M.getOrdinate(N-1,vg.X)&&M.getOrdinate(0,vg.Y)===M.getOrdinate(N-1,vg.Y)},Hu.isEqual=function(M,N){var D=M.size();if(D!==N.size())return!1;for(var t=Math.min(M.getDimension(),N.getDimension()),i=0;i<D;i++)for(var e=0;e<t;e++){var j=M.getOrdinate(i,e),T=N.getOrdinate(i,e);if(M.getOrdinate(i,e)!==N.getOrdinate(i,e)&&(!wg.isNaN(j)||!wg.isNaN(T)))return!1}return!0},Hu.extend=function(M,N,D){var t=M.create(D,N.getDimension()),i=N.size();if(Hu.copy(N,0,t,0,i),i>0)for(var e=i;e<D;e++)Hu.copy(N,i-1,t,e,1);return t},Hu.reverse=function(M){for(var N=M.size()-1,D=Math.trunc(N/2),t=0;t<=D;t++)Hu.swap(M,t,N-t)},Hu.swap=function(M,N,D){if(N===D)return null;for(var t=0;t<M.getDimension();t++){var i=M.getOrdinate(N,t);M.setOrdinate(N,t,M.getOrdinate(D,t)),M.setOrdinate(D,t,i)}},Hu.copy=function(M,N,D,t,i){for(var e=0;e<i;e++)Hu.copyCoord(M,N+e,D,t+e)},Hu.toString=function(){if(1===arguments.length){var M=arguments[0],N=M.size();if(0===N)return"()";var D=M.getDimension(),t=new dg;t.append("(");for(var i=0;i<N;i++){i>0&&t.append(" ");for(var e=0;e<D;e++)e>0&&t.append(","),t.append(Wu.toString(M.getOrdinate(i,e)))}return t.append(")"),t.toString()}},Hu.ensureValidRing=function(M,N){var D=N.size();return 0===D?N:D<=3?Hu.createClosedRing(M,N,4):N.getOrdinate(0,vg.X)===N.getOrdinate(D-1,vg.X)&&N.getOrdinate(0,vg.Y)===N.getOrdinate(D-1,vg.Y)?N:Hu.createClosedRing(M,N,D+1)},Hu.createClosedRing=function(M,N,D){var t=M.create(D,N.getDimension()),i=N.size();Hu.copy(N,0,t,0,i);for(var e=i;e<D;e++)Hu.copy(N,0,t,e,1);return t};var _u=function(M){function N(N,D){M.call(this,D),this._points=null,this.init(N)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new Rg:this._points.expandEnvelope(new Rg)},N.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},N.prototype.getSortIndex=function(){return M.SORTINDEX_LINESTRING},N.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];if(!this.isEquivalentClass(N))return!1;var t=N;if(this._points.size()!==t._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),t._points.getCoordinate(i),D))return!1;return!0}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){for(var M=0;M<Math.trunc(this._points.size()/2);M++){var N=this._points.size()-1-M;if(!this._points.getCoordinate(M).equals(this._points.getCoordinate(N)))return this._points.getCoordinate(M).compareTo(this._points.getCoordinate(N))>0&&Hu.reverse(this._points),null}},N.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},N.prototype.getBoundaryDimension=function(){return this.isClosed()?mu.FALSE:0},N.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},N.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},N.prototype.getDimension=function(){return 1},N.prototype.getLength=function(){return iu.computeLength(this._points)},N.prototype.getNumPoints=function(){return this._points.size()},N.prototype.reverse=function(){var M=this._points.copy();return Hu.reverse(M),this.getFactory().createLineString(M)},N.prototype.compareToSameClass=function(){if(1===arguments.length){for(var M=arguments[0],N=0,D=0;N<this._points.size()&&D<M._points.size();){var t=this._points.getCoordinate(N).compareTo(M._points.getCoordinate(D));if(0!==t)return t;N++,D++}return N<this._points.size()?1:D<M._points.size()?-1:0}if(2===arguments.length){var i=arguments[0];return arguments[1].compare(this._points,i._points)}},N.prototype.apply=function(){if(lg(arguments[0],su))for(var M=arguments[0],N=0;N<this._points.size();N++)M.filter(this._points.getCoordinate(N));else if(lg(arguments[0],bu)){var D=arguments[0];if(0===this._points.size())return null;for(var t=0;t<this._points.size()&&(D.filter(this._points,t),!D.isDone());t++);D.isGeometryChanged()&&this.geometryChanged()}else(lg(arguments[0],Bu)||lg(arguments[0],ju))&&arguments[0].filter(this)},N.prototype.getBoundary=function(){return new Gu(this).getBoundary()},N.prototype.isEquivalentClass=function(M){return M instanceof N},N.prototype.clone=function(){var N=M.prototype.clone.call(this);return N._points=this._points.clone(),N},N.prototype.getCoordinateN=function(M){return this._points.getCoordinate(M)},N.prototype.getGeometryType=function(){return"LineString"},N.prototype.copy=function(){return new N(this._points.copy(),this._factory)},N.prototype.getCoordinateSequence=function(){return this._points},N.prototype.isEmpty=function(){return 0===this._points.size()},N.prototype.init=function(M){if(null===M&&(M=this.getFactory().getCoordinateSequenceFactory().create([])),1===M.size())throw new ng("Invalid number of points in LineString (found "+M.size()+" - must be 0 or >= 2)");this._points=M},N.prototype.isCoordinate=function(M){for(var N=0;N<this._points.size();N++)if(this._points.getCoordinate(N).equals(M))return!0;return!1},N.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},N.prototype.getPointN=function(M){return this.getFactory().createPoint(this._points.getCoordinate(M))},N.prototype.interfaces_=function(){return[pu]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(N,D),N}(Tu),Fu=function(){};Fu.prototype.interfaces_=function(){return[]},Fu.prototype.getClass=function(){return Fu};var Vu=function(M){function N(N,D){M.call(this,D),this._coordinates=N||null,this.init(this._coordinates)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new Rg;var M=new Rg;return M.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),M},N.prototype.getSortIndex=function(){return M.SORTINDEX_POINT},N.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&(!(!this.isEmpty()||!N.isEmpty())||this.isEmpty()===N.isEmpty()&&this.equal(N.getCoordinate(),this.getCoordinate(),D))}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){},N.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},N.prototype.getBoundaryDimension=function(){return mu.FALSE},N.prototype.getDimension=function(){return 0},N.prototype.getNumPoints=function(){return this.isEmpty()?0:1},N.prototype.reverse=function(){return this.copy()},N.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},N.prototype.compareToSameClass=function(){if(1===arguments.length){var M=arguments[0];return this.getCoordinate().compareTo(M.getCoordinate())}if(2===arguments.length){var N=arguments[0];return arguments[1].compare(this._coordinates,N._coordinates)}},N.prototype.apply=function(){if(lg(arguments[0],su)){var M=arguments[0];if(this.isEmpty())return null;M.filter(this.getCoordinate())}else if(lg(arguments[0],bu)){var N=arguments[0];if(this.isEmpty())return null;N.filter(this._coordinates,0),N.isGeometryChanged()&&this.geometryChanged()}else(lg(arguments[0],Bu)||lg(arguments[0],ju))&&arguments[0].filter(this)},N.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},N.prototype.clone=function(){var N=M.prototype.clone.call(this);return N._coordinates=this._coordinates.clone(),N},N.prototype.getGeometryType=function(){return"Point"},N.prototype.copy=function(){return new N(this._coordinates.copy(),this._factory)},N.prototype.getCoordinateSequence=function(){return this._coordinates},N.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},N.prototype.isEmpty=function(){return 0===this._coordinates.size()},N.prototype.init=function(M){null===M&&(M=this.getFactory().getCoordinateSequenceFactory().create([])),Kg.isTrue(M.size()<=1),this._coordinates=M},N.prototype.isSimple=function(){return!0},N.prototype.interfaces_=function(){return[Fu]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(N,D),N}(Tu),Ju=function(){};Ju.prototype.interfaces_=function(){return[]},Ju.prototype.getClass=function(){return Ju};var qu=function(M){function N(N,D,t){if(M.call(this,t),this._shell=null,this._holes=null,null===N&&(N=this.getFactory().createLinearRing()),null===D&&(D=[]),M.hasNullElements(D))throw new ng("holes must not contain null elements");if(N.isEmpty()&&M.hasNonEmptyElements(D))throw new ng("shell is empty but holes are not");this._shell=N,this._holes=D}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},N.prototype.getSortIndex=function(){return M.SORTINDEX_POLYGON},N.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var M=new Array(this.getNumPoints()).fill(null),N=-1,D=this._shell.getCoordinates(),t=0;t<D.length;t++)M[++N]=D[t];for(var i=0;i<this._holes.length;i++)for(var e=this._holes[i].getCoordinates(),j=0;j<e.length;j++)M[++N]=e[j];return M},N.prototype.getArea=function(){var M=0;M+=Math.abs(iu.signedArea(this._shell.getCoordinateSequence()));for(var N=0;N<this._holes.length;N++)M-=Math.abs(iu.signedArea(this._holes[N].getCoordinateSequence()));return M},N.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var M=this._shell.getCoordinateSequence(),N=this.getEnvelopeInternal(),D=0;D<5;D++){var t=M.getX(D);if(t!==N.getMinX()&&t!==N.getMaxX())return!1;var i=M.getY(D);if(i!==N.getMinY()&&i!==N.getMaxY())return!1}for(var e=M.getX(0),j=M.getY(0),T=1;T<=4;T++){var g=M.getX(T),u=M.getY(T);if(g!==e===(u!==j))return!1;e=g,j=u}return!0},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];if(!this.isEquivalentClass(N))return!1;var t=N,i=this._shell,e=t._shell;if(!i.equalsExact(e,D))return!1;if(this._holes.length!==t._holes.length)return!1;for(var j=0;j<this._holes.length;j++)if(!this._holes[j].equalsExact(t._holes[j],D))return!1;return!0}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var M=0;M<this._holes.length;M++)this.normalize(this._holes[M],!1);fu.sort(this._holes)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(N.isEmpty())return null;var t=new Array(N.getCoordinates().length-1).fill(null);Zg.arraycopy(N.getCoordinates(),0,t,0,t.length);var i=xu.minCoordinate(N.getCoordinates());xu.scroll(t,i),Zg.arraycopy(t,0,N.getCoordinates(),0,t.length),N.getCoordinates()[t.length]=t[0],iu.isCCW(N.getCoordinates())===D&&xu.reverse(N.getCoordinates())}},N.prototype.getCoordinate=function(){return this._shell.getCoordinate()},N.prototype.getNumInteriorRing=function(){return this._holes.length},N.prototype.getBoundaryDimension=function(){return 1},N.prototype.getDimension=function(){return 2},N.prototype.getLength=function(){var M=0;M+=this._shell.getLength();for(var N=0;N<this._holes.length;N++)M+=this._holes[N].getLength();return M},N.prototype.getNumPoints=function(){for(var M=this._shell.getNumPoints(),N=0;N<this._holes.length;N++)M+=this._holes[N].getNumPoints();return M},N.prototype.reverse=function(){var M=this.copy();M._shell=this._shell.copy().reverse(),M._holes=new Array(this._holes.length).fill(null);for(var N=0;N<this._holes.length;N++)M._holes[N]=this._holes[N].copy().reverse();return M},N.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},N.prototype.compareToSameClass=function(){if(1===arguments.length){var M=arguments[0],N=this._shell,D=M._shell;return N.compareToSameClass(D)}if(2===arguments.length){var t=arguments[0],i=arguments[1],e=t,j=this._shell,T=e._shell,g=j.compareToSameClass(T,i);if(0!==g)return g;for(var u=this.getNumInteriorRing(),s=e.getNumInteriorRing(),L=0;L<u&&L<s;){var I=this.getInteriorRingN(L),A=e.getInteriorRingN(L),z=I.compareToSameClass(A,i);if(0!==z)return z;L++}return L<u?1:L<s?-1:0}},N.prototype.apply=function(M){if(lg(M,su)){this._shell.apply(M);for(var N=0;N<this._holes.length;N++)this._holes[N].apply(M)}else if(lg(M,bu)){if(this._shell.apply(M),!M.isDone())for(var D=0;D<this._holes.length&&(this._holes[D].apply(M),!M.isDone());D++);M.isGeometryChanged()&&this.geometryChanged()}else if(lg(M,Bu))M.filter(this);else if(lg(M,ju)){M.filter(this),this._shell.apply(M);for(var t=0;t<this._holes.length;t++)this._holes[t].apply(M)}},N.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var M=new Array(this._holes.length+1).fill(null);M[0]=this._shell;for(var N=0;N<this._holes.length;N++)M[N+1]=this._holes[N];return M.length<=1?this.getFactory().createLinearRing(M[0].getCoordinateSequence()):this.getFactory().createMultiLineString(M)},N.prototype.clone=function(){var N=M.prototype.clone.call(this);N._shell=this._shell.clone(),N._holes=new Array(this._holes.length).fill(null);for(var D=0;D<this._holes.length;D++)N._holes[D]=this._holes[D].clone();return N},N.prototype.getGeometryType=function(){return"Polygon"},N.prototype.copy=function(){for(var M=this._shell.copy(),D=new Array(this._holes.length).fill(null),t=0;t<D.length;t++)D[t]=this._holes[t].copy();return new N(M,D,this._factory)},N.prototype.getExteriorRing=function(){return this._shell},N.prototype.isEmpty=function(){return this._shell.isEmpty()},N.prototype.getInteriorRingN=function(M){return this._holes[M]},N.prototype.interfaces_=function(){return[Ju]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(N,D),N}(Tu),Ku=function(M){function N(){M.apply(this,arguments)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Tu.SORTINDEX_MULTIPOINT},N.prototype.isValid=function(){return!0},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&M.prototype.equalsExact.call(this,N,D)}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.getCoordinate=function(){if(1===arguments.length){var N=arguments[0];return this._geometries[N].getCoordinate()}return M.prototype.getCoordinate.apply(this,arguments)},N.prototype.getBoundaryDimension=function(){return mu.FALSE},N.prototype.getDimension=function(){return 0},N.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},N.prototype.getGeometryType=function(){return"MultiPoint"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.interfaces_=function(){return[Fu]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(N,D),N}(Pu),$u=function(M){function N(N,D){N instanceof Eg&&D instanceof ns&&(N=D.getCoordinateSequenceFactory().create(N)),M.call(this,N,D),this.validateConstruction()}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Tu.SORTINDEX_LINEARRING},N.prototype.getBoundaryDimension=function(){return mu.FALSE},N.prototype.isClosed=function(){return!!this.isEmpty()||M.prototype.isClosed.call(this)},N.prototype.reverse=function(){var M=this._points.copy();return Hu.reverse(M),this.getFactory().createLinearRing(M)},N.prototype.validateConstruction=function(){if(!this.isEmpty()&&!M.prototype.isClosed.call(this))throw new ng("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<N.MINIMUM_VALID_SIZE)throw new ng("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},N.prototype.getGeometryType=function(){return"LinearRing"},N.prototype.copy=function(){return new N(this._points.copy(),this._factory)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},D.MINIMUM_VALID_SIZE.get=function(){return 4},D.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(N,D),N}(_u),Ms=function(M){function N(){M.apply(this,arguments)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Tu.SORTINDEX_MULTIPOLYGON},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&M.prototype.equalsExact.call(this,N,D)}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.getBoundaryDimension=function(){return 1},N.prototype.getDimension=function(){return 2},N.prototype.reverse=function(){for(var M=this._geometries.length,N=new Array(M).fill(null),D=0;D<this._geometries.length;D++)N[D]=this._geometries[D].reverse();return this.getFactory().createMultiPolygon(N)},N.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var M=new Eu,N=0;N<this._geometries.length;N++)for(var D=this._geometries[N].getBoundary(),t=0;t<D.getNumGeometries();t++)M.add(D.getGeometryN(t));var i=new Array(M.size()).fill(null);return this.getFactory().createMultiLineString(M.toArray(i))},N.prototype.getGeometryType=function(){return"MultiPolygon"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.interfaces_=function(){return[Ju]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(N,D),N}(Pu),Ns=function(M){this._factory=M||null,this._isUserDataCopied=!1},Ds={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};Ns.prototype.setCopyUserData=function(M){this._isUserDataCopied=M},Ns.prototype.edit=function(M,N){if(null===M)return null;var D=this.editInternal(M,N);return this._isUserDataCopied&&D.setUserData(M.getUserData()),D},Ns.prototype.editInternal=function(M,N){return null===this._factory&&(this._factory=M.getFactory()),M instanceof Pu?this.editGeometryCollection(M,N):M instanceof qu?this.editPolygon(M,N):M instanceof Vu||M instanceof _u?N.edit(M,this._factory):(Kg.shouldNeverReachHere("Unsupported Geometry class: "+M.getClass().getName()),null)},Ns.prototype.editGeometryCollection=function(M,N){for(var D=N.edit(M,this._factory),t=new Eu,i=0;i<D.getNumGeometries();i++){var e=this.edit(D.getGeometryN(i),N);null===e||e.isEmpty()||t.add(e)}return D.getClass()===Ku?this._factory.createMultiPoint(t.toArray([])):D.getClass()===Zu?this._factory.createMultiLineString(t.toArray([])):D.getClass()===Ms?this._factory.createMultiPolygon(t.toArray([])):this._factory.createGeometryCollection(t.toArray([]))},Ns.prototype.editPolygon=function(M,N){var D=N.edit(M,this._factory);if(null===D&&(D=this._factory.createPolygon(null)),D.isEmpty())return D;var t=this.edit(D.getExteriorRing(),N);if(null===t||t.isEmpty())return this._factory.createPolygon();for(var i=new Eu,e=0;e<D.getNumInteriorRing();e++){var j=this.edit(D.getInteriorRingN(e),N);null===j||j.isEmpty()||i.add(j)}return this._factory.createPolygon(t,i.toArray([]))},Ns.prototype.interfaces_=function(){return[]},Ns.prototype.getClass=function(){return Ns},Ns.GeometryEditorOperation=function(){},Ds.NoOpGeometryOperation.get=function(){return ts},Ds.CoordinateOperation.get=function(){return is},Ds.CoordinateSequenceOperation.get=function(){return es},Object.defineProperties(Ns,Ds);var ts=function(){};ts.prototype.edit=function(M,N){return M},ts.prototype.interfaces_=function(){return[Ns.GeometryEditorOperation]},ts.prototype.getClass=function(){return ts};var is=function(){};is.prototype.edit=function(M,N){var D=this.editCoordinates(M.getCoordinates(),M);return null===D?M:M instanceof $u?N.createLinearRing(D):M instanceof _u?N.createLineString(D):M instanceof Vu?D.length>0?N.createPoint(D[0]):N.createPoint():M},is.prototype.interfaces_=function(){return[Ns.GeometryEditorOperation]},is.prototype.getClass=function(){return is};var es=function(){};es.prototype.edit=function(M,N){return M instanceof $u?N.createLinearRing(this.edit(M.getCoordinateSequence(),M)):M instanceof _u?N.createLineString(this.edit(M.getCoordinateSequence(),M)):M instanceof Vu?N.createPoint(this.edit(M.getCoordinateSequence(),M)):M},es.prototype.interfaces_=function(){return[Ns.GeometryEditorOperation]},es.prototype.getClass=function(){return es};var js=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var M=arguments[0];this._coordinates=new Array(M).fill(null);for(var N=0;N<M;N++)this._coordinates[N]=new Eg}else if(lg(arguments[0],vg)){var D=arguments[0];if(null===D)return this._coordinates=new Array(0).fill(null),null;this._dimension=D.getDimension(),this._coordinates=new Array(D.size()).fill(null);for(var t=0;t<this._coordinates.length;t++)this._coordinates[t]=D.getCoordinateCopy(t)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var i=arguments[0],e=arguments[1];this._coordinates=i,this._dimension=e,null===i&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var j=arguments[0],T=arguments[1];this._coordinates=new Array(j).fill(null),this._dimension=T;for(var g=0;g<j;g++)this._coordinates[g]=new Eg}},Ts={serialVersionUID:{configurable:!0}};js.prototype.setOrdinate=function(M,N,D){switch(N){case vg.X:this._coordinates[M].x=D;break;case vg.Y:this._coordinates[M].y=D;break;case vg.Z:this._coordinates[M].z=D;break;default:throw new ng("invalid ordinateIndex")}},js.prototype.size=function(){return this._coordinates.length},js.prototype.getOrdinate=function(M,N){switch(N){case vg.X:return this._coordinates[M].x;case vg.Y:return this._coordinates[M].y;case vg.Z:return this._coordinates[M].z}return wg.NaN},js.prototype.getCoordinate=function(){if(1===arguments.length){var M=arguments[0];return this._coordinates[M]}if(2===arguments.length){var N=arguments[0],D=arguments[1];D.x=this._coordinates[N].x,D.y=this._coordinates[N].y,D.z=this._coordinates[N].z}},js.prototype.getCoordinateCopy=function(M){return new Eg(this._coordinates[M])},js.prototype.getDimension=function(){return this._dimension},js.prototype.getX=function(M){return this._coordinates[M].x},js.prototype.clone=function(){for(var M=new Array(this.size()).fill(null),N=0;N<this._coordinates.length;N++)M[N]=this._coordinates[N].clone();return new js(M,this._dimension)},js.prototype.expandEnvelope=function(M){for(var N=0;N<this._coordinates.length;N++)M.expandToInclude(this._coordinates[N]);return M},js.prototype.copy=function(){for(var M=new Array(this.size()).fill(null),N=0;N<this._coordinates.length;N++)M[N]=this._coordinates[N].copy();return new js(M,this._dimension)},js.prototype.toString=function(){if(this._coordinates.length>0){var M=new dg(17*this._coordinates.length);M.append("("),M.append(this._coordinates[0]);for(var N=1;N<this._coordinates.length;N++)M.append(", "),M.append(this._coordinates[N]);return M.append(")"),M.toString()}return"()"},js.prototype.getY=function(M){return this._coordinates[M].y},js.prototype.toCoordinateArray=function(){return this._coordinates},js.prototype.interfaces_=function(){return[vg,ki]},js.prototype.getClass=function(){return js},Ts.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(js,Ts);var gs=function(){},us={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};gs.prototype.readResolve=function(){return gs.instance()},gs.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array){var M=arguments[0];return new js(M)}if(lg(arguments[0],vg)){var N=arguments[0];return new js(N)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return t>3&&(t=3),t<2?new js(D):new js(D,t)}},gs.prototype.interfaces_=function(){return[xg,ki]},gs.prototype.getClass=function(){return gs},gs.instance=function(){return gs.instanceObject},us.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},us.instanceObject.get=function(){return new gs},Object.defineProperties(gs,us);var ss=function(M){function N(){M.call(this),this.map_=new Map}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.get=function(M){return this.map_.get(M)||null},N.prototype.put=function(M,N){return this.map_.set(M,N),N},N.prototype.values=function(){for(var M=new Eu,N=this.map_.values(),D=N.next();!D.done;)M.add(D.value),D=N.next();return M},N.prototype.entrySet=function(){var M=new du;return this.map_.entries().forEach((function(N){return M.add(N)})),M},N.prototype.size=function(){return this.map_.size()},N}(ku),Ls=function M(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=M.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof As){var N=arguments[0];this._modelType=N,N===M.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var D=arguments[0];this._modelType=M.FIXED,this.setScale(D)}else if(arguments[0]instanceof M){var t=arguments[0];this._modelType=t._modelType,this._scale=t._scale}},Is={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};Ls.prototype.equals=function(M){if(!(M instanceof Ls))return!1;var N=M;return this._modelType===N._modelType&&this._scale===N._scale},Ls.prototype.compareTo=function(M){var N=M,D=this.getMaximumSignificantDigits(),t=N.getMaximumSignificantDigits();return new Yg(D).compareTo(new Yg(t))},Ls.prototype.getScale=function(){return this._scale},Ls.prototype.isFloating=function(){return this._modelType===Ls.FLOATING||this._modelType===Ls.FLOATING_SINGLE},Ls.prototype.getType=function(){return this._modelType},Ls.prototype.toString=function(){var M="UNKNOWN";return this._modelType===Ls.FLOATING?M="Floating":this._modelType===Ls.FLOATING_SINGLE?M="Floating-Single":this._modelType===Ls.FIXED&&(M="Fixed (Scale="+this.getScale()+")"),M},Ls.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var M=arguments[0];return wg.isNaN(M)||this._modelType===Ls.FLOATING_SINGLE?M:this._modelType===Ls.FIXED?Math.round(M*this._scale)/this._scale:M}if(arguments[0]instanceof Eg){var N=arguments[0];if(this._modelType===Ls.FLOATING)return null;N.x=this.makePrecise(N.x),N.y=this.makePrecise(N.y)}},Ls.prototype.getMaximumSignificantDigits=function(){var M=16;return this._modelType===Ls.FLOATING?M=16:this._modelType===Ls.FLOATING_SINGLE?M=6:this._modelType===Ls.FIXED&&(M=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),M},Ls.prototype.setScale=function(M){this._scale=Math.abs(M)},Ls.prototype.interfaces_=function(){return[ki,yg]},Ls.prototype.getClass=function(){return Ls},Ls.mostPrecise=function(M,N){return M.compareTo(N)>=0?M:N},Is.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},Is.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(Ls,Is);var As=function M(N){this._name=N||null,M.nameToTypeMap.put(N,this)},zs={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};As.prototype.readResolve=function(){return As.nameToTypeMap.get(this._name)},As.prototype.toString=function(){return this._name},As.prototype.interfaces_=function(){return[ki]},As.prototype.getClass=function(){return As},zs.serialVersionUID.get=function(){return-552860263173159e4},zs.nameToTypeMap.get=function(){return new ss},Object.defineProperties(As,zs),Ls.Type=As,Ls.FIXED=new As("FIXED"),Ls.FLOATING=new As("FLOATING"),Ls.FLOATING_SINGLE=new As("FLOATING SINGLE");var ns=function M(){this._precisionModel=new Ls,this._SRID=0,this._coordinateSequenceFactory=M.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?lg(arguments[0],xg)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof Ls&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},ws={serialVersionUID:{configurable:!0}};ns.prototype.toGeometry=function(M){return M.isNull()?this.createPoint(null):M.getMinX()===M.getMaxX()&&M.getMinY()===M.getMaxY()?this.createPoint(new Eg(M.getMinX(),M.getMinY())):M.getMinX()===M.getMaxX()||M.getMinY()===M.getMaxY()?this.createLineString([new Eg(M.getMinX(),M.getMinY()),new Eg(M.getMaxX(),M.getMaxY())]):this.createPolygon(this.createLinearRing([new Eg(M.getMinX(),M.getMinY()),new Eg(M.getMinX(),M.getMaxY()),new Eg(M.getMaxX(),M.getMaxY()),new Eg(M.getMaxX(),M.getMinY()),new Eg(M.getMinX(),M.getMinY())]),null)},ns.prototype.createLineString=function(M){return M?M instanceof Array?new _u(this.getCoordinateSequenceFactory().create(M),this):lg(M,vg)?new _u(M,this):void 0:new _u(this.getCoordinateSequenceFactory().create([]),this)},ns.prototype.createMultiLineString=function(){if(0===arguments.length)return new Zu(null,this);if(1===arguments.length){var M=arguments[0];return new Zu(M,this)}},ns.prototype.buildGeometry=function(M){for(var N=null,D=!1,t=!1,i=M.iterator();i.hasNext();){var e=i.next(),j=e.getClass();null===N&&(N=j),j!==N&&(D=!0),e.isGeometryCollectionOrDerived()&&(t=!0)}if(null===N)return this.createGeometryCollection();if(D||t)return this.createGeometryCollection(ns.toGeometryArray(M));var T=M.iterator().next();if(M.size()>1){if(T instanceof qu)return this.createMultiPolygon(ns.toPolygonArray(M));if(T instanceof _u)return this.createMultiLineString(ns.toLineStringArray(M));if(T instanceof Vu)return this.createMultiPoint(ns.toPointArray(M));Kg.shouldNeverReachHere("Unhandled class: "+T.getClass().getName())}return T},ns.prototype.createMultiPointFromCoords=function(M){return this.createMultiPoint(null!==M?this.getCoordinateSequenceFactory().create(M):null)},ns.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Eg){var M=arguments[0];return this.createPoint(null!==M?this.getCoordinateSequenceFactory().create([M]):null)}if(lg(arguments[0],vg)){var N=arguments[0];return new Vu(N,this)}}},ns.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},ns.prototype.createPolygon=function(){if(0===arguments.length)return new qu(null,null,this);if(1===arguments.length){if(lg(arguments[0],vg)){var M=arguments[0];return this.createPolygon(this.createLinearRing(M))}if(arguments[0]instanceof Array){var N=arguments[0];return this.createPolygon(this.createLinearRing(N))}if(arguments[0]instanceof $u){var D=arguments[0];return this.createPolygon(D,null)}}else if(2===arguments.length){var t=arguments[0],i=arguments[1];return new qu(t,i,this)}},ns.prototype.getSRID=function(){return this._SRID},ns.prototype.createGeometryCollection=function(){if(0===arguments.length)return new Pu(null,this);if(1===arguments.length){var M=arguments[0];return new Pu(M,this)}},ns.prototype.createGeometry=function(M){return new Ns(this).edit(M,{edit:function(){if(2===arguments.length){var M=arguments[0];return this._coordinateSequenceFactory.create(M)}}})},ns.prototype.getPrecisionModel=function(){return this._precisionModel},ns.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var M=arguments[0];return this.createLinearRing(null!==M?this.getCoordinateSequenceFactory().create(M):null)}if(lg(arguments[0],vg)){var N=arguments[0];return new $u(N,this)}}},ns.prototype.createMultiPolygon=function(){if(0===arguments.length)return new Ms(null,this);if(1===arguments.length){var M=arguments[0];return new Ms(M,this)}},ns.prototype.createMultiPoint=function(){if(0===arguments.length)return new Ku(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var M=arguments[0];return new Ku(M,this)}if(arguments[0]instanceof Array){var N=arguments[0];return this.createMultiPoint(null!==N?this.getCoordinateSequenceFactory().create(N):null)}if(lg(arguments[0],vg)){var D=arguments[0];if(null===D)return this.createMultiPoint(new Array(0).fill(null));for(var t=new Array(D.size()).fill(null),i=0;i<D.size();i++){var e=this.getCoordinateSequenceFactory().create(1,D.getDimension());Hu.copy(D,i,e,0,1),t[i]=this.createPoint(e)}return this.createMultiPoint(t)}}},ns.prototype.interfaces_=function(){return[ki]},ns.prototype.getClass=function(){return ns},ns.toMultiPolygonArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.toGeometryArray=function(M){if(null===M)return null;var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.getDefaultCoordinateSequenceFactory=function(){return gs.instance()},ns.toMultiLineStringArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.toLineStringArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.toMultiPointArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.toLinearRingArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.toPointArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.toPolygonArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},ns.createPointFromInternalCoord=function(M,N){return N.getPrecisionModel().makePrecise(M),N.getFactory().createPoint(M)},ws.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(ns,ws);var rs=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],ys=function(M){this.geometryFactory=M||new ns};ys.prototype.read=function(M){var N,D=(N="string"==typeof M?JSON.parse(M):M).type;if(!cs[D])throw new Error("Unknown GeoJSON type: "+N.type);return-1!==rs.indexOf(D)?cs[D].apply(this,[N.coordinates]):"GeometryCollection"===D?cs[D].apply(this,[N.geometries]):cs[D].apply(this,[N])},ys.prototype.write=function(M){var N=M.getGeometryType();if(!as[N])throw new Error("Geometry is not supported");return as[N].apply(this,[M])};var cs={Feature:function(M){var N={};for(var D in M)N[D]=M[D];if(M.geometry){var t=M.geometry.type;if(!cs[t])throw new Error("Unknown GeoJSON type: "+M.type);N.geometry=this.read(M.geometry)}return M.bbox&&(N.bbox=cs.bbox.apply(this,[M.bbox])),N},FeatureCollection:function(M){var N={};if(M.features){N.features=[];for(var D=0;D<M.features.length;++D)N.features.push(this.read(M.features[D]))}return M.bbox&&(N.bbox=this.parse.bbox.apply(this,[M.bbox])),N},coordinates:function(M){for(var N=[],D=0;D<M.length;++D){var t=M[D];N.push(new Eg(t[0],t[1]))}return N},bbox:function(M){return this.geometryFactory.createLinearRing([new Eg(M[0],M[1]),new Eg(M[2],M[1]),new Eg(M[2],M[3]),new Eg(M[0],M[3]),new Eg(M[0],M[1])])},Point:function(M){var N=new Eg(M[0],M[1]);return this.geometryFactory.createPoint(N)},MultiPoint:function(M){for(var N=[],D=0;D<M.length;++D)N.push(cs.Point.apply(this,[M[D]]));return this.geometryFactory.createMultiPoint(N)},LineString:function(M){var N=cs.coordinates.apply(this,[M]);return this.geometryFactory.createLineString(N)},MultiLineString:function(M){for(var N=[],D=0;D<M.length;++D)N.push(cs.LineString.apply(this,[M[D]]));return this.geometryFactory.createMultiLineString(N)},Polygon:function(M){for(var N=cs.coordinates.apply(this,[M[0]]),D=this.geometryFactory.createLinearRing(N),t=[],i=1;i<M.length;++i){var e=M[i],j=cs.coordinates.apply(this,[e]),T=this.geometryFactory.createLinearRing(j);t.push(T)}return this.geometryFactory.createPolygon(D,t)},MultiPolygon:function(M){for(var N=[],D=0;D<M.length;++D){var t=M[D];N.push(cs.Polygon.apply(this,[t]))}return this.geometryFactory.createMultiPolygon(N)},GeometryCollection:function(M){for(var N=[],D=0;D<M.length;++D){var t=M[D];N.push(this.read(t))}return this.geometryFactory.createGeometryCollection(N)}},as={coordinate:function(M){return[M.x,M.y]},Point:function(M){return{type:"Point",coordinates:as.coordinate.apply(this,[M.getCoordinate()])}},MultiPoint:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=as.Point.apply(this,[t]);N.push(i.coordinates)}return{type:"MultiPoint",coordinates:N}},LineString:function(M){for(var N=[],D=M.getCoordinates(),t=0;t<D.length;++t){var i=D[t];N.push(as.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:N}},MultiLineString:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=as.LineString.apply(this,[t]);N.push(i.coordinates)}return{type:"MultiLineString",coordinates:N}},Polygon:function(M){var N=[],D=as.LineString.apply(this,[M._shell]);N.push(D.coordinates);for(var t=0;t<M._holes.length;++t){var i=M._holes[t],e=as.LineString.apply(this,[i]);N.push(e.coordinates)}return{type:"Polygon",coordinates:N}},MultiPolygon:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=as.Polygon.apply(this,[t]);N.push(i.coordinates)}return{type:"MultiPolygon",coordinates:N}},GeometryCollection:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=t.getGeometryType();N.push(as[i].apply(this,[t]))}return{type:"GeometryCollection",geometries:N}}},Es=function(M){this.geometryFactory=M||new ns,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new ys(this.geometryFactory)};Es.prototype.read=function(M){var N=this.parser.read(M);return this.precisionModel.getType()===Ls.FIXED&&this.reducePrecision(N),N},Es.prototype.reducePrecision=function(M){var N,D;if(M.coordinate)this.precisionModel.makePrecise(M.coordinate);else if(M.points)for(N=0,D=M.points.length;N<D;N++)this.precisionModel.makePrecise(M.points[N]);else if(M.geometries)for(N=0,D=M.geometries.length;N<D;N++)this.reducePrecision(M.geometries[N])};var os=function(){this.parser=new ys(this.geometryFactory)};os.prototype.write=function(M){return this.parser.write(M)};var Os=function(){},xs={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Os.prototype.interfaces_=function(){return[]},Os.prototype.getClass=function(){return Os},Os.opposite=function(M){return M===Os.LEFT?Os.RIGHT:M===Os.RIGHT?Os.LEFT:M},xs.ON.get=function(){return 0},xs.LEFT.get=function(){return 1},xs.RIGHT.get=function(){return 2},Object.defineProperties(Os,xs),(Zi.prototype=new Error).name="EmptyStackException",(Gi.prototype=new au).add=function(M){return this.array_.push(M),!0},Gi.prototype.get=function(M){if(M<0||M>=this.size())throw new Error;return this.array_[M]},Gi.prototype.push=function(M){return this.array_.push(M),M},Gi.prototype.pop=function(M){if(0===this.array_.length)throw new Zi;return this.array_.pop()},Gi.prototype.peek=function(){if(0===this.array_.length)throw new Zi;return this.array_[this.array_.length-1]},Gi.prototype.empty=function(){return 0===this.array_.length},Gi.prototype.isEmpty=function(){return this.empty()},Gi.prototype.search=function(M){return this.array_.indexOf(M)},Gi.prototype.size=function(){return this.array_.length},Gi.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M};var Cs=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Cs.prototype.getCoordinate=function(){return this._minCoord},Cs.prototype.getRightmostSide=function(M,N){var D=this.getRightmostSideOfSegment(M,N);return D<0&&(D=this.getRightmostSideOfSegment(M,N-1)),D<0&&(this._minCoord=null,this.checkForRightmostCoordinate(M)),D},Cs.prototype.findRightmostEdgeAtVertex=function(){var M=this._minDe.getEdge().getCoordinates();Kg.isTrue(this._minIndex>0&&this._minIndex<M.length,"rightmost point expected to be interior vertex of edge");var N=M[this._minIndex-1],D=M[this._minIndex+1],t=iu.computeOrientation(this._minCoord,D,N),i=!1;(N.y<this._minCoord.y&&D.y<this._minCoord.y&&t===iu.COUNTERCLOCKWISE||N.y>this._minCoord.y&&D.y>this._minCoord.y&&t===iu.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)},Cs.prototype.getRightmostSideOfSegment=function(M,N){var D=M.getEdge().getCoordinates();if(N<0||N+1>=D.length)return-1;if(D[N].y===D[N+1].y)return-1;var t=Os.LEFT;return D[N].y<D[N+1].y&&(t=Os.RIGHT),t},Cs.prototype.getEdge=function(){return this._orientedDe},Cs.prototype.checkForRightmostCoordinate=function(M){for(var N=M.getEdge().getCoordinates(),D=0;D<N.length-1;D++)(null===this._minCoord||N[D].x>this._minCoord.x)&&(this._minDe=M,this._minIndex=D,this._minCoord=N[D])},Cs.prototype.findRightmostEdgeAtNode=function(){var M=this._minDe.getNode().getEdges();this._minDe=M.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Cs.prototype.findEdge=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next();D.isForward()&&this.checkForRightmostCoordinate(D)}Kg.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Os.LEFT&&(this._orientedDe=this._minDe.getSym())},Cs.prototype.interfaces_=function(){return[]},Cs.prototype.getClass=function(){return Cs};var Ss=function(M){function N(D,t){M.call(this,N.msgWithCoord(D,t)),this.pt=t?new Eg(t):null,this.name="TopologyException"}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.getCoordinate=function(){return this.pt},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.msgWithCoord=function(M,N){return N?M:M+" [ "+N+" ]"},N}(Jg),ls=function(){this.array_=[]};ls.prototype.addLast=function(M){this.array_.push(M)},ls.prototype.removeFirst=function(){return this.array_.shift()},ls.prototype.isEmpty=function(){return 0===this.array_.length};var ks=function(){this._finder=null,this._dirEdgeList=new Eu,this._nodes=new Eu,this._rightMostCoord=null,this._env=null,this._finder=new Cs};ks.prototype.clearVisitedEdges=function(){for(var M=this._dirEdgeList.iterator();M.hasNext();)M.next().setVisited(!1)},ks.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},ks.prototype.computeNodeDepth=function(M){for(var N=null,D=M.getEdges().iterator();D.hasNext();){var t=D.next();if(t.isVisited()||t.getSym().isVisited()){N=t;break}}if(null===N)throw new Ss("unable to find edge to compute depths at "+M.getCoordinate());M.getEdges().computeDepths(N);for(var i=M.getEdges().iterator();i.hasNext();){var e=i.next();e.setVisited(!0),this.copySymDepths(e)}},ks.prototype.computeDepth=function(M){this.clearVisitedEdges();var N=this._finder.getEdge();N.setEdgeDepths(Os.RIGHT,M),this.copySymDepths(N),this.computeDepths(N)},ks.prototype.create=function(M){this.addReachable(M),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},ks.prototype.findResultEdges=function(){for(var M=this._dirEdgeList.iterator();M.hasNext();){var N=M.next();N.getDepth(Os.RIGHT)>=1&&N.getDepth(Os.LEFT)<=0&&!N.isInteriorAreaEdge()&&N.setInResult(!0)}},ks.prototype.computeDepths=function(M){var N=new du,D=new ls,t=M.getNode();for(D.addLast(t),N.add(t),M.setVisited(!0);!D.isEmpty();){var i=D.removeFirst();N.add(i),this.computeNodeDepth(i);for(var e=i.getEdges().iterator();e.hasNext();){var j=e.next().getSym();if(!j.isVisited()){var T=j.getNode();N.contains(T)||(D.addLast(T),N.add(T))}}}},ks.prototype.compareTo=function(M){var N=M;return this._rightMostCoord.x<N._rightMostCoord.x?-1:this._rightMostCoord.x>N._rightMostCoord.x?1:0},ks.prototype.getEnvelope=function(){if(null===this._env){for(var M=new Rg,N=this._dirEdgeList.iterator();N.hasNext();)for(var D=N.next().getEdge().getCoordinates(),t=0;t<D.length-1;t++)M.expandToInclude(D[t]);this._env=M}return this._env},ks.prototype.addReachable=function(M){var N=new Gi;for(N.add(M);!N.empty();){var D=N.pop();this.add(D,N)}},ks.prototype.copySymDepths=function(M){var N=M.getSym();N.setDepth(Os.LEFT,M.getDepth(Os.RIGHT)),N.setDepth(Os.RIGHT,M.getDepth(Os.LEFT))},ks.prototype.add=function(M,N){M.setVisited(!0),this._nodes.add(M);for(var D=M.getEdges().iterator();D.hasNext();){var t=D.next();this._dirEdgeList.add(t);var i=t.getSym().getNode();i.isVisited()||N.push(i)}},ks.prototype.getNodes=function(){return this._nodes},ks.prototype.getDirectedEdges=function(){return this._dirEdgeList},ks.prototype.interfaces_=function(){return[yg]},ks.prototype.getClass=function(){return ks};var Qs=function M(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var N=arguments[0];this.init(N.length)}else if(Number.isInteger(arguments[0])){var D=arguments[0];this.init(1),this.location[Os.ON]=D}else if(arguments[0]instanceof M){var t=arguments[0];if(this.init(t.location.length),null!==t)for(var i=0;i<this.location.length;i++)this.location[i]=t.location[i]}}else if(3===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2];this.init(3),this.location[Os.ON]=e,this.location[Os.LEFT]=j,this.location[Os.RIGHT]=T}};Qs.prototype.setAllLocations=function(M){for(var N=0;N<this.location.length;N++)this.location[N]=M},Qs.prototype.isNull=function(){for(var M=0;M<this.location.length;M++)if(this.location[M]!==Cg.NONE)return!1;return!0},Qs.prototype.setAllLocationsIfNull=function(M){for(var N=0;N<this.location.length;N++)this.location[N]===Cg.NONE&&(this.location[N]=M)},Qs.prototype.isLine=function(){return 1===this.location.length},Qs.prototype.merge=function(M){if(M.location.length>this.location.length){var N=new Array(3).fill(null);N[Os.ON]=this.location[Os.ON],N[Os.LEFT]=Cg.NONE,N[Os.RIGHT]=Cg.NONE,this.location=N}for(var D=0;D<this.location.length;D++)this.location[D]===Cg.NONE&&D<M.location.length&&(this.location[D]=M.location[D])},Qs.prototype.getLocations=function(){return this.location},Qs.prototype.flip=function(){if(this.location.length<=1)return null;var M=this.location[Os.LEFT];this.location[Os.LEFT]=this.location[Os.RIGHT],this.location[Os.RIGHT]=M},Qs.prototype.toString=function(){var M=new dg;return this.location.length>1&&M.append(Cg.toLocationSymbol(this.location[Os.LEFT])),M.append(Cg.toLocationSymbol(this.location[Os.ON])),this.location.length>1&&M.append(Cg.toLocationSymbol(this.location[Os.RIGHT])),M.toString()},Qs.prototype.setLocations=function(M,N,D){this.location[Os.ON]=M,this.location[Os.LEFT]=N,this.location[Os.RIGHT]=D},Qs.prototype.get=function(M){return M<this.location.length?this.location[M]:Cg.NONE},Qs.prototype.isArea=function(){return this.location.length>1},Qs.prototype.isAnyNull=function(){for(var M=0;M<this.location.length;M++)if(this.location[M]===Cg.NONE)return!0;return!1},Qs.prototype.setLocation=function(){if(1===arguments.length){var M=arguments[0];this.setLocation(Os.ON,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this.location[N]=D}},Qs.prototype.init=function(M){this.location=new Array(M).fill(null),this.setAllLocations(Cg.NONE)},Qs.prototype.isEqualOnSide=function(M,N){return this.location[N]===M.location[N]},Qs.prototype.allPositionsEqual=function(M){for(var N=0;N<this.location.length;N++)if(this.location[N]!==M)return!1;return!0},Qs.prototype.interfaces_=function(){return[]},Qs.prototype.getClass=function(){return Qs};var ds=function M(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var N=arguments[0];this.elt[0]=new Qs(N),this.elt[1]=new Qs(N)}else if(arguments[0]instanceof M){var D=arguments[0];this.elt[0]=new Qs(D.elt[0]),this.elt[1]=new Qs(D.elt[1])}}else if(2===arguments.length){var t=arguments[0],i=arguments[1];this.elt[0]=new Qs(Cg.NONE),this.elt[1]=new Qs(Cg.NONE),this.elt[t].setLocation(i)}else if(3===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2];this.elt[0]=new Qs(e,j,T),this.elt[1]=new Qs(e,j,T)}else if(4===arguments.length){var g=arguments[0],u=arguments[1],s=arguments[2],L=arguments[3];this.elt[0]=new Qs(Cg.NONE,Cg.NONE,Cg.NONE),this.elt[1]=new Qs(Cg.NONE,Cg.NONE,Cg.NONE),this.elt[g].setLocations(u,s,L)}};ds.prototype.getGeometryCount=function(){var M=0;return this.elt[0].isNull()||M++,this.elt[1].isNull()||M++,M},ds.prototype.setAllLocations=function(M,N){this.elt[M].setAllLocations(N)},ds.prototype.isNull=function(M){return this.elt[M].isNull()},ds.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var M=arguments[0];this.setAllLocationsIfNull(0,M),this.setAllLocationsIfNull(1,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this.elt[N].setAllLocationsIfNull(D)}},ds.prototype.isLine=function(M){return this.elt[M].isLine()},ds.prototype.merge=function(M){for(var N=0;N<2;N++)null===this.elt[N]&&null!==M.elt[N]?this.elt[N]=new Qs(M.elt[N]):this.elt[N].merge(M.elt[N])},ds.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},ds.prototype.getLocation=function(){if(1===arguments.length){var M=arguments[0];return this.elt[M].get(Os.ON)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return this.elt[N].get(D)}},ds.prototype.toString=function(){var M=new dg;return null!==this.elt[0]&&(M.append("A:"),M.append(this.elt[0].toString())),null!==this.elt[1]&&(M.append(" B:"),M.append(this.elt[1].toString())),M.toString()},ds.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var M=arguments[0];return this.elt[M].isArea()}},ds.prototype.isAnyNull=function(M){return this.elt[M].isAnyNull()},ds.prototype.setLocation=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];this.elt[M].setLocation(Os.ON,N)}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this.elt[D].setLocation(t,i)}},ds.prototype.isEqualOnSide=function(M,N){return this.elt[0].isEqualOnSide(M.elt[0],N)&&this.elt[1].isEqualOnSide(M.elt[1],N)},ds.prototype.allPositionsEqual=function(M,N){return this.elt[M].allPositionsEqual(N)},ds.prototype.toLine=function(M){this.elt[M].isArea()&&(this.elt[M]=new Qs(this.elt[M].location[0]))},ds.prototype.interfaces_=function(){return[]},ds.prototype.getClass=function(){return ds},ds.toLineLabel=function(M){for(var N=new ds(Cg.NONE),D=0;D<2;D++)N.setLocation(D,M.getLocation(D));return N};var Ys=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new Eu,this._pts=new Eu,this._label=new ds(Cg.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new Eu,this._geometryFactory=null;var M=arguments[0],N=arguments[1];this._geometryFactory=N,this.computePoints(M),this.computeRing()};Ys.prototype.computeRing=function(){if(null!==this._ring)return null;for(var M=new Array(this._pts.size()).fill(null),N=0;N<this._pts.size();N++)M[N]=this._pts.get(N);this._ring=this._geometryFactory.createLinearRing(M),this._isHole=iu.isCCW(this._ring.getCoordinates())},Ys.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},Ys.prototype.computePoints=function(M){this._startDe=M;var N=M,D=!0;do{if(null===N)throw new Ss("Found null DirectedEdge");if(N.getEdgeRing()===this)throw new Ss("Directed Edge visited twice during ring-building at "+N.getCoordinate());this._edges.add(N);var t=N.getLabel();Kg.isTrue(t.isArea()),this.mergeLabel(t),this.addPoints(N.getEdge(),N.isForward(),D),D=!1,this.setEdgeRing(N,this),N=this.getNext(N)}while(N!==this._startDe)},Ys.prototype.getLinearRing=function(){return this._ring},Ys.prototype.getCoordinate=function(M){return this._pts.get(M)},Ys.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var M=this._startDe;do{var N=M.getNode().getEdges().getOutgoingDegree(this);N>this._maxNodeDegree&&(this._maxNodeDegree=N),M=this.getNext(M)}while(M!==this._startDe);this._maxNodeDegree*=2},Ys.prototype.addPoints=function(M,N,D){var t=M.getCoordinates();if(N){var i=1;D&&(i=0);for(var e=i;e<t.length;e++)this._pts.add(t[e])}else{var j=t.length-2;D&&(j=t.length-1);for(var T=j;T>=0;T--)this._pts.add(t[T])}},Ys.prototype.isHole=function(){return this._isHole},Ys.prototype.setInResult=function(){var M=this._startDe;do{M.getEdge().setInResult(!0),M=M.getNext()}while(M!==this._startDe)},Ys.prototype.containsPoint=function(M){var N=this.getLinearRing();if(!N.getEnvelopeInternal().contains(M))return!1;if(!iu.isPointInRing(M,N.getCoordinates()))return!1;for(var D=this._holes.iterator();D.hasNext();)if(D.next().containsPoint(M))return!1;return!0},Ys.prototype.addHole=function(M){this._holes.add(M)},Ys.prototype.isShell=function(){return null===this._shell},Ys.prototype.getLabel=function(){return this._label},Ys.prototype.getEdges=function(){return this._edges},Ys.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Ys.prototype.getShell=function(){return this._shell},Ys.prototype.mergeLabel=function(){if(1===arguments.length){var M=arguments[0];this.mergeLabel(M,0),this.mergeLabel(M,1)}else if(2===arguments.length){var N=arguments[0],D=arguments[1],t=N.getLocation(D,Os.RIGHT);if(t===Cg.NONE)return null;if(this._label.getLocation(D)===Cg.NONE)return this._label.setLocation(D,t),null}},Ys.prototype.setShell=function(M){this._shell=M,null!==M&&M.addHole(this)},Ys.prototype.toPolygon=function(M){for(var N=new Array(this._holes.size()).fill(null),D=0;D<this._holes.size();D++)N[D]=this._holes.get(D).getLinearRing();return M.createPolygon(this.getLinearRing(),N)},Ys.prototype.interfaces_=function(){return[]},Ys.prototype.getClass=function(){return Ys};var Us=function(M){function N(){var N=arguments[0],D=arguments[1];M.call(this,N,D)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.setEdgeRing=function(M,N){M.setMinEdgeRing(N)},N.prototype.getNext=function(M){return M.getNextMin()},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Ys),ps=function(M){function N(){var N=arguments[0],D=arguments[1];M.call(this,N,D)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.buildMinimalRings=function(){var M=new Eu,N=this._startDe;do{if(null===N.getMinEdgeRing()){var D=new Us(N,this._geometryFactory);M.add(D)}N=N.getNext()}while(N!==this._startDe);return M},N.prototype.setEdgeRing=function(M,N){M.setEdgeRing(N)},N.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var M=this._startDe;do{M.getNode().getEdges().linkMinimalDirectedEdges(this),M=M.getNext()}while(M!==this._startDe)},N.prototype.getNext=function(M){return M.getNext()},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Ys),hs=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var M=arguments[0];this._label=M}};hs.prototype.setVisited=function(M){this._isVisited=M},hs.prototype.setInResult=function(M){this._isInResult=M},hs.prototype.isCovered=function(){return this._isCovered},hs.prototype.isCoveredSet=function(){return this._isCoveredSet},hs.prototype.setLabel=function(M){this._label=M},hs.prototype.getLabel=function(){return this._label},hs.prototype.setCovered=function(M){this._isCovered=M,this._isCoveredSet=!0},hs.prototype.updateIM=function(M){Kg.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(M)},hs.prototype.isInResult=function(){return this._isInResult},hs.prototype.isVisited=function(){return this._isVisited},hs.prototype.interfaces_=function(){return[]},hs.prototype.getClass=function(){return hs};var fs=function(M){function N(){M.call(this),this._coord=null,this._edges=null;var N=arguments[0],D=arguments[1];this._coord=N,this._edges=D,this._label=new ds(0,Cg.NONE)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.isIncidentEdgeInResult=function(){for(var M=this.getEdges().getEdges().iterator();M.hasNext();)if(M.next().getEdge().isInResult())return!0;return!1},N.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},N.prototype.getCoordinate=function(){return this._coord},N.prototype.print=function(M){M.println("node "+this._coord+" lbl: "+this._label)},N.prototype.computeIM=function(M){},N.prototype.computeMergedLocation=function(M,N){var D=Cg.NONE;if(D=this._label.getLocation(N),!M.isNull(N)){var t=M.getLocation(N);D!==Cg.BOUNDARY&&(D=t)}return D},N.prototype.setLabel=function(){if(2!==arguments.length)return M.prototype.setLabel.apply(this,arguments);var N=arguments[0],D=arguments[1];null===this._label?this._label=new ds(N,D):this._label.setLocation(N,D)},N.prototype.getEdges=function(){return this._edges},N.prototype.mergeLabel=function(){if(arguments[0]instanceof N){var M=arguments[0];this.mergeLabel(M._label)}else if(arguments[0]instanceof ds)for(var D=arguments[0],t=0;t<2;t++){var i=this.computeMergedLocation(D,t);this._label.getLocation(t)===Cg.NONE&&this._label.setLocation(t,i)}},N.prototype.add=function(M){this._edges.insert(M),M.setNode(this)},N.prototype.setLabelBoundary=function(M){if(null===this._label)return null;var N=Cg.NONE;null!==this._label&&(N=this._label.getLocation(M));var D=null;switch(N){case Cg.BOUNDARY:D=Cg.INTERIOR;break;case Cg.INTERIOR:default:D=Cg.BOUNDARY}this._label.setLocation(M,D)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(hs),ms=function(){this.nodeMap=new vi,this.nodeFact=null;var M=arguments[0];this.nodeFact=M};ms.prototype.find=function(M){return this.nodeMap.get(M)},ms.prototype.addNode=function(){if(arguments[0]instanceof Eg){var M=arguments[0],N=this.nodeMap.get(M);return null===N&&(N=this.nodeFact.createNode(M),this.nodeMap.put(M,N)),N}if(arguments[0]instanceof fs){var D=arguments[0],t=this.nodeMap.get(D.getCoordinate());return null===t?(this.nodeMap.put(D.getCoordinate(),D),D):(t.mergeLabel(D),t)}},ms.prototype.print=function(M){for(var N=this.iterator();N.hasNext();)N.next().print(M)},ms.prototype.iterator=function(){return this.nodeMap.values().iterator()},ms.prototype.values=function(){return this.nodeMap.values()},ms.prototype.getBoundaryNodes=function(M){for(var N=new Eu,D=this.iterator();D.hasNext();){var t=D.next();t.getLabel().getLocation(M)===Cg.BOUNDARY&&N.add(t)}return N},ms.prototype.add=function(M){var N=M.getCoordinate();this.addNode(N).add(M)},ms.prototype.interfaces_=function(){return[]},ms.prototype.getClass=function(){return ms};var vs=function(){},Bs={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};vs.prototype.interfaces_=function(){return[]},vs.prototype.getClass=function(){return vs},vs.isNorthern=function(M){return M===vs.NE||M===vs.NW},vs.isOpposite=function(M,N){return M!==N&&2===(M-N+4)%4},vs.commonHalfPlane=function(M,N){if(M===N)return M;if(2===(M-N+4)%4)return-1;var D=M<N?M:N;return 0===D&&3===(M>N?M:N)?3:D},vs.isInHalfPlane=function(M,N){return N===vs.SE?M===vs.SE||M===vs.SW:M===N||M===N+1},vs.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var M=arguments[0],N=arguments[1];if(0===M&&0===N)throw new ng("Cannot compute the quadrant for point ( "+M+", "+N+" )");return M>=0?N>=0?vs.NE:vs.SE:N>=0?vs.NW:vs.SW}if(arguments[0]instanceof Eg&&arguments[1]instanceof Eg){var D=arguments[0],t=arguments[1];if(t.x===D.x&&t.y===D.y)throw new ng("Cannot compute the quadrant for two identical points "+D);return t.x>=D.x?t.y>=D.y?vs.NE:vs.SE:t.y>=D.y?vs.NW:vs.SW}},Bs.NE.get=function(){return 0},Bs.NW.get=function(){return 1},Bs.SW.get=function(){return 2},Bs.SE.get=function(){return 3},Object.defineProperties(vs,Bs);var bs=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var M=arguments[0];this._edge=M}else if(3===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2];this._edge=N,this.init(D,t),this._label=null}else if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3];this._edge=i,this.init(e,j),this._label=T}};bs.prototype.compareDirection=function(M){return this._dx===M._dx&&this._dy===M._dy?0:this._quadrant>M._quadrant?1:this._quadrant<M._quadrant?-1:iu.computeOrientation(M._p0,M._p1,this._p1)},bs.prototype.getDy=function(){return this._dy},bs.prototype.getCoordinate=function(){return this._p0},bs.prototype.setNode=function(M){this._node=M},bs.prototype.print=function(M){var N=Math.atan2(this._dy,this._dx),D=this.getClass().getName(),t=D.lastIndexOf("."),i=D.substring(t+1);M.print(" "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+N+" "+this._label)},bs.prototype.compareTo=function(M){var N=M;return this.compareDirection(N)},bs.prototype.getDirectedCoordinate=function(){return this._p1},bs.prototype.getDx=function(){return this._dx},bs.prototype.getLabel=function(){return this._label},bs.prototype.getEdge=function(){return this._edge},bs.prototype.getQuadrant=function(){return this._quadrant},bs.prototype.getNode=function(){return this._node},bs.prototype.toString=function(){var M=Math.atan2(this._dy,this._dx),N=this.getClass().getName(),D=N.lastIndexOf(".");return" "+N.substring(D+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+M+" "+this._label},bs.prototype.computeLabel=function(M){},bs.prototype.init=function(M,N){this._p0=M,this._p1=N,this._dx=N.x-M.x,this._dy=N.y-M.y,this._quadrant=vs.quadrant(this._dx,this._dy),Kg.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},bs.prototype.interfaces_=function(){return[yg]},bs.prototype.getClass=function(){return bs};var Ps=function(M){function N(){var N=arguments[0],D=arguments[1];if(M.call(this,N),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=D,D)this.init(N.getCoordinate(0),N.getCoordinate(1));else{var t=N.getNumPoints()-1;this.init(N.getCoordinate(t),N.getCoordinate(t-1))}this.computeDirectedLabel()}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.getNextMin=function(){return this._nextMin},N.prototype.getDepth=function(M){return this._depth[M]},N.prototype.setVisited=function(M){this._isVisited=M},N.prototype.computeDirectedLabel=function(){this._label=new ds(this._edge.getLabel()),this._isForward||this._label.flip()},N.prototype.getNext=function(){return this._next},N.prototype.setDepth=function(M,N){if(-999!==this._depth[M]&&this._depth[M]!==N)throw new Ss("assigned depths do not match",this.getCoordinate());this._depth[M]=N},N.prototype.isInteriorAreaEdge=function(){for(var M=!0,N=0;N<2;N++)this._label.isArea(N)&&this._label.getLocation(N,Os.LEFT)===Cg.INTERIOR&&this._label.getLocation(N,Os.RIGHT)===Cg.INTERIOR||(M=!1);return M},N.prototype.setNextMin=function(M){this._nextMin=M},N.prototype.print=function(N){M.prototype.print.call(this,N),N.print(" "+this._depth[Os.LEFT]+"/"+this._depth[Os.RIGHT]),N.print(" ("+this.getDepthDelta()+")"),this._isInResult&&N.print(" inResult")},N.prototype.setMinEdgeRing=function(M){this._minEdgeRing=M},N.prototype.isLineEdge=function(){var M=this._label.isLine(0)||this._label.isLine(1),N=!this._label.isArea(0)||this._label.allPositionsEqual(0,Cg.EXTERIOR),D=!this._label.isArea(1)||this._label.allPositionsEqual(1,Cg.EXTERIOR);return M&&N&&D},N.prototype.setEdgeRing=function(M){this._edgeRing=M},N.prototype.getMinEdgeRing=function(){return this._minEdgeRing},N.prototype.getDepthDelta=function(){var M=this._edge.getDepthDelta();return this._isForward||(M=-M),M},N.prototype.setInResult=function(M){this._isInResult=M},N.prototype.getSym=function(){return this._sym},N.prototype.isForward=function(){return this._isForward},N.prototype.getEdge=function(){return this._edge},N.prototype.printEdge=function(M){this.print(M),M.print(" "),this._isForward?this._edge.print(M):this._edge.printReverse(M)},N.prototype.setSym=function(M){this._sym=M},N.prototype.setVisitedEdge=function(M){this.setVisited(M),this._sym.setVisited(M)},N.prototype.setEdgeDepths=function(M,N){var D=this.getEdge().getDepthDelta();this._isForward||(D=-D);var t=1;M===Os.LEFT&&(t=-1);var i=Os.opposite(M),e=N+D*t;this.setDepth(M,N),this.setDepth(i,e)},N.prototype.getEdgeRing=function(){return this._edgeRing},N.prototype.isInResult=function(){return this._isInResult},N.prototype.setNext=function(M){this._next=M},N.prototype.isVisited=function(){return this._isVisited},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.depthFactor=function(M,N){return M===Cg.EXTERIOR&&N===Cg.INTERIOR?1:M===Cg.INTERIOR&&N===Cg.EXTERIOR?-1:0},N}(bs),Zs=function(){};Zs.prototype.createNode=function(M){return new fs(M,null)},Zs.prototype.interfaces_=function(){return[]},Zs.prototype.getClass=function(){return Zs};var Gs=function(){if(this._edges=new Eu,this._nodes=null,this._edgeEndList=new Eu,0===arguments.length)this._nodes=new ms(new Zs);else if(1===arguments.length){var M=arguments[0];this._nodes=new ms(M)}};Gs.prototype.printEdges=function(M){M.println("Edges:");for(var N=0;N<this._edges.size();N++){M.println("edge "+N+":");var D=this._edges.get(N);D.print(M),D.eiList.print(M)}},Gs.prototype.find=function(M){return this._nodes.find(M)},Gs.prototype.addNode=function(){if(arguments[0]instanceof fs){var M=arguments[0];return this._nodes.addNode(M)}if(arguments[0]instanceof Eg){var N=arguments[0];return this._nodes.addNode(N)}},Gs.prototype.getNodeIterator=function(){return this._nodes.iterator()},Gs.prototype.linkResultDirectedEdges=function(){for(var M=this._nodes.iterator();M.hasNext();)M.next().getEdges().linkResultDirectedEdges()},Gs.prototype.debugPrintln=function(M){Zg.out.println(M)},Gs.prototype.isBoundaryNode=function(M,N){var D=this._nodes.find(N);if(null===D)return!1;var t=D.getLabel();return null!==t&&t.getLocation(M)===Cg.BOUNDARY},Gs.prototype.linkAllDirectedEdges=function(){for(var M=this._nodes.iterator();M.hasNext();)M.next().getEdges().linkAllDirectedEdges()},Gs.prototype.matchInSameDirection=function(M,N,D,t){return!!M.equals(D)&&iu.computeOrientation(M,N,t)===iu.COLLINEAR&&vs.quadrant(M,N)===vs.quadrant(D,t)},Gs.prototype.getEdgeEnds=function(){return this._edgeEndList},Gs.prototype.debugPrint=function(M){Zg.out.print(M)},Gs.prototype.getEdgeIterator=function(){return this._edges.iterator()},Gs.prototype.findEdgeInSameDirection=function(M,N){for(var D=0;D<this._edges.size();D++){var t=this._edges.get(D),i=t.getCoordinates();if(this.matchInSameDirection(M,N,i[0],i[1]))return t;if(this.matchInSameDirection(M,N,i[i.length-1],i[i.length-2]))return t}return null},Gs.prototype.insertEdge=function(M){this._edges.add(M)},Gs.prototype.findEdgeEnd=function(M){for(var N=this.getEdgeEnds().iterator();N.hasNext();){var D=N.next();if(D.getEdge()===M)return D}return null},Gs.prototype.addEdges=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next();this._edges.add(D);var t=new Ps(D,!0),i=new Ps(D,!1);t.setSym(i),i.setSym(t),this.add(t),this.add(i)}},Gs.prototype.add=function(M){this._nodes.add(M),this._edgeEndList.add(M)},Gs.prototype.getNodes=function(){return this._nodes.values()},Gs.prototype.findEdge=function(M,N){for(var D=0;D<this._edges.size();D++){var t=this._edges.get(D),i=t.getCoordinates();if(M.equals(i[0])&&N.equals(i[1]))return t}return null},Gs.prototype.interfaces_=function(){return[]},Gs.prototype.getClass=function(){return Gs},Gs.linkResultDirectedEdges=function(M){for(var N=M.iterator();N.hasNext();)N.next().getEdges().linkResultDirectedEdges()};var Rs=function(){this._geometryFactory=null,this._shellList=new Eu;var M=arguments[0];this._geometryFactory=M};Rs.prototype.sortShellsAndHoles=function(M,N,D){for(var t=M.iterator();t.hasNext();){var i=t.next();i.isHole()?D.add(i):N.add(i)}},Rs.prototype.computePolygons=function(M){for(var N=new Eu,D=M.iterator();D.hasNext();){var t=D.next().toPolygon(this._geometryFactory);N.add(t)}return N},Rs.prototype.placeFreeHoles=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next();if(null===t.getShell()){var i=this.findEdgeRingContaining(t,M);if(null===i)throw new Ss("unable to assign hole to a shell",t.getCoordinate(0));t.setShell(i)}}},Rs.prototype.buildMinimalEdgeRings=function(M,N,D){for(var t=new Eu,i=M.iterator();i.hasNext();){var e=i.next();if(e.getMaxNodeDegree()>2){e.linkDirectedEdgesForMinimalEdgeRings();var j=e.buildMinimalRings(),T=this.findShell(j);null!==T?(this.placePolygonHoles(T,j),N.add(T)):D.addAll(j)}else t.add(e)}return t},Rs.prototype.containsPoint=function(M){for(var N=this._shellList.iterator();N.hasNext();)if(N.next().containsPoint(M))return!0;return!1},Rs.prototype.buildMaximalEdgeRings=function(M){for(var N=new Eu,D=M.iterator();D.hasNext();){var t=D.next();if(t.isInResult()&&t.getLabel().isArea()&&null===t.getEdgeRing()){var i=new ps(t,this._geometryFactory);N.add(i),i.setInResult()}}return N},Rs.prototype.placePolygonHoles=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next();t.isHole()&&t.setShell(M)}},Rs.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Rs.prototype.findEdgeRingContaining=function(M,N){for(var D=M.getLinearRing(),t=D.getEnvelopeInternal(),i=D.getCoordinateN(0),e=null,j=null,T=N.iterator();T.hasNext();){var g=T.next(),u=g.getLinearRing(),s=u.getEnvelopeInternal();null!==e&&(j=e.getLinearRing().getEnvelopeInternal());var L=!1;s.contains(t)&&iu.isPointInRing(i,u.getCoordinates())&&(L=!0),L&&(null===e||j.contains(s))&&(e=g)}return e},Rs.prototype.findShell=function(M){for(var N=0,D=null,t=M.iterator();t.hasNext();){var i=t.next();i.isHole()||(D=i,N++)}return Kg.isTrue(N<=1,"found two shells in MinimalEdgeRing list"),D},Rs.prototype.add=function(){if(1===arguments.length){var M=arguments[0];this.add(M.getEdgeEnds(),M.getNodes())}else if(2===arguments.length){var N=arguments[0],D=arguments[1];Gs.linkResultDirectedEdges(D);var t=this.buildMaximalEdgeRings(N),i=new Eu,e=this.buildMinimalEdgeRings(t,this._shellList,i);this.sortShellsAndHoles(e,this._shellList,i),this.placeFreeHoles(this._shellList,i)}},Rs.prototype.interfaces_=function(){return[]},Rs.prototype.getClass=function(){return Rs};var Ws=function(){};Ws.prototype.getBounds=function(){},Ws.prototype.interfaces_=function(){return[]},Ws.prototype.getClass=function(){return Ws};var Xs=function(){this._bounds=null,this._item=null;var M=arguments[0],N=arguments[1];this._bounds=M,this._item=N};Xs.prototype.getItem=function(){return this._item},Xs.prototype.getBounds=function(){return this._bounds},Xs.prototype.interfaces_=function(){return[Ws,ki]},Xs.prototype.getClass=function(){return Xs};var Hs=function(){this._size=null,this._items=null,this._size=0,this._items=new Eu,this._items.add(null)};Hs.prototype.poll=function(){if(this.isEmpty())return null;var M=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),M},Hs.prototype.size=function(){return this._size},Hs.prototype.reorder=function(M){for(var N=null,D=this._items.get(M);2*M<=this._size&&((N=2*M)!==this._size&&this._items.get(N+1).compareTo(this._items.get(N))<0&&N++,this._items.get(N).compareTo(D)<0);M=N)this._items.set(M,this._items.get(N));this._items.set(M,D)},Hs.prototype.clear=function(){this._size=0,this._items.clear()},Hs.prototype.isEmpty=function(){return 0===this._size},Hs.prototype.add=function(M){this._items.add(null),this._size+=1;var N=this._size;for(this._items.set(0,M);M.compareTo(this._items.get(Math.trunc(N/2)))<0;N/=2)this._items.set(N,this._items.get(Math.trunc(N/2)));this._items.set(N,M)},Hs.prototype.interfaces_=function(){return[]},Hs.prototype.getClass=function(){return Hs};var _s=function(){};_s.prototype.visitItem=function(M){},_s.prototype.interfaces_=function(){return[]},_s.prototype.getClass=function(){return _s};var Fs=function(){};Fs.prototype.insert=function(M,N){},Fs.prototype.remove=function(M,N){},Fs.prototype.query=function(){},Fs.prototype.interfaces_=function(){return[]},Fs.prototype.getClass=function(){return Fs};var Vs=function(){if(this._childBoundables=new Eu,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var M=arguments[0];this._level=M}},Js={serialVersionUID:{configurable:!0}};Vs.prototype.getLevel=function(){return this._level},Vs.prototype.size=function(){return this._childBoundables.size()},Vs.prototype.getChildBoundables=function(){return this._childBoundables},Vs.prototype.addChildBoundable=function(M){Kg.isTrue(null===this._bounds),this._childBoundables.add(M)},Vs.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Vs.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Vs.prototype.interfaces_=function(){return[Ws,ki]},Vs.prototype.getClass=function(){return Vs},Js.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Vs,Js);var qs=function(){};qs.reverseOrder=function(){return{compare:function(M,N){return N.compareTo(M)}}},qs.min=function(M){return qs.sort(M),M.get(0)},qs.sort=function(M,N){var D=M.toArray();N?fu.sort(D,N):fu.sort(D);for(var t=M.iterator(),i=0,e=D.length;i<e;i++)t.next(),t.set(D[i])},qs.singletonList=function(M){var N=new Eu;return N.add(M),N};var Ks=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var M=arguments[0],N=arguments[1],D=arguments[2];this._boundable1=M,this._boundable2=N,this._itemDistance=D,this._distance=this.distance()};Ks.prototype.expandToQueue=function(M,N){var D=Ks.isComposite(this._boundable1),t=Ks.isComposite(this._boundable2);if(D&&t)return Ks.area(this._boundable1)>Ks.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,M,N),null):(this.expand(this._boundable2,this._boundable1,M,N),null);if(D)return this.expand(this._boundable1,this._boundable2,M,N),null;if(t)return this.expand(this._boundable2,this._boundable1,M,N),null;throw new ng("neither boundable is composite")},Ks.prototype.isLeaves=function(){return!(Ks.isComposite(this._boundable1)||Ks.isComposite(this._boundable2))},Ks.prototype.compareTo=function(M){var N=M;return this._distance<N._distance?-1:this._distance>N._distance?1:0},Ks.prototype.expand=function(M,N,D,t){for(var i=M.getChildBoundables().iterator();i.hasNext();){var e=i.next(),j=new Ks(e,N,this._itemDistance);j.getDistance()<t&&D.add(j)}},Ks.prototype.getBoundable=function(M){return 0===M?this._boundable1:this._boundable2},Ks.prototype.getDistance=function(){return this._distance},Ks.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},Ks.prototype.interfaces_=function(){return[yg]},Ks.prototype.getClass=function(){return Ks},Ks.area=function(M){return M.getBounds().getArea()},Ks.isComposite=function(M){return M instanceof Vs};var $s=function M(){if(this._root=null,this._built=!1,this._itemBoundables=new Eu,this._nodeCapacity=null,0===arguments.length){var N=M.DEFAULT_NODE_CAPACITY;this._nodeCapacity=N}else if(1===arguments.length){var D=arguments[0];Kg.isTrue(D>1,"Node capacity must be greater than 1"),this._nodeCapacity=D}},ML={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};$s.prototype.getNodeCapacity=function(){return this._nodeCapacity},$s.prototype.lastNode=function(M){return M.get(M.size()-1)},$s.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var M=0,N=arguments[0].getChildBoundables().iterator();N.hasNext();){var D=N.next();D instanceof Vs?M+=this.size(D):D instanceof Xs&&(M+=1)}return M}},$s.prototype.removeItem=function(M,N){for(var D=null,t=M.getChildBoundables().iterator();t.hasNext();){var i=t.next();i instanceof Xs&&i.getItem()===N&&(D=i)}return null!==D&&(M.getChildBoundables().remove(D),!0)},$s.prototype.itemsTree=function(){if(0===arguments.length){this.build();var M=this.itemsTree(this._root);return null===M?new Eu:M}if(1===arguments.length){for(var N=arguments[0],D=new Eu,t=N.getChildBoundables().iterator();t.hasNext();){var i=t.next();if(i instanceof Vs){var e=this.itemsTree(i);null!==e&&D.add(e)}else i instanceof Xs?D.add(i.getItem()):Kg.shouldNeverReachHere()}return D.size()<=0?null:D}},$s.prototype.insert=function(M,N){Kg.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Xs(M,N))},$s.prototype.boundablesAtLevel=function(){if(1===arguments.length){var M=arguments[0],N=new Eu;return this.boundablesAtLevel(M,this._root,N),N}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];if(Kg.isTrue(D>-2),t.getLevel()===D)return i.add(t),null;for(var e=t.getChildBoundables().iterator();e.hasNext();){var j=e.next();j instanceof Vs?this.boundablesAtLevel(D,j,i):(Kg.isTrue(j instanceof Xs),-1===D&&i.add(j))}return null}},$s.prototype.query=function(){if(1===arguments.length){var M=arguments[0];this.build();var N=new Eu;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),M)&&this.query(M,this._root,N),N}if(2===arguments.length){var D=arguments[0],t=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),D)&&this.query(D,this._root,t)}else if(3===arguments.length)if(lg(arguments[2],_s)&&arguments[0]instanceof Object&&arguments[1]instanceof Vs)for(var i=arguments[0],e=arguments[1],j=arguments[2],T=e.getChildBoundables(),g=0;g<T.size();g++){var u=T.get(g);this.getIntersectsOp().intersects(u.getBounds(),i)&&(u instanceof Vs?this.query(i,u,j):u instanceof Xs?j.visitItem(u.getItem()):Kg.shouldNeverReachHere())}else if(lg(arguments[2],au)&&arguments[0]instanceof Object&&arguments[1]instanceof Vs)for(var s=arguments[0],L=arguments[1],I=arguments[2],A=L.getChildBoundables(),z=0;z<A.size();z++){var n=A.get(z);this.getIntersectsOp().intersects(n.getBounds(),s)&&(n instanceof Vs?this.query(s,n,I):n instanceof Xs?I.add(n.getItem()):Kg.shouldNeverReachHere())}},$s.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},$s.prototype.getRoot=function(){return this.build(),this._root},$s.prototype.remove=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),M)&&this.remove(M,this._root,N)}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=this.removeItem(t,i);if(e)return!0;for(var j=null,T=t.getChildBoundables().iterator();T.hasNext();){var g=T.next();if(this.getIntersectsOp().intersects(g.getBounds(),D)&&g instanceof Vs&&(e=this.remove(D,g,i))){j=g;break}}return null!==j&&j.getChildBoundables().isEmpty()&&t.getChildBoundables().remove(j),e}},$s.prototype.createHigherLevels=function(M,N){Kg.isTrue(!M.isEmpty());var D=this.createParentBoundables(M,N+1);return 1===D.size()?D.get(0):this.createHigherLevels(D,N+1)},$s.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var M=0,N=arguments[0].getChildBoundables().iterator();N.hasNext();){var D=N.next();if(D instanceof Vs){var t=this.depth(D);t>M&&(M=t)}}return M+1}},$s.prototype.createParentBoundables=function(M,N){Kg.isTrue(!M.isEmpty());var D=new Eu;D.add(this.createNode(N));var t=new Eu(M);qs.sort(t,this.getComparator());for(var i=t.iterator();i.hasNext();){var e=i.next();this.lastNode(D).getChildBoundables().size()===this.getNodeCapacity()&&D.add(this.createNode(N)),this.lastNode(D).addChildBoundable(e)}return D},$s.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},$s.prototype.interfaces_=function(){return[ki]},$s.prototype.getClass=function(){return $s},$s.compareDoubles=function(M,N){return M>N?1:M<N?-1:0},ML.IntersectsOp.get=function(){return NL},ML.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},ML.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties($s,ML);var NL=function(){},DL=function(){};DL.prototype.distance=function(M,N){},DL.prototype.interfaces_=function(){return[]},DL.prototype.getClass=function(){return DL};var tL=function(M){function N(D){D=D||N.DEFAULT_NODE_CAPACITY,M.call(this,D)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return N.prototype.createParentBoundablesFromVerticalSlices=function(M,N){Kg.isTrue(M.length>0);for(var D=new Eu,t=0;t<M.length;t++)D.addAll(this.createParentBoundablesFromVerticalSlice(M[t],N));return D},N.prototype.createNode=function(M){return new iL(M)},N.prototype.size=function(){return 0===arguments.length?M.prototype.size.call(this):M.prototype.size.apply(this,arguments)},N.prototype.insert=function(){if(2!==arguments.length)return M.prototype.insert.apply(this,arguments);var N=arguments[0],D=arguments[1];if(N.isNull())return null;M.prototype.insert.call(this,N,D)},N.prototype.getIntersectsOp=function(){return N.intersectsOp},N.prototype.verticalSlices=function(M,N){for(var D=Math.trunc(Math.ceil(M.size()/N)),t=new Array(N).fill(null),i=M.iterator(),e=0;e<N;e++){t[e]=new Eu;for(var j=0;i.hasNext()&&j<D;){var T=i.next();t[e].add(T),j++}}return t},N.prototype.query=function(){if(1===arguments.length){var N=arguments[0];return M.prototype.query.call(this,N)}if(2===arguments.length){var D=arguments[0],t=arguments[1];M.prototype.query.call(this,D,t)}else if(3===arguments.length)if(lg(arguments[2],_s)&&arguments[0]instanceof Object&&arguments[1]instanceof Vs){var i=arguments[0],e=arguments[1],j=arguments[2];M.prototype.query.call(this,i,e,j)}else if(lg(arguments[2],au)&&arguments[0]instanceof Object&&arguments[1]instanceof Vs){var T=arguments[0],g=arguments[1],u=arguments[2];M.prototype.query.call(this,T,g,u)}},N.prototype.getComparator=function(){return N.yComparator},N.prototype.createParentBoundablesFromVerticalSlice=function(N,D){return M.prototype.createParentBoundables.call(this,N,D)},N.prototype.remove=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return M.prototype.remove.call(this,N,D)}return M.prototype.remove.apply(this,arguments)},N.prototype.depth=function(){return 0===arguments.length?M.prototype.depth.call(this):M.prototype.depth.apply(this,arguments)},N.prototype.createParentBoundables=function(M,D){Kg.isTrue(!M.isEmpty());var t=Math.trunc(Math.ceil(M.size()/this.getNodeCapacity())),i=new Eu(M);qs.sort(i,N.xComparator);var e=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(t))));return this.createParentBoundablesFromVerticalSlices(e,D)},N.prototype.nearestNeighbour=function(){if(1===arguments.length){if(lg(arguments[0],DL)){var M=arguments[0],D=new Ks(this.getRoot(),this.getRoot(),M);return this.nearestNeighbour(D)}if(arguments[0]instanceof Ks){var t=arguments[0];return this.nearestNeighbour(t,wg.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof N&&lg(arguments[1],DL)){var i=arguments[0],e=arguments[1],j=new Ks(this.getRoot(),i.getRoot(),e);return this.nearestNeighbour(j)}if(arguments[0]instanceof Ks&&"number"==typeof arguments[1]){var T=arguments[0],g=arguments[1],u=null,s=new Hs;for(s.add(T);!s.isEmpty()&&g>0;){var L=s.poll(),I=L.getDistance();if(I>=g)break;L.isLeaves()?(g=I,u=L):L.expandToQueue(s,g)}return[u.getBoundable(0).getItem(),u.getBoundable(1).getItem()]}}else if(3===arguments.length){var A=arguments[0],z=arguments[1],n=arguments[2],w=new Xs(A,z),r=new Ks(this.getRoot(),w,n);return this.nearestNeighbour(r)[0]}},N.prototype.interfaces_=function(){return[Fs,ki]},N.prototype.getClass=function(){return N},N.centreX=function(M){return N.avg(M.getMinX(),M.getMaxX())},N.avg=function(M,N){return(M+N)/2},N.centreY=function(M){return N.avg(M.getMinY(),M.getMaxY())},D.STRtreeNode.get=function(){return iL},D.serialVersionUID.get=function(){return 0x39920f7d5f261e0},D.xComparator.get=function(){return{interfaces_:function(){return[ag]},compare:function(D,t){return M.compareDoubles(N.centreX(D.getBounds()),N.centreX(t.getBounds()))}}},D.yComparator.get=function(){return{interfaces_:function(){return[ag]},compare:function(D,t){return M.compareDoubles(N.centreY(D.getBounds()),N.centreY(t.getBounds()))}}},D.intersectsOp.get=function(){return{interfaces_:function(){return[M.IntersectsOp]},intersects:function(M,N){return M.intersects(N)}}},D.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(N,D),N}($s),iL=function(M){function N(){var N=arguments[0];M.call(this,N)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.computeBounds=function(){for(var M=null,N=this.getChildBoundables().iterator();N.hasNext();){var D=N.next();null===M?M=new Rg(D.getBounds()):M.expandToInclude(D.getBounds())}return M},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Vs),eL=function(){};eL.prototype.interfaces_=function(){return[]},eL.prototype.getClass=function(){return eL},eL.relativeSign=function(M,N){return M<N?-1:M>N?1:0},eL.compare=function(M,N,D){if(N.equals2D(D))return 0;var t=eL.relativeSign(N.x,D.x),i=eL.relativeSign(N.y,D.y);switch(M){case 0:return eL.compareValue(t,i);case 1:return eL.compareValue(i,t);case 2:return eL.compareValue(i,-t);case 3:return eL.compareValue(-t,i);case 4:return eL.compareValue(-t,-i);case 5:return eL.compareValue(-i,-t);case 6:return eL.compareValue(-i,t);case 7:return eL.compareValue(t,-i)}return Kg.shouldNeverReachHere("invalid octant value"),0},eL.compareValue=function(M,N){return M<0?-1:M>0?1:N<0?-1:N>0?1:0};var jL=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];this._segString=M,this.coord=new Eg(N),this.segmentIndex=D,this._segmentOctant=t,this._isInterior=!N.equals2D(M.getCoordinate(D))};jL.prototype.getCoordinate=function(){return this.coord},jL.prototype.print=function(M){M.print(this.coord),M.print(" seg # = "+this.segmentIndex)},jL.prototype.compareTo=function(M){var N=M;return this.segmentIndex<N.segmentIndex?-1:this.segmentIndex>N.segmentIndex?1:this.coord.equals2D(N.coord)?0:eL.compare(this._segmentOctant,this.coord,N.coord)},jL.prototype.isEndPoint=function(M){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===M},jL.prototype.isInterior=function(){return this._isInterior},jL.prototype.interfaces_=function(){return[yg]},jL.prototype.getClass=function(){return jL};var TL=function(){this._nodeMap=new vi,this._edge=null;var M=arguments[0];this._edge=M};TL.prototype.getSplitCoordinates=function(){var M=new Ou;this.addEndpoints();for(var N=this.iterator(),D=N.next();N.hasNext();){var t=N.next();this.addEdgeCoordinates(D,t,M),D=t}return M.toCoordinateArray()},TL.prototype.addCollapsedNodes=function(){var M=new Eu;this.findCollapsesFromInsertedNodes(M),this.findCollapsesFromExistingVertices(M);for(var N=M.iterator();N.hasNext();){var D=N.next().intValue();this.add(this._edge.getCoordinate(D),D)}},TL.prototype.print=function(M){M.println("Intersections:");for(var N=this.iterator();N.hasNext();)N.next().print(M)},TL.prototype.findCollapsesFromExistingVertices=function(M){for(var N=0;N<this._edge.size()-2;N++){var D=this._edge.getCoordinate(N),t=this._edge.getCoordinate(N+2);D.equals2D(t)&&M.add(new Yg(N+1))}},TL.prototype.addEdgeCoordinates=function(M,N,D){var t=this._edge.getCoordinate(N.segmentIndex),i=N.isInterior()||!N.coord.equals2D(t);D.add(new Eg(M.coord),!1);for(var e=M.segmentIndex+1;e<=N.segmentIndex;e++)D.add(this._edge.getCoordinate(e));i&&D.add(new Eg(N.coord))},TL.prototype.iterator=function(){return this._nodeMap.values().iterator()},TL.prototype.addSplitEdges=function(M){this.addEndpoints(),this.addCollapsedNodes();for(var N=this.iterator(),D=N.next();N.hasNext();){var t=N.next(),i=this.createSplitEdge(D,t);M.add(i),D=t}},TL.prototype.findCollapseIndex=function(M,N,D){if(!M.coord.equals2D(N.coord))return!1;var t=N.segmentIndex-M.segmentIndex;return N.isInterior()||t--,1===t&&(D[0]=M.segmentIndex+1,!0)},TL.prototype.findCollapsesFromInsertedNodes=function(M){for(var N=new Array(1).fill(null),D=this.iterator(),t=D.next();D.hasNext();){var i=D.next();this.findCollapseIndex(t,i,N)&&M.add(new Yg(N[0])),t=i}},TL.prototype.getEdge=function(){return this._edge},TL.prototype.addEndpoints=function(){var M=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(M),M)},TL.prototype.createSplitEdge=function(M,N){var D=N.segmentIndex-M.segmentIndex+2,t=this._edge.getCoordinate(N.segmentIndex),i=N.isInterior()||!N.coord.equals2D(t);i||D--;var e=new Array(D).fill(null),j=0;e[j++]=new Eg(M.coord);for(var T=M.segmentIndex+1;T<=N.segmentIndex;T++)e[j++]=this._edge.getCoordinate(T);return i&&(e[j]=new Eg(N.coord)),new LL(e,this._edge.getData())},TL.prototype.add=function(M,N){var D=new jL(this._edge,M,N,this._edge.getSegmentOctant(N)),t=this._nodeMap.get(D);return null!==t?(Kg.isTrue(t.coord.equals2D(M),"Found equal nodes with different coordinates"),t):(this._nodeMap.put(D,D),D)},TL.prototype.checkSplitEdgesCorrectness=function(M){var N=this._edge.getCoordinates(),D=M.get(0).getCoordinate(0);if(!D.equals2D(N[0]))throw new Jg("bad split edge start point at "+D);var t=M.get(M.size()-1).getCoordinates(),i=t[t.length-1];if(!i.equals2D(N[N.length-1]))throw new Jg("bad split edge end point at "+i)},TL.prototype.interfaces_=function(){return[]},TL.prototype.getClass=function(){return TL};var gL=function(){};gL.prototype.interfaces_=function(){return[]},gL.prototype.getClass=function(){return gL},gL.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var M=arguments[0],N=arguments[1];if(0===M&&0===N)throw new ng("Cannot compute the octant for point ( "+M+", "+N+" )");var D=Math.abs(M),t=Math.abs(N);return M>=0?N>=0?D>=t?0:1:D>=t?7:6:N>=0?D>=t?3:2:D>=t?4:5}if(arguments[0]instanceof Eg&&arguments[1]instanceof Eg){var i=arguments[0],e=arguments[1],j=e.x-i.x,T=e.y-i.y;if(0===j&&0===T)throw new ng("Cannot compute the octant for two identical points "+i);return gL.octant(j,T)}};var uL=function(){};uL.prototype.getCoordinates=function(){},uL.prototype.size=function(){},uL.prototype.getCoordinate=function(M){},uL.prototype.isClosed=function(){},uL.prototype.setData=function(M){},uL.prototype.getData=function(){},uL.prototype.interfaces_=function(){return[]},uL.prototype.getClass=function(){return uL};var sL=function(){};sL.prototype.addIntersection=function(M,N){},sL.prototype.interfaces_=function(){return[uL]},sL.prototype.getClass=function(){return sL};var LL=function(){this._nodeList=new TL(this),this._pts=null,this._data=null;var M=arguments[0],N=arguments[1];this._pts=M,this._data=N};LL.prototype.getCoordinates=function(){return this._pts},LL.prototype.size=function(){return this._pts.length},LL.prototype.getCoordinate=function(M){return this._pts[M]},LL.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},LL.prototype.getSegmentOctant=function(M){return M===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(M),this.getCoordinate(M+1))},LL.prototype.setData=function(M){this._data=M},LL.prototype.safeOctant=function(M,N){return M.equals2D(N)?0:gL.octant(M,N)},LL.prototype.getData=function(){return this._data},LL.prototype.addIntersection=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];this.addIntersectionNode(M,N)}else if(4===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[3],e=new Eg(D.getIntersection(i));this.addIntersection(e,t)}},LL.prototype.toString=function(){return Vg.toLineString(new js(this._pts))},LL.prototype.getNodeList=function(){return this._nodeList},LL.prototype.addIntersectionNode=function(M,N){var D=N,t=D+1;if(t<this._pts.length){var i=this._pts[t];M.equals2D(i)&&(D=t)}return this._nodeList.add(M,D)},LL.prototype.addIntersections=function(M,N,D){for(var t=0;t<M.getIntersectionNum();t++)this.addIntersection(M,N,D,t)},LL.prototype.interfaces_=function(){return[sL]},LL.prototype.getClass=function(){return LL},LL.getNodedSubstrings=function(){if(1===arguments.length){var M=arguments[0],N=new Eu;return LL.getNodedSubstrings(M,N),N}if(2===arguments.length)for(var D=arguments[0],t=arguments[1],i=D.iterator();i.hasNext();)i.next().getNodeList().addSplitEdges(t)};var IL=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new Eg,this.p1=new Eg;else if(1===arguments.length){var M=arguments[0];this.p0=new Eg(M.p0),this.p1=new Eg(M.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2],i=arguments[3];this.p0=new Eg(N,D),this.p1=new Eg(t,i)}},AL={serialVersionUID:{configurable:!0}};IL.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},IL.prototype.orientationIndex=function(){if(arguments[0]instanceof IL){var M=arguments[0],N=iu.orientationIndex(this.p0,this.p1,M.p0),D=iu.orientationIndex(this.p0,this.p1,M.p1);return N>=0&&D>=0||N<=0&&D<=0?Math.max(N,D):0}if(arguments[0]instanceof Eg){var t=arguments[0];return iu.orientationIndex(this.p0,this.p1,t)}},IL.prototype.toGeometry=function(M){return M.createLineString([this.p0,this.p1])},IL.prototype.isVertical=function(){return this.p0.x===this.p1.x},IL.prototype.equals=function(M){if(!(M instanceof IL))return!1;var N=M;return this.p0.equals(N.p0)&&this.p1.equals(N.p1)},IL.prototype.intersection=function(M){var N=new Nu;return N.computeIntersection(this.p0,this.p1,M.p0,M.p1),N.hasIntersection()?N.getIntersection(0):null},IL.prototype.project=function(){if(arguments[0]instanceof Eg){var M=arguments[0];if(M.equals(this.p0)||M.equals(this.p1))return new Eg(M);var N=this.projectionFactor(M),D=new Eg;return D.x=this.p0.x+N*(this.p1.x-this.p0.x),D.y=this.p0.y+N*(this.p1.y-this.p0.y),D}if(arguments[0]instanceof IL){var t=arguments[0],i=this.projectionFactor(t.p0),e=this.projectionFactor(t.p1);if(i>=1&&e>=1)return null;if(i<=0&&e<=0)return null;var j=this.project(t.p0);i<0&&(j=this.p0),i>1&&(j=this.p1);var T=this.project(t.p1);return e<0&&(T=this.p0),e>1&&(T=this.p1),new IL(j,T)}},IL.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},IL.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},IL.prototype.getCoordinate=function(M){return 0===M?this.p0:this.p1},IL.prototype.distancePerpendicular=function(M){return iu.distancePointLinePerpendicular(M,this.p0,this.p1)},IL.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},IL.prototype.midPoint=function(){return IL.midPoint(this.p0,this.p1)},IL.prototype.projectionFactor=function(M){if(M.equals(this.p0))return 0;if(M.equals(this.p1))return 1;var N=this.p1.x-this.p0.x,D=this.p1.y-this.p0.y,t=N*N+D*D;return t<=0?wg.NaN:((M.x-this.p0.x)*N+(M.y-this.p0.y)*D)/t},IL.prototype.closestPoints=function(M){var N=this.intersection(M);if(null!==N)return[N,N];var D=new Array(2).fill(null),t=wg.MAX_VALUE,i=null,e=this.closestPoint(M.p0);t=e.distance(M.p0),D[0]=e,D[1]=M.p0;var j=this.closestPoint(M.p1);(i=j.distance(M.p1))<t&&(t=i,D[0]=j,D[1]=M.p1);var T=M.closestPoint(this.p0);(i=T.distance(this.p0))<t&&(t=i,D[0]=this.p0,D[1]=T);var g=M.closestPoint(this.p1);return(i=g.distance(this.p1))<t&&(t=i,D[0]=this.p1,D[1]=g),D},IL.prototype.closestPoint=function(M){var N=this.projectionFactor(M);return N>0&&N<1?this.project(M):this.p0.distance(M)<this.p1.distance(M)?this.p0:this.p1},IL.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},IL.prototype.getLength=function(){return this.p0.distance(this.p1)},IL.prototype.compareTo=function(M){var N=M,D=this.p0.compareTo(N.p0);return 0!==D?D:this.p1.compareTo(N.p1)},IL.prototype.reverse=function(){var M=this.p0;this.p0=this.p1,this.p1=M},IL.prototype.equalsTopo=function(M){return this.p0.equals(M.p0)&&(this.p1.equals(M.p1)||this.p0.equals(M.p1))&&this.p1.equals(M.p0)},IL.prototype.lineIntersection=function(M){try{return Gg.intersection(this.p0,this.p1,M.p0,M.p1)}catch(M){if(!(M instanceof Pg))throw M}return null},IL.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},IL.prototype.pointAlongOffset=function(M,N){var D=this.p0.x+M*(this.p1.x-this.p0.x),t=this.p0.y+M*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,e=this.p1.y-this.p0.y,j=Math.sqrt(i*i+e*e),T=0,g=0;if(0!==N){if(j<=0)throw new Error("Cannot compute offset from zero-length line segment");T=N*i/j,g=N*e/j}return new Eg(D-g,t+T)},IL.prototype.setCoordinates=function(){if(1===arguments.length){var M=arguments[0];this.setCoordinates(M.p0,M.p1)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this.p0.x=N.x,this.p0.y=N.y,this.p1.x=D.x,this.p1.y=D.y}},IL.prototype.segmentFraction=function(M){var N=this.projectionFactor(M);return N<0?N=0:(N>1||wg.isNaN(N))&&(N=1),N},IL.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},IL.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},IL.prototype.distance=function(){if(arguments[0]instanceof IL){var M=arguments[0];return iu.distanceLineLine(this.p0,this.p1,M.p0,M.p1)}if(arguments[0]instanceof Eg){var N=arguments[0];return iu.distancePointLine(N,this.p0,this.p1)}},IL.prototype.pointAlong=function(M){var N=new Eg;return N.x=this.p0.x+M*(this.p1.x-this.p0.x),N.y=this.p0.y+M*(this.p1.y-this.p0.y),N},IL.prototype.hashCode=function(){var M=wg.doubleToLongBits(this.p0.x);M^=31*wg.doubleToLongBits(this.p0.y);var N=Math.trunc(M)^Math.trunc(M>>32),D=wg.doubleToLongBits(this.p1.x);return D^=31*wg.doubleToLongBits(this.p1.y),N^Math.trunc(D)^Math.trunc(D>>32)},IL.prototype.interfaces_=function(){return[yg,ki]},IL.prototype.getClass=function(){return IL},IL.midPoint=function(M,N){return new Eg((M.x+N.x)/2,(M.y+N.y)/2)},AL.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(IL,AL);var zL=function(){this.tempEnv1=new Rg,this.tempEnv2=new Rg,this._overlapSeg1=new IL,this._overlapSeg2=new IL};zL.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];M.getLineSegment(N,this._overlapSeg1),D.getLineSegment(t,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},zL.prototype.interfaces_=function(){return[]},zL.prototype.getClass=function(){return zL};var nL=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];this._pts=M,this._start=N,this._end=D,this._context=t};nL.prototype.getLineSegment=function(M,N){N.p0=this._pts[M],N.p1=this._pts[M+1]},nL.prototype.computeSelect=function(M,N,D,t){var i=this._pts[N],e=this._pts[D];if(t.tempEnv1.init(i,e),D-N==1)return t.select(this,N),null;if(!M.intersects(t.tempEnv1))return null;var j=Math.trunc((N+D)/2);N<j&&this.computeSelect(M,N,j,t),j<D&&this.computeSelect(M,j,D,t)},nL.prototype.getCoordinates=function(){for(var M=new Array(this._end-this._start+1).fill(null),N=0,D=this._start;D<=this._end;D++)M[N++]=this._pts[D];return M},nL.prototype.computeOverlaps=function(M,N){this.computeOverlapsInternal(this._start,this._end,M,M._start,M._end,N)},nL.prototype.setId=function(M){this._id=M},nL.prototype.select=function(M,N){this.computeSelect(M,this._start,this._end,N)},nL.prototype.getEnvelope=function(){if(null===this._env){var M=this._pts[this._start],N=this._pts[this._end];this._env=new Rg(M,N)}return this._env},nL.prototype.getEndIndex=function(){return this._end},nL.prototype.getStartIndex=function(){return this._start},nL.prototype.getContext=function(){return this._context},nL.prototype.getId=function(){return this._id},nL.prototype.computeOverlapsInternal=function(M,N,D,t,i,e){var j=this._pts[M],T=this._pts[N],g=D._pts[t],u=D._pts[i];if(N-M==1&&i-t==1)return e.overlap(this,M,D,t),null;if(e.tempEnv1.init(j,T),e.tempEnv2.init(g,u),!e.tempEnv1.intersects(e.tempEnv2))return null;var s=Math.trunc((M+N)/2),L=Math.trunc((t+i)/2);M<s&&(t<L&&this.computeOverlapsInternal(M,s,D,t,L,e),L<i&&this.computeOverlapsInternal(M,s,D,L,i,e)),s<N&&(t<L&&this.computeOverlapsInternal(s,N,D,t,L,e),L<i&&this.computeOverlapsInternal(s,N,D,L,i,e))},nL.prototype.interfaces_=function(){return[]},nL.prototype.getClass=function(){return nL};var wL=function(){};wL.prototype.interfaces_=function(){return[]},wL.prototype.getClass=function(){return wL},wL.getChainStartIndices=function(M){var N=0,D=new Eu;D.add(new Yg(N));do{var t=wL.findChainEnd(M,N);D.add(new Yg(t)),N=t}while(N<M.length-1);return wL.toIntArray(D)},wL.findChainEnd=function(M,N){for(var D=N;D<M.length-1&&M[D].equals2D(M[D+1]);)D++;if(D>=M.length-1)return M.length-1;for(var t=vs.quadrant(M[D],M[D+1]),i=N+1;i<M.length;){if(!M[i-1].equals2D(M[i])&&vs.quadrant(M[i-1],M[i])!==t)break;i++}return i-1},wL.getChains=function(){if(1===arguments.length){var M=arguments[0];return wL.getChains(M,null)}if(2===arguments.length){for(var N=arguments[0],D=arguments[1],t=new Eu,i=wL.getChainStartIndices(N),e=0;e<i.length-1;e++){var j=new nL(N,i[e],i[e+1],D);t.add(j)}return t}},wL.toIntArray=function(M){for(var N=new Array(M.size()).fill(null),D=0;D<N.length;D++)N[D]=M.get(D).intValue();return N};var rL=function(){};rL.prototype.computeNodes=function(M){},rL.prototype.getNodedSubstrings=function(){},rL.prototype.interfaces_=function(){return[]},rL.prototype.getClass=function(){return rL};var yL=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var M=arguments[0];this.setSegmentIntersector(M)}};yL.prototype.setSegmentIntersector=function(M){this._segInt=M},yL.prototype.interfaces_=function(){return[rL]},yL.prototype.getClass=function(){return yL};var cL=function(M){function N(N){N?M.call(this,N):M.call(this),this._monoChains=new Eu,this._index=new tL,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={SegmentOverlapAction:{configurable:!0}};return N.prototype.getMonotoneChains=function(){return this._monoChains},N.prototype.getNodedSubstrings=function(){return LL.getNodedSubstrings(this._nodedSegStrings)},N.prototype.getIndex=function(){return this._index},N.prototype.add=function(M){for(var N=wL.getChains(M.getCoordinates(),M).iterator();N.hasNext();){var D=N.next();D.setId(this._idCounter++),this._index.insert(D.getEnvelope(),D),this._monoChains.add(D)}},N.prototype.computeNodes=function(M){this._nodedSegStrings=M;for(var N=M.iterator();N.hasNext();)this.add(N.next());this.intersectChains()},N.prototype.intersectChains=function(){for(var M=new aL(this._segInt),N=this._monoChains.iterator();N.hasNext();)for(var D=N.next(),t=this._index.query(D.getEnvelope()).iterator();t.hasNext();){var i=t.next();if(i.getId()>D.getId()&&(D.computeOverlaps(i,M),this._nOverlaps++),this._segInt.isDone())return null}},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},D.SegmentOverlapAction.get=function(){return aL},Object.defineProperties(N,D),N}(yL),aL=function(M){function N(){M.call(this),this._si=null;var N=arguments[0];this._si=N}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.overlap=function(){if(4!==arguments.length)return M.prototype.overlap.apply(this,arguments);var N=arguments[0],D=arguments[1],t=arguments[2],i=arguments[3],e=N.getContext(),j=t.getContext();this._si.processIntersections(e,D,j,i)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(zL),EL=function M(){if(this._quadrantSegments=M.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=M.CAP_ROUND,this._joinStyle=M.JOIN_ROUND,this._mitreLimit=M.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=M.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var N=arguments[0];this.setQuadrantSegments(N)}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.setQuadrantSegments(D),this.setEndCapStyle(t)}else if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(e),this.setJoinStyle(j),this.setMitreLimit(T)}},oL={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};EL.prototype.getEndCapStyle=function(){return this._endCapStyle},EL.prototype.isSingleSided=function(){return this._isSingleSided},EL.prototype.setQuadrantSegments=function(M){this._quadrantSegments=M,0===this._quadrantSegments&&(this._joinStyle=EL.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=EL.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),M<=0&&(this._quadrantSegments=1),this._joinStyle!==EL.JOIN_ROUND&&(this._quadrantSegments=EL.DEFAULT_QUADRANT_SEGMENTS)},EL.prototype.getJoinStyle=function(){return this._joinStyle},EL.prototype.setJoinStyle=function(M){this._joinStyle=M},EL.prototype.setSimplifyFactor=function(M){this._simplifyFactor=M<0?0:M},EL.prototype.getSimplifyFactor=function(){return this._simplifyFactor},EL.prototype.getQuadrantSegments=function(){return this._quadrantSegments},EL.prototype.setEndCapStyle=function(M){this._endCapStyle=M},EL.prototype.getMitreLimit=function(){return this._mitreLimit},EL.prototype.setMitreLimit=function(M){this._mitreLimit=M},EL.prototype.setSingleSided=function(M){this._isSingleSided=M},EL.prototype.interfaces_=function(){return[]},EL.prototype.getClass=function(){return EL},EL.bufferDistanceError=function(M){var N=Math.PI/2/M;return 1-Math.cos(N/2)},oL.CAP_ROUND.get=function(){return 1},oL.CAP_FLAT.get=function(){return 2},oL.CAP_SQUARE.get=function(){return 3},oL.JOIN_ROUND.get=function(){return 1},oL.JOIN_MITRE.get=function(){return 2},oL.JOIN_BEVEL.get=function(){return 3},oL.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},oL.DEFAULT_MITRE_LIMIT.get=function(){return 5},oL.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(EL,oL);var OL=function(M){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=iu.COUNTERCLOCKWISE,this._inputLine=M||null},xL={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};OL.prototype.isDeletable=function(M,N,D,t){var i=this._inputLine[M],e=this._inputLine[N],j=this._inputLine[D];return!!this.isConcave(i,e,j)&&!!this.isShallow(i,e,j,t)&&this.isShallowSampled(i,e,M,D,t)},OL.prototype.deleteShallowConcavities=function(){for(var M=1,N=this.findNextNonDeletedIndex(M),D=this.findNextNonDeletedIndex(N),t=!1;D<this._inputLine.length;){var i=!1;this.isDeletable(M,N,D,this._distanceTol)&&(this._isDeleted[N]=OL.DELETE,i=!0,t=!0),M=i?D:N,N=this.findNextNonDeletedIndex(M),D=this.findNextNonDeletedIndex(N)}return t},OL.prototype.isShallowConcavity=function(M,N,D,t){return iu.computeOrientation(M,N,D)===this._angleOrientation&&iu.distancePointLine(N,M,D)<t},OL.prototype.isShallowSampled=function(M,N,D,t,i){var e=Math.trunc((t-D)/OL.NUM_PTS_TO_CHECK);e<=0&&(e=1);for(var j=D;j<t;j+=e)if(!this.isShallow(M,N,this._inputLine[j],i))return!1;return!0},OL.prototype.isConcave=function(M,N,D){var t=iu.computeOrientation(M,N,D)===this._angleOrientation;return t},OL.prototype.simplify=function(M){this._distanceTol=Math.abs(M),M<0&&(this._angleOrientation=iu.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var N=!1;do{N=this.deleteShallowConcavities()}while(N);return this.collapseLine()},OL.prototype.findNextNonDeletedIndex=function(M){for(var N=M+1;N<this._inputLine.length&&this._isDeleted[N]===OL.DELETE;)N++;return N},OL.prototype.isShallow=function(M,N,D,t){return iu.distancePointLine(N,M,D)<t},OL.prototype.collapseLine=function(){for(var M=new Ou,N=0;N<this._inputLine.length;N++)this._isDeleted[N]!==OL.DELETE&&M.add(this._inputLine[N]);return M.toCoordinateArray()},OL.prototype.interfaces_=function(){return[]},OL.prototype.getClass=function(){return OL},OL.simplify=function(M,N){return new OL(M).simplify(N)},xL.INIT.get=function(){return 0},xL.DELETE.get=function(){return 1},xL.KEEP.get=function(){return 1},xL.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(OL,xL);var CL=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new Eu},SL={COORDINATE_ARRAY_TYPE:{configurable:!0}};CL.prototype.getCoordinates=function(){return this._ptList.toArray(CL.COORDINATE_ARRAY_TYPE)},CL.prototype.setPrecisionModel=function(M){this._precisionModel=M},CL.prototype.addPt=function(M){var N=new Eg(M);if(this._precisionModel.makePrecise(N),this.isRedundant(N))return null;this._ptList.add(N)},CL.prototype.revere=function(){},CL.prototype.addPts=function(M,N){if(N)for(var D=0;D<M.length;D++)this.addPt(M[D]);else for(var t=M.length-1;t>=0;t--)this.addPt(M[t])},CL.prototype.isRedundant=function(M){if(this._ptList.size()<1)return!1;var N=this._ptList.get(this._ptList.size()-1);return M.distance(N)<this._minimimVertexDistance},CL.prototype.toString=function(){return(new ns).createLineString(this.getCoordinates()).toString()},CL.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var M=new Eg(this._ptList.get(0)),N=this._ptList.get(this._ptList.size()-1);if(M.equals(N))return null;this._ptList.add(M)},CL.prototype.setMinimumVertexDistance=function(M){this._minimimVertexDistance=M},CL.prototype.interfaces_=function(){return[]},CL.prototype.getClass=function(){return CL},SL.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(CL,SL);var lL=function(){},kL={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};lL.prototype.interfaces_=function(){return[]},lL.prototype.getClass=function(){return lL},lL.toDegrees=function(M){return 180*M/Math.PI},lL.normalize=function(M){for(;M>Math.PI;)M-=lL.PI_TIMES_2;for(;M<=-Math.PI;)M+=lL.PI_TIMES_2;return M},lL.angle=function(){if(1===arguments.length){var M=arguments[0];return Math.atan2(M.y,M.x)}if(2===arguments.length){var N=arguments[0],D=arguments[1],t=D.x-N.x,i=D.y-N.y;return Math.atan2(i,t)}},lL.isAcute=function(M,N,D){var t=M.x-N.x,i=M.y-N.y;return t*(D.x-N.x)+i*(D.y-N.y)>0},lL.isObtuse=function(M,N,D){var t=M.x-N.x,i=M.y-N.y;return t*(D.x-N.x)+i*(D.y-N.y)<0},lL.interiorAngle=function(M,N,D){var t=lL.angle(N,M),i=lL.angle(N,D);return Math.abs(i-t)},lL.normalizePositive=function(M){if(M<0){for(;M<0;)M+=lL.PI_TIMES_2;M>=lL.PI_TIMES_2&&(M=0)}else{for(;M>=lL.PI_TIMES_2;)M-=lL.PI_TIMES_2;M<0&&(M=0)}return M},lL.angleBetween=function(M,N,D){var t=lL.angle(N,M),i=lL.angle(N,D);return lL.diff(t,i)},lL.diff=function(M,N){var D=null;return(D=M<N?N-M:M-N)>Math.PI&&(D=2*Math.PI-D),D},lL.toRadians=function(M){return M*Math.PI/180},lL.getTurn=function(M,N){var D=Math.sin(N-M);return D>0?lL.COUNTERCLOCKWISE:D<0?lL.CLOCKWISE:lL.NONE},lL.angleBetweenOriented=function(M,N,D){var t=lL.angle(N,M),i=lL.angle(N,D)-t;return i<=-Math.PI?i+lL.PI_TIMES_2:i>Math.PI?i-lL.PI_TIMES_2:i},kL.PI_TIMES_2.get=function(){return 2*Math.PI},kL.PI_OVER_2.get=function(){return Math.PI/2},kL.PI_OVER_4.get=function(){return Math.PI/4},kL.COUNTERCLOCKWISE.get=function(){return iu.COUNTERCLOCKWISE},kL.CLOCKWISE.get=function(){return iu.CLOCKWISE},kL.NONE.get=function(){return iu.COLLINEAR},Object.defineProperties(lL,kL);var QL=function M(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new IL,this._seg1=new IL,this._offset0=new IL,this._offset1=new IL,this._side=0,this._hasNarrowConcaveAngle=!1;var N=arguments[0],D=arguments[1],t=arguments[2];this._precisionModel=N,this._bufParams=D,this._li=new Nu,this._filletAngleQuantum=Math.PI/2/D.getQuadrantSegments(),D.getQuadrantSegments()>=8&&D.getJoinStyle()===EL.JOIN_ROUND&&(this._closingSegLengthFactor=M.MAX_CLOSING_SEG_LEN_FACTOR),this.init(t)},dL={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};QL.prototype.addNextSegment=function(M,N){if(this._s0=this._s1,this._s1=this._s2,this._s2=M,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var D=iu.computeOrientation(this._s0,this._s1,this._s2),t=D===iu.CLOCKWISE&&this._side===Os.LEFT||D===iu.COUNTERCLOCKWISE&&this._side===Os.RIGHT;0===D?this.addCollinear(N):t?this.addOutsideTurn(D,N):this.addInsideTurn(D,N)},QL.prototype.addLineEndCap=function(M,N){var D=new IL(M,N),t=new IL;this.computeOffsetSegment(D,Os.LEFT,this._distance,t);var i=new IL;this.computeOffsetSegment(D,Os.RIGHT,this._distance,i);var e=N.x-M.x,j=N.y-M.y,T=Math.atan2(j,e);switch(this._bufParams.getEndCapStyle()){case EL.CAP_ROUND:this._segList.addPt(t.p1),this.addFilletArc(N,T+Math.PI/2,T-Math.PI/2,iu.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case EL.CAP_FLAT:this._segList.addPt(t.p1),this._segList.addPt(i.p1);break;case EL.CAP_SQUARE:var g=new Eg;g.x=Math.abs(this._distance)*Math.cos(T),g.y=Math.abs(this._distance)*Math.sin(T);var u=new Eg(t.p1.x+g.x,t.p1.y+g.y),s=new Eg(i.p1.x+g.x,i.p1.y+g.y);this._segList.addPt(u),this._segList.addPt(s)}},QL.prototype.getCoordinates=function(){return this._segList.getCoordinates()},QL.prototype.addMitreJoin=function(M,N,D,t){var i=!0,e=null;try{e=Gg.intersection(N.p0,N.p1,D.p0,D.p1),(t<=0?1:e.distance(M)/Math.abs(t))>this._bufParams.getMitreLimit()&&(i=!1)}catch(M){if(!(M instanceof Pg))throw M;e=new Eg(0,0),i=!1}i?this._segList.addPt(e):this.addLimitedMitreJoin(N,D,t,this._bufParams.getMitreLimit())},QL.prototype.addFilletCorner=function(M,N,D,t,i){var e=N.x-M.x,j=N.y-M.y,T=Math.atan2(j,e),g=D.x-M.x,u=D.y-M.y,s=Math.atan2(u,g);t===iu.CLOCKWISE?T<=s&&(T+=2*Math.PI):T>=s&&(T-=2*Math.PI),this._segList.addPt(N),this.addFilletArc(M,T,s,t,i),this._segList.addPt(D)},QL.prototype.addOutsideTurn=function(M,N){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*QL.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===EL.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===EL.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(N&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,M,this._distance),this._segList.addPt(this._offset1.p0))},QL.prototype.createSquare=function(M){this._segList.addPt(new Eg(M.x+this._distance,M.y+this._distance)),this._segList.addPt(new Eg(M.x+this._distance,M.y-this._distance)),this._segList.addPt(new Eg(M.x-this._distance,M.y-this._distance)),this._segList.addPt(new Eg(M.x-this._distance,M.y+this._distance)),this._segList.closeRing()},QL.prototype.addSegments=function(M,N){this._segList.addPts(M,N)},QL.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},QL.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},QL.prototype.initSideSegments=function(M,N,D){this._s1=M,this._s2=N,this._side=D,this._seg1.setCoordinates(M,N),this.computeOffsetSegment(this._seg1,D,this._distance,this._offset1)},QL.prototype.addLimitedMitreJoin=function(M,N,D,t){var i=this._seg0.p1,e=lL.angle(i,this._seg0.p0),j=lL.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,T=lL.normalize(e+j),g=lL.normalize(T+Math.PI),u=t*D,s=D-u*Math.abs(Math.sin(j)),L=i.x+u*Math.cos(g),I=i.y+u*Math.sin(g),A=new Eg(L,I),z=new IL(i,A),n=z.pointAlongOffset(1,s),w=z.pointAlongOffset(1,-s);this._side===Os.LEFT?(this._segList.addPt(n),this._segList.addPt(w)):(this._segList.addPt(w),this._segList.addPt(n))},QL.prototype.computeOffsetSegment=function(M,N,D,t){var i=N===Os.LEFT?1:-1,e=M.p1.x-M.p0.x,j=M.p1.y-M.p0.y,T=Math.sqrt(e*e+j*j),g=i*D*e/T,u=i*D*j/T;t.p0.x=M.p0.x-u,t.p0.y=M.p0.y+g,t.p1.x=M.p1.x-u,t.p1.y=M.p1.y+g},QL.prototype.addFilletArc=function(M,N,D,t,i){var e=t===iu.CLOCKWISE?-1:1,j=Math.abs(N-D),T=Math.trunc(j/this._filletAngleQuantum+.5);if(T<1)return null;for(var g=j/T,u=0,s=new Eg;u<j;){var L=N+e*u;s.x=M.x+i*Math.cos(L),s.y=M.y+i*Math.sin(L),this._segList.addPt(s),u+=g}},QL.prototype.addInsideTurn=function(M,N){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*QL.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var D=new Eg((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(D);var t=new Eg((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(t)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},QL.prototype.createCircle=function(M){var N=new Eg(M.x+this._distance,M.y);this._segList.addPt(N),this.addFilletArc(M,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},QL.prototype.addBevelJoin=function(M,N){this._segList.addPt(M.p1),this._segList.addPt(N.p0)},QL.prototype.init=function(M){this._distance=M,this._maxCurveSegmentError=M*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new CL,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(M*QL.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},QL.prototype.addCollinear=function(M){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===EL.JOIN_BEVEL||this._bufParams.getJoinStyle()===EL.JOIN_MITRE?(M&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,iu.CLOCKWISE,this._distance))},QL.prototype.closeRing=function(){this._segList.closeRing()},QL.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},QL.prototype.interfaces_=function(){return[]},QL.prototype.getClass=function(){return QL},dL.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},dL.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},dL.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},dL.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(QL,dL);var YL=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var M=arguments[0],N=arguments[1];this._precisionModel=M,this._bufParams=N};YL.prototype.getOffsetCurve=function(M,N){if(this._distance=N,0===N)return null;var D=N<0,t=Math.abs(N),i=this.getSegGen(t);M.length<=1?this.computePointCurve(M[0],i):this.computeOffsetCurve(M,D,i);var e=i.getCoordinates();return D&&xu.reverse(e),e},YL.prototype.computeSingleSidedBufferCurve=function(M,N,D){var t=this.simplifyTolerance(this._distance);if(N){D.addSegments(M,!0);var i=OL.simplify(M,-t),e=i.length-1;D.initSideSegments(i[e],i[e-1],Os.LEFT),D.addFirstSegment();for(var j=e-2;j>=0;j--)D.addNextSegment(i[j],!0)}else{D.addSegments(M,!1);var T=OL.simplify(M,t),g=T.length-1;D.initSideSegments(T[0],T[1],Os.LEFT),D.addFirstSegment();for(var u=2;u<=g;u++)D.addNextSegment(T[u],!0)}D.addLastSegment(),D.closeRing()},YL.prototype.computeRingBufferCurve=function(M,N,D){var t=this.simplifyTolerance(this._distance);N===Os.RIGHT&&(t=-t);var i=OL.simplify(M,t),e=i.length-1;D.initSideSegments(i[e-1],i[0],N);for(var j=1;j<=e;j++){var T=1!==j;D.addNextSegment(i[j],T)}D.closeRing()},YL.prototype.computeLineBufferCurve=function(M,N){var D=this.simplifyTolerance(this._distance),t=OL.simplify(M,D),i=t.length-1;N.initSideSegments(t[0],t[1],Os.LEFT);for(var e=2;e<=i;e++)N.addNextSegment(t[e],!0);N.addLastSegment(),N.addLineEndCap(t[i-1],t[i]);var j=OL.simplify(M,-D),T=j.length-1;N.initSideSegments(j[T],j[T-1],Os.LEFT);for(var g=T-2;g>=0;g--)N.addNextSegment(j[g],!0);N.addLastSegment(),N.addLineEndCap(j[1],j[0]),N.closeRing()},YL.prototype.computePointCurve=function(M,N){switch(this._bufParams.getEndCapStyle()){case EL.CAP_ROUND:N.createCircle(M);break;case EL.CAP_SQUARE:N.createSquare(M)}},YL.prototype.getLineCurve=function(M,N){if(this._distance=N,N<0&&!this._bufParams.isSingleSided())return null;if(0===N)return null;var D=Math.abs(N),t=this.getSegGen(D);if(M.length<=1)this.computePointCurve(M[0],t);else if(this._bufParams.isSingleSided()){var i=N<0;this.computeSingleSidedBufferCurve(M,i,t)}else this.computeLineBufferCurve(M,t);return t.getCoordinates()},YL.prototype.getBufferParameters=function(){return this._bufParams},YL.prototype.simplifyTolerance=function(M){return M*this._bufParams.getSimplifyFactor()},YL.prototype.getRingCurve=function(M,N,D){if(this._distance=D,M.length<=2)return this.getLineCurve(M,D);if(0===D)return YL.copyCoordinates(M);var t=this.getSegGen(D);return this.computeRingBufferCurve(M,N,t),t.getCoordinates()},YL.prototype.computeOffsetCurve=function(M,N,D){var t=this.simplifyTolerance(this._distance);if(N){var i=OL.simplify(M,-t),e=i.length-1;D.initSideSegments(i[e],i[e-1],Os.LEFT),D.addFirstSegment();for(var j=e-2;j>=0;j--)D.addNextSegment(i[j],!0)}else{var T=OL.simplify(M,t),g=T.length-1;D.initSideSegments(T[0],T[1],Os.LEFT),D.addFirstSegment();for(var u=2;u<=g;u++)D.addNextSegment(T[u],!0)}D.addLastSegment()},YL.prototype.getSegGen=function(M){return new QL(this._precisionModel,this._bufParams,M)},YL.prototype.interfaces_=function(){return[]},YL.prototype.getClass=function(){return YL},YL.copyCoordinates=function(M){for(var N=new Array(M.length).fill(null),D=0;D<N.length;D++)N[D]=new Eg(M[D]);return N};var UL=function(){this._subgraphs=null,this._seg=new IL,this._cga=new iu;var M=arguments[0];this._subgraphs=M},pL={DepthSegment:{configurable:!0}};UL.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var M=arguments[0],N=new Eu,D=this._subgraphs.iterator();D.hasNext();){var t=D.next(),i=t.getEnvelope();M.y<i.getMinY()||M.y>i.getMaxY()||this.findStabbedSegments(M,t.getDirectedEdges(),N)}return N}if(3===arguments.length)if(lg(arguments[2],au)&&arguments[0]instanceof Eg&&arguments[1]instanceof Ps){for(var e=arguments[0],j=arguments[1],T=arguments[2],g=j.getEdge().getCoordinates(),u=0;u<g.length-1;u++)if(this._seg.p0=g[u],this._seg.p1=g[u+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<e.x)&&!(this._seg.isHorizontal()||e.y<this._seg.p0.y||e.y>this._seg.p1.y||iu.computeOrientation(this._seg.p0,this._seg.p1,e)===iu.RIGHT)){var s=j.getDepth(Os.LEFT);this._seg.p0.equals(g[u])||(s=j.getDepth(Os.RIGHT));var L=new hL(this._seg,s);T.add(L)}}else if(lg(arguments[2],au)&&arguments[0]instanceof Eg&&lg(arguments[1],au))for(var I=arguments[0],A=arguments[1],z=arguments[2],n=A.iterator();n.hasNext();){var w=n.next();w.isForward()&&this.findStabbedSegments(I,w,z)}},UL.prototype.getDepth=function(M){var N=this.findStabbedSegments(M);return 0===N.size()?0:qs.min(N)._leftDepth},UL.prototype.interfaces_=function(){return[]},UL.prototype.getClass=function(){return UL},pL.DepthSegment.get=function(){return hL},Object.defineProperties(UL,pL);var hL=function(){this._upwardSeg=null,this._leftDepth=null;var M=arguments[0],N=arguments[1];this._upwardSeg=new IL(M),this._leftDepth=N};hL.prototype.compareTo=function(M){var N=M;if(this._upwardSeg.minX()>=N._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=N._upwardSeg.minX())return-1;var D=this._upwardSeg.orientationIndex(N._upwardSeg);return 0!==D||0!=(D=-1*N._upwardSeg.orientationIndex(this._upwardSeg))?D:this._upwardSeg.compareTo(N._upwardSeg)},hL.prototype.compareX=function(M,N){var D=M.p0.compareTo(N.p0);return 0!==D?D:M.p1.compareTo(N.p1)},hL.prototype.toString=function(){return this._upwardSeg.toString()},hL.prototype.interfaces_=function(){return[yg]},hL.prototype.getClass=function(){return hL};var fL=function(M,N,D){this.p0=M||null,this.p1=N||null,this.p2=D||null};fL.prototype.area=function(){return fL.area(this.p0,this.p1,this.p2)},fL.prototype.signedArea=function(){return fL.signedArea(this.p0,this.p1,this.p2)},fL.prototype.interpolateZ=function(M){if(null===M)throw new ng("Supplied point is null.");return fL.interpolateZ(M,this.p0,this.p1,this.p2)},fL.prototype.longestSideLength=function(){return fL.longestSideLength(this.p0,this.p1,this.p2)},fL.prototype.isAcute=function(){return fL.isAcute(this.p0,this.p1,this.p2)},fL.prototype.circumcentre=function(){return fL.circumcentre(this.p0,this.p1,this.p2)},fL.prototype.area3D=function(){return fL.area3D(this.p0,this.p1,this.p2)},fL.prototype.centroid=function(){return fL.centroid(this.p0,this.p1,this.p2)},fL.prototype.inCentre=function(){return fL.inCentre(this.p0,this.p1,this.p2)},fL.prototype.interfaces_=function(){return[]},fL.prototype.getClass=function(){return fL},fL.area=function(M,N,D){return Math.abs(((D.x-M.x)*(N.y-M.y)-(N.x-M.x)*(D.y-M.y))/2)},fL.signedArea=function(M,N,D){return((D.x-M.x)*(N.y-M.y)-(N.x-M.x)*(D.y-M.y))/2},fL.det=function(M,N,D,t){return M*t-N*D},fL.interpolateZ=function(M,N,D,t){var i=N.x,e=N.y,j=D.x-i,T=t.x-i,g=D.y-e,u=t.y-e,s=j*u-T*g,L=M.x-i,I=M.y-e,A=(u*L-T*I)/s,z=(-g*L+j*I)/s;return N.z+A*(D.z-N.z)+z*(t.z-N.z)},fL.longestSideLength=function(M,N,D){var t=M.distance(N),i=N.distance(D),e=D.distance(M),j=t;return i>j&&(j=i),e>j&&(j=e),j},fL.isAcute=function(M,N,D){return!!lL.isAcute(M,N,D)&&!!lL.isAcute(N,D,M)&&!!lL.isAcute(D,M,N)},fL.circumcentre=function(M,N,D){var t=D.x,i=D.y,e=M.x-t,j=M.y-i,T=N.x-t,g=N.y-i,u=2*fL.det(e,j,T,g),s=fL.det(j,e*e+j*j,g,T*T+g*g),L=fL.det(e,e*e+j*j,T,T*T+g*g);return new Eg(t-s/u,i+L/u)},fL.perpendicularBisector=function(M,N){var D=N.x-M.x,t=N.y-M.y,i=new Gg(M.x+D/2,M.y+t/2,1),e=new Gg(M.x-t+D/2,M.y+D+t/2,1);return new Gg(i,e)},fL.angleBisector=function(M,N,D){var t=N.distance(M),i=t/(t+N.distance(D)),e=D.x-M.x,j=D.y-M.y;return new Eg(M.x+i*e,M.y+i*j)},fL.area3D=function(M,N,D){var t=N.x-M.x,i=N.y-M.y,e=N.z-M.z,j=D.x-M.x,T=D.y-M.y,g=D.z-M.z,u=i*g-e*T,s=e*j-t*g,L=t*T-i*j,I=u*u+s*s+L*L,A=Math.sqrt(I)/2;return A},fL.centroid=function(M,N,D){var t=(M.x+N.x+D.x)/3,i=(M.y+N.y+D.y)/3;return new Eg(t,i)},fL.inCentre=function(M,N,D){var t=N.distance(D),i=M.distance(D),e=M.distance(N),j=t+i+e,T=(t*M.x+i*N.x+e*D.x)/j,g=(t*M.y+i*N.y+e*D.y)/j;return new Eg(T,g)};var mL=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new Eu;var M=arguments[0],N=arguments[1],D=arguments[2];this._inputGeom=M,this._distance=N,this._curveBuilder=D};mL.prototype.addPoint=function(M){if(this._distance<=0)return null;var N=M.getCoordinates(),D=this._curveBuilder.getLineCurve(N,this._distance);this.addCurve(D,Cg.EXTERIOR,Cg.INTERIOR)},mL.prototype.addPolygon=function(M){var N=this._distance,D=Os.LEFT;this._distance<0&&(N=-this._distance,D=Os.RIGHT);var t=M.getExteriorRing(),i=xu.removeRepeatedPoints(t.getCoordinates());if(this._distance<0&&this.isErodedCompletely(t,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addPolygonRing(i,N,D,Cg.EXTERIOR,Cg.INTERIOR);for(var e=0;e<M.getNumInteriorRing();e++){var j=M.getInteriorRingN(e),T=xu.removeRepeatedPoints(j.getCoordinates());this._distance>0&&this.isErodedCompletely(j,-this._distance)||this.addPolygonRing(T,N,Os.opposite(D),Cg.INTERIOR,Cg.EXTERIOR)}},mL.prototype.isTriangleErodedCompletely=function(M,N){var D=new fL(M[0],M[1],M[2]),t=D.inCentre();return iu.distancePointLine(t,D.p0,D.p1)<Math.abs(N)},mL.prototype.addLineString=function(M){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var N=xu.removeRepeatedPoints(M.getCoordinates()),D=this._curveBuilder.getLineCurve(N,this._distance);this.addCurve(D,Cg.EXTERIOR,Cg.INTERIOR)},mL.prototype.addCurve=function(M,N,D){if(null===M||M.length<2)return null;var t=new LL(M,new ds(0,Cg.BOUNDARY,N,D));this._curveList.add(t)},mL.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},mL.prototype.addPolygonRing=function(M,N,D,t,i){if(0===N&&M.length<$u.MINIMUM_VALID_SIZE)return null;var e=t,j=i;M.length>=$u.MINIMUM_VALID_SIZE&&iu.isCCW(M)&&(e=i,j=t,D=Os.opposite(D));var T=this._curveBuilder.getRingCurve(M,D,N);this.addCurve(T,e,j)},mL.prototype.add=function(M){if(M.isEmpty())return null;M instanceof qu?this.addPolygon(M):M instanceof _u?this.addLineString(M):M instanceof Vu?this.addPoint(M):(M instanceof Ku||M instanceof Zu||M instanceof Ms||M instanceof Pu)&&this.addCollection(M)},mL.prototype.isErodedCompletely=function(M,N){var D=M.getCoordinates();if(D.length<4)return N<0;if(4===D.length)return this.isTriangleErodedCompletely(D,N);var t=M.getEnvelopeInternal(),i=Math.min(t.getHeight(),t.getWidth());return N<0&&2*Math.abs(N)>i},mL.prototype.addCollection=function(M){for(var N=0;N<M.getNumGeometries();N++){var D=M.getGeometryN(N);this.add(D)}},mL.prototype.interfaces_=function(){return[]},mL.prototype.getClass=function(){return mL};var vL=function(){};vL.prototype.locate=function(M){},vL.prototype.interfaces_=function(){return[]},vL.prototype.getClass=function(){return vL};var BL=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var M=arguments[0];this._parent=M,this._atStart=!0,this._index=0,this._max=M.getNumGeometries()};BL.prototype.next=function(){if(this._atStart)return this._atStart=!1,BL.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new Qi;var M=this._parent.getGeometryN(this._index++);return M instanceof Pu?(this._subcollectionIterator=new BL(M),this._subcollectionIterator.next()):M},BL.prototype.remove=function(){throw new Error(this.getClass().getName())},BL.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},BL.prototype.interfaces_=function(){return[cu]},BL.prototype.getClass=function(){return BL},BL.isAtomic=function(M){return!(M instanceof Pu)};var bL=function(){this._geom=null;var M=arguments[0];this._geom=M};bL.prototype.locate=function(M){return bL.locate(M,this._geom)},bL.prototype.interfaces_=function(){return[vL]},bL.prototype.getClass=function(){return bL},bL.isPointInRing=function(M,N){return!!N.getEnvelopeInternal().intersects(M)&&iu.isPointInRing(M,N.getCoordinates())},bL.containsPointInPolygon=function(M,N){if(N.isEmpty())return!1;var D=N.getExteriorRing();if(!bL.isPointInRing(M,D))return!1;for(var t=0;t<N.getNumInteriorRing();t++){var i=N.getInteriorRingN(t);if(bL.isPointInRing(M,i))return!1}return!0},bL.containsPoint=function(M,N){if(N instanceof qu)return bL.containsPointInPolygon(M,N);if(N instanceof Pu)for(var D=new BL(N);D.hasNext();){var t=D.next();if(t!==N&&bL.containsPoint(M,t))return!0}return!1},bL.locate=function(M,N){return N.isEmpty()?Cg.EXTERIOR:bL.containsPoint(M,N)?Cg.INTERIOR:Cg.EXTERIOR};var PL=function(){this._edgeMap=new vi,this._edgeList=null,this._ptInAreaLocation=[Cg.NONE,Cg.NONE]};PL.prototype.getNextCW=function(M){this.getEdges();var N=this._edgeList.indexOf(M),D=N-1;return 0===N&&(D=this._edgeList.size()-1),this._edgeList.get(D)},PL.prototype.propagateSideLabels=function(M){for(var N=Cg.NONE,D=this.iterator();D.hasNext();){var t=D.next().getLabel();t.isArea(M)&&t.getLocation(M,Os.LEFT)!==Cg.NONE&&(N=t.getLocation(M,Os.LEFT))}if(N===Cg.NONE)return null;for(var i=N,e=this.iterator();e.hasNext();){var j=e.next(),T=j.getLabel();if(T.getLocation(M,Os.ON)===Cg.NONE&&T.setLocation(M,Os.ON,i),T.isArea(M)){var g=T.getLocation(M,Os.LEFT),u=T.getLocation(M,Os.RIGHT);if(u!==Cg.NONE){if(u!==i)throw new Ss("side location conflict",j.getCoordinate());g===Cg.NONE&&Kg.shouldNeverReachHere("found single null side (at "+j.getCoordinate()+")"),i=g}else Kg.isTrue(T.getLocation(M,Os.LEFT)===Cg.NONE,"found single null side"),T.setLocation(M,Os.RIGHT,i),T.setLocation(M,Os.LEFT,i)}}},PL.prototype.getCoordinate=function(){var M=this.iterator();return M.hasNext()?M.next().getCoordinate():null},PL.prototype.print=function(M){Zg.out.println("EdgeEndStar: "+this.getCoordinate());for(var N=this.iterator();N.hasNext();)N.next().print(M)},PL.prototype.isAreaLabelsConsistent=function(M){return this.computeEdgeEndLabels(M.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},PL.prototype.checkAreaLabelsConsistent=function(M){var N=this.getEdges();if(N.size()<=0)return!0;var D=N.size()-1,t=N.get(D).getLabel().getLocation(M,Os.LEFT);Kg.isTrue(t!==Cg.NONE,"Found unlabelled area edge");for(var i=t,e=this.iterator();e.hasNext();){var j=e.next().getLabel();Kg.isTrue(j.isArea(M),"Found non-area edge");var T=j.getLocation(M,Os.LEFT),g=j.getLocation(M,Os.RIGHT);if(T===g)return!1;if(g!==i)return!1;i=T}return!0},PL.prototype.findIndex=function(M){this.iterator();for(var N=0;N<this._edgeList.size();N++)if(this._edgeList.get(N)===M)return N;return-1},PL.prototype.iterator=function(){return this.getEdges().iterator()},PL.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new Eu(this._edgeMap.values())),this._edgeList},PL.prototype.getLocation=function(M,N,D){return this._ptInAreaLocation[M]===Cg.NONE&&(this._ptInAreaLocation[M]=bL.locate(N,D[M].getGeometry())),this._ptInAreaLocation[M]},PL.prototype.toString=function(){var M=new dg;M.append("EdgeEndStar: "+this.getCoordinate()),M.append("\n");for(var N=this.iterator();N.hasNext();){var D=N.next();M.append(D),M.append("\n")}return M.toString()},PL.prototype.computeEdgeEndLabels=function(M){for(var N=this.iterator();N.hasNext();)N.next().computeLabel(M)},PL.prototype.computeLabelling=function(M){this.computeEdgeEndLabels(M[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var N=[!1,!1],D=this.iterator();D.hasNext();)for(var t=D.next().getLabel(),i=0;i<2;i++)t.isLine(i)&&t.getLocation(i)===Cg.BOUNDARY&&(N[i]=!0);for(var e=this.iterator();e.hasNext();)for(var j=e.next(),T=j.getLabel(),g=0;g<2;g++)if(T.isAnyNull(g)){var u=Cg.NONE;if(N[g])u=Cg.EXTERIOR;else{var s=j.getCoordinate();u=this.getLocation(g,s,M)}T.setAllLocationsIfNull(g,u)}},PL.prototype.getDegree=function(){return this._edgeMap.size()},PL.prototype.insertEdgeEnd=function(M,N){this._edgeMap.put(M,N),this._edgeList=null},PL.prototype.interfaces_=function(){return[]},PL.prototype.getClass=function(){return PL};var ZL=function(M){function N(){M.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var M=null,N=null,D=this._SCANNING_FOR_INCOMING,t=0;t<this._resultAreaEdgeList.size();t++){var i=this._resultAreaEdgeList.get(t),e=i.getSym();if(i.getLabel().isArea())switch(null===M&&i.isInResult()&&(M=i),D){case this._SCANNING_FOR_INCOMING:if(!e.isInResult())continue;N=e,D=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!i.isInResult())continue;N.setNext(i),D=this._SCANNING_FOR_INCOMING}}if(D===this._LINKING_TO_OUTGOING){if(null===M)throw new Ss("no outgoing dirEdge found",this.getCoordinate());Kg.isTrue(M.isInResult(),"unable to link last incoming dirEdge"),N.setNext(M)}},N.prototype.insert=function(M){var N=M;this.insertEdgeEnd(N,N)},N.prototype.getRightmostEdge=function(){var M=this.getEdges(),N=M.size();if(N<1)return null;var D=M.get(0);if(1===N)return D;var t=M.get(N-1),i=D.getQuadrant(),e=t.getQuadrant();return vs.isNorthern(i)&&vs.isNorthern(e)?D:vs.isNorthern(i)||vs.isNorthern(e)?0!==D.getDy()?D:0!==t.getDy()?t:(Kg.shouldNeverReachHere("found two horizontal edges incident on node"),null):t},N.prototype.print=function(M){Zg.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var N=this.iterator();N.hasNext();){var D=N.next();M.print("out "),D.print(M),M.println(),M.print("in "),D.getSym().print(M),M.println()}},N.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new Eu;for(var M=this.iterator();M.hasNext();){var N=M.next();(N.isInResult()||N.getSym().isInResult())&&this._resultAreaEdgeList.add(N)}return this._resultAreaEdgeList},N.prototype.updateLabelling=function(M){for(var N=this.iterator();N.hasNext();){var D=N.next().getLabel();D.setAllLocationsIfNull(0,M.getLocation(0)),D.setAllLocationsIfNull(1,M.getLocation(1))}},N.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var M=null,N=null,D=this._edgeList.size()-1;D>=0;D--){var t=this._edgeList.get(D),i=t.getSym();null===N&&(N=i),null!==M&&i.setNext(M),M=t}N.setNext(M)},N.prototype.computeDepths=function(){if(1===arguments.length){var M=arguments[0],N=this.findIndex(M),D=M.getDepth(Os.LEFT),t=M.getDepth(Os.RIGHT),i=this.computeDepths(N+1,this._edgeList.size(),D);if(this.computeDepths(0,N,i)!==t)throw new Ss("depth mismatch at "+M.getCoordinate())}else if(3===arguments.length){for(var e=arguments[0],j=arguments[1],T=arguments[2],g=e;g<j;g++){var u=this._edgeList.get(g);u.setEdgeDepths(Os.RIGHT,T),T=u.getDepth(Os.LEFT)}return T}},N.prototype.mergeSymLabels=function(){for(var M=this.iterator();M.hasNext();){var N=M.next();N.getLabel().merge(N.getSym().getLabel())}},N.prototype.linkMinimalDirectedEdges=function(M){for(var N=null,D=null,t=this._SCANNING_FOR_INCOMING,i=this._resultAreaEdgeList.size()-1;i>=0;i--){var e=this._resultAreaEdgeList.get(i),j=e.getSym();switch(null===N&&e.getEdgeRing()===M&&(N=e),t){case this._SCANNING_FOR_INCOMING:if(j.getEdgeRing()!==M)continue;D=j,t=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(e.getEdgeRing()!==M)continue;D.setNextMin(e),t=this._SCANNING_FOR_INCOMING}}t===this._LINKING_TO_OUTGOING&&(Kg.isTrue(null!==N,"found null for first outgoing dirEdge"),Kg.isTrue(N.getEdgeRing()===M,"unable to link last incoming dirEdge"),D.setNextMin(N))},N.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var M=0,N=this.iterator();N.hasNext();)N.next().isInResult()&&M++;return M}if(1===arguments.length){for(var D=arguments[0],t=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===D&&t++;return t}},N.prototype.getLabel=function(){return this._label},N.prototype.findCoveredLineEdges=function(){for(var M=Cg.NONE,N=this.iterator();N.hasNext();){var D=N.next(),t=D.getSym();if(!D.isLineEdge()){if(D.isInResult()){M=Cg.INTERIOR;break}if(t.isInResult()){M=Cg.EXTERIOR;break}}}if(M===Cg.NONE)return null;for(var i=M,e=this.iterator();e.hasNext();){var j=e.next(),T=j.getSym();j.isLineEdge()?j.getEdge().setCovered(i===Cg.INTERIOR):(j.isInResult()&&(i=Cg.EXTERIOR),T.isInResult()&&(i=Cg.INTERIOR))}},N.prototype.computeLabelling=function(N){M.prototype.computeLabelling.call(this,N),this._label=new ds(Cg.NONE);for(var D=this.iterator();D.hasNext();)for(var t=D.next().getEdge().getLabel(),i=0;i<2;i++){var e=t.getLocation(i);e!==Cg.INTERIOR&&e!==Cg.BOUNDARY||this._label.setLocation(i,Cg.INTERIOR)}},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(PL),GL=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.createNode=function(M){return new fs(M,new ZL)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Zs),RL=function M(){this._pts=null,this._orientation=null;var N=arguments[0];this._pts=N,this._orientation=M.orientation(N)};RL.prototype.compareTo=function(M){var N=M;return RL.compareOriented(this._pts,this._orientation,N._pts,N._orientation)},RL.prototype.interfaces_=function(){return[yg]},RL.prototype.getClass=function(){return RL},RL.orientation=function(M){return 1===xu.increasingDirection(M)},RL.compareOriented=function(M,N,D,t){for(var i=N?1:-1,e=t?1:-1,j=N?M.length:-1,T=t?D.length:-1,g=N?0:M.length-1,u=t?0:D.length-1;;){var s=M[g].compareTo(D[u]);if(0!==s)return s;var L=(g+=i)===j,I=(u+=e)===T;if(L&&!I)return-1;if(!L&&I)return 1;if(L&&I)return 0}};var WL=function(){this._edges=new Eu,this._ocaMap=new vi};WL.prototype.print=function(M){M.print("MULTILINESTRING ( ");for(var N=0;N<this._edges.size();N++){var D=this._edges.get(N);N>0&&M.print(","),M.print("(");for(var t=D.getCoordinates(),i=0;i<t.length;i++)i>0&&M.print(","),M.print(t[i].x+" "+t[i].y);M.println(")")}M.print(") ")},WL.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next())},WL.prototype.findEdgeIndex=function(M){for(var N=0;N<this._edges.size();N++)if(this._edges.get(N).equals(M))return N;return-1},WL.prototype.iterator=function(){return this._edges.iterator()},WL.prototype.getEdges=function(){return this._edges},WL.prototype.get=function(M){return this._edges.get(M)},WL.prototype.findEqualEdge=function(M){var N=new RL(M.getCoordinates());return this._ocaMap.get(N)},WL.prototype.add=function(M){this._edges.add(M);var N=new RL(M.getCoordinates());this._ocaMap.put(N,M)},WL.prototype.interfaces_=function(){return[]},WL.prototype.getClass=function(){return WL};var XL=function(){};XL.prototype.processIntersections=function(M,N,D,t){},XL.prototype.isDone=function(){},XL.prototype.interfaces_=function(){return[]},XL.prototype.getClass=function(){return XL};var HL=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var M=arguments[0];this._li=M};HL.prototype.isTrivialIntersection=function(M,N,D,t){if(M===D&&1===this._li.getIntersectionNum()){if(HL.isAdjacentSegments(N,t))return!0;if(M.isClosed()){var i=M.size()-1;if(0===N&&t===i||0===t&&N===i)return!0}}return!1},HL.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},HL.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},HL.prototype.getLineIntersector=function(){return this._li},HL.prototype.hasProperIntersection=function(){return this._hasProper},HL.prototype.processIntersections=function(M,N,D,t){if(M===D&&N===t)return null;this.numTests++;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(M,N,D,t)||(this._hasIntersection=!0,M.addIntersections(this._li,N,0),D.addIntersections(this._li,t,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},HL.prototype.hasIntersection=function(){return this._hasIntersection},HL.prototype.isDone=function(){return!1},HL.prototype.hasInteriorIntersection=function(){return this._hasInterior},HL.prototype.interfaces_=function(){return[XL]},HL.prototype.getClass=function(){return HL},HL.isAdjacentSegments=function(M,N){return 1===Math.abs(M-N)};var _L=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var M=arguments[0],N=arguments[1],D=arguments[2];this.coord=new Eg(M),this.segmentIndex=N,this.dist=D};_L.prototype.getSegmentIndex=function(){return this.segmentIndex},_L.prototype.getCoordinate=function(){return this.coord},_L.prototype.print=function(M){M.print(this.coord),M.print(" seg # = "+this.segmentIndex),M.println(" dist = "+this.dist)},_L.prototype.compareTo=function(M){var N=M;return this.compare(N.segmentIndex,N.dist)},_L.prototype.isEndPoint=function(M){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===M},_L.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},_L.prototype.getDistance=function(){return this.dist},_L.prototype.compare=function(M,N){return this.segmentIndex<M?-1:this.segmentIndex>M?1:this.dist<N?-1:this.dist>N?1:0},_L.prototype.interfaces_=function(){return[yg]},_L.prototype.getClass=function(){return _L};var FL=function(){this._nodeMap=new vi,this.edge=null;var M=arguments[0];this.edge=M};FL.prototype.print=function(M){M.println("Intersections:");for(var N=this.iterator();N.hasNext();)N.next().print(M)},FL.prototype.iterator=function(){return this._nodeMap.values().iterator()},FL.prototype.addSplitEdges=function(M){this.addEndpoints();for(var N=this.iterator(),D=N.next();N.hasNext();){var t=N.next(),i=this.createSplitEdge(D,t);M.add(i),D=t}},FL.prototype.addEndpoints=function(){var M=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[M],M,0)},FL.prototype.createSplitEdge=function(M,N){var D=N.segmentIndex-M.segmentIndex+2,t=this.edge.pts[N.segmentIndex],i=N.dist>0||!N.coord.equals2D(t);i||D--;var e=new Array(D).fill(null),j=0;e[j++]=new Eg(M.coord);for(var T=M.segmentIndex+1;T<=N.segmentIndex;T++)e[j++]=this.edge.pts[T];return i&&(e[j]=N.coord),new $L(e,new ds(this.edge._label))},FL.prototype.add=function(M,N,D){var t=new _L(M,N,D),i=this._nodeMap.get(t);return null!==i?i:(this._nodeMap.put(t,t),t)},FL.prototype.isIntersection=function(M){for(var N=this.iterator();N.hasNext();)if(N.next().coord.equals(M))return!0;return!1},FL.prototype.interfaces_=function(){return[]},FL.prototype.getClass=function(){return FL};var VL=function(){};VL.prototype.getChainStartIndices=function(M){var N=0,D=new Eu;D.add(new Yg(N));do{var t=this.findChainEnd(M,N);D.add(new Yg(t)),N=t}while(N<M.length-1);return VL.toIntArray(D)},VL.prototype.findChainEnd=function(M,N){for(var D=vs.quadrant(M[N],M[N+1]),t=N+1;t<M.length;){if(vs.quadrant(M[t-1],M[t])!==D)break;t++}return t-1},VL.prototype.interfaces_=function(){return[]},VL.prototype.getClass=function(){return VL},VL.toIntArray=function(M){for(var N=new Array(M.size()).fill(null),D=0;D<N.length;D++)N[D]=M.get(D).intValue();return N};var JL=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new Rg,this.env2=new Rg;var M=arguments[0];this.e=M,this.pts=M.getCoordinates();var N=new VL;this.startIndex=N.getChainStartIndices(this.pts)};JL.prototype.getCoordinates=function(){return this.pts},JL.prototype.getMaxX=function(M){var N=this.pts[this.startIndex[M]].x,D=this.pts[this.startIndex[M+1]].x;return N>D?N:D},JL.prototype.getMinX=function(M){var N=this.pts[this.startIndex[M]].x,D=this.pts[this.startIndex[M+1]].x;return N<D?N:D},JL.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];this.computeIntersectsForChain(this.startIndex[M],this.startIndex[M+1],N,N.startIndex[D],N.startIndex[D+1],t)}else if(6===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3],g=arguments[4],u=arguments[5],s=this.pts[i],L=this.pts[e],I=j.pts[T],A=j.pts[g];if(e-i==1&&g-T==1)return u.addIntersections(this.e,i,j.e,T),null;if(this.env1.init(s,L),this.env2.init(I,A),!this.env1.intersects(this.env2))return null;var z=Math.trunc((i+e)/2),n=Math.trunc((T+g)/2);i<z&&(T<n&&this.computeIntersectsForChain(i,z,j,T,n,u),n<g&&this.computeIntersectsForChain(i,z,j,n,g,u)),z<e&&(T<n&&this.computeIntersectsForChain(z,e,j,T,n,u),n<g&&this.computeIntersectsForChain(z,e,j,n,g,u))}},JL.prototype.getStartIndexes=function(){return this.startIndex},JL.prototype.computeIntersects=function(M,N){for(var D=0;D<this.startIndex.length-1;D++)for(var t=0;t<M.startIndex.length-1;t++)this.computeIntersectsForChain(D,M,t,N)},JL.prototype.interfaces_=function(){return[]},JL.prototype.getClass=function(){return JL};var qL=function M(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var N=0;N<2;N++)for(var D=0;D<3;D++)this._depth[N][D]=M.NULL_VALUE},KL={NULL_VALUE:{configurable:!0}};qL.prototype.getDepth=function(M,N){return this._depth[M][N]},qL.prototype.setDepth=function(M,N,D){this._depth[M][N]=D},qL.prototype.isNull=function(){if(0===arguments.length){for(var M=0;M<2;M++)for(var N=0;N<3;N++)if(this._depth[M][N]!==qL.NULL_VALUE)return!1;return!0}if(1===arguments.length){var D=arguments[0];return this._depth[D][1]===qL.NULL_VALUE}if(2===arguments.length){var t=arguments[0],i=arguments[1];return this._depth[t][i]===qL.NULL_VALUE}},qL.prototype.normalize=function(){for(var M=0;M<2;M++)if(!this.isNull(M)){var N=this._depth[M][1];this._depth[M][2]<N&&(N=this._depth[M][2]),N<0&&(N=0);for(var D=1;D<3;D++){var t=0;this._depth[M][D]>N&&(t=1),this._depth[M][D]=t}}},qL.prototype.getDelta=function(M){return this._depth[M][Os.RIGHT]-this._depth[M][Os.LEFT]},qL.prototype.getLocation=function(M,N){return this._depth[M][N]<=0?Cg.EXTERIOR:Cg.INTERIOR},qL.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},qL.prototype.add=function(){if(1===arguments.length)for(var M=arguments[0],N=0;N<2;N++)for(var D=1;D<3;D++){var t=M.getLocation(N,D);t!==Cg.EXTERIOR&&t!==Cg.INTERIOR||(this.isNull(N,D)?this._depth[N][D]=qL.depthAtLocation(t):this._depth[N][D]+=qL.depthAtLocation(t))}else if(3===arguments.length){var i=arguments[0],e=arguments[1];arguments[2]===Cg.INTERIOR&&this._depth[i][e]++}},qL.prototype.interfaces_=function(){return[]},qL.prototype.getClass=function(){return qL},qL.depthAtLocation=function(M){return M===Cg.EXTERIOR?0:M===Cg.INTERIOR?1:qL.NULL_VALUE},KL.NULL_VALUE.get=function(){return-1},Object.defineProperties(qL,KL);var $L=function(M){function N(){if(M.call(this),this.pts=null,this._env=null,this.eiList=new FL(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new qL,this._depthDelta=0,1===arguments.length){var D=arguments[0];N.call(this,D,null)}else if(2===arguments.length){var t=arguments[0],i=arguments[1];this.pts=t,this._label=i}}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.getDepth=function(){return this._depth},N.prototype.getCollapsedEdge=function(){var M=new Array(2).fill(null);return M[0]=this.pts[0],M[1]=this.pts[1],new N(M,ds.toLineLabel(this._label))},N.prototype.isIsolated=function(){return this._isIsolated},N.prototype.getCoordinates=function(){return this.pts},N.prototype.setIsolated=function(M){this._isIsolated=M},N.prototype.setName=function(M){this._name=M},N.prototype.equals=function(M){if(!(M instanceof N))return!1;var D=M;if(this.pts.length!==D.pts.length)return!1;for(var t=!0,i=!0,e=this.pts.length,j=0;j<this.pts.length;j++)if(this.pts[j].equals2D(D.pts[j])||(t=!1),this.pts[j].equals2D(D.pts[--e])||(i=!1),!t&&!i)return!1;return!0},N.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var M=arguments[0];return this.pts[M]}},N.prototype.print=function(M){M.print("edge "+this._name+": "),M.print("LINESTRING (");for(var N=0;N<this.pts.length;N++)N>0&&M.print(","),M.print(this.pts[N].x+" "+this.pts[N].y);M.print(") "+this._label+" "+this._depthDelta)},N.prototype.computeIM=function(M){N.updateIM(this._label,M)},N.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},N.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},N.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},N.prototype.getDepthDelta=function(){return this._depthDelta},N.prototype.getNumPoints=function(){return this.pts.length},N.prototype.printReverse=function(M){M.print("edge "+this._name+": ");for(var N=this.pts.length-1;N>=0;N--)M.print(this.pts[N]+" ");M.println("")},N.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new JL(this)),this._mce},N.prototype.getEnvelope=function(){if(null===this._env){this._env=new Rg;for(var M=0;M<this.pts.length;M++)this._env.expandToInclude(this.pts[M])}return this._env},N.prototype.addIntersection=function(M,N,D,t){var i=new Eg(M.getIntersection(t)),e=N,j=M.getEdgeDistance(D,t),T=e+1;if(T<this.pts.length){var g=this.pts[T];i.equals2D(g)&&(e=T,j=0)}this.eiList.add(i,e,j)},N.prototype.toString=function(){var M=new dg;M.append("edge "+this._name+": "),M.append("LINESTRING (");for(var N=0;N<this.pts.length;N++)N>0&&M.append(","),M.append(this.pts[N].x+" "+this.pts[N].y);return M.append(") "+this._label+" "+this._depthDelta),M.toString()},N.prototype.isPointwiseEqual=function(M){if(this.pts.length!==M.pts.length)return!1;for(var N=0;N<this.pts.length;N++)if(!this.pts[N].equals2D(M.pts[N]))return!1;return!0},N.prototype.setDepthDelta=function(M){this._depthDelta=M},N.prototype.getEdgeIntersectionList=function(){return this.eiList},N.prototype.addIntersections=function(M,N,D){for(var t=0;t<M.getIntersectionNum();t++)this.addIntersection(M,N,D,t)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.updateIM=function(){if(2!==arguments.length)return M.prototype.updateIM.apply(this,arguments);var N=arguments[0],D=arguments[1];D.setAtLeastIfValid(N.getLocation(0,Os.ON),N.getLocation(1,Os.ON),1),N.isArea()&&(D.setAtLeastIfValid(N.getLocation(0,Os.LEFT),N.getLocation(1,Os.LEFT),2),D.setAtLeastIfValid(N.getLocation(0,Os.RIGHT),N.getLocation(1,Os.RIGHT),2))},N}(hs),MI=function(M){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new WL,this._bufParams=M||null};MI.prototype.setWorkingPrecisionModel=function(M){this._workingPrecisionModel=M},MI.prototype.insertUniqueEdge=function(M){var N=this._edgeList.findEqualEdge(M);if(null!==N){var D=N.getLabel(),t=M.getLabel();N.isPointwiseEqual(M)||(t=new ds(M.getLabel())).flip(),D.merge(t);var i=MI.depthDelta(t),e=N.getDepthDelta()+i;N.setDepthDelta(e)}else this._edgeList.add(M),M.setDepthDelta(MI.depthDelta(M.getLabel()))},MI.prototype.buildSubgraphs=function(M,N){for(var D=new Eu,t=M.iterator();t.hasNext();){var i=t.next(),e=i.getRightmostCoordinate(),j=new UL(D).getDepth(e);i.computeDepth(j),i.findResultEdges(),D.add(i),N.add(i.getDirectedEdges(),i.getNodes())}},MI.prototype.createSubgraphs=function(M){for(var N=new Eu,D=M.getNodes().iterator();D.hasNext();){var t=D.next();if(!t.isVisited()){var i=new ks;i.create(t),N.add(i)}}return qs.sort(N,qs.reverseOrder()),N},MI.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},MI.prototype.getNoder=function(M){if(null!==this._workingNoder)return this._workingNoder;var N=new cL,D=new Nu;return D.setPrecisionModel(M),N.setSegmentIntersector(new HL(D)),N},MI.prototype.buffer=function(M,N){var D=this._workingPrecisionModel;null===D&&(D=M.getPrecisionModel()),this._geomFact=M.getFactory();var t=new YL(D,this._bufParams),i=new mL(M,N,t).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,D),this._graph=new Gs(new GL),this._graph.addEdges(this._edgeList.getEdges());var e=this.createSubgraphs(this._graph),j=new Rs(this._geomFact);this.buildSubgraphs(e,j);var T=j.getPolygons();return T.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(T)},MI.prototype.computeNodedEdges=function(M,N){var D=this.getNoder(N);D.computeNodes(M);for(var t=D.getNodedSubstrings().iterator();t.hasNext();){var i=t.next(),e=i.getCoordinates();if(2!==e.length||!e[0].equals2D(e[1])){var j=i.getData(),T=new $L(i.getCoordinates(),new ds(j));this.insertUniqueEdge(T)}}},MI.prototype.setNoder=function(M){this._workingNoder=M},MI.prototype.interfaces_=function(){return[]},MI.prototype.getClass=function(){return MI},MI.depthDelta=function(M){var N=M.getLocation(0,Os.LEFT),D=M.getLocation(0,Os.RIGHT);return N===Cg.INTERIOR&&D===Cg.EXTERIOR?1:N===Cg.EXTERIOR&&D===Cg.INTERIOR?-1:0},MI.convertSegStrings=function(M){for(var N=new ns,D=new Eu;M.hasNext();){var t=M.next(),i=N.createLineString(t.getCoordinates());D.add(i)}return N.buildGeometry(D)};var NI=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var M=arguments[0],N=arguments[1];this._noder=M,this._scaleFactor=N,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=arguments[3];this._noder=D,this._scaleFactor=t,this._offsetX=i,this._offsetY=e,this._isScaled=!this.isIntegerPrecision()}};NI.prototype.rescale=function(){if(lg(arguments[0],ru))for(var M=arguments[0].iterator();M.hasNext();){var N=M.next();this.rescale(N.getCoordinates())}else if(arguments[0]instanceof Array){for(var D=arguments[0],t=0;t<D.length;t++)D[t].x=D[t].x/this._scaleFactor+this._offsetX,D[t].y=D[t].y/this._scaleFactor+this._offsetY;2===D.length&&D[0].equals2D(D[1])&&Zg.out.println(D)}},NI.prototype.scale=function(){if(lg(arguments[0],ru)){for(var M=arguments[0],N=new Eu,D=M.iterator();D.hasNext();){var t=D.next();N.add(new LL(this.scale(t.getCoordinates()),t.getData()))}return N}if(arguments[0]instanceof Array){for(var i=arguments[0],e=new Array(i.length).fill(null),j=0;j<i.length;j++)e[j]=new Eg(Math.round((i[j].x-this._offsetX)*this._scaleFactor),Math.round((i[j].y-this._offsetY)*this._scaleFactor),i[j].z);return xu.removeRepeatedPoints(e)}},NI.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},NI.prototype.getNodedSubstrings=function(){var M=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(M),M},NI.prototype.computeNodes=function(M){var N=M;this._isScaled&&(N=this.scale(M)),this._noder.computeNodes(N)},NI.prototype.interfaces_=function(){return[rL]},NI.prototype.getClass=function(){return NI};var DI=function(){this._li=new Nu,this._segStrings=null;var M=arguments[0];this._segStrings=M},tI={fact:{configurable:!0}};DI.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var M=this._segStrings.iterator();M.hasNext();){var N=M.next().getCoordinates();this.checkEndPtVertexIntersections(N[0],this._segStrings),this.checkEndPtVertexIntersections(N[N.length-1],this._segStrings)}else if(2===arguments.length)for(var D=arguments[0],t=arguments[1].iterator();t.hasNext();)for(var i=t.next().getCoordinates(),e=1;e<i.length-1;e++)if(i[e].equals(D))throw new Jg("found endpt/interior pt intersection at index "+e+" :pt "+D)},DI.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var M=this._segStrings.iterator();M.hasNext();)for(var N=M.next(),D=this._segStrings.iterator();D.hasNext();){var t=D.next();this.checkInteriorIntersections(N,t)}else if(2===arguments.length)for(var i=arguments[0],e=arguments[1],j=i.getCoordinates(),T=e.getCoordinates(),g=0;g<j.length-1;g++)for(var u=0;u<T.length-1;u++)this.checkInteriorIntersections(i,g,e,u);else if(4===arguments.length){var s=arguments[0],L=arguments[1],I=arguments[2],A=arguments[3];if(s===I&&L===A)return null;var z=s.getCoordinates()[L],n=s.getCoordinates()[L+1],w=I.getCoordinates()[A],r=I.getCoordinates()[A+1];if(this._li.computeIntersection(z,n,w,r),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,z,n)||this.hasInteriorIntersection(this._li,w,r)))throw new Jg("found non-noded intersection at "+z+"-"+n+" and "+w+"-"+r)}},DI.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},DI.prototype.checkCollapses=function(){if(0===arguments.length)for(var M=this._segStrings.iterator();M.hasNext();){var N=M.next();this.checkCollapses(N)}else if(1===arguments.length)for(var D=arguments[0].getCoordinates(),t=0;t<D.length-2;t++)this.checkCollapse(D[t],D[t+1],D[t+2])},DI.prototype.hasInteriorIntersection=function(M,N,D){for(var t=0;t<M.getIntersectionNum();t++){var i=M.getIntersection(t);if(!i.equals(N)&&!i.equals(D))return!0}return!1},DI.prototype.checkCollapse=function(M,N,D){if(M.equals(D))throw new Jg("found non-noded collapse at "+DI.fact.createLineString([M,N,D]))},DI.prototype.interfaces_=function(){return[]},DI.prototype.getClass=function(){return DI},tI.fact.get=function(){return new ns},Object.defineProperties(DI,tI);var iI=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var M=arguments[0],N=arguments[1],D=arguments[2];if(this._originalPt=M,this._pt=M,this._scaleFactor=N,this._li=D,N<=0)throw new ng("Scale factor must be non-zero");1!==N&&(this._pt=new Eg(this.scale(M.x),this.scale(M.y)),this._p0Scaled=new Eg,this._p1Scaled=new Eg),this.initCorners(this._pt)},eI={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};iI.prototype.intersectsScaled=function(M,N){var D=Math.min(M.x,N.x),t=Math.max(M.x,N.x),i=Math.min(M.y,N.y),e=Math.max(M.y,N.y),j=this._maxx<D||this._minx>t||this._maxy<i||this._miny>e;if(j)return!1;var T=this.intersectsToleranceSquare(M,N);return Kg.isTrue(!(j&&T),"Found bad envelope test"),T},iI.prototype.initCorners=function(M){this._minx=M.x-.5,this._maxx=M.x+.5,this._miny=M.y-.5,this._maxy=M.y+.5,this._corner[0]=new Eg(this._maxx,this._maxy),this._corner[1]=new Eg(this._minx,this._maxy),this._corner[2]=new Eg(this._minx,this._miny),this._corner[3]=new Eg(this._maxx,this._miny)},iI.prototype.intersects=function(M,N){return 1===this._scaleFactor?this.intersectsScaled(M,N):(this.copyScaled(M,this._p0Scaled),this.copyScaled(N,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},iI.prototype.scale=function(M){return Math.round(M*this._scaleFactor)},iI.prototype.getCoordinate=function(){return this._originalPt},iI.prototype.copyScaled=function(M,N){N.x=this.scale(M.x),N.y=this.scale(M.y)},iI.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var M=iI.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new Rg(this._originalPt.x-M,this._originalPt.x+M,this._originalPt.y-M,this._originalPt.y+M)}return this._safeEnv},iI.prototype.intersectsPixelClosure=function(M,N){return this._li.computeIntersection(M,N,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(M,N,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(M,N,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(M,N,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},iI.prototype.intersectsToleranceSquare=function(M,N){var D=!1,t=!1;return this._li.computeIntersection(M,N,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(M,N,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(D=!0),this._li.computeIntersection(M,N,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(t=!0),this._li.computeIntersection(M,N,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!D||!t)||!!M.equals(this._pt)||!!N.equals(this._pt))))},iI.prototype.addSnappedNode=function(M,N){var D=M.getCoordinate(N),t=M.getCoordinate(N+1);return!!this.intersects(D,t)&&(M.addIntersection(this.getCoordinate(),N),!0)},iI.prototype.interfaces_=function(){return[]},iI.prototype.getClass=function(){return iI},eI.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(iI,eI);var jI=function(){this.tempEnv1=new Rg,this.selectedSegment=new IL};jI.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var M=arguments[0],N=arguments[1];M.getLineSegment(N,this.selectedSegment),this.select(this.selectedSegment)}},jI.prototype.interfaces_=function(){return[]},jI.prototype.getClass=function(){return jI};var TI=function(){this._index=null;var M=arguments[0];this._index=M},gI={HotPixelSnapAction:{configurable:!0}};TI.prototype.snap=function(){if(1===arguments.length){var M=arguments[0];return this.snap(M,null,-1)}if(3===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2],i=N.getSafeEnvelope(),e=new uI(N,D,t);return this._index.query(i,{interfaces_:function(){return[_s]},visitItem:function(M){M.select(i,e)}}),e.isNodeAdded()}},TI.prototype.interfaces_=function(){return[]},TI.prototype.getClass=function(){return TI},gI.HotPixelSnapAction.get=function(){return uI},Object.defineProperties(TI,gI);var uI=function(M){function N(){M.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var N=arguments[0],D=arguments[1],t=arguments[2];this._hotPixel=N,this._parentEdge=D,this._hotPixelVertexIndex=t}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.isNodeAdded=function(){return this._isNodeAdded},N.prototype.select=function(){if(2!==arguments.length)return M.prototype.select.apply(this,arguments);var N=arguments[0],D=arguments[1],t=N.getContext();if(null!==this._parentEdge&&t===this._parentEdge&&D===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(t,D)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(jI),sI=function(){this._li=null,this._interiorIntersections=null;var M=arguments[0];this._li=M,this._interiorIntersections=new Eu};sI.prototype.processIntersections=function(M,N,D,t){if(M===D&&N===t)return null;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];if(this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var g=0;g<this._li.getIntersectionNum();g++)this._interiorIntersections.add(this._li.getIntersection(g));M.addIntersections(this._li,N,0),D.addIntersections(this._li,t,1)}},sI.prototype.isDone=function(){return!1},sI.prototype.getInteriorIntersections=function(){return this._interiorIntersections},sI.prototype.interfaces_=function(){return[XL]},sI.prototype.getClass=function(){return sI};var LI=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var M=arguments[0];this._pm=M,this._li=new Nu,this._li.setPrecisionModel(M),this._scaleFactor=M.getScale()};LI.prototype.checkCorrectness=function(M){var N=LL.getNodedSubstrings(M),D=new DI(N);try{D.checkValid()}catch(M){if(!(M instanceof bg))throw M;M.printStackTrace()}},LI.prototype.getNodedSubstrings=function(){return LL.getNodedSubstrings(this._nodedSegStrings)},LI.prototype.snapRound=function(M,N){var D=this.findInteriorIntersections(M,N);this.computeIntersectionSnaps(D),this.computeVertexSnaps(M)},LI.prototype.findInteriorIntersections=function(M,N){var D=new sI(N);return this._noder.setSegmentIntersector(D),this._noder.computeNodes(M),D.getInteriorIntersections()},LI.prototype.computeVertexSnaps=function(){if(lg(arguments[0],ru))for(var M=arguments[0].iterator();M.hasNext();){var N=M.next();this.computeVertexSnaps(N)}else if(arguments[0]instanceof LL)for(var D=arguments[0],t=D.getCoordinates(),i=0;i<t.length;i++){var e=new iI(t[i],this._scaleFactor,this._li);this._pointSnapper.snap(e,D,i)&&D.addIntersection(t[i],i)}},LI.prototype.computeNodes=function(M){this._nodedSegStrings=M,this._noder=new cL,this._pointSnapper=new TI(this._noder.getIndex()),this.snapRound(M,this._li)},LI.prototype.computeIntersectionSnaps=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next(),t=new iI(D,this._scaleFactor,this._li);this._pointSnapper.snap(t)}},LI.prototype.interfaces_=function(){return[rL]},LI.prototype.getClass=function(){return LI};var II=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new EL,this._resultGeometry=null,this._saveException=null,1===arguments.length){var M=arguments[0];this._argGeom=M}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this._argGeom=N,this._bufParams=D}},AI={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};II.prototype.bufferFixedPrecision=function(M){var N=new NI(new LI(new Ls(1)),M.getScale()),D=new MI(this._bufParams);D.setWorkingPrecisionModel(M),D.setNoder(N),this._resultGeometry=D.buffer(this._argGeom,this._distance)},II.prototype.bufferReducedPrecision=function(){var M=this;if(0===arguments.length){for(var N=II.MAX_PRECISION_DIGITS;N>=0;N--){try{M.bufferReducedPrecision(N)}catch(N){if(!(N instanceof Ss))throw N;M._saveException=N}if(null!==M._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var D=arguments[0],t=II.precisionScaleFactor(this._argGeom,this._distance,D),i=new Ls(t);this.bufferFixedPrecision(i)}},II.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var M=this._argGeom.getFactory().getPrecisionModel();M.getType()===Ls.FIXED?this.bufferFixedPrecision(M):this.bufferReducedPrecision()},II.prototype.setQuadrantSegments=function(M){this._bufParams.setQuadrantSegments(M)},II.prototype.bufferOriginalPrecision=function(){try{var M=new MI(this._bufParams);this._resultGeometry=M.buffer(this._argGeom,this._distance)}catch(M){if(!(M instanceof Jg))throw M;this._saveException=M}},II.prototype.getResultGeometry=function(M){return this._distance=M,this.computeGeometry(),this._resultGeometry},II.prototype.setEndCapStyle=function(M){this._bufParams.setEndCapStyle(M)},II.prototype.interfaces_=function(){return[]},II.prototype.getClass=function(){return II},II.bufferOp=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return new II(M).getResultGeometry(N)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Tu&&"number"==typeof arguments[1]){var D=arguments[0],t=arguments[1],i=arguments[2],e=new II(D);return e.setQuadrantSegments(i),e.getResultGeometry(t)}if(arguments[2]instanceof EL&&arguments[0]instanceof Tu&&"number"==typeof arguments[1]){var j=arguments[0],T=arguments[1],g=arguments[2];return new II(j,g).getResultGeometry(T)}}else if(4===arguments.length){var u=arguments[0],s=arguments[1],L=arguments[2],I=arguments[3],A=new II(u);return A.setQuadrantSegments(L),A.setEndCapStyle(I),A.getResultGeometry(s)}},II.precisionScaleFactor=function(M,N,D){var t=M.getEnvelopeInternal(),i=kg.max(Math.abs(t.getMaxX()),Math.abs(t.getMaxY()),Math.abs(t.getMinX()),Math.abs(t.getMinY()))+2*(N>0?N:0),e=D-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,e)},AI.CAP_ROUND.get=function(){return EL.CAP_ROUND},AI.CAP_BUTT.get=function(){return EL.CAP_FLAT},AI.CAP_FLAT.get=function(){return EL.CAP_FLAT},AI.CAP_SQUARE.get=function(){return EL.CAP_SQUARE},AI.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(II,AI);var zI=function(){this._pt=[new Eg,new Eg],this._distance=wg.NaN,this._isNull=!0};zI.prototype.getCoordinates=function(){return this._pt},zI.prototype.getCoordinate=function(M){return this._pt[M]},zI.prototype.setMinimum=function(){if(1===arguments.length){var M=arguments[0];this.setMinimum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t<this._distance&&this.initialize(N,D,t)}},zI.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var M=arguments[0],N=arguments[1];this._pt[0].setCoordinate(M),this._pt[1].setCoordinate(N),this._distance=M.distance(N),this._isNull=!1}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this._pt[0].setCoordinate(D),this._pt[1].setCoordinate(t),this._distance=i,this._isNull=!1}},zI.prototype.getDistance=function(){return this._distance},zI.prototype.setMaximum=function(){if(1===arguments.length){var M=arguments[0];this.setMaximum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t>this._distance&&this.initialize(N,D,t)}},zI.prototype.interfaces_=function(){return[]},zI.prototype.getClass=function(){return zI};var nI=function(){};nI.prototype.interfaces_=function(){return[]},nI.prototype.getClass=function(){return nI},nI.computeDistance=function(){if(arguments[2]instanceof zI&&arguments[0]instanceof _u&&arguments[1]instanceof Eg)for(var M=arguments[0],N=arguments[1],D=arguments[2],t=M.getCoordinates(),i=new IL,e=0;e<t.length-1;e++){i.setCoordinates(t[e],t[e+1]);var j=i.closestPoint(N);D.setMinimum(j,N)}else if(arguments[2]instanceof zI&&arguments[0]instanceof qu&&arguments[1]instanceof Eg){var T=arguments[0],g=arguments[1],u=arguments[2];nI.computeDistance(T.getExteriorRing(),g,u);for(var s=0;s<T.getNumInteriorRing();s++)nI.computeDistance(T.getInteriorRingN(s),g,u)}else if(arguments[2]instanceof zI&&arguments[0]instanceof Tu&&arguments[1]instanceof Eg){var L=arguments[0],I=arguments[1],A=arguments[2];if(L instanceof _u)nI.computeDistance(L,I,A);else if(L instanceof qu)nI.computeDistance(L,I,A);else if(L instanceof Pu)for(var z=L,n=0;n<z.getNumGeometries();n++){var w=z.getGeometryN(n);nI.computeDistance(w,I,A)}else A.setMinimum(L.getCoordinate(),I)}else if(arguments[2]instanceof zI&&arguments[0]instanceof IL&&arguments[1]instanceof Eg){var r=arguments[0],y=arguments[1],c=arguments[2],a=r.closestPoint(y);c.setMinimum(a,y)}};var wI=function(M){this._maxPtDist=new zI,this._inputGeom=M||null},rI={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};wI.prototype.computeMaxMidpointDistance=function(M){var N=new cI(this._inputGeom);M.apply(N),this._maxPtDist.setMaximum(N.getMaxPointDistance())},wI.prototype.computeMaxVertexDistance=function(M){var N=new yI(this._inputGeom);M.apply(N),this._maxPtDist.setMaximum(N.getMaxPointDistance())},wI.prototype.findDistance=function(M){return this.computeMaxVertexDistance(M),this.computeMaxMidpointDistance(M),this._maxPtDist.getDistance()},wI.prototype.getDistancePoints=function(){return this._maxPtDist},wI.prototype.interfaces_=function(){return[]},wI.prototype.getClass=function(){return wI},rI.MaxPointDistanceFilter.get=function(){return yI},rI.MaxMidpointDistanceFilter.get=function(){return cI},Object.defineProperties(wI,rI);var yI=function(M){this._maxPtDist=new zI,this._minPtDist=new zI,this._geom=M||null};yI.prototype.filter=function(M){this._minPtDist.initialize(),nI.computeDistance(this._geom,M,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},yI.prototype.getMaxPointDistance=function(){return this._maxPtDist},yI.prototype.interfaces_=function(){return[su]},yI.prototype.getClass=function(){return yI};var cI=function(M){this._maxPtDist=new zI,this._minPtDist=new zI,this._geom=M||null};cI.prototype.filter=function(M,N){if(0===N)return null;var D=M.getCoordinate(N-1),t=M.getCoordinate(N),i=new Eg((D.x+t.x)/2,(D.y+t.y)/2);this._minPtDist.initialize(),nI.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},cI.prototype.isDone=function(){return!1},cI.prototype.isGeometryChanged=function(){return!1},cI.prototype.getMaxPointDistance=function(){return this._maxPtDist},cI.prototype.interfaces_=function(){return[bu]},cI.prototype.getClass=function(){return cI};var aI=function(M){this._comps=M||null};aI.prototype.filter=function(M){M instanceof qu&&this._comps.add(M)},aI.prototype.interfaces_=function(){return[Bu]},aI.prototype.getClass=function(){return aI},aI.getPolygons=function(){if(1===arguments.length){var M=arguments[0];return aI.getPolygons(M,new Eu)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N instanceof qu?D.add(N):N instanceof Pu&&N.apply(new aI(D)),D}};var EI=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var M=arguments[0];this._lines=M}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this._lines=N,this._isForcedToLineString=D}};EI.prototype.filter=function(M){if(this._isForcedToLineString&&M instanceof $u){var N=M.getFactory().createLineString(M.getCoordinateSequence());return this._lines.add(N),null}M instanceof _u&&this._lines.add(M)},EI.prototype.setForceToLineString=function(M){this._isForcedToLineString=M},EI.prototype.interfaces_=function(){return[ju]},EI.prototype.getClass=function(){return EI},EI.getGeometry=function(){if(1===arguments.length){var M=arguments[0];return M.getFactory().buildGeometry(EI.getLines(M))}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N.getFactory().buildGeometry(EI.getLines(N,D))}},EI.getLines=function(){if(1===arguments.length){var M=arguments[0];return EI.getLines(M,!1)}if(2===arguments.length){if(lg(arguments[0],ru)&&lg(arguments[1],ru)){for(var N=arguments[0],D=arguments[1],t=N.iterator();t.hasNext();){var i=t.next();EI.getLines(i,D)}return D}if(arguments[0]instanceof Tu&&"boolean"==typeof arguments[1]){var e=arguments[0],j=arguments[1],T=new Eu;return e.apply(new EI(T,j)),T}if(arguments[0]instanceof Tu&&lg(arguments[1],ru)){var g=arguments[0],u=arguments[1];return g instanceof _u?u.add(g):g.apply(new EI(u)),u}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&lg(arguments[0],ru)&&lg(arguments[1],ru)){for(var s=arguments[0],L=arguments[1],I=arguments[2],A=s.iterator();A.hasNext();){var z=A.next();EI.getLines(z,L,I)}return L}if("boolean"==typeof arguments[2]&&arguments[0]instanceof Tu&&lg(arguments[1],ru)){var n=arguments[0],w=arguments[1],r=arguments[2];return n.apply(new EI(w,r)),w}}};var oI=function(){if(this._boundaryRule=Lu.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var M=arguments[0];if(null===M)throw new ng("Rule must be non-null");this._boundaryRule=M}};oI.prototype.locateInternal=function(){if(arguments[0]instanceof Eg&&arguments[1]instanceof qu){var M=arguments[0],N=arguments[1];if(N.isEmpty())return Cg.EXTERIOR;var D=N.getExteriorRing(),t=this.locateInPolygonRing(M,D);if(t===Cg.EXTERIOR)return Cg.EXTERIOR;if(t===Cg.BOUNDARY)return Cg.BOUNDARY;for(var i=0;i<N.getNumInteriorRing();i++){var e=N.getInteriorRingN(i),j=this.locateInPolygonRing(M,e);if(j===Cg.INTERIOR)return Cg.EXTERIOR;if(j===Cg.BOUNDARY)return Cg.BOUNDARY}return Cg.INTERIOR}if(arguments[0]instanceof Eg&&arguments[1]instanceof _u){var T=arguments[0],g=arguments[1];if(!g.getEnvelopeInternal().intersects(T))return Cg.EXTERIOR;var u=g.getCoordinates();return g.isClosed()||!T.equals(u[0])&&!T.equals(u[u.length-1])?iu.isOnLine(T,u)?Cg.INTERIOR:Cg.EXTERIOR:Cg.BOUNDARY}if(arguments[0]instanceof Eg&&arguments[1]instanceof Vu){var s=arguments[0];return arguments[1].getCoordinate().equals2D(s)?Cg.INTERIOR:Cg.EXTERIOR}},oI.prototype.locateInPolygonRing=function(M,N){return N.getEnvelopeInternal().intersects(M)?iu.locatePointInRing(M,N.getCoordinates()):Cg.EXTERIOR},oI.prototype.intersects=function(M,N){return this.locate(M,N)!==Cg.EXTERIOR},oI.prototype.updateLocationInfo=function(M){M===Cg.INTERIOR&&(this._isIn=!0),M===Cg.BOUNDARY&&this._numBoundaries++},oI.prototype.computeLocation=function(M,N){if(N instanceof Vu&&this.updateLocationInfo(this.locateInternal(M,N)),N instanceof _u)this.updateLocationInfo(this.locateInternal(M,N));else if(N instanceof qu)this.updateLocationInfo(this.locateInternal(M,N));else if(N instanceof Zu)for(var D=N,t=0;t<D.getNumGeometries();t++){var i=D.getGeometryN(t);this.updateLocationInfo(this.locateInternal(M,i))}else if(N instanceof Ms)for(var e=N,j=0;j<e.getNumGeometries();j++){var T=e.getGeometryN(j);this.updateLocationInfo(this.locateInternal(M,T))}else if(N instanceof Pu)for(var g=new BL(N);g.hasNext();){var u=g.next();u!==N&&this.computeLocation(M,u)}},oI.prototype.locate=function(M,N){return N.isEmpty()?Cg.EXTERIOR:N instanceof _u||N instanceof qu?this.locateInternal(M,N):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(M,N),this._boundaryRule.isInBoundary(this._numBoundaries)?Cg.BOUNDARY:this._numBoundaries>0||this._isIn?Cg.INTERIOR:Cg.EXTERIOR)},oI.prototype.interfaces_=function(){return[]},oI.prototype.getClass=function(){return oI};var OI=function M(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var N=arguments[0],D=arguments[1];M.call(this,N,M.INSIDE_AREA,D)}else if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];this._component=t,this._segIndex=i,this._pt=e}},xI={INSIDE_AREA:{configurable:!0}};OI.prototype.isInsideArea=function(){return this._segIndex===OI.INSIDE_AREA},OI.prototype.getCoordinate=function(){return this._pt},OI.prototype.getGeometryComponent=function(){return this._component},OI.prototype.getSegmentIndex=function(){return this._segIndex},OI.prototype.interfaces_=function(){return[]},OI.prototype.getClass=function(){return OI},xI.INSIDE_AREA.get=function(){return-1},Object.defineProperties(OI,xI);var CI=function(M){this._pts=M||null};CI.prototype.filter=function(M){M instanceof Vu&&this._pts.add(M)},CI.prototype.interfaces_=function(){return[Bu]},CI.prototype.getClass=function(){return CI},CI.getPoints=function(){if(1===arguments.length){var M=arguments[0];return M instanceof Vu?qs.singletonList(M):CI.getPoints(M,new Eu)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N instanceof Vu?D.add(N):N instanceof Pu&&N.apply(new CI(D)),D}};var SI=function(){this._locations=null;var M=arguments[0];this._locations=M};SI.prototype.filter=function(M){(M instanceof Vu||M instanceof _u||M instanceof qu)&&this._locations.add(new OI(M,0,M.getCoordinate()))},SI.prototype.interfaces_=function(){return[Bu]},SI.prototype.getClass=function(){return SI},SI.getLocations=function(M){var N=new Eu;return M.apply(new SI(N)),N};var lI=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new oI,this._minDistanceLocation=null,this._minDistance=wg.MAX_VALUE,2===arguments.length){var M=arguments[0],N=arguments[1];this._geom=[M,N],this._terminateDistance=0}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=D,this._geom[1]=t,this._terminateDistance=i}};lI.prototype.computeContainmentDistance=function(){if(0===arguments.length){var M=new Array(2).fill(null);if(this.computeContainmentDistance(0,M),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1],t=1-N,i=aI.getPolygons(this._geom[N]);if(i.size()>0){var e=SI.getLocations(this._geom[t]);if(this.computeContainmentDistance(e,i,D),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[t]=D[0],this._minDistanceLocation[N]=D[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&lg(arguments[0],au)&&lg(arguments[1],au)){for(var j=arguments[0],T=arguments[1],g=arguments[2],u=0;u<j.size();u++)for(var s=j.get(u),L=0;L<T.size();L++)if(this.computeContainmentDistance(s,T.get(L),g),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof OI&&arguments[1]instanceof qu){var I=arguments[0],A=arguments[1],z=arguments[2],n=I.getCoordinate();if(Cg.EXTERIOR!==this._ptLocator.locate(n,A))return this._minDistance=0,z[0]=I,z[1]=new OI(A,n),null}},lI.prototype.computeMinDistanceLinesPoints=function(M,N,D){for(var t=0;t<M.size();t++)for(var i=M.get(t),e=0;e<N.size();e++){var j=N.get(e);if(this.computeMinDistance(i,j,D),this._minDistance<=this._terminateDistance)return null}},lI.prototype.computeFacetDistance=function(){var M=new Array(2).fill(null),N=EI.getLines(this._geom[0]),D=EI.getLines(this._geom[1]),t=CI.getPoints(this._geom[0]),i=CI.getPoints(this._geom[1]);return this.computeMinDistanceLines(N,D,M),this.updateMinDistance(M,!1),this._minDistance<=this._terminateDistance?null:(M[0]=null,M[1]=null,this.computeMinDistanceLinesPoints(N,i,M),this.updateMinDistance(M,!1),this._minDistance<=this._terminateDistance?null:(M[0]=null,M[1]=null,this.computeMinDistanceLinesPoints(D,t,M),this.updateMinDistance(M,!0),this._minDistance<=this._terminateDistance?null:(M[0]=null,M[1]=null,this.computeMinDistancePoints(t,i,M),void this.updateMinDistance(M,!1))))},lI.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},lI.prototype.updateMinDistance=function(M,N){if(null===M[0])return null;N?(this._minDistanceLocation[0]=M[1],this._minDistanceLocation[1]=M[0]):(this._minDistanceLocation[0]=M[0],this._minDistanceLocation[1]=M[1])},lI.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},lI.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof _u&&arguments[1]instanceof Vu){var M=arguments[0],N=arguments[1],D=arguments[2];if(M.getEnvelopeInternal().distance(N.getEnvelopeInternal())>this._minDistance)return null;for(var t=M.getCoordinates(),i=N.getCoordinate(),e=0;e<t.length-1;e++){var j=iu.distancePointLine(i,t[e],t[e+1]);if(j<this._minDistance){this._minDistance=j;var T=new IL(t[e],t[e+1]).closestPoint(i);D[0]=new OI(M,e,T),D[1]=new OI(N,0,i)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof _u&&arguments[1]instanceof _u){var g=arguments[0],u=arguments[1],s=arguments[2];if(g.getEnvelopeInternal().distance(u.getEnvelopeInternal())>this._minDistance)return null;for(var L=g.getCoordinates(),I=u.getCoordinates(),A=0;A<L.length-1;A++)for(var z=0;z<I.length-1;z++){var n=iu.distanceLineLine(L[A],L[A+1],I[z],I[z+1]);if(n<this._minDistance){this._minDistance=n;var w=new IL(L[A],L[A+1]),r=new IL(I[z],I[z+1]),y=w.closestPoints(r);s[0]=new OI(g,A,y[0]),s[1]=new OI(u,z,y[1])}if(this._minDistance<=this._terminateDistance)return null}}},lI.prototype.computeMinDistancePoints=function(M,N,D){for(var t=0;t<M.size();t++)for(var i=M.get(t),e=0;e<N.size();e++){var j=N.get(e),T=i.getCoordinate().distance(j.getCoordinate());if(T<this._minDistance&&(this._minDistance=T,D[0]=new OI(i,0,i.getCoordinate()),D[1]=new OI(j,0,j.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},lI.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new ng("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},lI.prototype.computeMinDistanceLines=function(M,N,D){for(var t=0;t<M.size();t++)for(var i=M.get(t),e=0;e<N.size();e++){var j=N.get(e);if(this.computeMinDistance(i,j,D),this._minDistance<=this._terminateDistance)return null}},lI.prototype.interfaces_=function(){return[]},lI.prototype.getClass=function(){return lI},lI.distance=function(M,N){return new lI(M,N).distance()},lI.isWithinDistance=function(M,N,D){return new lI(M,N,D).distance()<=D},lI.nearestPoints=function(M,N){return new lI(M,N).nearestPoints()};var kI=function(){this._pt=[new Eg,new Eg],this._distance=wg.NaN,this._isNull=!0};kI.prototype.getCoordinates=function(){return this._pt},kI.prototype.getCoordinate=function(M){return this._pt[M]},kI.prototype.setMinimum=function(){if(1===arguments.length){var M=arguments[0];this.setMinimum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t<this._distance&&this.initialize(N,D,t)}},kI.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var M=arguments[0],N=arguments[1];this._pt[0].setCoordinate(M),this._pt[1].setCoordinate(N),this._distance=M.distance(N),this._isNull=!1}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this._pt[0].setCoordinate(D),this._pt[1].setCoordinate(t),this._distance=i,this._isNull=!1}},kI.prototype.toString=function(){return Vg.toLineString(this._pt[0],this._pt[1])},kI.prototype.getDistance=function(){return this._distance},kI.prototype.setMaximum=function(){if(1===arguments.length){var M=arguments[0];this.setMaximum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t>this._distance&&this.initialize(N,D,t)}},kI.prototype.interfaces_=function(){return[]},kI.prototype.getClass=function(){return kI};var QI=function(){};QI.prototype.interfaces_=function(){return[]},QI.prototype.getClass=function(){return QI},QI.computeDistance=function(){if(arguments[2]instanceof kI&&arguments[0]instanceof _u&&arguments[1]instanceof Eg)for(var M=arguments[0],N=arguments[1],D=arguments[2],t=new IL,i=M.getCoordinates(),e=0;e<i.length-1;e++){t.setCoordinates(i[e],i[e+1]);var j=t.closestPoint(N);D.setMinimum(j,N)}else if(arguments[2]instanceof kI&&arguments[0]instanceof qu&&arguments[1]instanceof Eg){var T=arguments[0],g=arguments[1],u=arguments[2];QI.computeDistance(T.getExteriorRing(),g,u);for(var s=0;s<T.getNumInteriorRing();s++)QI.computeDistance(T.getInteriorRingN(s),g,u)}else if(arguments[2]instanceof kI&&arguments[0]instanceof Tu&&arguments[1]instanceof Eg){var L=arguments[0],I=arguments[1],A=arguments[2];if(L instanceof _u)QI.computeDistance(L,I,A);else if(L instanceof qu)QI.computeDistance(L,I,A);else if(L instanceof Pu)for(var z=L,n=0;n<z.getNumGeometries();n++){var w=z.getGeometryN(n);QI.computeDistance(w,I,A)}else A.setMinimum(L.getCoordinate(),I)}else if(arguments[2]instanceof kI&&arguments[0]instanceof IL&&arguments[1]instanceof Eg){var r=arguments[0],y=arguments[1],c=arguments[2],a=r.closestPoint(y);c.setMinimum(a,y)}};var dI=function(){this._g0=null,this._g1=null,this._ptDist=new kI,this._densifyFrac=0;var M=arguments[0],N=arguments[1];this._g0=M,this._g1=N},YI={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};dI.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},dI.prototype.setDensifyFraction=function(M){if(M>1||M<=0)throw new ng("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=M},dI.prototype.compute=function(M,N){this.computeOrientedDistance(M,N,this._ptDist),this.computeOrientedDistance(N,M,this._ptDist)},dI.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},dI.prototype.computeOrientedDistance=function(M,N,D){var t=new UI(N);if(M.apply(t),D.setMaximum(t.getMaxPointDistance()),this._densifyFrac>0){var i=new pI(N,this._densifyFrac);M.apply(i),D.setMaximum(i.getMaxPointDistance())}},dI.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},dI.prototype.interfaces_=function(){return[]},dI.prototype.getClass=function(){return dI},dI.distance=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return new dI(M,N).distance()}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=new dI(D,t);return e.setDensifyFraction(i),e.distance()}},YI.MaxPointDistanceFilter.get=function(){return UI},YI.MaxDensifiedByFractionDistanceFilter.get=function(){return pI},Object.defineProperties(dI,YI);var UI=function(){this._maxPtDist=new kI,this._minPtDist=new kI,this._euclideanDist=new QI,this._geom=null;var M=arguments[0];this._geom=M};UI.prototype.filter=function(M){this._minPtDist.initialize(),QI.computeDistance(this._geom,M,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},UI.prototype.getMaxPointDistance=function(){return this._maxPtDist},UI.prototype.interfaces_=function(){return[su]},UI.prototype.getClass=function(){return UI};var pI=function(){this._maxPtDist=new kI,this._minPtDist=new kI,this._geom=null,this._numSubSegs=0;var M=arguments[0],N=arguments[1];this._geom=M,this._numSubSegs=Math.trunc(Math.round(1/N))};pI.prototype.filter=function(M,N){if(0===N)return null;for(var D=M.getCoordinate(N-1),t=M.getCoordinate(N),i=(t.x-D.x)/this._numSubSegs,e=(t.y-D.y)/this._numSubSegs,j=0;j<this._numSubSegs;j++){var T=D.x+j*i,g=D.y+j*e,u=new Eg(T,g);this._minPtDist.initialize(),QI.computeDistance(this._geom,u,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},pI.prototype.isDone=function(){return!1},pI.prototype.isGeometryChanged=function(){return!1},pI.prototype.getMaxPointDistance=function(){return this._maxPtDist},pI.prototype.interfaces_=function(){return[bu]},pI.prototype.getClass=function(){return pI};var hI=function(M,N,D){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=M||null,this._bufDistance=N||null,this._result=D||null},fI={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};hI.prototype.checkMaximumDistance=function(M,N,D){var t=new dI(N,M);if(t.setDensifyFraction(.25),this._maxDistanceFound=t.orientedDistance(),this._maxDistanceFound>D){this._isValid=!1;var i=t.getCoordinates();this._errorLocation=i[1],this._errorIndicator=M.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Vg.toLineString(i[0],i[1])+")"}},hI.prototype.isValid=function(){var M=Math.abs(this._bufDistance),N=hI.MAX_DISTANCE_DIFF_FRAC*M;return this._minValidDistance=M-N,this._maxValidDistance=M+N,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),hI.VERBOSE&&Zg.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},hI.prototype.checkNegativeValid=function(){if(!(this._input instanceof qu||this._input instanceof Ms||this._input instanceof Pu))return null;var M=this.getPolygonLines(this._input);if(this.checkMinimumDistance(M,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(M,this._result,this._maxValidDistance)},hI.prototype.getErrorIndicator=function(){return this._errorIndicator},hI.prototype.checkMinimumDistance=function(M,N,D){var t=new lI(M,N,D);if(this._minDistanceFound=t.distance(),this._minDistanceFound<D){this._isValid=!1;var i=t.nearestPoints();this._errorLocation=t.nearestPoints()[1],this._errorIndicator=M.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+Vg.toLineString(i[0],i[1])+" )"}},hI.prototype.checkPositiveValid=function(){var M=this._result.getBoundary();if(this.checkMinimumDistance(this._input,M,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,M,this._maxValidDistance)},hI.prototype.getErrorLocation=function(){return this._errorLocation},hI.prototype.getPolygonLines=function(M){for(var N=new Eu,D=new EI(N),t=aI.getPolygons(M).iterator();t.hasNext();)t.next().apply(D);return M.getFactory().buildGeometry(N)},hI.prototype.getErrorMessage=function(){return this._errMsg},hI.prototype.interfaces_=function(){return[]},hI.prototype.getClass=function(){return hI},fI.VERBOSE.get=function(){return!1},fI.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(hI,fI);var mI=function(M,N,D){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=M||null,this._distance=N||null,this._result=D||null},vI={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};mI.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},mI.prototype.checkEnvelope=function(){if(this._distance<0)return null;var M=this._distance*mI.MAX_ENV_DIFF_FRAC;0===M&&(M=.001);var N=new Rg(this._input.getEnvelopeInternal());N.expandBy(this._distance);var D=new Rg(this._result.getEnvelopeInternal());D.expandBy(M),D.contains(N)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(D)),this.report("Envelope")},mI.prototype.checkDistance=function(){var M=new hI(this._input,this._distance,this._result);M.isValid()||(this._isValid=!1,this._errorMsg=M.getErrorMessage(),this._errorLocation=M.getErrorLocation(),this._errorIndicator=M.getErrorIndicator()),this.report("Distance")},mI.prototype.checkArea=function(){var M=this._input.getArea(),N=this._result.getArea();this._distance>0&&M>N&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&M<N&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},mI.prototype.checkPolygonal=function(){this._result instanceof qu||this._result instanceof Ms||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},mI.prototype.getErrorIndicator=function(){return this._errorIndicator},mI.prototype.getErrorLocation=function(){return this._errorLocation},mI.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},mI.prototype.report=function(M){if(!mI.VERBOSE)return null;Zg.out.println("Check "+M+": "+(this._isValid?"passed":"FAILED"))},mI.prototype.getErrorMessage=function(){return this._errorMsg},mI.prototype.interfaces_=function(){return[]},mI.prototype.getClass=function(){return mI},mI.isValidMsg=function(M,N,D){var t=new mI(M,N,D);return t.isValid()?null:t.getErrorMessage()},mI.isValid=function(M,N,D){return!!new mI(M,N,D).isValid()},vI.VERBOSE.get=function(){return!1},vI.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(mI,vI);var BI=function(){this._pts=null,this._data=null;var M=arguments[0],N=arguments[1];this._pts=M,this._data=N};BI.prototype.getCoordinates=function(){return this._pts},BI.prototype.size=function(){return this._pts.length},BI.prototype.getCoordinate=function(M){return this._pts[M]},BI.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},BI.prototype.getSegmentOctant=function(M){return M===this._pts.length-1?-1:gL.octant(this.getCoordinate(M),this.getCoordinate(M+1))},BI.prototype.setData=function(M){this._data=M},BI.prototype.getData=function(){return this._data},BI.prototype.toString=function(){return Vg.toLineString(new js(this._pts))},BI.prototype.interfaces_=function(){return[uL]},BI.prototype.getClass=function(){return BI};var bI=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new Eu,this._intersectionCount=0,this._keepIntersections=!0;var M=arguments[0];this._li=M,this._interiorIntersection=null};bI.prototype.getInteriorIntersection=function(){return this._interiorIntersection},bI.prototype.setCheckEndSegmentsOnly=function(M){this._isCheckEndSegmentsOnly=M},bI.prototype.getIntersectionSegments=function(){return this._intSegments},bI.prototype.count=function(){return this._intersectionCount},bI.prototype.getIntersections=function(){return this._intersections},bI.prototype.setFindAllIntersections=function(M){this._findAllIntersections=M},bI.prototype.setKeepIntersections=function(M){this._keepIntersections=M},bI.prototype.processIntersections=function(M,N,D,t){if(!this._findAllIntersections&&this.hasIntersection())return null;if(M===D&&N===t)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(M,N)&&!this.isEndSegment(D,t))return null;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=e,this._intSegments[2]=j,this._intSegments[3]=T,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},bI.prototype.isEndSegment=function(M,N){return 0===N||N>=M.size()-2},bI.prototype.hasIntersection=function(){return null!==this._interiorIntersection},bI.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},bI.prototype.interfaces_=function(){return[XL]},bI.prototype.getClass=function(){return bI},bI.createAllIntersectionsFinder=function(M){var N=new bI(M);return N.setFindAllIntersections(!0),N},bI.createAnyIntersectionFinder=function(M){return new bI(M)},bI.createIntersectionCounter=function(M){var N=new bI(M);return N.setFindAllIntersections(!0),N.setKeepIntersections(!1),N};var PI=function(){this._li=new Nu,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var M=arguments[0];this._segStrings=M};PI.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},PI.prototype.getIntersections=function(){return this._segInt.getIntersections()},PI.prototype.isValid=function(){return this.execute(),this._isValid},PI.prototype.setFindAllIntersections=function(M){this._findAllIntersections=M},PI.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new bI(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var M=new cL;if(M.setSegmentIntersector(this._segInt),M.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},PI.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Ss(this.getErrorMessage(),this._segInt.getInteriorIntersection())},PI.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var M=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Vg.toLineString(M[0],M[1])+" and "+Vg.toLineString(M[2],M[3])},PI.prototype.interfaces_=function(){return[]},PI.prototype.getClass=function(){return PI},PI.computeIntersections=function(M){var N=new PI(M);return N.setFindAllIntersections(!0),N.isValid(),N.getIntersections()};var ZI=function M(){this._nv=null;var N=arguments[0];this._nv=new PI(M.toSegmentStrings(N))};ZI.prototype.checkValid=function(){this._nv.checkValid()},ZI.prototype.interfaces_=function(){return[]},ZI.prototype.getClass=function(){return ZI},ZI.toSegmentStrings=function(M){for(var N=new Eu,D=M.iterator();D.hasNext();){var t=D.next();N.add(new BI(t.getCoordinates(),t))}return N},ZI.checkValid=function(M){new ZI(M).checkValid()};var GI=function(M){this._mapOp=M};GI.prototype.map=function(M){for(var N=new Eu,D=0;D<M.getNumGeometries();D++){var t=this._mapOp.map(M.getGeometryN(D));t.isEmpty()||N.add(t)}return M.getFactory().createGeometryCollection(ns.toGeometryArray(N))},GI.prototype.interfaces_=function(){return[]},GI.prototype.getClass=function(){return GI},GI.map=function(M,N){return new GI(N).map(M)};var RI=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new Eu,this._resultLineList=new Eu;var M=arguments[0],N=arguments[1],D=arguments[2];this._op=M,this._geometryFactory=N,this._ptLocator=D};RI.prototype.collectLines=function(M){for(var N=this._op.getGraph().getEdgeEnds().iterator();N.hasNext();){var D=N.next();this.collectLineEdge(D,M,this._lineEdgesList),this.collectBoundaryTouchEdge(D,M,this._lineEdgesList)}},RI.prototype.labelIsolatedLine=function(M,N){var D=this._ptLocator.locate(M.getCoordinate(),this._op.getArgGeometry(N));M.getLabel().setLocation(N,D)},RI.prototype.build=function(M){return this.findCoveredLineEdges(),this.collectLines(M),this.buildLines(M),this._resultLineList},RI.prototype.collectLineEdge=function(M,N,D){var t=M.getLabel(),i=M.getEdge();M.isLineEdge()&&(M.isVisited()||!OA.isResultOfOp(t,N)||i.isCovered()||(D.add(i),M.setVisitedEdge(!0)))},RI.prototype.findCoveredLineEdges=function(){for(var M=this._op.getGraph().getNodes().iterator();M.hasNext();)M.next().getEdges().findCoveredLineEdges();for(var N=this._op.getGraph().getEdgeEnds().iterator();N.hasNext();){var D=N.next(),t=D.getEdge();if(D.isLineEdge()&&!t.isCoveredSet()){var i=this._op.isCoveredByA(D.getCoordinate());t.setCovered(i)}}},RI.prototype.labelIsolatedLines=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next(),t=D.getLabel();D.isIsolated()&&(t.isNull(0)?this.labelIsolatedLine(D,0):this.labelIsolatedLine(D,1))}},RI.prototype.buildLines=function(M){for(var N=this._lineEdgesList.iterator();N.hasNext();){var D=N.next(),t=this._geometryFactory.createLineString(D.getCoordinates());this._resultLineList.add(t),D.setInResult(!0)}},RI.prototype.collectBoundaryTouchEdge=function(M,N,D){var t=M.getLabel();return M.isLineEdge()||M.isVisited()||M.isInteriorAreaEdge()||M.getEdge().isInResult()?null:(Kg.isTrue(!(M.isInResult()||M.getSym().isInResult())||!M.getEdge().isInResult()),void(OA.isResultOfOp(t,N)&&N===OA.INTERSECTION&&(D.add(M.getEdge()),M.setVisitedEdge(!0))))},RI.prototype.interfaces_=function(){return[]},RI.prototype.getClass=function(){return RI};var WI=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new Eu;var M=arguments[0],N=arguments[1];this._op=M,this._geometryFactory=N};WI.prototype.filterCoveredNodeToPoint=function(M){var N=M.getCoordinate();if(!this._op.isCoveredByLA(N)){var D=this._geometryFactory.createPoint(N);this._resultPointList.add(D)}},WI.prototype.extractNonCoveredResultNodes=function(M){for(var N=this._op.getGraph().getNodes().iterator();N.hasNext();){var D=N.next();if(!D.isInResult()&&!D.isIncidentEdgeInResult()&&(0===D.getEdges().getDegree()||M===OA.INTERSECTION)){var t=D.getLabel();OA.isResultOfOp(t,M)&&this.filterCoveredNodeToPoint(D)}}},WI.prototype.build=function(M){return this.extractNonCoveredResultNodes(M),this._resultPointList},WI.prototype.interfaces_=function(){return[]},WI.prototype.getClass=function(){return WI};var XI=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};XI.prototype.transformPoint=function(M,N){return this._factory.createPoint(this.transformCoordinates(M.getCoordinateSequence(),M))},XI.prototype.transformPolygon=function(M,N){var D=!0,t=this.transformLinearRing(M.getExteriorRing(),M);null!==t&&t instanceof $u&&!t.isEmpty()||(D=!1);for(var i=new Eu,e=0;e<M.getNumInteriorRing();e++){var j=this.transformLinearRing(M.getInteriorRingN(e),M);null===j||j.isEmpty()||(j instanceof $u||(D=!1),i.add(j))}if(D)return this._factory.createPolygon(t,i.toArray([]));var T=new Eu;return null!==t&&T.add(t),T.addAll(i),this._factory.buildGeometry(T)},XI.prototype.createCoordinateSequence=function(M){return this._factory.getCoordinateSequenceFactory().create(M)},XI.prototype.getInputGeometry=function(){return this._inputGeom},XI.prototype.transformMultiLineString=function(M,N){for(var D=new Eu,t=0;t<M.getNumGeometries();t++){var i=this.transformLineString(M.getGeometryN(t),M);null!==i&&(i.isEmpty()||D.add(i))}return this._factory.buildGeometry(D)},XI.prototype.transformCoordinates=function(M,N){return this.copy(M)},XI.prototype.transformLineString=function(M,N){return this._factory.createLineString(this.transformCoordinates(M.getCoordinateSequence(),M))},XI.prototype.transformMultiPoint=function(M,N){for(var D=new Eu,t=0;t<M.getNumGeometries();t++){var i=this.transformPoint(M.getGeometryN(t),M);null!==i&&(i.isEmpty()||D.add(i))}return this._factory.buildGeometry(D)},XI.prototype.transformMultiPolygon=function(M,N){for(var D=new Eu,t=0;t<M.getNumGeometries();t++){var i=this.transformPolygon(M.getGeometryN(t),M);null!==i&&(i.isEmpty()||D.add(i))}return this._factory.buildGeometry(D)},XI.prototype.copy=function(M){return M.copy()},XI.prototype.transformGeometryCollection=function(M,N){for(var D=new Eu,t=0;t<M.getNumGeometries();t++){var i=this.transform(M.getGeometryN(t));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||D.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(ns.toGeometryArray(D)):this._factory.buildGeometry(D)},XI.prototype.transform=function(M){if(this._inputGeom=M,this._factory=M.getFactory(),M instanceof Vu)return this.transformPoint(M,null);if(M instanceof Ku)return this.transformMultiPoint(M,null);if(M instanceof $u)return this.transformLinearRing(M,null);if(M instanceof _u)return this.transformLineString(M,null);if(M instanceof Zu)return this.transformMultiLineString(M,null);if(M instanceof qu)return this.transformPolygon(M,null);if(M instanceof Ms)return this.transformMultiPolygon(M,null);if(M instanceof Pu)return this.transformGeometryCollection(M,null);throw new ng("Unknown Geometry subtype: "+M.getClass().getName())},XI.prototype.transformLinearRing=function(M,N){var D=this.transformCoordinates(M.getCoordinateSequence(),M);if(null===D)return this._factory.createLinearRing(null);var t=D.size();return t>0&&t<4&&!this._preserveType?this._factory.createLineString(D):this._factory.createLinearRing(D)},XI.prototype.interfaces_=function(){return[]},XI.prototype.getClass=function(){return XI};var HI=function M(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new IL,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof _u&&"number"==typeof arguments[1]){var N=arguments[0],D=arguments[1];M.call(this,N.getCoordinates(),D)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var t=arguments[0],i=arguments[1];this._srcPts=t,this._isClosed=M.isClosed(t),this._snapTolerance=i}};HI.prototype.snapVertices=function(M,N){for(var D=this._isClosed?M.size()-1:M.size(),t=0;t<D;t++){var i=M.get(t),e=this.findSnapForVertex(i,N);null!==e&&(M.set(t,new Eg(e)),0===t&&this._isClosed&&M.set(M.size()-1,new Eg(e)))}},HI.prototype.findSnapForVertex=function(M,N){for(var D=0;D<N.length;D++){if(M.equals2D(N[D]))return null;if(M.distance(N[D])<this._snapTolerance)return N[D]}return null},HI.prototype.snapTo=function(M){var N=new Ou(this._srcPts);return this.snapVertices(N,M),this.snapSegments(N,M),N.toCoordinateArray()},HI.prototype.snapSegments=function(M,N){if(0===N.length)return null;var D=N.length;N[0].equals2D(N[N.length-1])&&(D=N.length-1);for(var t=0;t<D;t++){var i=N[t],e=this.findSegmentIndexToSnap(i,M);e>=0&&M.add(e+1,new Eg(i),!1)}},HI.prototype.findSegmentIndexToSnap=function(M,N){for(var D=wg.MAX_VALUE,t=-1,i=0;i<N.size()-1;i++){if(this._seg.p0=N.get(i),this._seg.p1=N.get(i+1),this._seg.p0.equals2D(M)||this._seg.p1.equals2D(M)){if(this._allowSnappingToSourceVertices)continue;return-1}var e=this._seg.distance(M);e<this._snapTolerance&&e<D&&(D=e,t=i)}return t},HI.prototype.setAllowSnappingToSourceVertices=function(M){this._allowSnappingToSourceVertices=M},HI.prototype.interfaces_=function(){return[]},HI.prototype.getClass=function(){return HI},HI.isClosed=function(M){return!(M.length<=1)&&M[0].equals2D(M[M.length-1])};var _I=function(M){this._srcGeom=M||null},FI={SNAP_PRECISION_FACTOR:{configurable:!0}};_I.prototype.snapTo=function(M,N){var D=this.extractTargetCoordinates(M);return new VI(N,D).transform(this._srcGeom)},_I.prototype.snapToSelf=function(M,N){var D=this.extractTargetCoordinates(this._srcGeom),t=new VI(M,D,!0).transform(this._srcGeom),i=t;return N&&lg(i,Ju)&&(i=t.buffer(0)),i},_I.prototype.computeSnapTolerance=function(M){return this.computeMinimumSegmentLength(M)/10},_I.prototype.extractTargetCoordinates=function(M){for(var N=new bi,D=M.getCoordinates(),t=0;t<D.length;t++)N.add(D[t]);return N.toArray(new Array(0).fill(null))},_I.prototype.computeMinimumSegmentLength=function(M){for(var N=wg.MAX_VALUE,D=0;D<M.length-1;D++){var t=M[D].distance(M[D+1]);t<N&&(N=t)}return N},_I.prototype.interfaces_=function(){return[]},_I.prototype.getClass=function(){return _I},_I.snap=function(M,N,D){var t=new Array(2).fill(null),i=new _I(M);t[0]=i.snapTo(N,D);var e=new _I(N);return t[1]=e.snapTo(t[0],D),t},_I.computeOverlaySnapTolerance=function(){if(1===arguments.length){var M=arguments[0],N=_I.computeSizeBasedSnapTolerance(M),D=M.getPrecisionModel();if(D.getType()===Ls.FIXED){var t=1/D.getScale()*2/1.415;t>N&&(N=t)}return N}if(2===arguments.length){var i=arguments[0],e=arguments[1];return Math.min(_I.computeOverlaySnapTolerance(i),_I.computeOverlaySnapTolerance(e))}},_I.computeSizeBasedSnapTolerance=function(M){var N=M.getEnvelopeInternal();return Math.min(N.getHeight(),N.getWidth())*_I.SNAP_PRECISION_FACTOR},_I.snapToSelf=function(M,N,D){return new _I(M).snapToSelf(N,D)},FI.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(_I,FI);var VI=function(M){function N(N,D,t){M.call(this),this._snapTolerance=N||null,this._snapPts=D||null,this._isSelfSnap=void 0!==t&&t}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.snapLine=function(M,N){var D=new HI(M,this._snapTolerance);return D.setAllowSnappingToSourceVertices(this._isSelfSnap),D.snapTo(N)},N.prototype.transformCoordinates=function(M,N){var D=M.toCoordinateArray(),t=this.snapLine(D,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(t)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(XI),JI=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};JI.prototype.getCommon=function(){return wg.longBitsToDouble(this._commonBits)},JI.prototype.add=function(M){var N=wg.doubleToLongBits(M);return this._isFirst?(this._commonBits=N,this._commonSignExp=JI.signExpBits(this._commonBits),this._isFirst=!1,null):JI.signExpBits(N)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=JI.numCommonMostSigMantissaBits(this._commonBits,N),void(this._commonBits=JI.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},JI.prototype.toString=function(){if(1===arguments.length){var M=arguments[0],N=wg.longBitsToDouble(M),D="0000000000000000000000000000000000000000000000000000000000000000"+wg.toBinaryString(M),t=D.substring(D.length-64);return t.substring(0,1)+" "+t.substring(1,12)+"(exp) "+t.substring(12)+" [ "+N+" ]"}},JI.prototype.interfaces_=function(){return[]},JI.prototype.getClass=function(){return JI},JI.getBit=function(M,N){return 0!=(M&1<<N)?1:0},JI.signExpBits=function(M){return M>>52},JI.zeroLowerBits=function(M,N){return M&~((1<<N)-1)},JI.numCommonMostSigMantissaBits=function(M,N){for(var D=0,t=52;t>=0;t--){if(JI.getBit(M,t)!==JI.getBit(N,t))return D;D++}return 52};var qI=function(){this._commonCoord=null,this._ccFilter=new $I},KI={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};qI.prototype.addCommonBits=function(M){var N=new MA(this._commonCoord);M.apply(N),M.geometryChanged()},qI.prototype.removeCommonBits=function(M){if(0===this._commonCoord.x&&0===this._commonCoord.y)return M;var N=new Eg(this._commonCoord);N.x=-N.x,N.y=-N.y;var D=new MA(N);return M.apply(D),M.geometryChanged(),M},qI.prototype.getCommonCoordinate=function(){return this._commonCoord},qI.prototype.add=function(M){M.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},qI.prototype.interfaces_=function(){return[]},qI.prototype.getClass=function(){return qI},KI.CommonCoordinateFilter.get=function(){return $I},KI.Translater.get=function(){return MA},Object.defineProperties(qI,KI);var $I=function(){this._commonBitsX=new JI,this._commonBitsY=new JI};$I.prototype.filter=function(M){this._commonBitsX.add(M.x),this._commonBitsY.add(M.y)},$I.prototype.getCommonCoordinate=function(){return new Eg(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},$I.prototype.interfaces_=function(){return[su]},$I.prototype.getClass=function(){return $I};var MA=function(){this.trans=null;var M=arguments[0];this.trans=M};MA.prototype.filter=function(M,N){var D=M.getOrdinate(N,0)+this.trans.x,t=M.getOrdinate(N,1)+this.trans.y;M.setOrdinate(N,0,D),M.setOrdinate(N,1,t)},MA.prototype.isDone=function(){return!1},MA.prototype.isGeometryChanged=function(){return!0},MA.prototype.interfaces_=function(){return[bu]},MA.prototype.getClass=function(){return MA};var NA=function(M,N){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=M,this._geom[1]=N,this.computeSnapTolerance()};NA.prototype.selfSnap=function(M){return new _I(M).snapTo(M,this._snapTolerance)},NA.prototype.removeCommonBits=function(M){this._cbr=new qI,this._cbr.add(M[0]),this._cbr.add(M[1]);var N=new Array(2).fill(null);return N[0]=this._cbr.removeCommonBits(M[0].copy()),N[1]=this._cbr.removeCommonBits(M[1].copy()),N},NA.prototype.prepareResult=function(M){return this._cbr.addCommonBits(M),M},NA.prototype.getResultGeometry=function(M){var N=this.snap(this._geom),D=OA.overlayOp(N[0],N[1],M);return this.prepareResult(D)},NA.prototype.checkValid=function(M){M.isValid()||Zg.out.println("Snapped geometry is invalid")},NA.prototype.computeSnapTolerance=function(){this._snapTolerance=_I.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},NA.prototype.snap=function(M){var N=this.removeCommonBits(M);return _I.snap(N[0],N[1],this._snapTolerance)},NA.prototype.interfaces_=function(){return[]},NA.prototype.getClass=function(){return NA},NA.overlayOp=function(M,N,D){return new NA(M,N).getResultGeometry(D)},NA.union=function(M,N){return NA.overlayOp(M,N,OA.UNION)},NA.intersection=function(M,N){return NA.overlayOp(M,N,OA.INTERSECTION)},NA.symDifference=function(M,N){return NA.overlayOp(M,N,OA.SYMDIFFERENCE)},NA.difference=function(M,N){return NA.overlayOp(M,N,OA.DIFFERENCE)};var DA=function(M,N){this._geom=new Array(2).fill(null),this._geom[0]=M,this._geom[1]=N};DA.prototype.getResultGeometry=function(M){var N=null,D=!1,t=null;try{N=OA.overlayOp(this._geom[0],this._geom[1],M),D=!0}catch(M){if(!(M instanceof Jg))throw M;t=M}if(!D)try{N=NA.overlayOp(this._geom[0],this._geom[1],M)}catch(M){throw M instanceof Jg?t:M}return N},DA.prototype.interfaces_=function(){return[]},DA.prototype.getClass=function(){return DA},DA.overlayOp=function(M,N,D){return new DA(M,N).getResultGeometry(D)},DA.union=function(M,N){return DA.overlayOp(M,N,OA.UNION)},DA.intersection=function(M,N){return DA.overlayOp(M,N,OA.INTERSECTION)},DA.symDifference=function(M,N){return DA.overlayOp(M,N,OA.SYMDIFFERENCE)},DA.difference=function(M,N){return DA.overlayOp(M,N,OA.DIFFERENCE)};var tA=function(){this.mce=null,this.chainIndex=null;var M=arguments[0],N=arguments[1];this.mce=M,this.chainIndex=N};tA.prototype.computeIntersections=function(M,N){this.mce.computeIntersectsForChain(this.chainIndex,M.mce,M.chainIndex,N)},tA.prototype.interfaces_=function(){return[]},tA.prototype.getClass=function(){return tA};var iA=function M(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var N=arguments[0],D=arguments[1];this._eventType=M.DELETE,this._xValue=N,this._insertEvent=D}else if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];this._eventType=M.INSERT,this._label=t,this._xValue=i,this._obj=e}},eA={INSERT:{configurable:!0},DELETE:{configurable:!0}};iA.prototype.isDelete=function(){return this._eventType===iA.DELETE},iA.prototype.setDeleteEventIndex=function(M){this._deleteEventIndex=M},iA.prototype.getObject=function(){return this._obj},iA.prototype.compareTo=function(M){var N=M;return this._xValue<N._xValue?-1:this._xValue>N._xValue?1:this._eventType<N._eventType?-1:this._eventType>N._eventType?1:0},iA.prototype.getInsertEvent=function(){return this._insertEvent},iA.prototype.isInsert=function(){return this._eventType===iA.INSERT},iA.prototype.isSameLabel=function(M){return null!==this._label&&this._label===M._label},iA.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},iA.prototype.interfaces_=function(){return[yg]},iA.prototype.getClass=function(){return iA},eA.INSERT.get=function(){return 1},eA.DELETE.get=function(){return 2},Object.defineProperties(iA,eA);var jA=function(){};jA.prototype.interfaces_=function(){return[]},jA.prototype.getClass=function(){return jA};var TA=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var M=arguments[0],N=arguments[1],D=arguments[2];this._li=M,this._includeProper=N,this._recordIsolated=D};TA.prototype.isTrivialIntersection=function(M,N,D,t){if(M===D&&1===this._li.getIntersectionNum()){if(TA.isAdjacentSegments(N,t))return!0;if(M.isClosed()){var i=M.getNumPoints()-1;if(0===N&&t===i||0===t&&N===i)return!0}}return!1},TA.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},TA.prototype.setIsDoneIfProperInt=function(M){this._isDoneWhenProperInt=M},TA.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},TA.prototype.isBoundaryPointInternal=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next().getCoordinate();if(M.isIntersection(t))return!0}return!1},TA.prototype.hasProperIntersection=function(){return this._hasProper},TA.prototype.hasIntersection=function(){return this._hasIntersection},TA.prototype.isDone=function(){return this._isDone},TA.prototype.isBoundaryPoint=function(M,N){return null!==N&&(!!this.isBoundaryPointInternal(M,N[0])||!!this.isBoundaryPointInternal(M,N[1]))},TA.prototype.setBoundaryNodes=function(M,N){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=M,this._bdyNodes[1]=N},TA.prototype.addIntersections=function(M,N,D,t){if(M===D&&N===t)return null;this.numTests++;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&(this._recordIsolated&&(M.setIsolated(!1),D.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(M,N,D,t)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(M.addIntersections(this._li,N,0),D.addIntersections(this._li,t,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},TA.prototype.interfaces_=function(){return[]},TA.prototype.getClass=function(){return TA},TA.isAdjacentSegments=function(M,N){return 1===Math.abs(M-N)};var gA=function(M){function N(){M.call(this),this.events=new Eu,this.nOverlaps=null}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.prepareEvents=function(){qs.sort(this.events);for(var M=0;M<this.events.size();M++){var N=this.events.get(M);N.isDelete()&&N.getInsertEvent().setDeleteEventIndex(M)}},N.prototype.computeIntersections=function(){if(1===arguments.length){var M=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var N=0;N<this.events.size();N++){var D=this.events.get(N);if(D.isInsert()&&this.processOverlaps(N,D.getDeleteEventIndex(),D,M),M.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof TA&&lg(arguments[0],au)&&lg(arguments[1],au)){var t=arguments[0],i=arguments[1],e=arguments[2];this.addEdges(t,t),this.addEdges(i,i),this.computeIntersections(e)}else if("boolean"==typeof arguments[2]&&lg(arguments[0],au)&&arguments[1]instanceof TA){var j=arguments[0],T=arguments[1];arguments[2]?this.addEdges(j,null):this.addEdges(j),this.computeIntersections(T)}},N.prototype.addEdge=function(M,N){for(var D=M.getMonotoneChainEdge(),t=D.getStartIndexes(),i=0;i<t.length-1;i++){var e=new tA(D,i),j=new iA(N,D.getMinX(i),e);this.events.add(j),this.events.add(new iA(D.getMaxX(i),j))}},N.prototype.processOverlaps=function(M,N,D,t){for(var i=D.getObject(),e=M;e<N;e++){var j=this.events.get(e);if(j.isInsert()){var T=j.getObject();D.isSameLabel(j)||(i.computeIntersections(T,t),this.nOverlaps++)}}},N.prototype.addEdges=function(){if(1===arguments.length)for(var M=arguments[0].iterator();M.hasNext();){var N=M.next();this.addEdge(N,N)}else if(2===arguments.length)for(var D=arguments[0],t=arguments[1],i=D.iterator();i.hasNext();){var e=i.next();this.addEdge(e,t)}},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(jA),uA=function(){this._min=wg.POSITIVE_INFINITY,this._max=wg.NEGATIVE_INFINITY},sA={NodeComparator:{configurable:!0}};uA.prototype.getMin=function(){return this._min},uA.prototype.intersects=function(M,N){return!(this._min>N||this._max<M)},uA.prototype.getMax=function(){return this._max},uA.prototype.toString=function(){return Vg.toLineString(new Eg(this._min,0),new Eg(this._max,0))},uA.prototype.interfaces_=function(){return[]},uA.prototype.getClass=function(){return uA},sA.NodeComparator.get=function(){return LA},Object.defineProperties(uA,sA);var LA=function(){};LA.prototype.compare=function(M,N){var D=M,t=N,i=(D._min+D._max)/2,e=(t._min+t._max)/2;return i<e?-1:i>e?1:0},LA.prototype.interfaces_=function(){return[ag]},LA.prototype.getClass=function(){return LA};var IA=function(M){function N(){M.call(this),this._item=null;var N=arguments[0],D=arguments[1],t=arguments[2];this._min=N,this._max=D,this._item=t}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.query=function(M,N,D){if(!this.intersects(M,N))return null;D.visitItem(this._item)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(uA),AA=function(M){function N(){M.call(this),this._node1=null,this._node2=null;var N=arguments[0],D=arguments[1];this._node1=N,this._node2=D,this.buildExtent(this._node1,this._node2)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.buildExtent=function(M,N){this._min=Math.min(M._min,N._min),this._max=Math.max(M._max,N._max)},N.prototype.query=function(M,N,D){if(!this.intersects(M,N))return null;null!==this._node1&&this._node1.query(M,N,D),null!==this._node2&&this._node2.query(M,N,D)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(uA),zA=function(){this._leaves=new Eu,this._root=null,this._level=0};zA.prototype.buildTree=function(){qs.sort(this._leaves,new uA.NodeComparator);for(var M=this._leaves,N=null,D=new Eu;;){if(this.buildLevel(M,D),1===D.size())return D.get(0);N=M,M=D,D=N}},zA.prototype.insert=function(M,N,D){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new IA(M,N,D))},zA.prototype.query=function(M,N,D){this.init(),this._root.query(M,N,D)},zA.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},zA.prototype.printNode=function(M){Zg.out.println(Vg.toLineString(new Eg(M._min,this._level),new Eg(M._max,this._level)))},zA.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},zA.prototype.buildLevel=function(M,N){this._level++,N.clear();for(var D=0;D<M.size();D+=2){var t=M.get(D);if(null===(D+1<M.size()?M.get(D):null))N.add(t);else{var i=new AA(M.get(D),M.get(D+1));N.add(i)}}},zA.prototype.interfaces_=function(){return[]},zA.prototype.getClass=function(){return zA};var nA=function(){this._items=new Eu};nA.prototype.visitItem=function(M){this._items.add(M)},nA.prototype.getItems=function(){return this._items},nA.prototype.interfaces_=function(){return[_s]},nA.prototype.getClass=function(){return nA};var wA=function(){this._index=null;var M=arguments[0];if(!lg(M,Ju))throw new ng("Argument must be Polygonal");this._index=new cA(M)},rA={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};wA.prototype.locate=function(M){var N=new tu(M),D=new yA(N);return this._index.query(M.y,M.y,D),N.getLocation()},wA.prototype.interfaces_=function(){return[vL]},wA.prototype.getClass=function(){return wA},rA.SegmentVisitor.get=function(){return yA},rA.IntervalIndexedGeometry.get=function(){return cA},Object.defineProperties(wA,rA);var yA=function(){this._counter=null;var M=arguments[0];this._counter=M};yA.prototype.visitItem=function(M){var N=M;this._counter.countSegment(N.getCoordinate(0),N.getCoordinate(1))},yA.prototype.interfaces_=function(){return[_s]},yA.prototype.getClass=function(){return yA};var cA=function(){this._index=new zA;var M=arguments[0];this.init(M)};cA.prototype.init=function(M){for(var N=EI.getLines(M).iterator();N.hasNext();){var D=N.next().getCoordinates();this.addLine(D)}},cA.prototype.addLine=function(M){for(var N=1;N<M.length;N++){var D=new IL(M[N-1],M[N]),t=Math.min(D.p0.y,D.p1.y),i=Math.max(D.p0.y,D.p1.y);this._index.insert(t,i,D)}},cA.prototype.query=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1],D=new nA;return this._index.query(M,N,D),D.getItems()}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];this._index.query(t,i,e)}},cA.prototype.interfaces_=function(){return[]},cA.prototype.getClass=function(){return cA};var aA=function(M){function N(){if(M.call(this),this._parentGeom=null,this._lineEdgeMap=new ss,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new oI,2===arguments.length){var N=arguments[0],D=arguments[1],t=Lu.OGC_SFS_BOUNDARY_RULE;this._argIndex=N,this._parentGeom=D,this._boundaryNodeRule=t,null!==D&&this.add(D)}else if(3===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2];this._argIndex=i,this._parentGeom=e,this._boundaryNodeRule=j,null!==e&&this.add(e)}}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.insertBoundaryPoint=function(M,D){var t=this._nodes.addNode(D).getLabel(),i=1;Cg.NONE,t.getLocation(M,Os.ON)===Cg.BOUNDARY&&i++;var e=N.determineBoundary(this._boundaryNodeRule,i);t.setLocation(M,e)},N.prototype.computeSelfNodes=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return this.computeSelfNodes(M,N,!1)}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=new TA(D,!0,!1);e.setIsDoneIfProperInt(i);var j=this.createEdgeSetIntersector(),T=this._parentGeom instanceof $u||this._parentGeom instanceof qu||this._parentGeom instanceof Ms,g=t||!T;return j.computeIntersections(this._edges,e,g),this.addSelfIntersectionNodes(this._argIndex),e}},N.prototype.computeSplitEdges=function(M){for(var N=this._edges.iterator();N.hasNext();)N.next().eiList.addSplitEdges(M)},N.prototype.computeEdgeIntersections=function(M,N,D){var t=new TA(N,D,!0);return t.setBoundaryNodes(this.getBoundaryNodes(),M.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,M._edges,t),t},N.prototype.getGeometry=function(){return this._parentGeom},N.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},N.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},N.prototype.addPoint=function(){if(arguments[0]instanceof Vu){var M=arguments[0].getCoordinate();this.insertPoint(this._argIndex,M,Cg.INTERIOR)}else if(arguments[0]instanceof Eg){var N=arguments[0];this.insertPoint(this._argIndex,N,Cg.INTERIOR)}},N.prototype.addPolygon=function(M){this.addPolygonRing(M.getExteriorRing(),Cg.EXTERIOR,Cg.INTERIOR);for(var N=0;N<M.getNumInteriorRing();N++){var D=M.getInteriorRingN(N);this.addPolygonRing(D,Cg.INTERIOR,Cg.EXTERIOR)}},N.prototype.addEdge=function(M){this.insertEdge(M);var N=M.getCoordinates();this.insertPoint(this._argIndex,N[0],Cg.BOUNDARY),this.insertPoint(this._argIndex,N[N.length-1],Cg.BOUNDARY)},N.prototype.addLineString=function(M){var N=xu.removeRepeatedPoints(M.getCoordinates());if(N.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=N[0],null;var D=new $L(N,new ds(this._argIndex,Cg.INTERIOR));this._lineEdgeMap.put(M,D),this.insertEdge(D),Kg.isTrue(N.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,N[0]),this.insertBoundaryPoint(this._argIndex,N[N.length-1])},N.prototype.getInvalidPoint=function(){return this._invalidPoint},N.prototype.getBoundaryPoints=function(){for(var M=this.getBoundaryNodes(),N=new Array(M.size()).fill(null),D=0,t=M.iterator();t.hasNext();){var i=t.next();N[D++]=i.getCoordinate().copy()}return N},N.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},N.prototype.addSelfIntersectionNode=function(M,N,D){if(this.isBoundaryNode(M,N))return null;D===Cg.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(M,N):this.insertPoint(M,N,D)},N.prototype.addPolygonRing=function(M,N,D){if(M.isEmpty())return null;var t=xu.removeRepeatedPoints(M.getCoordinates());if(t.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=t[0],null;var i=N,e=D;iu.isCCW(t)&&(i=D,e=N);var j=new $L(t,new ds(this._argIndex,Cg.BOUNDARY,i,e));this._lineEdgeMap.put(M,j),this.insertEdge(j),this.insertPoint(this._argIndex,t[0],Cg.BOUNDARY)},N.prototype.insertPoint=function(M,N,D){var t=this._nodes.addNode(N),i=t.getLabel();null===i?t._label=new ds(M,D):i.setLocation(M,D)},N.prototype.createEdgeSetIntersector=function(){return new gA},N.prototype.addSelfIntersectionNodes=function(M){for(var N=this._edges.iterator();N.hasNext();)for(var D=N.next(),t=D.getLabel().getLocation(M),i=D.eiList.iterator();i.hasNext();){var e=i.next();this.addSelfIntersectionNode(M,e.coord,t)}},N.prototype.add=function(){if(1!==arguments.length)return M.prototype.add.apply(this,arguments);var N=arguments[0];if(N.isEmpty())return null;if(N instanceof Ms&&(this._useBoundaryDeterminationRule=!1),N instanceof qu)this.addPolygon(N);else if(N instanceof _u)this.addLineString(N);else if(N instanceof Vu)this.addPoint(N);else if(N instanceof Ku)this.addCollection(N);else if(N instanceof Zu)this.addCollection(N);else if(N instanceof Ms)this.addCollection(N);else{if(!(N instanceof Pu))throw new Error(N.getClass().getName());this.addCollection(N)}},N.prototype.addCollection=function(M){for(var N=0;N<M.getNumGeometries();N++){var D=M.getGeometryN(N);this.add(D)}},N.prototype.locate=function(M){return lg(this._parentGeom,Ju)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new wA(this._parentGeom)),this._areaPtLocator.locate(M)):this._ptLocator.locate(M,this._parentGeom)},N.prototype.findEdge=function(){if(1===arguments.length){var N=arguments[0];return this._lineEdgeMap.get(N)}return M.prototype.findEdge.apply(this,arguments)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.determineBoundary=function(M,N){return M.isInBoundary(N)?Cg.BOUNDARY:Cg.INTERIOR},N}(Gs),EA=function(){if(this._li=new Nu,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var M=arguments[0];this.setComputationPrecision(M.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new aA(0,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1],t=Lu.OGC_SFS_BOUNDARY_RULE;N.getPrecisionModel().compareTo(D.getPrecisionModel())>=0?this.setComputationPrecision(N.getPrecisionModel()):this.setComputationPrecision(D.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new aA(0,N,t),this._arg[1]=new aA(1,D,t)}else if(3===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2];i.getPrecisionModel().compareTo(e.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(e.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new aA(0,i,j),this._arg[1]=new aA(1,e,j)}};EA.prototype.getArgGeometry=function(M){return this._arg[M].getGeometry()},EA.prototype.setComputationPrecision=function(M){this._resultPrecisionModel=M,this._li.setPrecisionModel(this._resultPrecisionModel)},EA.prototype.interfaces_=function(){return[]},EA.prototype.getClass=function(){return EA};var oA=function(){};oA.prototype.interfaces_=function(){return[]},oA.prototype.getClass=function(){return oA},oA.map=function(){if(arguments[0]instanceof Tu&&lg(arguments[1],oA.MapOp)){for(var M=arguments[0],N=arguments[1],D=new Eu,t=0;t<M.getNumGeometries();t++){var i=N.map(M.getGeometryN(t));null!==i&&D.add(i)}return M.getFactory().buildGeometry(D)}if(lg(arguments[0],ru)&&lg(arguments[1],oA.MapOp)){for(var e=arguments[0],j=arguments[1],T=new Eu,g=e.iterator();g.hasNext();){var u=g.next(),s=j.map(u);null!==s&&T.add(s)}return T}},oA.MapOp=function(){};var OA=function(M){function N(){var N=arguments[0],D=arguments[1];M.call(this,N,D),this._ptLocator=new oI,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new WL,this._resultPolyList=new Eu,this._resultLineList=new Eu,this._resultPointList=new Eu,this._graph=new Gs(new GL),this._geomFact=N.getFactory()}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.insertUniqueEdge=function(M){var N=this._edgeList.findEqualEdge(M);if(null!==N){var D=N.getLabel(),t=M.getLabel();N.isPointwiseEqual(M)||(t=new ds(M.getLabel())).flip();var i=N.getDepth();i.isNull()&&i.add(D),i.add(t),D.merge(t)}else this._edgeList.add(M)},N.prototype.getGraph=function(){return this._graph},N.prototype.cancelDuplicateResultEdges=function(){for(var M=this._graph.getEdgeEnds().iterator();M.hasNext();){var N=M.next(),D=N.getSym();N.isInResult()&&D.isInResult()&&(N.setInResult(!1),D.setInResult(!1))}},N.prototype.isCoveredByLA=function(M){return!!this.isCovered(M,this._resultLineList)||!!this.isCovered(M,this._resultPolyList)},N.prototype.computeGeometry=function(M,D,t,i){var e=new Eu;return e.addAll(M),e.addAll(D),e.addAll(t),e.isEmpty()?N.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(e)},N.prototype.mergeSymLabels=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();)M.next().getEdges().mergeSymLabels()},N.prototype.isCovered=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next();if(this._ptLocator.locate(M,t)!==Cg.EXTERIOR)return!0}return!1},N.prototype.replaceCollapsedEdges=function(){for(var M=new Eu,N=this._edgeList.iterator();N.hasNext();){var D=N.next();D.isCollapsed()&&(N.remove(),M.add(D.getCollapsedEdge()))}this._edgeList.addAll(M)},N.prototype.updateNodeLabelling=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();){var N=M.next(),D=N.getEdges().getLabel();N.getLabel().merge(D)}},N.prototype.getResultGeometry=function(M){return this.computeOverlay(M),this._resultGeom},N.prototype.insertUniqueEdges=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next();this.insertUniqueEdge(D)}},N.prototype.computeOverlay=function(M){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var N=new Eu;this._arg[0].computeSplitEdges(N),this._arg[1].computeSplitEdges(N),this.insertUniqueEdges(N),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),ZI.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(M),this.cancelDuplicateResultEdges();var D=new Rs(this._geomFact);D.add(this._graph),this._resultPolyList=D.getPolygons();var t=new RI(this,this._geomFact,this._ptLocator);this._resultLineList=t.build(M);var i=new WI(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(M),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,M)},N.prototype.labelIncompleteNode=function(M,N){var D=this._ptLocator.locate(M.getCoordinate(),this._arg[N].getGeometry());M.getLabel().setLocation(N,D)},N.prototype.copyPoints=function(M){for(var N=this._arg[M].getNodeIterator();N.hasNext();){var D=N.next();this._graph.addNode(D.getCoordinate()).setLabel(M,D.getLabel().getLocation(M))}},N.prototype.findResultAreaEdges=function(M){for(var D=this._graph.getEdgeEnds().iterator();D.hasNext();){var t=D.next(),i=t.getLabel();i.isArea()&&!t.isInteriorAreaEdge()&&N.isResultOfOp(i.getLocation(0,Os.RIGHT),i.getLocation(1,Os.RIGHT),M)&&t.setInResult(!0)}},N.prototype.computeLabelsFromDepths=function(){for(var M=this._edgeList.iterator();M.hasNext();){var N=M.next(),D=N.getLabel(),t=N.getDepth();if(!t.isNull()){t.normalize();for(var i=0;i<2;i++)D.isNull(i)||!D.isArea()||t.isNull(i)||(0===t.getDelta(i)?D.toLine(i):(Kg.isTrue(!t.isNull(i,Os.LEFT),"depth of LEFT side has not been initialized"),D.setLocation(i,Os.LEFT,t.getLocation(i,Os.LEFT)),Kg.isTrue(!t.isNull(i,Os.RIGHT),"depth of RIGHT side has not been initialized"),D.setLocation(i,Os.RIGHT,t.getLocation(i,Os.RIGHT))))}}},N.prototype.computeLabelling=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();)M.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},N.prototype.labelIncompleteNodes=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();){var N=M.next(),D=N.getLabel();N.isIsolated()&&(D.isNull(0)?this.labelIncompleteNode(N,0):this.labelIncompleteNode(N,1)),N.getEdges().updateLabelling(D)}},N.prototype.isCoveredByA=function(M){return!!this.isCovered(M,this._resultPolyList)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(EA);OA.overlayOp=function(M,N,D){return new OA(M,N).getResultGeometry(D)},OA.intersection=function(M,N){if(M.isEmpty()||N.isEmpty())return OA.createEmptyResult(OA.INTERSECTION,M,N,M.getFactory());if(M.isGeometryCollection()){var D=N;return GI.map(M,{interfaces_:function(){return[oA.MapOp]},map:function(M){return M.intersection(D)}})}return M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DA.overlayOp(M,N,OA.INTERSECTION)},OA.symDifference=function(M,N){if(M.isEmpty()||N.isEmpty()){if(M.isEmpty()&&N.isEmpty())return OA.createEmptyResult(OA.SYMDIFFERENCE,M,N,M.getFactory());if(M.isEmpty())return N.copy();if(N.isEmpty())return M.copy()}return M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DA.overlayOp(M,N,OA.SYMDIFFERENCE)},OA.resultDimension=function(M,N,D){var t=N.getDimension(),i=D.getDimension(),e=-1;switch(M){case OA.INTERSECTION:e=Math.min(t,i);break;case OA.UNION:e=Math.max(t,i);break;case OA.DIFFERENCE:e=t;break;case OA.SYMDIFFERENCE:e=Math.max(t,i)}return e},OA.createEmptyResult=function(M,N,D,t){var i=null;switch(OA.resultDimension(M,N,D)){case-1:i=t.createGeometryCollection(new Array(0).fill(null));break;case 0:i=t.createPoint();break;case 1:i=t.createLineString();break;case 2:i=t.createPolygon()}return i},OA.difference=function(M,N){return M.isEmpty()?OA.createEmptyResult(OA.DIFFERENCE,M,N,M.getFactory()):N.isEmpty()?M.copy():(M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DA.overlayOp(M,N,OA.DIFFERENCE))},OA.isResultOfOp=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1],D=M.getLocation(0),t=M.getLocation(1);return OA.isResultOfOp(D,t,N)}if(3===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2];switch(i===Cg.BOUNDARY&&(i=Cg.INTERIOR),e===Cg.BOUNDARY&&(e=Cg.INTERIOR),j){case OA.INTERSECTION:return i===Cg.INTERIOR&&e===Cg.INTERIOR;case OA.UNION:return i===Cg.INTERIOR||e===Cg.INTERIOR;case OA.DIFFERENCE:return i===Cg.INTERIOR&&e!==Cg.INTERIOR;case OA.SYMDIFFERENCE:return i===Cg.INTERIOR&&e!==Cg.INTERIOR||i!==Cg.INTERIOR&&e===Cg.INTERIOR}return!1}},OA.INTERSECTION=1,OA.UNION=2,OA.DIFFERENCE=3,OA.SYMDIFFERENCE=4;var xA=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new oI,this._seg=new IL;var M=arguments[0],N=arguments[1];this._g=M,this._boundaryDistanceTolerance=N,this._linework=this.extractLinework(M)};xA.prototype.isWithinToleranceOfBoundary=function(M){for(var N=0;N<this._linework.getNumGeometries();N++)for(var D=this._linework.getGeometryN(N).getCoordinateSequence(),t=0;t<D.size()-1;t++)if(D.getCoordinate(t,this._seg.p0),D.getCoordinate(t+1,this._seg.p1),this._seg.distance(M)<=this._boundaryDistanceTolerance)return!0;return!1},xA.prototype.getLocation=function(M){return this.isWithinToleranceOfBoundary(M)?Cg.BOUNDARY:this._ptLocator.locate(M,this._g)},xA.prototype.extractLinework=function(M){var N=new CA;M.apply(N);var D=N.getLinework(),t=ns.toLineStringArray(D);return M.getFactory().createMultiLineString(t)},xA.prototype.interfaces_=function(){return[]},xA.prototype.getClass=function(){return xA};var CA=function(){this._linework=null,this._linework=new Eu};CA.prototype.getLinework=function(){return this._linework},CA.prototype.filter=function(M){if(M instanceof qu){var N=M;this._linework.add(N.getExteriorRing());for(var D=0;D<N.getNumInteriorRing();D++)this._linework.add(N.getInteriorRingN(D))}},CA.prototype.interfaces_=function(){return[Bu]},CA.prototype.getClass=function(){return CA};var SA=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var M=arguments[0];this._g=M};SA.prototype.extractPoints=function(M,N,D){for(var t=M.getCoordinates(),i=0;i<t.length-1;i++)this.computeOffsetPoints(t[i],t[i+1],N,D)},SA.prototype.setSidesToGenerate=function(M,N){this._doLeft=M,this._doRight=N},SA.prototype.getPoints=function(M){for(var N=new Eu,D=EI.getLines(this._g).iterator();D.hasNext();){var t=D.next();this.extractPoints(t,M,N)}return N},SA.prototype.computeOffsetPoints=function(M,N,D,t){var i=N.x-M.x,e=N.y-M.y,j=Math.sqrt(i*i+e*e),T=D*i/j,g=D*e/j,u=(N.x+M.x)/2,s=(N.y+M.y)/2;if(this._doLeft){var L=new Eg(u-g,s+T);t.add(L)}if(this._doRight){var I=new Eg(u+g,s-T);t.add(I)}},SA.prototype.interfaces_=function(){return[]},SA.prototype.getClass=function(){return SA};var lA=function M(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=M.TOLERANCE,this._testCoords=new Eu;var N=arguments[0],D=arguments[1],t=arguments[2];this._boundaryDistanceTolerance=M.computeBoundaryDistanceTolerance(N,D),this._geom=[N,D,t],this._locFinder=[new xA(this._geom[0],this._boundaryDistanceTolerance),new xA(this._geom[1],this._boundaryDistanceTolerance),new xA(this._geom[2],this._boundaryDistanceTolerance)]},kA={TOLERANCE:{configurable:!0}};lA.prototype.reportResult=function(M,N,D){Zg.out.println("Overlay result invalid - A:"+Cg.toLocationSymbol(N[0])+" B:"+Cg.toLocationSymbol(N[1])+" expected:"+(D?"i":"e")+" actual:"+Cg.toLocationSymbol(N[2]))},lA.prototype.isValid=function(M){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var N=this.checkValid(M);return N},lA.prototype.checkValid=function(){if(1===arguments.length){for(var M=arguments[0],N=0;N<this._testCoords.size();N++){var D=this._testCoords.get(N);if(!this.checkValid(M,D))return this._invalidLocation=D,!1}return!0}if(2===arguments.length){var t=arguments[0],i=arguments[1];return this._location[0]=this._locFinder[0].getLocation(i),this._location[1]=this._locFinder[1].getLocation(i),this._location[2]=this._locFinder[2].getLocation(i),!!lA.hasLocation(this._location,Cg.BOUNDARY)||this.isValidResult(t,this._location)}},lA.prototype.addTestPts=function(M){var N=new SA(M);this._testCoords.addAll(N.getPoints(5*this._boundaryDistanceTolerance))},lA.prototype.isValidResult=function(M,N){var D=OA.isResultOfOp(N[0],N[1],M),t=!(D^N[2]===Cg.INTERIOR);return t||this.reportResult(M,N,D),t},lA.prototype.getInvalidLocation=function(){return this._invalidLocation},lA.prototype.interfaces_=function(){return[]},lA.prototype.getClass=function(){return lA},lA.hasLocation=function(M,N){for(var D=0;D<3;D++)if(M[D]===N)return!0;return!1},lA.computeBoundaryDistanceTolerance=function(M,N){return Math.min(_I.computeSizeBasedSnapTolerance(M),_I.computeSizeBasedSnapTolerance(N))},lA.isValid=function(M,N,D,t){return new lA(M,N,t).isValid(D)},kA.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(lA,kA);var QA=function M(N){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=M.extractFactory(N),this._inputGeoms=N};QA.prototype.extractElements=function(M,N){if(null===M)return null;for(var D=0;D<M.getNumGeometries();D++){var t=M.getGeometryN(D);this._skipEmpty&&t.isEmpty()||N.add(t)}},QA.prototype.combine=function(){for(var M=new Eu,N=this._inputGeoms.iterator();N.hasNext();){var D=N.next();this.extractElements(D,M)}return 0===M.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(M)},QA.prototype.interfaces_=function(){return[]},QA.prototype.getClass=function(){return QA},QA.combine=function(){if(1===arguments.length){var M=arguments[0];return new QA(M).combine()}if(2===arguments.length){var N=arguments[0],D=arguments[1];return new QA(QA.createList(N,D)).combine()}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];return new QA(QA.createList(t,i,e)).combine()}},QA.extractFactory=function(M){return M.isEmpty()?null:M.iterator().next().getFactory()},QA.createList=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1],D=new Eu;return D.add(M),D.add(N),D}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2],j=new Eu;return j.add(t),j.add(i),j.add(e),j}};var dA=function(){this._inputPolys=null,this._geomFactory=null;var M=arguments[0];this._inputPolys=M,null===this._inputPolys&&(this._inputPolys=new Eu)},YA={STRTREE_NODE_CAPACITY:{configurable:!0}};dA.prototype.reduceToGeometries=function(M){for(var N=new Eu,D=M.iterator();D.hasNext();){var t=D.next(),i=null;lg(t,au)?i=this.unionTree(t):t instanceof Tu&&(i=t),N.add(i)}return N},dA.prototype.extractByEnvelope=function(M,N,D){for(var t=new Eu,i=0;i<N.getNumGeometries();i++){var e=N.getGeometryN(i);e.getEnvelopeInternal().intersects(M)?t.add(e):D.add(e)}return this._geomFactory.buildGeometry(t)},dA.prototype.unionOptimized=function(M,N){var D=M.getEnvelopeInternal(),t=N.getEnvelopeInternal();if(!D.intersects(t))return QA.combine(M,N);if(M.getNumGeometries()<=1&&N.getNumGeometries()<=1)return this.unionActual(M,N);var i=D.intersection(t);return this.unionUsingEnvelopeIntersection(M,N,i)},dA.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var M=new tL(dA.STRTREE_NODE_CAPACITY),N=this._inputPolys.iterator();N.hasNext();){var D=N.next();M.insert(D.getEnvelopeInternal(),D)}this._inputPolys=null;var t=M.itemsTree();return this.unionTree(t)},dA.prototype.binaryUnion=function(){if(1===arguments.length){var M=arguments[0];return this.binaryUnion(M,0,M.size())}if(3===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2];if(t-D<=1){var i=dA.getGeometry(N,D);return this.unionSafe(i,null)}if(t-D==2)return this.unionSafe(dA.getGeometry(N,D),dA.getGeometry(N,D+1));var e=Math.trunc((t+D)/2),j=this.binaryUnion(N,D,e),T=this.binaryUnion(N,e,t);return this.unionSafe(j,T)}},dA.prototype.repeatedUnion=function(M){for(var N=null,D=M.iterator();D.hasNext();){var t=D.next();N=null===N?t.copy():N.union(t)}return N},dA.prototype.unionSafe=function(M,N){return null===M&&null===N?null:null===M?N.copy():null===N?M.copy():this.unionOptimized(M,N)},dA.prototype.unionActual=function(M,N){return dA.restrictToPolygons(M.union(N))},dA.prototype.unionTree=function(M){var N=this.reduceToGeometries(M);return this.binaryUnion(N)},dA.prototype.unionUsingEnvelopeIntersection=function(M,N,D){var t=new Eu,i=this.extractByEnvelope(D,M,t),e=this.extractByEnvelope(D,N,t),j=this.unionActual(i,e);return t.add(j),QA.combine(t)},dA.prototype.bufferUnion=function(){if(1===arguments.length){var M=arguments[0];return M.get(0).getFactory().buildGeometry(M).buffer(0)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N.getFactory().createGeometryCollection([N,D]).buffer(0)}},dA.prototype.interfaces_=function(){return[]},dA.prototype.getClass=function(){return dA},dA.restrictToPolygons=function(M){if(lg(M,Ju))return M;var N=aI.getPolygons(M);return 1===N.size()?N.get(0):M.getFactory().createMultiPolygon(ns.toPolygonArray(N))},dA.getGeometry=function(M,N){return N>=M.size()?null:M.get(N)},dA.union=function(M){return new dA(M).union()},YA.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(dA,YA);var UA=function(){};UA.prototype.interfaces_=function(){return[]},UA.prototype.getClass=function(){return UA},UA.union=function(M,N){if(M.isEmpty()||N.isEmpty()){if(M.isEmpty()&&N.isEmpty())return OA.createEmptyResult(OA.UNION,M,N,M.getFactory());if(M.isEmpty())return N.copy();if(N.isEmpty())return M.copy()}return M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DA.overlayOp(M,N,OA.UNION)};var pA=function(){return new Wi};Wi.prototype={constructor:Wi,reset:function(){this.s=this.t=0},add:function(M){Xi(hA,M,this.t),Xi(this,hA.s,this.s),this.s?this.t+=hA.t:this.s=hA.t},valueOf:function(){return this.s}};var hA=new Wi,fA=1e-6,mA=Math.PI,vA=mA/2,BA=mA/4,bA=2*mA,PA=180/mA,ZA=mA/180,GA=Math.abs,RA=Math.atan,WA=Math.atan2,XA=Math.cos,HA=Math.exp,_A=Math.log,FA=Math.sin,VA=Math.sqrt,JA=Math.tan,qA={Feature:function(M,N){Fi(M.geometry,N)},FeatureCollection:function(M,N){for(var D=M.features,t=-1,i=D.length;++t<i;)Fi(D[t].geometry,N)}},KA={Sphere:function(M,N){N.sphere()},Point:function(M,N){M=M.coordinates,N.point(M[0],M[1],M[2])},MultiPoint:function(M,N){for(var D=M.coordinates,t=-1,i=D.length;++t<i;)M=D[t],N.point(M[0],M[1],M[2])},LineString:function(M,N){Vi(M.coordinates,N,0)},MultiLineString:function(M,N){for(var D=M.coordinates,t=-1,i=D.length;++t<i;)Vi(D[t],N,0)},Polygon:function(M,N){Ji(M.coordinates,N)},MultiPolygon:function(M,N){for(var D=M.coordinates,t=-1,i=D.length;++t<i;)Ji(D[t],N)},GeometryCollection:function(M,N){for(var D=M.geometries,t=-1,i=D.length;++t<i;)Fi(D[t],N)}},$A=function(M,N){M&&qA.hasOwnProperty(M.type)?qA[M.type](M,N):Fi(M,N)},Mz=(pA(),pA(),pA(),function(M,N){function D(D,t){return D=M(D,t),N(D[0],D[1])}return M.invert&&N.invert&&(D.invert=function(D,t){return(D=N.invert(D,t))&&M.invert(D[0],D[1])}),D});ie.invert=ie;var Nz=function(M){function N(N){return N=M(N[0]*ZA,N[1]*ZA),N[0]*=PA,N[1]*=PA,N}return M=ee(M[0]*ZA,M[1]*ZA,M.length>2?M[2]*ZA:0),N.invert=function(N){return N=M.invert(N[0]*ZA,N[1]*ZA),N[0]*=PA,N[1]*=PA,N},N},Dz=function(){var M,N=[];return{point:function(N,D){M.push([N,D])},lineStart:function(){N.push(M=[])},lineEnd:_i,rejoin:function(){N.length>1&&N.push(N.pop().concat(N.shift()))},result:function(){var D=N;return N=[],M=null,D}}},tz=function(M,N,D,t,i,e){var j,T=M[0],g=M[1],u=0,s=1,L=N[0]-T,I=N[1]-g;if(j=D-T,L||!(j>0)){if(j/=L,L<0){if(j<u)return;j<s&&(s=j)}else if(L>0){if(j>s)return;j>u&&(u=j)}if(j=i-T,L||!(j<0)){if(j/=L,L<0){if(j>s)return;j>u&&(u=j)}else if(L>0){if(j<u)return;j<s&&(s=j)}if(j=t-g,I||!(j>0)){if(j/=I,I<0){if(j<u)return;j<s&&(s=j)}else if(I>0){if(j>s)return;j>u&&(u=j)}if(j=e-g,I||!(j<0)){if(j/=I,I<0){if(j>s)return;j>u&&(u=j)}else if(I>0){if(j<u)return;j<s&&(s=j)}return u>0&&(M[0]=T+u*L,M[1]=g+u*I),s<1&&(N[0]=T+s*L,N[1]=g+s*I),!0}}}}},iz=function(M,N){return GA(M[0]-N[0])<fA&&GA(M[1]-N[1])<fA},ez=function(M,N,D,t,i){var e,j,T=[],g=[];if(M.forEach((function(M){if(!((N=M.length-1)<=0)){var N,D,t=M[0],j=M[N];if(iz(t,j)){for(i.lineStart(),e=0;e<N;++e)i.point((t=M[e])[0],t[1]);i.lineEnd()}else T.push(D=new se(t,M,null,!0)),g.push(D.o=new se(t,null,D,!1)),T.push(D=new se(j,M,null,!1)),g.push(D.o=new se(j,null,D,!0))}})),T.length){for(g.sort(N),Le(T),Le(g),e=0,j=g.length;e<j;++e)g[e].e=D=!D;for(var u,s,L=T[0];;){for(var I=L,A=!0;I.v;)if((I=I.n)===L)return;u=I.z,i.lineStart();do{if(I.v=I.o.v=!0,I.e){if(A)for(e=0,j=u.length;e<j;++e)i.point((s=u[e])[0],s[1]);else t(I.x,I.n.x,1,i);I=I.n}else{if(A)for(u=I.p.z,e=u.length-1;e>=0;--e)i.point((s=u[e])[0],s[1]);else t(I.x,I.p.x,-1,i);I=I.p}u=(I=I.o).z,A=!A}while(!I.v);i.lineEnd()}}},jz=function(M,N){return M<N?-1:M>N?1:M>=N?0:NaN},Tz=(function(M){1===M.length&&(M=function(M){return function(N,D){return jz(M(N),D)}}(M))}(jz),function(M){for(var N,D,t,i=M.length,e=-1,j=0;++e<i;)j+=M[e].length;for(D=new Array(j);--i>=0;)for(N=(t=M[i]).length;--N>=0;)D[--j]=t[N];return D}),gz=1e9,uz=-gz,sz=pA(),Lz=(pA(),function(M){return M}),Iz=(pA(),pA(),1/0),Az=Iz,zz=-Iz,nz=zz,wz={point:function(M,N){M<Iz&&(Iz=M),M>zz&&(zz=M),N<Az&&(Az=N),N>nz&&(nz=N)},lineStart:_i,lineEnd:_i,polygonStart:_i,polygonEnd:_i,result:function(){var M=[[Iz,Az],[zz,nz]];return zz=nz=-(Az=Iz=1/0),M}},rz=(pA(),function(M,N,D,t){return function(i,e){function j(N,D){var t=i(N,D);M(N=t[0],D=t[1])&&e.point(N,D)}function T(M,N){var D=i(M,N);w.point(D[0],D[1])}function g(){E.point=T,w.lineStart()}function u(){E.point=j,w.lineEnd()}function s(M,N){n.push([M,N]);var D=i(M,N);c.point(D[0],D[1])}function L(){c.lineStart(),n=[]}function I(){s(n[0][0],n[0][1]),c.lineEnd();var M,N,D,t,i=c.clean(),j=y.result(),T=j.length;if(n.pop(),A.push(n),n=null,T)if(1&i){if(D=j[0],(N=D.length-1)>0){for(a||(e.polygonStart(),a=!0),e.lineStart(),M=0;M<N;++M)e.point((t=D[M])[0],t[1]);e.lineEnd()}}else T>1&&2&i&&j.push(j.pop().concat(j.shift())),z.push(j.filter(Ae))}var A,z,n,w=N(e),r=i.invert(t[0],t[1]),y=Dz(),c=N(y),a=!1,E={point:j,lineStart:g,lineEnd:u,polygonStart:function(){E.point=s,E.lineStart=L,E.lineEnd=I,z=[],A=[]},polygonEnd:function(){E.point=j,E.lineStart=g,E.lineEnd=u,z=Tz(z);var M=function(M,N){var D=N[0],t=N[1],i=[FA(D),-XA(D),0],e=0,j=0;sz.reset();for(var T=0,g=M.length;T<g;++T)if(s=(u=M[T]).length)for(var u,s,L=u[s-1],I=L[0],A=L[1]/2+BA,z=FA(A),n=XA(A),w=0;w<s;++w,I=y,z=a,n=E,L=r){var r=u[w],y=r[0],c=r[1]/2+BA,a=FA(c),E=XA(c),o=y-I,O=o>=0?1:-1,x=O*o,C=x>mA,S=z*a;if(sz.add(WA(S*O*FA(x),n*E+S*XA(x))),e+=C?o+O*bA:o,C^I>=D^y>=D){var l=Me(Ki(L),Ki(r));te(l);var k=Me(i,l);te(k);var Q=(C^o>=0?-1:1)*Hi(k[2]);(t>Q||t===Q&&(l[0]||l[1]))&&(j+=C^o>=0?1:-1)}}return(e<-fA||e<fA&&sz<-fA)^1&j}(A,r);z.length?(a||(e.polygonStart(),a=!0),ez(z,ze,M,D,e)):M&&(a||(e.polygonStart(),a=!0),e.lineStart(),D(null,null,1,e),e.lineEnd()),a&&(e.polygonEnd(),a=!1),z=A=null},sphere:function(){e.polygonStart(),e.lineStart(),D(null,null,1,e),e.lineEnd(),e.polygonEnd()}};return E}}),yz=rz((function(){return!0}),(function(M){var N,D=NaN,t=NaN,i=NaN;return{lineStart:function(){M.lineStart(),N=1},point:function(e,j){var T=e>0?mA:-mA,g=GA(e-D);GA(g-mA)<fA?(M.point(D,t=(t+j)/2>0?vA:-vA),M.point(i,t),M.lineEnd(),M.lineStart(),M.point(T,t),M.point(e,t),N=0):i!==T&&g>=mA&&(GA(D-i)<fA&&(D-=i*fA),GA(e-T)<fA&&(e-=T*fA),t=function(M,N,D,t){var i,e,j=FA(M-D);return GA(j)>fA?RA((FA(N)*(e=XA(t))*FA(D)-FA(t)*(i=XA(N))*FA(M))/(i*e*j)):(N+t)/2}(D,t,e,j),M.point(i,t),M.lineEnd(),M.lineStart(),M.point(T,t),N=0),M.point(D=e,t=j),i=T},lineEnd:function(){M.lineEnd(),D=t=NaN},clean:function(){return 2-N}}}),(function(M,N,D,t){var i;if(null==M)i=D*vA,t.point(-mA,i),t.point(0,i),t.point(mA,i),t.point(mA,0),t.point(mA,-i),t.point(0,-i),t.point(-mA,-i),t.point(-mA,0),t.point(-mA,i);else if(GA(M[0]-N[0])>fA){var e=M[0]<N[0]?mA:-mA;i=D*e/2,t.point(-e,i),t.point(0,i),t.point(e,i)}else t.point(N[0],N[1])}),[-mA,-vA]),cz=function(M,N){function D(M,N){return XA(M)*XA(N)>e}function t(M,N,D){var t=[1,0,0],i=Me(Ki(M),Ki(N)),j=$i(i,i),T=i[0],g=j-T*T;if(!g)return!D&&M;var u=e*j/g,s=-e*T/g,L=Me(t,i),I=De(t,u);Ne(I,De(i,s));var A=L,z=$i(I,A),n=$i(A,A),w=z*z-n*($i(I,I)-1);if(!(w<0)){var r=VA(w),y=De(A,(-z-r)/n);if(Ne(y,I),y=qi(y),!D)return y;var c,a=M[0],E=N[0],o=M[1],O=N[1];E<a&&(c=a,a=E,E=c);var x=E-a,C=GA(x-mA)<fA;if(!C&&O<o&&(c=o,o=O,O=c),C||x<fA?C?o+O>0^y[1]<(GA(y[0]-a)<fA?o:O):o<=y[1]&&y[1]<=O:x>mA^(a<=y[0]&&y[0]<=E)){var S=De(A,(-z+r)/n);return Ne(S,I),[y,qi(S)]}}}function i(N,D){var t=j?M:mA-M,i=0;return N<-t?i|=1:N>t&&(i|=2),D<-t?i|=4:D>t&&(i|=8),i}var e=XA(M),j=e>0,T=GA(e)>fA;return rz(D,(function(M){var N,e,g,u,s;return{lineStart:function(){u=g=!1,s=1},point:function(L,I){var A,z=[L,I],n=D(L,I),w=j?n?0:i(L,I):n?i(L+(L<0?mA:-mA),I):0;if(!N&&(u=g=n)&&M.lineStart(),n!==g&&(!(A=t(N,z))||iz(N,A)||iz(z,A))&&(z[0]+=fA,z[1]+=fA,n=D(z[0],z[1])),n!==g)s=0,n?(M.lineStart(),A=t(z,N),M.point(A[0],A[1])):(A=t(N,z),M.point(A[0],A[1]),M.lineEnd()),N=A;else if(T&&N&&j^n){var r;w&e||!(r=t(z,N,!0))||(s=0,j?(M.lineStart(),M.point(r[0][0],r[0][1]),M.point(r[1][0],r[1][1]),M.lineEnd()):(M.point(r[1][0],r[1][1]),M.lineEnd(),M.lineStart(),M.point(r[0][0],r[0][1])))}!n||N&&iz(N,z)||M.point(z[0],z[1]),N=z,g=n,e=w},lineEnd:function(){g&&M.lineEnd(),N=null},clean:function(){return s|(u&&g)<<1}}}),(function(D,t,i,e){!function(M,N,D,t,i,e){if(D){var j=XA(N),T=FA(N),g=t*D;null==i?(i=N+t*bA,e=N-g/2):(i=ue(j,i),e=ue(j,e),(t>0?i<e:i>e)&&(i+=t*bA));for(var u,s=i;t>0?s>e:s<e;s-=g)u=qi([j,-T*XA(s),-T*FA(s)]),M.point(u[0],u[1])}}(e,M,N,i,D,t)}),j?[0,-M]:[-mA,M-mA])};we.prototype={constructor:we,point:function(M,N){this.stream.point(M,N)},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 az=16,Ez=XA(30*ZA),oz=function(M,N){return+N?function(M,N){function D(t,i,e,j,T,g,u,s,L,I,A,z,n,w){var r=u-t,y=s-i,c=r*r+y*y;if(c>4*N&&n--){var a=j+I,E=T+A,o=g+z,O=VA(a*a+E*E+o*o),x=Hi(o/=O),C=GA(GA(o)-1)<fA||GA(e-L)<fA?(e+L)/2:WA(E,a),S=M(C,x),l=S[0],k=S[1],Q=l-t,d=k-i,Y=y*Q-r*d;(Y*Y/c>N||GA((r*Q+y*d)/c-.5)>.3||j*I+T*A+g*z<Ez)&&(D(t,i,e,j,T,g,l,k,C,a/=O,E/=O,o,n,w),w.point(l,k),D(l,k,C,a,E,o,u,s,L,I,A,z,n,w))}}return function(N){function t(D,t){D=M(D,t),N.point(D[0],D[1])}function i(){r=NaN,o.point=e,N.lineStart()}function e(t,i){var e=Ki([t,i]),j=M(t,i);D(r,y,w,c,a,E,r=j[0],y=j[1],w=t,c=e[0],a=e[1],E=e[2],az,N),N.point(r,y)}function j(){o.point=t,N.lineEnd()}function T(){i(),o.point=g,o.lineEnd=u}function g(M,N){e(s=M,N),L=r,I=y,A=c,z=a,n=E,o.point=e}function u(){D(r,y,w,c,a,E,L,I,s,A,z,n,az,N),o.lineEnd=j,j()}var s,L,I,A,z,n,w,r,y,c,a,E,o={point:t,lineStart:i,lineEnd:j,polygonStart:function(){N.polygonStart(),o.lineStart=T},polygonEnd:function(){N.polygonEnd(),o.lineStart=i}};return o}}(M,N):function(M){return ne({point:function(N,D){N=M(N,D),this.stream.point(N[0],N[1])}})}(M)},Oz=ne({point:function(M,N){this.stream.point(M*ZA,N*ZA)}});ce.invert=function(M,N){return[M,2*RA(HA(N))-vA]},ae.invert=function(M,N){return[-N,2*RA(HA(M))-vA]};var xz=function(){var M=function(M){function N(){var N=mA*T(),j=e(Nz(e.rotate()).invert([0,0]));return u(null==s?[[j[0]-N,j[1]-N],[j[0]+N,j[1]+N]]:M===ce?[[Math.max(j[0]-N,s),D],[Math.min(j[0]+N,t),i]]:[[s,Math.max(j[1]-N,D)],[t,Math.min(j[1]+N,i)]])}var D,t,i,e=ye(M),j=e.center,T=e.scale,g=e.translate,u=e.clipExtent,s=null;return e.scale=function(M){return arguments.length?(T(M),N()):T()},e.translate=function(M){return arguments.length?(g(M),N()):g()},e.center=function(M){return arguments.length?(j(M),N()):j()},e.clipExtent=function(M){return arguments.length?(null==M?s=D=t=i=null:(s=+M[0][0],D=+M[0][1],t=+M[1][0],i=+M[1][1]),N()):null==s?null:[[s,D],[t,i]]},N()}(ae),N=M.center,D=M.rotate;return M.center=function(M){return arguments.length?N([-M[1],M[0]]):(M=N(),[M[1],-M[0]])},M.rotate=function(M){return arguments.length?D([M[0],M[1],M.length>2?M[2]+90:90]):(M=D(),[M[0],M[1],M[2]-90])},D([0,0,90]).scale(159.155)};M.projection=xj,M.random=Ig,M.clusters=Ag,M.helpers=Be,M.invariant=Pe,M.meta=be,M.isolines=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.zProperty||"elevation",i=D.commonProperties||{},e=D.breaksProperties||[];if(F(M,"Point","Input must contain Points"),!N)throw new Error("breaks is required");if(!Array.isArray(N))throw new Error("breaks must be an Array");if(!x(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(e))throw new Error("breaksProperties must be an Array");var j=tM(M,{zProperty:t,flip:!0});return u(function(M,N,D){var t=G(D),i=t[2]-t[0],e=t[3]-t[1],j=t[0],T=t[1],g=N[0].length-1,u=N.length-1,s=i/g,L=e/u,I=function(M){M[0]=M[0]*s+j,M[1]=M[1]*L+T};return M.forEach((function(M){l(M,I)})),M}(function(M,N,D,t,i){for(var e=[],j=1;j<N.length;j++){var T=+N[j],g=Object.assign({},t,i[j]);g[D]=T;var u=s(K(M,T),g);e.push(u)}return e}(j,N,t,i,e),j,M))},M.convex=QM,M.pointsWithinPolygon=UM,M.concave=function(M,D){if(D=D||{},!x(D))throw new Error("options is invalid");if(!M)throw new Error("points is required");var t=D.maxEdge||1/0;if(!O(t))throw new Error("maxEdge is invalid");var i=pM(function(M){var N=[],D={};return Y(M,(function(M){if(M.geometry){var t=M.geometry.coordinates.join("-");D.hasOwnProperty(t)||(N.push(M),D[t]=!0)}})),u(N)}(M));if(i.features=i.features.filter((function(M){var N=M.geometry.coordinates[0][0],i=M.geometry.coordinates[0][1],e=M.geometry.coordinates[0][2],j=vM(N,i,D),T=vM(i,e,D),g=vM(N,e,D);return j<=t&&T<=t&&g<=t})),i.features.length<1)return null;var e=$M(i,D);return 1===e.coordinates.length&&(e.coordinates=e.coordinates[0],e.type="Polygon"),N(e)},M.collect=function(M,N,D,t){var i=We(6),e=N.features.map((function(M){return{minX:M.geometry.coordinates[0],minY:M.geometry.coordinates[1],maxX:M.geometry.coordinates[0],maxY:M.geometry.coordinates[1],property:M.properties[D]}}));return i.load(e),M.features.forEach((function(M){M.properties||(M.properties={});var N=G(M),D=[];i.search({minX:N[0],minY:N[1],maxX:N[2],maxY:N[3]}).forEach((function(N){dM([N.minX,N.minY],M)&&D.push(N.property)})),M.properties[t]=D})),M},M.flip=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if(!M)throw new Error("geojson is required");return!1!==D&&void 0!==D||(M=BM(M)),l(M,(function(M){var N=M[0],D=M[1];M[0]=D,M[1]=N})),M},M.simplify=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=void 0!==N.tolerance?N.tolerance:1,t=N.highQuality||!1,i=N.mutate||!1;if(!M)throw new Error("geojson is required");if(D&&D<0)throw new Error("invalid tolerance");return!0!==i&&(M=BM(M)),h(M,(function(M){!function(M,N,D){var t=M.type;if("Point"===t||"MultiPoint"===t)return M;MN(M,!0);var i=M.coordinates;switch(t){case"LineString":M.coordinates=jN(i,N,D);break;case"MultiLineString":M.coordinates=i.map((function(M){return jN(M,N,D)}));break;case"Polygon":M.coordinates=TN(i,N,D);break;case"MultiPolygon":M.coordinates=i.map((function(M){return TN(M,N,D)}))}}(M,D,t)})),M},M.bezierSpline=gN,M.tag=function(M,N,D,t){return M=BM(M),N=BM(N),Y(M,(function(M){M.properties||(M.properties={}),Y(N,(function(N){void 0===M.properties[t]&&dM(M,N)&&(M.properties[t]=N.properties[D])}))})),M},M.sample=function(M,N){if(!M)throw new Error("featurecollection is required");if(null===N||void 0===N)throw new Error("num is required");if("number"!=typeof N)throw new Error("num must be a number");return u(function(M,N){for(var D,t,i=M.slice(0),e=M.length,j=e-N;e-- >j;)t=Math.floor((e+1)*Math.random()),D=i[t],i[t]=i[e],i[e]=D;return i.slice(j)}(M.features,N))},M.envelope=sN,M.square=LN,M.circle=AN,M.midpoint=function(M,N){return IN(M,vM(M,N)/2,zN(M,N))},M.center=nN,M.centerOfMass=rN,M.centroid=wN,M.combine=function(M){function D(M,N,D){D?t[N].coordinates=t[N].coordinates.concat(M.geometry.coordinates):t[N].coordinates.push(M.geometry.coordinates),t[N].properties.push(M.properties)}var t={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},i=Object.keys(t).reduce((function(M,N){return M[N.replace("Multi","")]=N,M}),{});return Y(M,(function(M){M.geometry&&(t[M.geometry.type]?D(M,M.geometry.type,!0):i[M.geometry.type]&&D(M,i[M.geometry.type],!1))})),u(Object.keys(t).filter((function(M){return t[M].coordinates.length})).sort().map((function(M){return N({type:M,coordinates:t[M].coordinates},{collectedProperties:t[M].properties})})))},M.distance=vM,M.explode=yN,M.bbox=G,M.tesselate=function(M){if(!M.geometry||"Polygon"!==M.geometry.type&&"MultiPolygon"!==M.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var N={type:"FeatureCollection",features:[]};return"Polygon"===M.geometry.type?N.features=fN(M.geometry.coordinates):M.geometry.coordinates.forEach((function(M){N.features=N.features.concat(fN(M))})),N},M.bboxPolygon=uN,M.booleanPointInPolygon=dM,M.nearestPoint=mN,M.nearestPointOnLine=iD,M.nearestPointToLine=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units,i=D.properties||{};if(!M)throw new Error("points is required");if(!(M=function(M){var N=[];switch(M.geometry?M.geometry.type:M.type){case"GeometryCollection":return h(M,(function(M){"Point"===M.type&&N.push({type:"Feature",properties:{},geometry:M})})),{type:"FeatureCollection",features:N};case"FeatureCollection":return M.features=M.features.filter((function(M){return"Point"===M.geometry.type})),M;default:throw new Error("points must be a Point Collection")}}(M)).features.length)throw new Error("points must contain features");if(!N)throw new Error("line is required");if("LineString"!==q(N))throw new Error("line must be a LineString");var e=1/0,j=null;return Y(M,(function(M){var D=AD(M,N,{units:t});D<e&&(e=D,j=M)})),j&&(j.properties=Object.assign({dist:e},j.properties,i)),j},M.planepoint=function(M,N){var D=R(M),t=V(N).coordinates[0];if(t.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=N.properties||{},e=i.a,j=i.b,T=i.c,g=D[0],u=D[1],s=t[0][0],L=t[0][1],I=void 0!==e?e:t[0][2],A=t[1][0],z=t[1][1],n=void 0!==j?j:t[1][2],w=t[2][0],r=t[2][1],y=void 0!==T?T:t[2][2];return(y*(g-s)*(u-z)+I*(g-A)*(u-r)+n*(g-w)*(u-L)-n*(g-s)*(u-r)-y*(g-A)*(u-L)-I*(g-w)*(u-z))/((g-s)*(u-z)+(g-A)*(u-r)+(g-w)*(u-L)-(g-s)*(u-r)-(g-A)*(u-L)-(g-w)*(u-z))},M.tin=pM,M.bearing=zN,M.destination=IN,M.kinks=function(M){var N,D,i={type:"FeatureCollection",features:[]};if("LineString"===(D="Feature"===M.type?M.geometry:M).type)N=[D.coordinates];else if("MultiLineString"===D.type)N=D.coordinates;else if("MultiPolygon"===D.type)N=[].concat.apply([],D.coordinates);else{if("Polygon"!==D.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");N=D.coordinates}return N.forEach((function(M){N.forEach((function(N){for(var D=0;D<M.length-1;D++)for(var e=D;e<N.length-1;e++){if(M===N){if(1===Math.abs(D-e))continue;if(0===D&&e===M.length-2&&M[D][0]===M[M.length-1][0]&&M[D][1]===M[M.length-1][1])continue}var j=function(M,N,D,t,i,e,j,T){var g,u,s,L,I,A={x:null,y:null,onLine1:!1,onLine2:!1};return 0==(g=(T-e)*(D-M)-(j-i)*(t-N))?null!==A.x&&null!==A.y&&A:(u=N-e,s=M-i,L=(j-i)*u-(T-e)*s,I=(D-M)*u-(t-N)*s,u=L/g,s=I/g,A.x=M+u*(D-M),A.y=N+u*(t-N),u>=0&&u<=1&&(A.onLine1=!0),s>=0&&s<=1&&(A.onLine2=!0),!(!A.onLine1||!A.onLine2)&&[A.x,A.y])}(M[D][0],M[D][1],M[D+1][0],M[D+1][1],N[e][0],N[e][1],N[e+1][0],N[e+1][1]);j&&i.features.push(t([j[0],j[1]]))}}))})),i},M.pointOnFeature=nD,M.area=rD,M.along=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i;if("Feature"===M.type)i=M.geometry.coordinates;else{if("LineString"!==M.type)throw new Error("input must be a LineString Feature or Geometry");i=M.coordinates}if(!O(N))throw new Error("distance must be a number");for(var e=0,j=0;j<i.length&&!(N>=e&&j===i.length-1);j++){if(e>=N){var T=N-e;if(T){var g=zN(i[j],i[j-1])-180;return IN(i[j],T,g,D)}return t(i[j])}e+=vM(i[j],i[j+1],D)}return t(i[i.length-1])},M.length=oD,M.lineSlice=function(M,N,D){var t=W(D);if("LineString"!==q(D))throw new Error("line must be a LineString");for(var i,e=iD(D,M),j=iD(D,N),g=[(i=e.properties.index<=j.properties.index?[e,j]:[j,e])[0].geometry.coordinates],u=i[0].properties.index+1;u<i[1].properties.index+1;u++)g.push(t[u]);return g.push(i[1].geometry.coordinates),T(g,D.properties)},M.lineSliceAlong=OD,M.pointGrid=kD,M.truncate=QD,M.flatten=function(M){if(!M)throw new Error("geojson is required");var N=[];return m(M,(function(M){N.push(M)})),u(N)},M.lineIntersect=DD,M.lineChunk=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units,i=D.reverse;if(!M)throw new Error("geojson is required");if(N<=0)throw new Error("segmentLength must be greater than 0");var e=[];return m(M,(function(M){i&&(M.geometry.coordinates=M.geometry.coordinates.reverse()),function(M,N,D,t){var i=oD(M,{units:D});if(i<=N)return t(M);var e=i/N;Number.isInteger(e)||(e=Math.floor(e)+1);for(var j=0;j<e;j++){var T=OD(M,N*j,N*(j+1),{units:D});t(T,j)}}(M,N,t,(function(M){e.push(M)}))})),u(e)},M.unkinkPolygon=function(M){var N=[];return m(M,(function(M){"Polygon"===M.geometry.type&&Y(lj(M),(function(D){N.push(e(D.geometry.coordinates,M.properties))}))})),u(N)},M.greatCircle=function(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.properties,i=D.npoints,e=D.offset;return M=R(M),N=R(N),t=t||{},i=i||100,e=e||10,new fj({x:M[0],y:M[1]},{x:N[0],y:N[1]},t).Arc(i,{offset:e}).json()},M.lineSegment=ND,M.lineSplit=function(M,N){if(!M)throw new Error("line is required");if(!N)throw new Error("splitter is required");var D=q(M),t=q(N);if("LineString"!==D)throw new Error("line must be LineString");if("FeatureCollection"===t)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===t)throw new Error("splitter cannot be a GeometryCollection");var i=QD(N,{precision:7});switch(t){case"Point":return hD(M,i);case"MultiPoint":return pD(M,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return pD(M,DD(M,i))}},M.lineArc=vD,M.polygonToLine=bD,M.lineToPolygon=ZD,M.bboxClip=function(M,N){var D=function(M){return M.geometry?M.geometry.type:M.type}(M),t=W(M),i=M.properties;switch(D){case"LineString":case"MultiLineString":var j=[];return"LineString"===D&&(t=[t]),t.forEach((function(M){mj(M,N,j)})),1===j.length?T(j[0],i):s(j,i);case"Polygon":return e(_D(t,N),i);case"MultiPolygon":return I(t.map((function(M){return _D(M,N)})),i);default:throw new Error("geometry "+D+" not supported")}},M.lineOverlap=KD,M.sector=function(M,N,D,t,i){if(i=i||{},!x(i))throw new Error("options is invalid");if(!M)throw new Error("center is required");if(void 0===D||null===D)throw new Error("bearing1 is required");if(void 0===t||null===t)throw new Error("bearing2 is required");if(!N)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(Mt(D)===Mt(t))return AN(M,N,i);var j=W(M),T=[[j]];return l(vD(M,N,D,t,i),(function(M){T[0].push(M)})),T[0].push(j),e(T)},M.rhumbBearing=eD,M.rhumbDistance=TD,M.rhumbDestination=Nt,M.polygonTangents=function(M,N){var D,i,e,j=W(M),T=W(N);switch(q(N)){case"Polygon":D=T[0][0],i=T[0][0],e=tt(T[0][0],T[0][T[0].length-1],j);var g=Dt(T[0],j,e,void 0,D,i);D=g[0],i=g[1];break;case"MultiPolygon":D=T[0][0][0],i=T[0][0][0],e=tt(T[0][0][0],T[0][0][T[0][0].length-1],j),T.forEach((function(M){var N=Dt(M[0],j,e,void 0,D,i);D=N[0],i=N[1]}))}return u([t(D),t(i)])},M.rewind=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.reverse||!1,t=N.mutate||!1;if(!M)throw new Error("<geojson> is required");if("boolean"!=typeof D)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof t)throw new Error("<mutate> must be a boolean");!1===t&&(M=BM(M));var i=[];switch(M.type){case"GeometryCollection":return h(M,(function(M){et(M,D)})),M;case"FeatureCollection":return Y(M,(function(M){Y(et(M,D),(function(M){i.push(M)}))})),u(i)}return et(M,D)},M.isobands=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.zProperty||"elevation",i=D.commonProperties||{},j=D.breaksProperties||[];if(F(M,"Point","Input must contain Points"),!N)throw new Error("breaks is required");if(!Array.isArray(N))throw new Error("breaks is not an Array");if(!x(i))throw new Error("commonProperties is not an Object");if(!Array.isArray(j))throw new Error("breaksProperties is not an Array");var T=gt(M,{zProperty:t,flip:!0}),g=function(M,N,D){for(var t=[],i=1;i<N.length;i++){var j=+N[i-1],T=+N[i],g=ut(M,j,T-j),u=function(M){var N=[],D=[];M.forEach((function(M){var t=rD(e([M]));D.push(t),N.push({ring:M,area:t})})),D.sort((function(M,N){return N-M}));var t=[];return D.forEach((function(M){for(var D=0;D<N.length;D++)if(N[D].area===M){t.push(N[D].ring),N.splice(D,1);break}})),t}(g),s=function(M){for(var N=M.map((function(M){return{lrCoordinates:M,grouped:!1}})),D=[];!function(M){for(var N=0;N<M.length;N++)if(!1===M[N].grouped)return!1;return!0}(N);)for(var t=0;t<N.length;t++)if(!N[t].grouped){var i=[];i.push(N[t].lrCoordinates),N[t].grouped=!0;for(var j=e([N[t].lrCoordinates]),T=t+1;T<N.length;T++)if(!N[T].grouped){var g=e([N[T].lrCoordinates]);(function(M,N){for(var D=yN(M),t=0;t<D.features.length;t++)if(!dM(D.features[t],N))return!1;return!0})(g,j)&&(i.push(N[T].lrCoordinates),N[T].grouped=!0)}D.push(i)}return D}(u),L={};L.groupedRings=s,L[D]=j+"-"+T,t.push(L)}return t}(T,N,t);return u((g=function(M,N,D){var t=G(D),i=t[2]-t[0],e=t[3]-t[1],j=t[0],T=t[1],g=N[0].length-1,u=N.length-1,s=i/g,L=e/u,I=function(M){M[0]=M[0]*s+j,M[1]=M[1]*L+T};return M.forEach((function(M){M.groupedRings.forEach((function(M){M.forEach((function(M){M.forEach(I)}))}))})),M}(g,T,M)).map((function(M,N){if(j[N]&&!x(j[N]))throw new Error("Each mappedProperty is required to be an Object");var D=Object.assign({},i,j[N]);return D[t]=M[t],I(M.groupedRings,D)})))},M.transformRotate=It,M.transformScale=At,M.transformTranslate=function(M,N,D,t){if(t=t||{},!x(t))throw new Error("options is invalid");var i=t.units,e=t.zTranslation,j=t.mutate;if(!M)throw new Error("geojson is required");if(void 0===N||null===N||isNaN(N))throw new Error("distance is required");if(e&&"number"!=typeof e&&isNaN(e))throw new Error("zTranslation is not a number");if(e=void 0!==e?e:0,0===N&&0===e)return M;if(void 0===D||null===D||isNaN(D))throw new Error("direction is required");return N<0&&(N=-N,D=-D),!1!==j&&void 0!==j||(M=BM(M)),l(M,(function(M){var t=W(Nt(M,N,D,{units:i}));M[0]=t[0],M[1]=t[1],e&&3===M.length&&(M[2]+=e)})),M},M.lineOffset=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units;if(!M)throw new Error("geojson is required");if(void 0===N||null===N||isNaN(N))throw new Error("distance is required");var i=q(M),e=M.properties;switch(i){case"LineString":return yt(M,N,t);case"MultiLineString":var j=[];return m(M,(function(M){j.push(yt(M,N,t).geometry.coordinates)})),s(j,e);default:throw new Error("geometry "+i+" is not supported")}},M.polygonize=function(M){var N=fT.fromGeoJson(M);N.deleteDangles(),N.deleteCutEdges();var D=[],t=[];return N.getEdgeRings().filter((function(M){return M.isValid()})).forEach((function(M){M.isHole()?D.push(M):t.push(M)})),D.forEach((function(M){pT.findEdgeRingContaining(M,t)&&t.push(M)})),u(t.map((function(M){return M.toPolygon()})))},M.booleanDisjoint=function(M,N){var D;return m(M,(function(M){m(N,(function(N){if(!1===D)return!1;D=function(M,N){switch(M.type){case"Point":switch(N.type){case"Point":return!function(M,N){return M[0]===N[0]&&M[1]===N[1]}(M.coordinates,N.coordinates);case"LineString":return!Et(N,M);case"Polygon":return!dM(M,N)}break;case"LineString":switch(N.type){case"Point":return!Et(M,N);case"LineString":return!function(M,N){return DD(M,N).features.length>0}(M,N);case"Polygon":return!ot(N,M)}break;case"Polygon":switch(N.type){case"Point":return!dM(N,M);case"LineString":return!ot(M,N);case"Polygon":return!function(M,N){for(var D=0;D<M.coordinates[0].length;D++)if(dM(M.coordinates[0][D],N))return!0;for(var t=0;t<N.coordinates[0].length;t++)if(dM(N.coordinates[0][t],M))return!0;return!1}(N,M)}}}(M.geometry,N.geometry)}))})),D},M.booleanContains=function(M,N){var D=q(M),t=q(N),i=V(M),e=V(N),j=W(M),T=W(N);switch(D){case"Point":switch(t){case"Point":return xt(j,T);default:throw new Error("feature2 "+t+" geometry not supported")}case"MultiPoint":switch(t){case"Point":return function(M,N){var D,t=!1;for(D=0;D<M.coordinates.length;D++)if(xt(M.coordinates[D],N.coordinates)){t=!0;break}return t}(i,e);case"MultiPoint":return function(M,N){for(var D=0;D<N.coordinates.length;D++){for(var t=!1,i=0;i<M.coordinates.length;i++)if(xt(N.coordinates[D],M.coordinates[i])){t=!0;break}if(!t)return!1}return!0}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"LineString":switch(t){case"Point":return xD(e,i,{ignoreEndVertices:!0});case"LineString":return function(M,N){for(var D=!1,t=0;t<N.coordinates.length;t++)if(xD({type:"Point",coordinates:N.coordinates[t]},M,{ignoreEndVertices:!0})&&(D=!0),!xD({type:"Point",coordinates:N.coordinates[t]},M,{ignoreEndVertices:!1}))return!1;return D}(i,e);case"MultiPoint":return function(M,N){for(var D=!1,t=0;t<N.coordinates.length;t++)if(xD(N.coordinates[t],M,{ignoreEndVertices:!0})&&(D=!0),!xD(N.coordinates[t],M))return!1;return!!D}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"Polygon":switch(t){case"Point":return dM(e,i,{ignoreBoundary:!0});case"LineString":return function(M,N){var D=!1,t=0,i=G(M),e=G(N);if(!Ot(i,e))return!1;for(;t<N.coordinates.length-1;t++){var j=function(M,N){return[(M[0]+N[0])/2,(M[1]+N[1])/2]}(N.coordinates[t],N.coordinates[t+1]);if(dM({type:"Point",coordinates:j},M,{ignoreBoundary:!0})){D=!0;break}}return D}(i,e);case"Polygon":return function(M,N){var D=G(M),t=G(N);if(!Ot(D,t))return!1;for(var i=0;i<N.coordinates[0].length;i++)if(!dM(N.coordinates[0][i],M))return!1;return!0}(i,e);case"MultiPoint":return function(M,N){for(var D=0;D<N.coordinates.length;D++)if(!dM(N.coordinates[D],M,{ignoreBoundary:!0}))return!1;return!0}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}default:throw new Error("feature1 "+D+" geometry not supported")}},M.booleanCrosses=function(M,N){var D=q(M),t=q(N),i=V(M),e=V(N);switch(D){case"MultiPoint":switch(t){case"LineString":return Ct(i,e);case"Polygon":return lt(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"LineString":switch(t){case"MultiPoint":return Ct(e,i);case"LineString":return function(M,N){if(DD(M,N).features.length>0)for(var D=0;D<M.coordinates.length-1;D++)for(var t=0;t<N.coordinates.length-1;t++){var i=!0;if(0!==t&&t!==N.coordinates.length-2||(i=!1),kt(M.coordinates[D],M.coordinates[D+1],N.coordinates[t],i))return!0}return!1}(i,e);case"Polygon":return St(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"Polygon":switch(t){case"MultiPoint":return lt(e,i);case"LineString":return St(e,i);default:throw new Error("feature2 "+t+" geometry not supported")}default:throw new Error("feature1 "+D+" geometry not supported")}},M.booleanClockwise=it,M.booleanOverlap=Ut,M.booleanPointOnLine=xD,M.booleanEqual=function(M,N){if(!M)throw new Error("feature1 is required");if(!N)throw new Error("feature2 is required");return q(M)===q(N)&&new PT({precision:6}).compare(MN(M),MN(N))},M.booleanWithin=CD,M.clone=BM,M.cleanCoords=MN,M.clustersDbscan=function(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.minPoints,i=D.units;if(F(M,"Point","Input must contain Points"),null===N||void 0===N)throw new Error("maxDistance is required");if(!(Math.sign(N)>0))throw new Error("Invalid maxDistance");if(!(void 0===t||null===t||Math.sign(t)>0))throw new Error("Invalid minPoints");M=BM(M),t=t||3;var e=new XT.DBSCAN,j=-1;return e.run(p(M),E(N,i),t,vM).forEach((function(N){j++,N.forEach((function(N){var D=M.features[N];D.properties||(D.properties={}),D.properties.cluster=j,D.properties.dbscan="core"}))})),e.noise.forEach((function(N){var D=M.features[N];D.properties||(D.properties={}),D.properties.cluster?D.properties.dbscan="edge":D.properties.dbscan="noise"})),M},M.clustersKmeans=function(M,N){if("object"!=typeof(N=N||{}))throw new Error("options is invalid");var D=N.numberOfClusters,t=N.mutate;F(M,"Point","Input must contain Points");var i=M.features.length;(D=D||Math.round(Math.sqrt(i/2)))>i&&(D=i),!1!==t&&void 0!==t||(M=BM(M));var e=p(M),j=e.slice(0,D),T=$T(e,D,j),g={};return T.centroids.forEach((function(M,N){g[N]=M})),Y(M,(function(M,N){var D=T.idxs[N];M.properties.cluster=D,M.properties.centroid=g[D]})),M},M.pointToLineDistance=AD,M.booleanParallel=function(M,N){if(!M)throw new Error("line1 is required");if(!N)throw new Error("line2 is required");if("LineString"!==ht(M,"line1"))throw new Error("line1 must be a LineString");if("LineString"!==ht(N,"line2"))throw new Error("line2 must be a LineString");for(var D=ND(MN(M)).features,t=ND(MN(N)).features,i=0;i<D.length;i++){var e=D[i].geometry.coordinates;if(!t[i])break;if(!function(M,N){var D=y(eD(M[0],M[1])),t=y(eD(N[0],N[1]));return D===t}(e,t[i].geometry.coordinates))return!1}return!0},M.shortestPath=function(M,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.resolution,j=i.minDistance,g=i.obstacles||u([]);if(!M)throw new Error("start is required");if(!D)throw new Error("end is required");if(e&&!O(e)||e<=0)throw new Error("options.resolution must be a number, greater than 0");if(j)throw new Error("options.minDistance is not yet implemented");var s=R(M),L=R(D);switch(M=t(s),D=t(L),q(g)){case"FeatureCollection":if(0===g.features.length)return T([s,L]);break;case"Polygon":g=u([N(V(g))]);break;default:throw new Error("invalid obstacles")}var I=g;I.features.push(M),I.features.push(D);var A=G(At(uN(G(I)),1.15));e||(e=vM([A[0],A[1]],[A[2],A[1]],i)/100),I.features.pop(),I.features.pop();for(var z=A[0],n=A[1],w=A[2],r=A[3],y=e/vM([z,n],[w,n],i)*(w-z),c=e/vM([z,n],[z,r],i)*(r-n),a=w-z,E=r-n,o=(a-Math.floor(a/y)*y)/2,C=[],S=[],l=[],k=[],Q=1/0,d=1/0,Y=r-(E-Math.floor(E/c)*c)/2,U=0;Y>=n;){for(var p=[],h=[],f=z+o,m=0;f<=w;){var v=t([f,Y]),B=function(M,N){for(var D=0;D<N.features.length;D++)if(dM(M,N.features[D]))return!0;return!1}(v,g);p.push(B?0:1),h.push(f+"|"+Y);var b=vM(v,M);!B&&b<Q&&(Q=b,l={x:m,y:U});var P=vM(v,D);!B&&P<d&&(d=P,k={x:m,y:U}),f+=y,m++}S.push(p),C.push(h),Y-=c,U++}var Z=new mt(S,{diagonal:!0}),W=Z.grid[l.y][l.x],X=Z.grid[k.y][k.x],H=[s];return Mg.search(Z,W,X).forEach((function(M){var N=C[M.x][M.y].split("|");H.push([+N[0],+N[1]])})),H.push(L),MN(T(H))},M.voronoi=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox||[-180,-85,180,85];if(!M)throw new Error("points is required");if(!Array.isArray(D))throw new Error("bbox is invalid");return F(M,"Point","points"),u(Lg().x((function(M){return M.geometry.coordinates[0]})).y((function(M){return M.geometry.coordinates[1]})).extent([[D[0],D[1]],[D[2],D[3]]]).polygons(M.features).map(si))},M.ellipse=Li,M.centerMean=Ai,M.centerMedian=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.counter||10;if(!O(D))throw new Error("counter must be a number");var t=N.weight,i=Ai(M,{weight:N.weight}),e=u([]);return Y(M,(function(M){e.features.push(wN(M,{weight:M.properties[t]}))})),e.properties={tolerance:N.tolerance,medianCandidates:[]},zi(i.geometry.coordinates,[0,0],e,D)},M.standardDeviationalEllipse=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.steps||64,t=N.weight,i=N.properties||{};if(!O(D))throw new Error("steps must be a number");if(!x(i))throw new Error("properties must be a number");var e=p(M).length,j=Ai(M,{weight:t}),T=0,g=0,s=0;Y(M,(function(M){var N=M.properties[t]||1,D=ni(W(M),W(j));T+=Math.pow(D.x,2)*N,g+=Math.pow(D.y,2)*N,s+=D.x*D.y*N}));var L=T-g,I=Math.sqrt(Math.pow(L,2)+4*Math.pow(s,2)),A=2*s,z=Math.atan((L+I)/A),n=180*z/Math.PI,w=0,r=0,y=0;Y(M,(function(M){var N=M.properties[t]||1,D=ni(W(M),W(j));w+=Math.pow(D.x*Math.cos(z)-D.y*Math.sin(z),2)*N,r+=Math.pow(D.x*Math.sin(z)+D.y*Math.cos(z),2)*N,y+=N}));var c=Math.sqrt(2*w/y),a=Math.sqrt(2*r/y),E=Li(j,c,a,{units:"degrees",angle:n,steps:D,properties:i}),o=UM(M,u([E])),C={meanCenterCoordinates:W(j),semiMajorAxis:c,semiMinorAxis:a,numberOfFeatures:e,angle:n,percentageWithinEllipse:100*p(o).length/e};return E.properties.standardDeviationalEllipse=C,E},M.difference=function(M,D){var t=V(M),i=V(D),e=M.properties||{};if(t=Ri(t),i=Ri(i),!t)return null;if(!i)return N(t,e);var j=new Es,T=j.read(t),g=j.read(i),u=OA.difference(T,g);return u.isEmpty()?null:N((new os).write(u),e)},M.buffer=function(M,N,D){var t=(D=D||{}).units,i=D.steps||64;if(!M)throw new Error("geojson is required");if("object"!=typeof D)throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be an number");if(void 0===N)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");i=i||64,t=t||"kilometers";var e=[];switch(M.type){case"GeometryCollection":return h(M,(function(M){var D=Ee(M,N,t,i);D&&e.push(D)})),u(e);case"FeatureCollection":return Y(M,(function(M){var D=Ee(M,N,t,i);D&&Y(D,(function(M){M&&e.push(M)}))})),u(e)}return Ee(M,N,t,i)},M.union=Se,M.intersect=le,M.dissolve=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.propertyName;F(M,"Polygon","dissolve");var t=BM(M),i=t.features,e=[];i.forEach((function(M,N){M.properties.origIndexPosition=N}));var j=KN();for(var g in j.load(t),i){var u=i[g],s=!1;if(j.search(u).features.forEach((function(M){u=i[g];var N=M.properties.origIndexPosition;if(e.length>0&&0!==N)if(N>e[e.length-1])N-=e.length;else{var t=ke(N,e);0!==t&&(N-=t)}if(N!==+g){var L=i[N];L&&u&&(void 0!==D&&L.properties[D]!==u.properties[D]||Ut(u,L)&&function(M,N){var D=T(p(M)),t=T(p(N));return DD(D,t).features.length>0}(u,L)&&(i[g]=Se(u,L),e.push(M.properties.origIndexPosition),e.sort((function(M,N){return M-N})),j.remove(M),i.splice(N,1),u.properties.origIndexPosition=g,j.remove(u,(function(M,N){return M.properties.origIndexPosition===N.properties.origIndexPosition})),s=!0))}})),s){if(!u)continue;u.properties.origIndexPosition=g,j.insert(u),g--}}return i.forEach((function(M){delete M.properties.origIndexPosition,delete M.bbox})),t},M.hexGrid=Qe,M.mask=function(M,N){var D=function(M){return e(M&&M.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}(N),t=function(M){var N=[],D=[];return m(M,(function(M){var t=M.geometry.coordinates,i=t[0],j=t.slice(1);N.push(e([i])),j.forEach((function(M){D.push(e([M]))}))})),[u(N),u(D)]}(M),i=t[0],j=t[1];return function(M,N,D){var t=[];return t.push(M.geometry.coordinates[0]),m(N,(function(M){t.push(M.geometry.coordinates[0])})),m(D,(function(M){t.push(M.geometry.coordinates[0])})),e(t)}(D,i=de(i),j=de(j))},M.squareGrid=Ue,M.triangleGrid=pe,M.interpolate=function(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.gridType,i=D.property,e=D.weight;if(!M)throw new Error("points is required");if(F(M,"Point","input must contain Points"),!N)throw new Error("cellSize is required");if(void 0!==e&&"number"!=typeof e)throw new Error("weight must be a number");i=i||"elevation",t=t||"square",e=e||1;var j,T=G(M);switch(t){case"point":case"points":j=kD(T,N,D);break;case"square":case"squares":j=Ue(T,N,D);break;case"hex":case"hexes":j=Qe(T,N,D);break;case"triangle":case"triangles":j=pe(T,N,D);break;default:throw new Error("invalid gridType")}var g=[];return Y(j,(function(N){var j=0,T=0;Y(M,(function(M){var g,u=vM("point"===t?N:wN(N),M,D);if(void 0!==i&&(g=M.properties[i]),void 0===g&&(g=M.geometry.coordinates[2]),void 0===g)throw new Error("zValue is missing");0===u&&(j=g);var s=1/Math.pow(u,e);T+=s,j+=s*g}));var u=BM(N);u.properties[i]=j/T,g.push(u)})),u(g)},M.pointOnSurface=nD,M.polygonToLineString=bD,M.lineStringToPolygon=ZD,M.inside=dM,M.within=UM,M.bezier=gN,M.nearest=mN,M.pointOnLine=iD,M.lineDistance=oD,M.radians2degrees=c,M.degrees2radians=a,M.distanceToDegrees=r,M.distanceToRadians=w,M.radiansToDistance=n,M.bearingToAngle=y,M.convertDistance=E,M.toMercator=gD,M.toWgs84=uD,M.randomPosition=wi,M.randomPoint=ri,M.randomPolygon=yi,M.randomLineString=ci,M.getCluster=Ei,M.clusterEach=oi,M.clusterReduce=Oi,M.createBins=xi,M.applyFilter=Ci,M.propertiesContainsFilter=Si,M.filterProperties=li,M.earthRadius=he,M.factors=fe,M.unitsFactors=me,M.areaFactors=ve,M.feature=N,M.geometry=D,M.point=t,M.points=i,M.polygon=e,M.polygons=j,M.lineString=T,M.lineStrings=g,M.featureCollection=u,M.multiLineString=s,M.multiPoint=L,M.multiPolygon=I,M.geometryCollection=A,M.round=z,M.radiansToLength=n,M.lengthToRadians=w,M.lengthToDegrees=r,M.bearingToAzimuth=y,M.radiansToDegrees=c,M.degreesToRadians=a,M.convertLength=E,M.convertArea=o,M.isNumber=O,M.isObject=x,M.validateBBox=C,M.validateId=S,M.getCoord=R,M.getCoords=W,M.containsNumber=X,M.geojsonType=H,M.featureOf=_,M.collectionOf=F,M.getGeom=V,M.getGeomType=J,M.getType=q,M.coordEach=l,M.coordReduce=k,M.propEach=Q,M.propReduce=d,M.featureEach=Y,M.featureReduce=U,M.coordAll=p,M.geomEach=h,M.geomReduce=f,M.flattenEach=m,M.flattenReduce=v,M.segmentEach=B,M.segmentReduce=b,M.lineEach=P,M.lineReduce=Z,Object.defineProperty(M,"__esModule",{value:!0})}))},5962:function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wY180My1zZWxtayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTc3LDEzOS43ODkxIEM4OS41NTgsMTM5Ljc4OTEgOTkuNzM3LDE0Mi45NzExIDk5LjczNywxNDYuODk0MSBDOTkuNzM3LDE1MC44MTkxIDg5LjU1OCwxNTQuMDAwMSA3NywxNTQuMDAwMSBDNjQuNDQyLDE1NC4wMDAxIDU0LjI2MywxNTAuODE5MSA1NC4yNjMsMTQ2Ljg5NDEgQzU0LjI2MywxNDIuOTcxMSA2NC40NDIsMTM5Ljc4OTEgNzcsMTM5Ljc4OTEiIGlkPSJzb21icmEtMiIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiM1MjVDNjUiPjwvcGF0aD4KICAgICAgICA8cGF0aCBkPSJNNzcsMTQ1LjQ3MzYgQzgzLjI3OCwxNDUuNDczNiA4OC4zNjgsMTQ2Ljc0NTYgODguMzY4LDE0OC4zMTU2IEM4OC4zNjgsMTQ5Ljg4NTYgODMuMjc4LDE1MS4xNTg2IDc3LDE1MS4xNTg2IEM3MC43MjIsMTUxLjE1ODYgNjUuNjMyLDE0OS44ODU2IDY1LjYzMiwxNDguMzE1NiBDNjUuNjMyLDE0Ni43NDU2IDcwLjcyMiwxNDUuNDczNiA3NywxNDUuNDczNiIgaWQ9InNvbWJyYS0xIiBmaWxsLW9wYWNpdHk9IjAuNCIgZmlsbD0iIzUyNUM2NSI+PC9wYXRoPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xMjIsMTQ5Ljk1IEw3NywxNDkuOTUgTDc2Ljg3OCwxNDkuOTUgQzczLjg4NywxNDkuOTUgNzEuMDY5LDE0OC42NDIgNjkuMTQ2LDE0Ni4zNjIgTDU1LjM0LDEzMCBMMzUsMTMwIEMyNi43MjksMTMwIDIwLDEyMy4yNzEgMjAsMTE1IEwyMCwzMSBDMjAsMjIuNzI5IDI2LjcyOSwxNiAzNSwxNiBMMTE5LDE2IEMxMjcuMjcxLDE2IDEzNCwyMi43MjkgMTM0LDMxIEwxMzQsMTE1IEMxMzQsMTIzLjI3MSAxMjcuMjcxLDEzMCAxMTksMTMwIEw5OC42NiwxMzAgTDg0Ljg1MywxNDYuMzYyIEM4Mi45MzEsMTQ4LjY0MiA4MC4xMTMsMTQ5Ljk1IDc3LjEyMiwxNDkuOTUiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTExOSwxOSBMMzUsMTkgQzI4LjM3MywxOSAyMywyNC4zNzMgMjMsMzEgTDIzLDExNSBDMjMsMTIxLjYyNyAyOC4zNzMsMTI3IDM1LDEyNyBMNTYuNzM0LDEyNyBMNzEuNDM5LDE0NC40MjggQzcyLjg3NCwxNDYuMTI5IDc0LjkzNywxNDYuOTg0IDc3LDE0Ni45NDkwOTEgQzc5LjA2MywxNDYuOTg0IDgxLjEyNiwxNDYuMTI5IDgyLjU2MSwxNDQuNDI4IEw5Ny4yNjYsMTI3IEwxMTksMTI3IEMxMjUuNjI3LDEyNyAxMzEsMTIxLjYyNyAxMzEsMTE1IEwxMzEsMzEgQzEzMSwyNC4zNzMgMTI1LjYyNywxOSAxMTksMTkiIGlkPSJtYXJjYWRvci1pbmRpY2UiIGZpbGw9IiM4RUJBRTUiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0ibWFyY2Fkb3Jlcy0vLXBjXzQzLW1rIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgLTQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsLW9wYWNpdHk9IjAiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPGcgaWQ9InBvaS0vLXBjXzQzIj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiM4RUJBRTUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik01OS4wMjk2LDUzLjkxMTYgQzU4LjQzNzYsNDcuOTI2NiA1My45MTQ2LDQ0LjA0NDYgNDcuODgyNiw0NC4wNDQ2IEM0MS43MTY2LDQ0LjA0NDYgMzYuMzI3Niw0OC42MTQ2IDM2LjMyNzYsNTUuMDA3NiBDMzYuMzI3Niw2Ny4xMTQ2IDUzLjA0NTYsNjMuMDAzNiA1My4wNDU2LDcwLjEzMDYgQzUzLjA0NTYsNzMuMTkwNiA1MC43MTY2LDc0LjY1MTYgNDcuOTI5Niw3NC42NTE2IEM0NC41NDg2LDc0LjY1MTYgNDIuOTk1Niw3Mi40MTI2IDQyLjM1NjYsNjkuMzk4NiBMMzUuMjMwNiw3MC40NDk2IEMzNi4zMjc2LDc3LjM5MzYgNDEuMjE0Niw4MC42ODE2IDQ3Ljk3NDYsODAuNjgxNiBDNTYuNzQ1Niw4MC42ODE2IDYwLjAzNTYsNzQuMTk1NiA2MC4wMzU2LDY5Ljg1NTYgQzYwLjAzNTYsNTYuNjA1NiA0My4zMTY2LDYxLjE3NTYgNDMuMzE2Niw1NC4xODY2IEM0My4zMTY2LDUxLjc2NzYgNDUuMzI1Niw1MC4wNzQ2IDQ3LjY1NTYsNTAuMDc0NiBDNTAuNTMyNiw1MC4wNzQ2IDUxLjkwMzYsNTIuNTg4NiA1Mi41ODk2LDU1LjA1NDYgTDU5LjAyOTYsNTMuOTExNiBaIE02Ni4wMTU2LDQ0LjU5MjYgTDY2LjAxNTYsODAuMTMzNiBMNzMuMTQzNiw4MC4xMzM2IEw3My4xNDM2LDY2LjUyMjYgTDc3LjkzOTYsNjYuNTIyNiBDODguMjE3Niw2Ni41MjI2IDkxLjQxNTYsNjEuMTc1NiA5MS40MTU2LDU1Ljc4NDYgQzkxLjQxNTYsNTAuNjY4NiA4Ny45ODg2LDQ0LjU5MjYgNzkuNzIwNiw0NC41OTI2IEw2Ni4wMTU2LDQ0LjU5MjYgWiBNNzMuMTQzNiw2MC40ODk2IEw3My4xNDM2LDUwLjYyMTYgTDc0LjYwNDYsNTAuNjIxNiBDNzguNDg2Niw1MC42MjE2IDg0LjEwNzYsNDkuOTgzNiA4NC4xMDc2LDU1LjU1NTYgQzg0LjEwNzYsNjEuMTMwNiA3OC40ODY2LDYwLjQ4OTYgNzQuNjA0Niw2MC40ODk2IEw3My4xNDM2LDYwLjQ4OTYgWiBNMTExLjE0OTYsNDQuNTkyNiBMMTAxLjU1NDYsNDQuNTkyNiBMOTEuNTk3Niw4MC4xMzM2IEw5OC44NjA2LDgwLjEzMzYgTDEwMS4xODk2LDcxLjIyNTYgTDExMS42OTY2LDcxLjIyNTYgTDExNC4wMjY2LDgwLjEzMzYgTDEyMS4yODk2LDgwLjEzMzYgTDExMS4xNDk2LDQ0LjU5MjYgWiBNMTEwLjI4MDYsNjUuNjA2NiBMMTAyLjYwNTYsNjUuNjA2NiBMMTA2LjM1MjYsNTAuNzE1NiBMMTEwLjI4MDYsNjUuNjA2NiBaIE0xMjUuNDg4NiwxMDEuMDgxNiBDMTA5Ljk1MTYsMTAxLjA4MTYgMTA3LjU5NzYsOTIuMzM1NiA5Mi44NDQ2LDkyLjMzNTYgQzc4LjA5MDYsOTIuMzM1NiA3NS43NDg2LDEwMS4wODc2IDYwLjIwODYsMTAxLjA4NzYgQzQ0LjY2OTYsMTAxLjA4NzYgNDIuMzE4Niw5Mi4zMzU2IDI3LjU2NDYsOTIuMzM1NiBMMjcuNTY0Niw4NS45NTM2IEM0NS45Mzk2LDg1Ljk1MzYgNDQuODk3Niw5NC43MDk2IDYwLjIwODYsOTQuNzA5NiBDNzUuNTE4Niw5NC43MDk2IDc0LjQ3MTYsODUuOTUzNiA5Mi44NDQ2LDg1Ljk1MzYgQzExMS4yMTk2LDg1Ljk1MzYgMTEwLjE4MjYsOTQuNzE2NiAxMjUuNDg4Niw5NC43MTY2IEwxMjUuNDg4NiwxMDEuMDgxNiBaIE0xMjUuNDg4NiwxMTQuMzM0NiBDMTA5Ljk1MTYsMTE0LjMzNDYgMTA3LjU5NzYsMTA1LjU5NDYgOTIuODQ0NiwxMDUuNTk0NiBDNzguMDkwNiwxMDUuNTk0NiA3NS43NDg2LDExNC4zNDY2IDYwLjIwODYsMTE0LjM0NjYgQzQ0LjY2OTYsMTE0LjM0NjYgNDIuMzE4NiwxMDUuNTk0NiAyNy41NjQ2LDEwNS41OTQ2IEwyNy41NjQ2LDk5LjIxMDYgQzQ1LjkzOTYsOTkuMjEwNiA0NC44OTc2LDEwNy45Njg2IDYwLjIwODYsMTA3Ljk2ODYgQzc1LjUxODYsMTA3Ljk2ODYgNzQuNDcxNiw5OS4yMTA2IDkyLjg0NDYsOTkuMjEwNiBDMTExLjIxOTYsOTkuMjEwNiAxMTAuMTgyNiwxMDcuOTcxNiAxMjUuNDg4NiwxMDcuOTcxNiBMMTI1LjQ4ODYsMTE0LjMzNDYgWiIgaWQ9IkZpbGwtMSIgZmlsbD0iIzM4MkYyRCI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="},"598a":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
|
|
108
108
|
//! moment.js locale configuration
|