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AGhB8G,EAAI,EAC3B,GAAGL,EAAS+C,KAAMrD,GAAgC,IAAxB+C,EAAgB/C,IAAa,CACtD,IAAIL,KAAYwD,EACZzD,EAAoBwC,EAAEiB,EAAaxD,KACrCD,EAAoBU,EAAET,GAAYwD,EAAYxD,IAGhD,GAAGyD,EAAS,IAAIrF,EAASqF,EAAQ1D,EAClC,CAEA,IADGwD,GAA4BA,EAA2BrJ,GACrD8G,EAAIL,EAAS7D,OAAQkE,IACzBqC,EAAU1C,EAASK,GAChBjB,EAAoBwC,EAAEa,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOtD,EAAoBW,EAAEtC,IAG1BuF,EAAqBvH,KAAwB,kBAAIA,KAAwB,mBAAK,GAClFuH,EAAmBvB,QAAQkB,EAAqBM,KAAK,KAAM,IAC3DD,EAAmBE,KAAOP,EAAqBM,KAAK,KAAMD,EAAmBE,KAAKD,KAAKD,G,KC7CvF,IAAIG,EAAsB/D,EAAoBW,OAAER,EAAW,CAAC,IAAK,IAAOH,EAAoB,QAC5F+D,EAAsB/D,EAAoBW,EAAEoD,E","sources":["webpack://emmet/webpack/runtime/chunk loaded","webpack://emmet/webpack/runtime/create fake namespace object","webpack://emmet/./moderna_meteogrid/statix/js/base.mjs","webpack://emmet/./moderna_meteogrid/statix/js/base_main.mjs","webpack://emmet/webpack/bootstrap","webpack://emmet/webpack/runtime/define property getters","webpack://emmet/webpack/runtime/global","webpack://emmet/webpack/runtime/hasOwnProperty shorthand","webpack://emmet/webpack/runtime/make namespace object","webpack://emmet/webpack/runtime/node module decorator","webpack://emmet/webpack/runtime/runtimeId","webpack://emmet/webpack/runtime/jsonp chunk loading","webpack://emmet/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","/*eslint no-implicit-globals: \"error\"*/\nimport $ from 'jquery';\nwindow.$ = window.jQuery = $;\nimport proj4 from 'proj4';\nimport flatpickr from 'flatpickr';\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat'\ndayjs.extend(customParseFormat)\n\nimport utc from 'dayjs/plugin/utc'\nimport duration from 'dayjs/plugin/duration'\nimport pluralGetSet from 'dayjs/plugin/pluralGetSet'\nimport 'dayjs/locale/es'\nimport 'dayjs/locale/de'\nimport 'dayjs/locale/es'\nimport 'dayjs/locale/en'\n\nimport langMap_en from 'flatpickr/dist/l10n/default';\nimport langMap_es from 'flatpickr/dist/l10n/es';\nimport langMap_fr from 'flatpickr/dist/l10n/fr';\nimport langMap_cat from 'flatpickr/dist/l10n/cat';\n\nimport dt_es from 'datatables.net-plugins/i18n/es-ES';\nimport dt_pt from 'datatables.net-plugins/i18n/pt-PT';\nimport dt_fr from 'datatables.net-plugins/i18n/fr-FR';\nimport dt_ca from 'datatables.net-plugins/i18n/ca';\n\nimport \"multiselect\";\nimport 'multiselect/css/multi-select.css';\nimport \"select2/dist/js/select2.min.js\"\nimport \"select2/dist/css/select2.min.css\"\n\nimport \"bootstrap\"\nimport \"bootstrap/dist/css/bootstrap.css\"\nimport 'flatpickr/dist/flatpickr.css';\n\nimport \"jquery-ui/ui/widgets/draggable\";\nimport \"jquery-ui/ui/widgets/resizable\";\nimport \"jquery-ui/ui/widgets/dialog\";\nimport \"jquery-ui/ui/widgets/tabs\";\nimport \"jquery-ui/ui/widgets/button\";\nimport \"jquery-ui/ui/widgets/spinner\";\nimport \"jquery-ui/ui/position\";\nimport \"jquery-ui/ui/widgets/menu\";\n\nimport \"jquery-ui/themes/base/all.css\";\nimport \"datatables.net-buttons-bs/css/buttons.bootstrap.css\"\n\nimport \"datatables.net/js/jquery.dataTables.mjs\"\nimport \"datatables.net-bs/js/dataTables.bootstrap.mjs\"\nimport \"datatables.net-buttons/js/dataTables.buttons.mjs\"\nimport \"datatables.net-buttons-bs/js/buttons.bootstrap.mjs\"\nimport \"datatables.net-buttons/js/buttons.html5.mjs\"\nimport \"datatables.net-buttons/js/buttons.colVis.mjs\"\nimport 'datatables.net-jqui/js/dataTables.jqueryui.js';\nimport 'datatables.net-scroller/js/dataTables.scroller.js';\nimport 'inspire-tree-dom/dist/inspire-tree-dark.min.css';\n\nimport \"jquery-ui-touch-punch/jquery.ui.touch-punch.js\"\nimport \"../css/mezzanine.css\";\nimport '../css/datatables.css';\nimport '../css/checkbox.css';\nimport \"../css/style.css\";\nimport \"../css/meteogrid.css\";\n\nimport '../css/mapas.css';\nimport '../css/datatables2.css';\n\nimport '@fortawesome/fontawesome-pro/css/all.min.css'\n\nimport Cookies from 'js-cookie';\n\ndayjs.extend(utc);\ndayjs.extend(duration);\ndayjs.extend(pluralGetSet);\n\nconst _ = window.gettext;\n\nlet initialized = false;\n\nimport process from 'process';\nwindow.process = process;\n\nfunction global_init() {\n  if (initialized)\n    return;\n  initialized = true;\n  const csrftoken = Cookies.get('csrftoken');\n  function csrfSafeMethod(method) {\n    // these HTTP methods do not require CSRF protection\n    return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));\n  }\n  $.ajaxSetup({\n    beforeSend: function (xhr, settings) {\n      if (!csrfSafeMethod(settings.type) && !this.crossDomain) {\n        xhr.setRequestHeader(\"X-CSRFToken\", csrftoken);\n      }\n    }\n  });\n  $(document).ajaxStart(function () {\n    $('body').addClass('wait');\n  }).ajaxComplete(function () {\n    $('body').removeClass('wait');\n  });\n  $('.draggable-panel').draggable();\n  $(\".draggable-panel\").click(function (e) { e.stopPropagation(); });\n  $('.resizable-panel').resizable({ handles: \"n, e, s, w\" });\n  $(\".resizable-panel\").click(function (e) { e.stopPropagation(); });\n  $(\".alert-dismissable.alert-info\").delay(2500).slideUp();\n  $(\".alert-dismissable.alert-success\").delay(2500).slideUp();\n  if (window.self != window.top) {\n    $(document.body).addClass(\"in-iframe\");\n  }\n  // /static/bootstrap-extras.js\n  // Form css tweaks.\n  $('.middle input:text, .middle input:password, textarea').not('[class]').addClass('input-xlarge');\n  $('.control-group label').addClass('control-label');\n  const $dropdowns = $('li.dropdown'); // Specifying the element is faster for older browsers\n  /**\n   * Mouse events\n   *\n   * @description Mimic hoverIntent plugin by waiting for the mouse to 'settle' within the target before triggering\n   */\n  $dropdowns\n    .on('mouseover', function () // Mouseenter (used with .hover()) does not trigger when user enters from outside document window\n    {\n      const $this = $(this);\n      if ($this.prop('hoverTimeout')) {\n        $this.prop('hoverTimeout', clearTimeout($this.prop('hoverTimeout')));\n      }\n      $this.prop('hoverIntent', setTimeout(function () {\n        $this.addClass('open');\n      }, 250));\n    })\n    .on('mouseleave', function () {\n      const $this = $(this);\n      if ($this.prop('hoverIntent')) {\n        $this.prop('hoverIntent', clearTimeout($this.prop('hoverIntent')));\n      }\n      $this.prop('hoverTimeout', setTimeout(function () {\n        $this.removeClass('open');\n      }, 250));\n    });\n  /**\n   * Touch events\n   *\n   * @description Support click to open if we're dealing with a touchscreen\n   */\n  if ('ontouchstart' in document.documentElement) {\n    $dropdowns.each(function () {\n      const $this = $(this);\n      this.addEventListener('touchstart', function (e) {\n        if (e.touches.length === 1) {\n          // Prevent touch events within dropdown bubbling down to document\n          e.stopPropagation();\n          // Toggle hover\n          if (!$this.hasClass('open')) {\n            // Prevent link on first touch\n            if (e.target === this || e.target.parentNode === this) {\n              e.preventDefault();\n            }\n            // Hide other open dropdowns\n            $dropdowns.removeClass('open');\n            $this.addClass('open');\n\n            // Hide dropdown on touch outside\n            const closeDropdown = function (e) {\n              e.stopPropagation();\n\n              $this.removeClass('open');\n              document.removeEventListener('touchstart', closeDropdown);\n            }\n            document.addEventListener('touchstart', closeDropdown);\n          }\n        }\n      }, false);\n    });\n  }\n  if (window.namespaces)\n    for (const ns of window.namespaces) {\n      ns.page = $(`#page-${ns.page_id}`);\n      ns.mapas = [];\n    }\n  const csrfmiddlewaretoken = Cookies.get('csrftoken');\n  document.getElementById('fileuploader').addEventListener(\"change\", function () {\n    const fileuploader = $(\"#fileuploader\")\n    const form = fileuploader.closest('form');\n    form.find('input[name=csrfmiddlewaretoken]').val(csrfmiddlewaretoken);\n    $.ajax({\n      type: \"POST\",\n      url: fileuploader.data('url'),\n      processData: false,\n      contentType: false,\n      data: new FormData(form[0]),\n      success: function (result) {\n        let text = 'Fichero subido correctamente';\n        let class_ = 'alert-success';\n        if (result.error) {\n          text = result.error;\n          class_ = 'alert-warning'\n        }\n        const ok = $(`\n            <div class=\"alert alert-dismissable ${class_}\" data-alert=\"alert\">\n            <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button> \n            ${_(text)}\n          </div>`);\n        const elem = ok.appendTo('#inner-headline');\n        elem.fadeIn(500).fadeOut(500).fadeIn(1000);\n        if (!result.error) elem.fadeOut(5000);\n        fileuploader.val('');\n      }\n    })\n  }, false);\n  $('.fileupload-link').on('click', function () {\n    const url = window.Urls.uploadFile($(this).data('page_id'))\n    const fileuploader = $(\"#fileuploader\")\n    fileuploader.data('url', url);\n    fileuploader.trigger('click');\n    return false;\n  })\n  setup_layer_tree_filter();\n}\n\nfunction setup_layer_tree_filter() {\n  const layerTree = $('#LAYER');\n  layerTree.on('search', 'input[name=filtrar-arbol]',\n    ev => {\n      const search = ev.currentTarget.value.toUpperCase();\n      if (search === '') {\n        layerTree.removeClass('filtered');\n        layerTree.find('.mostrar-capa.selector')\n          .removeClass('shown')\n          .removeClass('hidden');\n        return;\n      } else {\n        layerTree.addClass('filtered');\n      }\n      layerTree.find('.mostrar-capa.selector')\n        .each((idx, el) => {\n          const visible = el.textContent.toUpperCase()\n            .includes(search);\n          if (visible) {\n            el.classList.add('shown');\n            el.classList.remove('hidden');\n          } else {\n            el.classList.add('hidden');\n            el.classList.remove('shown');\n          }\n        })\n    }\n  )\n  layerTree.on('click', '.layers-collapse',\n    () => layerTree.find('.folder-toggler').removeClass('open')\n  )\n  layerTree.on('click', '.layers-expand',\n    () => layerTree.find('.folder-toggler').addClass('open')\n  )\n}\n\nfunction cargarCSS() {\n  const fileref = document.createElement(\"link\");\n  fileref.setAttribute(\"rel\", \"stylesheet\");\n  fileref.setAttribute(\"type\", \"text/css\");\n  fileref.setAttribute(\"href\", window.Urls.iconos_css());\n  document.getElementsByTagName(\"head\")[0].appendChild(fileref)\n}\nfunction getDTMessages() {\n  return selLangMapDT;\n}\nfunction getFormData(form) {\n  const values = form.serializeArray();\n  for (const field of Object.values(values)) {\n    const input = form.find(`input[name=\"${field.name}\"][type=\"datetime-local\"]`);\n    if (input.length)\n      field.value = dayjs(field.value).toJSON();\n  }\n  return $.param(values);\n}\n\n/**\n* @param String name\n* @return String\n*/\nfunction getParameterByName(name) {\n  const url = new URL(window.location);\n  return url.searchParams.get(name) || '';\n}\nlet locale = null;\n\nconst langMap = {\n  en: langMap_en.default.en,\n  es: langMap_es.default.es,\n  fr: langMap_fr.default.fr,\n  ca: langMap_cat.default.ca,\n};\n\nconst langMapDT = {\n  en: null,\n  es: dt_es,\n  fr: dt_fr,\n  ca: dt_ca,\n  pt: dt_pt,\n};\n\nlet selLangMapDT = undefined;\n\nconst langs = [document.documentElement.lang, ...navigator.languages];\n\nfor (const lang of langs) {\n  const l = lang.split('-')[0];\n  if (l in langMap) {\n    locale = l;\n    dayjs.locale(l);\n    flatpickr.localize(langMap[l]);\n    break;\n  }\n}\nfor (const l of langs) {\n  if (l in langMapDT) {\n    selLangMapDT = langMapDT[l];\n    break;\n  }\n}\nexport function multiselectOptions(headerLeft = '', headerRight = '') {\n  return {\n    selectableHeader: `${headerLeft}<div class=\"multiselect-botones\"><a href=\"#\" >\\u00BB</a></div><input type='text' class='search-input' autocomplete='off' placeholder='${_('Buscar')}...'>`,\n    selectionHeader: `${headerRight}<div class=\"multiselect-botones\"><a href=\"#\" >\\u00AB</a></div><input type='text' class='search-input' autocomplete='off' placeholder='${_('Buscar')}...'>`,\n    afterInit: function () {\n      const that = this,\n        $selectableSearch = that.$selectableUl.prev(),\n        $selectionSearch = that.$selectionUl.prev(),\n        selectableSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selectable:not(.ms-selected)',\n        selectionSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selection.ms-selected';\n      const select_all = $selectableSearch.prev().find('a');\n      const select_none = $selectionSearch.prev().find('a');\n      select_all.click(function () {\n        const lis_visible_selectable = that.$selectableContainer.find(that.elemsSelector)\n        lis_visible_selectable.click();\n        return false;\n      })\n      select_none.click(function () {\n        const lis_visible_selection = that.$selectionContainer.find(that.elemsSelector)\n        lis_visible_selection.click();\n        return false;\n      })\n      that.qs1 = $selectableSearch.quicksearch(selectableSearchString)\n        .on('keydown', function (e) {\n          that.qs1.cache();\n          if (e.which === 40) {\n            that.$selectableUl.focus();\n            return false;\n          }\n        });\n      that.qs2 = $selectionSearch.quicksearch(selectionSearchString)\n        .on('keydown', function (e) {\n          that.qs2.cache();\n          if (e.which == 40) {\n            that.$selectionUl.focus();\n            return false;\n          }\n        });\n    },\n    afterSelect: function () {\n      this.qs1.cache();\n      this.qs2.cache();\n    },\n    afterDeselect: function () {\n      this.qs1.cache();\n      this.qs2.cache();\n    }\n  }\n}\n// https://stackoverflow.com/questions/27936772/how-to-deep-merge-instead-of-shallow-merge\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nfunction isObject(item) {\n  return (item && typeof item === 'object' && !Array.isArray(item));\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport function mergeDeep(target, ...sources) {\n  if (!sources.length) return target;\n  const source = sources.shift();\n\n  if (isObject(target) && isObject(source)) {\n    for (const key in source) {\n      if (isObject(source[key])) {\n        if (!target[key]) Object.assign(target, { [key]: {} });\n        mergeDeep(target[key], source[key]);\n      } else {\n        Object.assign(target, { [key]: source[key] });\n      }\n    }\n  }\n\n  return mergeDeep(target, ...sources);\n}\n\nexport function transform_point(xy) {\n  const sourceProj = proj4('EPSG:4326');\n  const destProj = proj4(window.epsg);\n  return proj4(sourceProj, destProj, xy);\n}\n\n\n// on window resize run function\n$(window).on('resize', () => fluidDialog());\n\n// catch dialog if opened within a viewport smaller than the dialog width\n$(document).on(\"dialogopen\", \".ui-dialog\", () => fluidDialog());\n\nfunction fluidDialog() {\n  const $visible = $(\".ui-dialog:visible\");\n  // each open dialog\n  $visible.each(function () {\n    const $this = $(this);\n    const dialog = $this.find(\".ui-dialog-content\").data(\"ui-dialog\");\n    if (!dialog)\n      return;\n    const wWidth = $(window).width();\n    // check window width against dialog width\n    if (wWidth < (parseInt(dialog.options.maxWidth || 1000) + 50)) {\n      // keep dialog from filling entire screen\n      $this.css(\"max-width\", \"90%\");\n    } else {\n      // fix maxWidth bug\n      $this.css(\"max-width\", dialog.options.maxWidth + \"px\");\n    }\n    const wHeight = $(window).height();\n    // check window width against dialog width\n    if (wHeight < (parseInt(dialog.options.maxHeight || 1000) + 50)) {\n      // keep dialog from filling entire screen\n      $this.css(\"max-height\", \"90%\");\n    } else {\n      // fix maxWidth bug\n      $this.css(\"max-height\", dialog.options.maxHeight + \"px\");\n    }\n    //reposition dialog\n    // dialog.option(\"width\", $this.width());\n    dialog.option(\"position\", dialog.options.position);\n    $(dialog).closest('.ui-dialog').draggable('option', dialog.option('appendTo'))\n  });\n\n}\nexport function get_horizon(dims) {\n  for (const v of Object.values(dims))\n    if (v.startsWith('HOR') || v.includes('HORIZON') || v.includes('YEAR_PERIOD ')) return v;\n}\nexport function getFormCoords(element) {\n  if (element.find('div#projection input').val() != ''\n    && element.find('input#xlong').val() != ''\n    && element.find('input#ylat').val() != '') return {\n      srcproj: element.find('div#projection input').attr(\"value\"),\n      xlong: Number(element.find('input#xlong').val()),\n      ylat: Number(element.find('input#ylat').val())\n    }\n  const lat_degrees = Number(element.find('div#lat input#degrees').val());\n  const lat_mins = Number(element.find('div#lat input#mins').val());\n  const lat_segs = Number(element.find('div#lat input#segs').val());\n  const lat_dir = element.find('div#lat div#direction input').val();\n  const long_degrees = Number(element.find('div#long input#degrees').val());\n  const long_mins = Number(element.find('div#long input#mins').val());\n  const long_segs = Number(element.find('div#long input#segs').val());\n  const long_dir = element.find('div#long div#direction input').val();\n  if (lat_degrees && long_degrees)\n    return {\n      ylat: ConvertDMSToDD(lat_degrees, lat_mins, lat_segs, lat_dir),\n      xlong: ConvertDMSToDD(long_degrees, long_mins, long_segs, long_dir),\n      srcproj: proj4('EPSG:4326')\n    }\n  return {\n    ylat: null,\n    xlong: null,\n    srcproj: null\n  }\n}\n\nfunction ConvertDMSToDD(degrees, minutes, seconds, direction) {\n  const dd = degrees + minutes / 60 + seconds / (60 * 60);\n  if (direction == \"S\" || direction == \"W\")\n    return -dd;\n  // Don't do anything for N or E\n  return dd;\n}\n\nexport function updateUnselectedHorizons(idx_hor_notsel) {\n  idx_hor_notsel = [...new Set(idx_hor_notsel)].sort()\n  if (idx_hor_notsel[0] === '')\n    idx_hor_notsel.splice(0, 1)\n  const oldUrl = window.location.href;\n  let newUrl = oldUrl;\n  if (oldUrl.includes('idx_hor_notsel')) {\n    newUrl = oldUrl.replace(/(idx_hor_notsel=)[^&]*(.*)/, '$1' + idx_hor_notsel + '$2');\n  } else {\n    const sep = oldUrl.includes('?') ? '&' : '?';\n    newUrl += sep + 'idx_hor_notsel=' + idx_hor_notsel;\n  }\n  if (oldUrl != newUrl)\n    window.history.replaceState(null, null, newUrl);\n}\nexport const LAYERTYPES = {};\n\nexport { $, dayjs, locale, flatpickr, global_init, cargarCSS, getDTMessages, getFormData, getParameterByName, proj4 };\n","import { $, global_init } from '../../../moderna_meteogrid/statix/js/base.mjs';\n$(function () {\n    global_init();\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 592;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t592: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkemmet\"] = self[\"webpackChunkemmet\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [96], () => (__webpack_require__(34815)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","window","$","customParseFormat","utc","duration","pluralGetSet","_","gettext","initialized","process","locale","langMap","en","es","fr","ca","langMapDT","pt","selLangMapDT","langs","document","documentElement","lang","navigator","languages","l","split","localize","fluidDialog","each","$this","this","dialog","find","data","width","parseInt","options","maxWidth","css","height","maxHeight","option","position","closest","draggable","on","csrftoken","get","beforeSend","xhr","settings","method","type","test","crossDomain","setRequestHeader","ajaxStart","addClass","ajaxComplete","removeClass","click","e","stopPropagation","resizable","handles","delay","slideUp","self","top","body","not","$dropdowns","prop","clearTimeout","setTimeout","addEventListener","touches","length","hasClass","target","parentNode","preventDefault","closeDropdown","removeEventListener","namespaces","ns","page","page_id","mapas","csrfmiddlewaretoken","getElementById","fileuploader","form","val","url","processData","contentType","FormData","success","result","text","class_","error","elem","appendTo","fadeIn","fadeOut","Urls","uploadFile","trigger","layerTree","ev","search","currentTarget","value","toUpperCase","idx","el","textContent","includes","classList","add","remove","setup_layer_tree_filter","global_init","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","call","m","O","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","getPrototypeOf","obj","t","mode","__esModule","then","create","def","current","indexOf","getOwnPropertyNames","forEach","d","definition","o","defineProperty","enumerable","g","globalThis","Function","prototype","hasOwnProperty","Symbol","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","bind","push","__webpack_exports__"],"sourceRoot":""}