PageSourceSearch

https://www.meteored.mx/js/bundle/9205/692e069511322ccb8515.js

js meteored.mx collected 2026-10-02 08:20:13 UTC 11,202 bytes, 1 lines download raw bytes

1(self.webpackChunktiempo=self.webpackChunktiempo||[]).push([[9205],{9404:function(t,e,n){"use strict";n.d(e,{I:function(){return i}});var a=n(7623),s=n(8023);class i{static sendSecondaryView(t=!0,e=!0){t&&s.i.setPopUpBlock(!0),e&&a.q.sendSecondaryView(this.name_view)}static resetDimensions(t=!0){t&&s.i.setPopUpBlock(!1),a.q.resetSecondaryView()}}i.name_view="default"},3691:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var a,s=n(4678);!function(t){t[t.m=0]="m",t[t.ft=1]="ft"}(a||(a={}));var i=function(t,e,n=!1,i=!0){var d,r;const c=i&&null!==(d=s.A.settings.vars.altitudes[e])&&void 0!==d?d:"",o=i&&null!==(r=s.A.settings.vars.snows[e])&&void 0!==r?r:"",l=t=>parseFloat(t.toFixed(3));switch(e){case a.ft:return n?l(t=Math.round(.3937*t))+" "+o:t>30.48?l(t=Math.round(3.28084*t))+" "+c:l(t*=.3937)+" "+o;case a.m:default:return n?(t=Math.round(t))+" "+o:t<10&&t>0?parseFloat(t.toFixed(2))+" "+o:t<100?(t=Math.round(10*t)/10)+" "+o:(t>100&&(t=Math.round(t)),(t=Math.round(t))+" "+c)}return""}},5566:function(t,e){"use strict";var n;!function(t){t[t.celsius=0]="celsius",t[t.fahrenheit=1]="fahrenheit"}(n||(n={})),e.A=function(t,e){return e===n.fahrenheit&&(t=9*t/5+32),Math.round(t)}},6325:function(t,e){"use strict";var n;!function(t){t[t.kmph=0]="kmph",t[t.mph=1]="mph",t[t.ms=2]="ms",t[t.kt=3]="kt",t[t.beaufort=4]="beaufort"}(n||(n={})),e.A=function(t,e){switch(e){case n.mph:t*=.621371192;break;case n.ms:t*=.277778;break;case n.kt:t*=.539957;break;case n.beaufort:return t<1?0:t<=5?1:t<=11?2:t<=19?3:t<=28?4:t<=38?5:t<=49?6:t<=61?7:t<=74?8:t<=88?9:t<=102?10:t<=117?11:12;case n.kmph:}return Math.round(t)}},9205:function(t,e,n){"use strict";n.d(e,{w:function(){return f}});var a,s=n(4678),i=n(8367),d=n(1214);!function(t){t[t.mm=0]="mm",t[t.in=1]="in",t[t.lm2=2]="lm2"}(a||(a={}));var r,c=function(t,e){switch(e){case a.in:t=Math.round(.393701*t*1e3)/1e3;break;case a.mm:case a.lm2:default:t=Math.round(10*t)/10}return t>10?Math.round(t):t},o=n(3691),l=n(5566),u=n(6325);!function(t){t[t.mb=0]="mb",t[t.in=1]="in",t[t.hPa=2]="hPa",t[t.mmHg=3]="mmHg",t[t.kPa=4]="kPa"}(r||(r={}));var m=function(t,e){switch(e){case r.mb:break;case r.mmHg:t=Math.round(.75*t*10)/10;break;case r.in:t=Math.round(.0295301*t*1e3)/1e3;break;case r.kPa:t=Math.round(.1*t*100)/100;case r.hPa:}return t},h=n(9404);class p extends h.I{constructor(){super()}static cambioTemperatura(){var t;const e=document.getElementsByClassName("changeUnitT"),n=i.A.temp,a=null!==(t=s.A.settings.vars.temperatures[n])&&void 0!==t?t:"";for(let t=0,i=e.length;t<i;t++){const i=e[t].getAttribute("data-weather");if(i){const d=i.split("|"),r=parseInt(d[1]);switch(e[t].innerHTML=d[2],r>=0&&(e[t].innerHTML+=`${s.A.site.signo_temperatura&&(0,l.A)(parseFloat(d[0]),n)>0?"+":""}${(0,l.A)(parseFloat(d[0]),n)}`),r){case 1:case-1:e[t].innerHTML+=a;break;case 0:e[t].innerHTML+="°"}}}}cambioViento(){g()}cambioLluvia(){b()}cambioAltitud(){var t;const e=i.A.altitude,n=document.getElementsByClassName("changeUnitA");for(let a=0,i=n.length;a<i;a++){const i=n[a].getAttribute("data-weather"),d="0"!==i.split("|")[1];if("-1"===i.split("|")[1]){const i=d&&null!==(t=s.A.settings.vars.snows[e])&&void 0!==t?t:"";n[a].innerHTML=`${i}`}else{const t=(0,o.A)(parseFloat(n[a].getAttribute("data-weather")),e,n[a].getAttribute("data-weather").includes("profundidad_nieve"),d);n[a].innerHTML=`${t}`}}}cambioDistancia(){var t;const e=i.A.distance,n=null!==(t=s.A.settings.vars.distances[e])&&void 0!==t?t:"",a=document.getElementsByClassName("changeUnitD");for(let t=0,s=a.length;t<s;t++)a[t].innerHTML=`${(0,d.Ay)(parseFloat(a[t].getAttribute("data-weather")),e)} ${n}`}cambioPresion(){var t;const e=i.A.pressure,n=(s.A.site.family_lang,null!==(t=s.A.settings.vars.press[e])&&void 0!==t?t:""),a=document.getElementsByClassName("changeUnitP");for(let t=0,s=a.length;t<s;t++){const s=a[t].getAttribute("data-weather").split("|");switch(parseInt(s[1])){case 0:a[t].innerHTML=`${m(parseFloat(s[0]),e)} ${n}`;break;case 1:a[t].innerHTML=`${m(parseFloat(s[0]),e)}`;break;case 2:a[t].innerHTML=n}}}static cambioUnidadesClimatologia(){this.cambioTemperatura(),g(),b()}}function g(){var t;const e=i.A.wind,n=null!==(t=s.A.settings.vars.winds[e])&&void 0!==t?t:"",a=document.getElementsByClassName("changeUnitW");for(let t=0,s=a.length;t<s;t++){const s=a[t].getAttribute("data-weather").split("|");switch(parseInt(s[1])){case 0:a[t].innerHTML=`${(0,u.A)(parseFloat(s[0]),e)} ${n}`;break;case 1:a[t].innerHTML=`${(0,u.A)(parseFloat(s[0]),e)}`;break;case 2:a[t].innerHTML=n}}}function b(){var t;const e=i.A.rain,n=null!==(t=s.A.settings.vars.rains[e])&&void 0!==t?t:"",a=document.getElementsByClassName("changeUnitR");for(let t=0,s=a.length;t<s;t++){const s=a[t].getAttribute("data-weather");if(s){const i=s.split("|"),d=i.length>1?parseInt(i[1]):1;a[t].innerHTML=`${d<0?"":c(parseFloat(i[0]),e)}${0!=d?` ${n}`:""}`}}const d=1!=e?0:1,r=(s.A.settings.vars.snows[d],document.getElementsByClassName("changeUnitN"));for(let t=0,e=r.length;t<e;t++)r[t].innerHTML=`${(0,o.A)(parseFloat(r[t].getAttribute("data-weather")),d)}`}p.name_view="settings";class f extends p{static instantiate(t,e){console.log(t,e)}static init(){if(!f.ready){f.ready=!0;const t=document.getElementById("buttonSetting");if(null!=t)return f.instantiate(s.A.settings,t),f.sendSecondaryView(!1),!0}return!1}constructor(t,e){super(),this.cfg=t,this.translate=null,this.elemento=e,this.loadTranslate(()=>{this.crearCaja(e),this.options=document.getElementById("unidadesMedicion"),this.options.style.display="block",this.mostrarCapa(e)})}static updateButtons(t,e){const n=t.getElementsByTagName("dd"),a=n.length;for(let t=0;t<a;t++)e==t?n[t].classList.add("activa"):n[t].classList.remove("activa")}cambioUnidadClick(t,e){f.updateButtons(t,e),i.A.temp=e,f.cambioTemperatura(),this.actualizarEtiquetaTemperatura()}cambioUnidadWindClick(t,e){f.updateButtons(t,e),i.A.wind=e,this.cambioViento()}cambioUnidadRainClick(t,e){f.updateButtons(t,e),i.A.rain=e,this.cambioLluvia();for(let t of f.modulos_cambio_unidad)t.cambioUnidadRain()}cambioUnidadAltitudeClick(t,e){f.updateButtons(t,e),i.A.altitude=e,this.cambioAltitud();for(let t of f.modulos_cambio_unidad)t.cambioUnidadAltitude()}cambioUnidadDistanceClick(t,e){f.updateButtons(t,e),i.A.distance=e,this.cambioDistancia()}cambioUnidadPresionClick(t,e){f.updateButtons(t,e),i.A.pressure=e,this.cambioPresion()}crearCaja(t){const e=document.createElement("div");e.setAttribute("id","unidadesMedicion"),e.classList.add("capa-unidades");const n=document.createElement("span");n.classList.add("magnitudes");const a=document.createElement("dl");a.classList.add("magnitud");const s=document.createElement("dt");s.classList.add("nombre-magnitud"),s.innerHTML=this.translate.temperature,a.appendChild(s);for(let t=0,e=this.translate.temperatures.length;t<e;t++){const e=document.createElement("dd"),n=this.translate.temperatures[t];switch(e.classList.add("unidad"),i.A.temp==t&&e.classList.add("activa"),t){case 0:e.innerHTML="Celsius ("+n+")";break;case 1:e.innerHTML="Fahrenheit ("+n+")"}e.onclick=()=>{this.cambioUnidadClick(a,t)},a.appendChild(e)}n.appendChild(a);const d=document.createElement("dl");d.classList.add("magnitud");const r=document.createElement("dt");r.classList.add("nombre-magnitud"),r.innerHTML=this.translate.wind,d.appendChild(r);for(let t=0,e=this.translate.winds.length;t<e;t++){const e=document.createElement("dd");e.classList.add("unidad"),i.A.wind==t&&e.classList.add("activa"),e.innerHTML=this.translate.winds[t],e.onclick=()=>{this.cambioUnidadWindClick(d,t)},d.appendChild(e)}n.appendChild(d);const c=document.createElement("dl");c.classList.add("magnitud");const o=document.createElement("dt");o.classList.add("nombre-magnitud"),o.innerHTML=this.translate.rain,c.appendChild(o);for(let t=0,e=this.translate.rains.length;t<e;t++){const e=document.createElement("dd");e.classList.add("unidad"),i.A.rain==t&&e.classList.add("activa"),e.innerHTML=this.translate.rains[t],e.onclick=()=>{this.cambioUnidadRainClick(c,t)},c.appendChild(e)}n.appendChild(c);const l=document.createElement("dl");l.classList.add("magnitud");const u=document.createElement("dt");u.classList.add("nombre-magnitud"),u.innerHTML=this.translate.altitude,l.appendChild(u);for(let t=0,e=this.translate.altitudes.length;t<e;t++){const e=document.createElement("dd");e.classList.add("unidad"),i.A.altitude==t&&e.classList.add("activa"),e.innerHTML=this.translate.altitudes[t],e.onclick=()=>{this.cambioUnidadAltitudeClick(l,t)},l.appendChild(e)}n.appendChild(l);
1const m=document.createElement("dl");m.classList.add("magnitud");const h=document.createElement("dt");h.classList.add("nombre-magnitud"),h.innerHTML=this.translate.distance,m.appendChild(h);for(let t=0,e=this.translate.distances.length;t<e;t++){const e=document.createElement("dd");e.classList.add("unidad"),i.A.distance==t&&e.classList.add("activa"),e.innerHTML=this.translate.distances[t],e.onclick=()=>{this.cambioUnidadDistanceClick(m,t)},m.appendChild(e)}n.appendChild(m);const p=document.createElement("dl");p.classList.add("magnitud");const g=document.createElement("dt");g.classList.add("nombre-magnitud"),g.innerHTML=this.translate.pres,p.appendChild(g);for(let t=0,e=this.translate.press.length;t<e;t++){const e=document.createElement("dd");e.classList.add("unidad"),i.A.pressure==t&&e.classList.add("activa"),e.innerHTML=this.translate.press[t],e.onclick=()=>{this.cambioUnidadPresionClick(p,t)},p.appendChild(e)}n.appendChild(p);const b=document.createElement("span");b.classList.add("aceptar"),b.innerHTML=this.translate.ok,b.onclick=()=>{this.options.style.display="none",f.resetDimensions(!1)},n.appendChild(b),e.appendChild(n),t.parentNode.appendChild(e)}actualizarEtiquetaTemperatura(){const t=this.translate.temperatures,e=i.A.temp,n=this.elemento.getElementsByClassName("uTemp")[0];n&&(n.innerText=t[e])}loadTranslate(t){null==this.translate?n(3118)(`./${i.A.lang}.json`).then(e=>{this.translate=e.settings,t()}):t()}}f.modulos_cambio_unidad=[],f.ready=!1},3118:function(t,e,n){var a={"./ca-ES.json":[5385,[5385]],"./da-DK.json":[7605,[7605]],"./de-AT.json":[6153,[6153]],"./de-DE.json":[4635,[4635]],"./en-CA.json":[940,[940]],"./en-GB.json":[3029,[3029]],"./en-US.json":[3520,[3520]],"./es-AR.json":[342,[342]],"./es-BO.json":[3242,[3242]],"./es-CL.json":[2398,[2398]],"./es-CR.json":[1544,[1544]],"./es-DO.json":[5780,[5780]],"./es-EC.json":[3277,[3277]],"./es-ES.json":[2109,[2109]],"./es-HN.json":[7323,[7323]],"./es-MX.json":[5504,[5504]],"./es-PA.json":[3110,[3110]],"./es-PE.json":[9658,[9658]],"./es-PY.json":[2206,[2206]],"./es-UY.json":[2859,[2859]],"./es-VE.json":[9940,[9940]],"./eu-ES.json":[647,[647]],"./fr-FR.json":[9229,[9229]],"./hi-IN.json":[1119,[1119]],"./it-IT.json":[1043,[1043]],"./nl-NL.json":[7569,[7569]],"./pt-BR.json":[5749,[5749]],"./pt-PT.json":[6745,[6745]],"./ro-RO.json":[947,[947]],"./ru-RU.json":[7091,[7091]]};function s(t){try{if(!n.o(a,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=a[t],s=e[0];return n.e(e[1][0]).then(function(){return n.t(s,19)})}s.keys=function(){return Object.keys(a)},s.id=3118,t.exports=s}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.