/*! undermore - v1.9.5 - 2018-12-03 * https://github.com/atomantic/undermore * Copyright (c) 2018 Adam Eivy (@antic); Licensed MIT */ !function(e){"use strict";var n,t={};"undefined"!=typeof module&&module.exports?(n=require("lodash").runInContext(),module.exports=t):n=window._;var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.extend(t,{alphabetize:function(e){var t={},r=n.keys(e);return r=n.sortBy(r,function(e){return e}),n.each(r,function(r){n.isArray(e[r])?t[r]=n.map(e[r],function(e){return n.isObject(e)?n.alphabetize(e):e}):n.isObject(e[r])?t[r]=n.alphabetize(e[r]):t[r]=e[r]}),t},base64_decode:function(e){if("undefined"!=typeof atob)return n.utf8_decode(atob(e));if(Buffer)return new Buffer(e,"base64").toString("binary");e=e.replace(/=+$/,"");for(var t,o,i=0,u=0,f="";o=e.charAt(u++);~o&&(t=i%4?64*t+o:o,i++%4)?f+=String.fromCharCode(255&t>>(-2*i&6)):0)o=r.indexOf(o);return f},base64_encode:function(e){if("undefined"!=typeof btoa)return btoa(n.utf8_encode(e));if(Buffer){var t=e instanceof Buffer?e:new Buffer(e.toString(),"binary");return t.toString("base64")}for(var o,i,u=0,f=r,a="";e.charAt(0|u)||(f="=",u%1);a+=f.charAt(63&o>>8-u%1*8))i=e.charCodeAt(u+=.75),o=o<<8|i;return a},eFn:function(e){e.preventDefault()},fn:function(){return!0},fnMore:function(e,n,t){return t?function(){e.apply(t,arguments),n.apply(t,arguments)}:function(){e(),n()}},get:function(t,r,o){return"string"==typeof r&&(r=r.split(".")),t===e?o:0===r.length?t:null===t?o:n.get(t[r[0]],n.drop(r),o)},getQuery:function(){var e,t=function(){e={};var t=function(e){return e&&e.length>0?e.replace(/^\?/,"").split("&"):[]}(window.location.search);n.map(t,function(n){var t=n.split("=");2===t.length&&(e[t[0]]=t[1])})};return function(n,r){return"undefined"==typeof e&&t(),"undefined"==typeof n?e:"undefined"==typeof e[n]?r:e[n]}}(),isValidDate:function(e){return n.isDate(e)&&!n.isNaN(e.valueOf())},ord:function(e){var n=["th","st","nd","rd"],t=e%100;return n[(t-20)%10]||n[t]||n[0]},set:function(e,n,t){"string"==typeof n&&(n=n.split("."));for(var r=e,o=n.length-1,i=0;iy?v:y;for(i=0;i=v?-1:parseInt(l[i],10)||l[i].charCodeAt(),f=i>=y?-1:parseInt(h[i],10)||h[i].charCodeAt(),u===f);i++);}return!!(r&&u===f||n.indexOf(">")!==-1&&u>f||n.indexOf("<")!==-1&&u