Skip to content
Snippets Groups Projects
Commit 0585a3de authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Beta version of roughage nutrition model

parent 95c91447
Branches
No related tags found
No related merge requests found
Showing
with 91 additions and 96 deletions
No preview for this file type
...@@ -19,7 +19,7 @@ msgid "" ...@@ -19,7 +19,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-13 13:55+0100\n" "POT-Creation-Date: 2015-12-14 14:37+0100\n"
"PO-Revision-Date: 2014-05-14 09:31+0200\n" "PO-Revision-Date: 2014-05-14 09:31+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
......
No preview for this file type
...@@ -19,7 +19,7 @@ msgid "" ...@@ -19,7 +19,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-28 10:49+0100\n" "POT-Creation-Date: 2015-12-14 15:16+0100\n"
"PO-Revision-Date: 2014-05-14 09:33+0200\n" "PO-Revision-Date: 2014-05-14 09:33+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -30,43 +30,47 @@ msgstr "" ...@@ -30,43 +30,47 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.6.5\n" "X-Generator: Poedit 1.6.5\n"
#: static/js/3rdparty/moment.min.js:6
msgid "\n"
msgstr ""
#: static/js/forecastmap.js:41 #: static/js/forecastmap.js:41
msgid "Source hostname not defined." msgid "Source hostname not defined."
msgstr "Името на източника не е определно. " msgstr "Името на източника не е определно. "
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Remove from my favourites" msgid "Remove from my favourites"
msgstr "" msgstr ""
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Add to my favourites" msgid "Add to my favourites"
msgstr "" msgstr ""
#: static/js/frontpage.js:365 #: static/js/frontpage.js:379
msgid "No forecast available" msgid "No forecast available"
msgstr "" msgstr ""
#: static/js/frontpage.js:367 #: static/js/frontpage.js:381
msgid "Missing data" msgid "Missing data"
msgstr "" msgstr ""
#: static/js/frontpage.js:369 #: static/js/frontpage.js:383
msgid "No risk of infection" msgid "No risk of infection"
msgstr "" msgstr ""
#: static/js/frontpage.js:371 #: static/js/frontpage.js:385
msgid "Medium risk of infection" msgid "Medium risk of infection"
msgstr "" msgstr ""
#: static/js/frontpage.js:373 #: static/js/frontpage.js:387
msgid "High risk of infection" msgid "High risk of infection"
msgstr "" msgstr ""
#: static/js/frontpage.js:375 #: static/js/frontpage.js:389
msgid "Invalid forecast status" msgid "Invalid forecast status"
msgstr "" msgstr ""
#: static/js/frontpage.js:389 static/js/frontpage.js:418 #: static/js/util.js:213 static/js/util.js:242
msgid "Unnamed" msgid "Unnamed"
msgstr "" msgstr ""
...@@ -121,5 +125,9 @@ msgstr "" ...@@ -121,5 +125,9 @@ msgstr ""
msgid "Too many separator commas" msgid "Too many separator commas"
msgstr "" msgstr ""
#: static/js/weatherStationSelectorMap.js:111
msgid "Select station"
msgstr ""
#~ msgid "No forecasts found for" #~ msgid "No forecasts found for"
#~ msgstr "Не е открита прогноза за " #~ msgstr "Не е открита прогноза за "
No preview for this file type
...@@ -7,7 +7,7 @@ msgid "" ...@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-13 13:55+0100\n" "POT-Creation-Date: 2015-12-14 14:37+0100\n"
"PO-Revision-Date: 2015-02-13 11:26+0100\n" "PO-Revision-Date: 2015-02-13 11:26+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
......
No preview for this file type
...@@ -7,7 +7,7 @@ msgid "" ...@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-28 10:49+0100\n" "POT-Creation-Date: 2015-12-14 15:16+0100\n"
"PO-Revision-Date: 2015-02-13 11:26+0100\n" "PO-Revision-Date: 2015-02-13 11:26+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
...@@ -19,43 +19,47 @@ msgstr "" ...@@ -19,43 +19,47 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Poedit 1.7.4\n" "X-Generator: Poedit 1.7.4\n"
#: static/js/3rdparty/moment.min.js:6
msgid "\n"
msgstr ""
#: static/js/forecastmap.js:41 #: static/js/forecastmap.js:41
msgid "Source hostname not defined." msgid "Source hostname not defined."
msgstr "Ime izvora nije definisano." msgstr "Ime izvora nije definisano."
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Remove from my favourites" msgid "Remove from my favourites"
msgstr "" msgstr ""
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Add to my favourites" msgid "Add to my favourites"
msgstr "" msgstr ""
#: static/js/frontpage.js:365 #: static/js/frontpage.js:379
msgid "No forecast available" msgid "No forecast available"
msgstr "Prognoza nije dostupna" msgstr "Prognoza nije dostupna"
#: static/js/frontpage.js:367 #: static/js/frontpage.js:381
msgid "Missing data" msgid "Missing data"
msgstr "Podaci nedostaju" msgstr "Podaci nedostaju"
#: static/js/frontpage.js:369 #: static/js/frontpage.js:383
msgid "No risk of infection" msgid "No risk of infection"
msgstr "Bez rizika infekcije" msgstr "Bez rizika infekcije"
#: static/js/frontpage.js:371 #: static/js/frontpage.js:385
msgid "Medium risk of infection" msgid "Medium risk of infection"
msgstr "Srednji rizik infekcije" msgstr "Srednji rizik infekcije"
#: static/js/frontpage.js:373 #: static/js/frontpage.js:387
msgid "High risk of infection" msgid "High risk of infection"
msgstr "Visok rizik infekcije" msgstr "Visok rizik infekcije"
#: static/js/frontpage.js:375 #: static/js/frontpage.js:389
msgid "Invalid forecast status" msgid "Invalid forecast status"
msgstr "Nepravilan status prognoze" msgstr "Nepravilan status prognoze"
#: static/js/frontpage.js:389 static/js/frontpage.js:418 #: static/js/util.js:213 static/js/util.js:242
msgid "Unnamed" msgid "Unnamed"
msgstr "Neimenovan" msgstr "Neimenovan"
...@@ -112,5 +116,9 @@ msgstr "Podaci nedostaju" ...@@ -112,5 +116,9 @@ msgstr "Podaci nedostaju"
msgid "Too many separator commas" msgid "Too many separator commas"
msgstr "" msgstr ""
#: static/js/weatherStationSelectorMap.js:111
msgid "Select station"
msgstr ""
#~ msgid "No forecasts found for" #~ msgid "No forecasts found for"
#~ msgstr "Prognoze nisu pronađene za" #~ msgstr "Prognoze nisu pronađene za"
No preview for this file type
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-13 13:55+0100\n" "POT-Creation-Date: 2015-12-14 14:37+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
......
No preview for this file type
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-28 10:49+0100\n" "POT-Creation-Date: 2015-12-14 15:16+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -18,43 +18,47 @@ msgstr "" ...@@ -18,43 +18,47 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: static/js/3rdparty/moment.min.js:6
msgid "\n"
msgstr ""
#: static/js/forecastmap.js:41 #: static/js/forecastmap.js:41
msgid "Source hostname not defined." msgid "Source hostname not defined."
msgstr "" msgstr ""
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Remove from my favourites" msgid "Remove from my favourites"
msgstr "" msgstr ""
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Add to my favourites" msgid "Add to my favourites"
msgstr "" msgstr ""
#: static/js/frontpage.js:365 #: static/js/frontpage.js:379
msgid "No forecast available" msgid "No forecast available"
msgstr "" msgstr ""
#: static/js/frontpage.js:367 #: static/js/frontpage.js:381
msgid "Missing data" msgid "Missing data"
msgstr "" msgstr ""
#: static/js/frontpage.js:369 #: static/js/frontpage.js:383
msgid "No risk of infection" msgid "No risk of infection"
msgstr "" msgstr ""
#: static/js/frontpage.js:371 #: static/js/frontpage.js:385
msgid "Medium risk of infection" msgid "Medium risk of infection"
msgstr "" msgstr ""
#: static/js/frontpage.js:373 #: static/js/frontpage.js:387
msgid "High risk of infection" msgid "High risk of infection"
msgstr "" msgstr ""
#: static/js/frontpage.js:375 #: static/js/frontpage.js:389
msgid "Invalid forecast status" msgid "Invalid forecast status"
msgstr "" msgstr ""
#: static/js/frontpage.js:389 static/js/frontpage.js:418 #: static/js/util.js:213 static/js/util.js:242
msgid "Unnamed" msgid "Unnamed"
msgstr "" msgstr ""
...@@ -108,3 +112,7 @@ msgstr "" ...@@ -108,3 +112,7 @@ msgstr ""
#: static/js/validateForm.js:408 #: static/js/validateForm.js:408
msgid "Too many separator commas" msgid "Too many separator commas"
msgstr "" msgstr ""
#: static/js/weatherStationSelectorMap.js:111
msgid "Select station"
msgstr ""
No preview for this file type
...@@ -20,7 +20,7 @@ msgid "" ...@@ -20,7 +20,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: VIPSWeb\n" "Project-Id-Version: VIPSWeb\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-13 13:55+0100\n" "POT-Creation-Date: 2015-12-14 14:37+0100\n"
"PO-Revision-Date: 2013-11-07 20:18+0200\n" "PO-Revision-Date: 2013-11-07 20:18+0200\n"
"Last-Translator: Tor-Einar Skog <tor-einar.skog@nibio.no>\n" "Last-Translator: Tor-Einar Skog <tor-einar.skog@nibio.no>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
......
No preview for this file type
...@@ -19,7 +19,7 @@ msgid "" ...@@ -19,7 +19,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: VIPSWeb\n" "Project-Id-Version: VIPSWeb\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-28 10:49+0100\n" "POT-Creation-Date: 2015-12-14 15:16+0100\n"
"PO-Revision-Date: 2014-12-28 15:17+0100\n" "PO-Revision-Date: 2014-12-28 15:17+0100\n"
"Last-Translator: Tor-Einar Skog <tor-einar.skog@nibio.no>\n" "Last-Translator: Tor-Einar Skog <tor-einar.skog@nibio.no>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -29,44 +29,48 @@ msgstr "" ...@@ -29,44 +29,48 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: static/js/3rdparty/moment.min.js:6
msgid "\n"
msgstr ""
#: static/js/forecastmap.js:41 #: static/js/forecastmap.js:41
msgid "Source hostname not defined." msgid "Source hostname not defined."
msgstr "Kildens hostname er ikke definert" msgstr "Kildens hostname er ikke definert"
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Remove from my favourites" msgid "Remove from my favourites"
msgstr "Fjern fra mine favoritter" msgstr "Fjern fra mine favoritter"
#: static/js/frontpage.js:243 #: static/js/frontpage.js:256
msgid "Add to my favourites" msgid "Add to my favourites"
msgstr "Legg til i mine favoritter" msgstr "Legg til i mine favoritter"
#: static/js/frontpage.js:365 #: static/js/frontpage.js:379
msgid "No forecast available" msgid "No forecast available"
msgstr "Ingen varsler tilgjengelige" msgstr "Ingen varsler tilgjengelige"
#: static/js/frontpage.js:367 #: static/js/frontpage.js:381
msgid "Missing data" msgid "Missing data"
msgstr "Data mangler" msgstr "Data mangler"
#: static/js/frontpage.js:369 #: static/js/frontpage.js:383
msgid "No risk of infection" msgid "No risk of infection"
msgstr "Ingen infeksjonsrisiko" msgstr "Ingen infeksjonsrisiko"
#: static/js/frontpage.js:371 #: static/js/frontpage.js:385
msgid "Medium risk of infection" msgid "Medium risk of infection"
msgstr "Middels infeksjonsrisiko" msgstr "Middels infeksjonsrisiko"
#: static/js/frontpage.js:373 #: static/js/frontpage.js:387
msgid "High risk of infection" msgid "High risk of infection"
msgstr "Høy infeksjonsrisiko" msgstr "Høy infeksjonsrisiko"
#: static/js/frontpage.js:375 #: static/js/frontpage.js:389
msgid "Invalid forecast status" msgid "Invalid forecast status"
msgstr "Ikke gyldig varselstatus" msgstr "Ikke gyldig varselstatus"
#: static/js/frontpage.js:389 #: static/js/util.js:213
#: static/js/frontpage.js:418 #: static/js/util.js:242
msgid "Unnamed" msgid "Unnamed"
msgstr "Uten navn" msgstr "Uten navn"
...@@ -125,3 +129,7 @@ msgstr "Manglende skilletegn (komma)" ...@@ -125,3 +129,7 @@ msgstr "Manglende skilletegn (komma)"
msgid "Too many separator commas" msgid "Too many separator commas"
msgstr "For mange skilletegn (komma)" msgstr "For mange skilletegn (komma)"
#: static/js/weatherStationSelectorMap.js:111
msgid "Select station"
msgstr "Velg stasjon"
...@@ -135,6 +135,7 @@ INSTALLED_APPS = ( ...@@ -135,6 +135,7 @@ INSTALLED_APPS = (
'information', 'information',
'cerealblotchmodels', 'cerealblotchmodels',
'calculators', 'calculators',
'roughage',
'security', 'security',
'VIPSWeb' 'VIPSWeb'
) )
......
moment.tz.add({
"zones": {
"Europe/Oslo": [
"0:43 - LMT 1895_0_1 0:43",
"1 Norway CE%sT 1940_7_10_23 1",
"1 C-Eur CE%sT 1945_3_2_2 1",
"1 Norway CE%sT 1980 1",
"1 EU CE%sT"
]
},
"rules": {
"Norway": [
"1916 1916 4 22 7 1 0 1 S",
"1916 1916 8 30 7 0 0 0",
"1945 1945 3 2 7 2 2 1 S",
"1945 1945 9 1 7 2 2 0",
"1959 1964 2 15 0 2 2 1 S",
"1959 1965 8 15 0 2 2 0",
"1965 1965 3 25 7 2 2 1 S"
],
"C-Eur": [
"1916 1916 3 30 7 23 0 1 S",
"1916 1916 9 1 7 1 0 0",
"1917 1918 3 15 1 2 2 1 S",
"1917 1918 8 15 1 2 2 0",
"1940 1940 3 1 7 2 2 1 S",
"1942 1942 10 2 7 2 2 0",
"1943 1943 2 29 7 2 2 1 S",
"1943 1943 9 4 7 2 2 0",
"1944 1945 3 1 1 2 2 1 S",
"1944 1944 9 2 7 2 2 0",
"1945 1945 8 16 7 2 2 0",
"1977 1980 3 1 0 2 2 1 S",
"1977 1977 8 0 8 2 2 0",
"1978 1978 9 1 7 2 2 0",
"1979 1995 8 0 8 2 2 0",
"1981 9999 2 0 8 2 2 1 S",
"1996 9999 9 0 8 2 2 0"
],
"EU": [
"1977 1980 3 1 0 1 1 1 S",
"1977 1977 8 0 8 1 1 0",
"1978 1978 9 1 7 1 1 0",
"1979 1995 8 0 8 1 1 0",
"1981 9999 2 0 8 1 1 1 S",
"1996 9999 9 0 8 1 1 0"
]
},
"links": {}
});
\ No newline at end of file
This diff is collapsed.
(function(){function a(a){function c(a){a+="";var b=a.split(":"),c=~a.indexOf("-")?-1:1,d=Math.abs(+b[0]),e=parseInt(b[1],10)||0,f=parseInt(b[2],10)||0;return c*(60*d+e+f/60)}function d(a,b,d,e,f,g,h,i,j,l){this.name=a,this.startYear=+b,this.endYear=+d,this.month=+e,this.day=+f,this.dayRule=+g,this.time=c(h),this.timeRule=+i,this.offset=c(j),this.letters=l||"",this.date=k(this.date),this.weekdayAfter=k(this.weekdayAfter),this.lastWeekday=k(this.lastWeekday)}function e(a,b){this.rule=b,this.start=b.start(a)}function f(a,b){return a.isLast?-1:b.isLast?1:b.start-a.start}function g(a){this.name=a,this.rules=[],this.lastYearRule=k(this.lastYearRule)}function h(b,d,e,f,g,h){var i,j="string"==typeof g?g.split("_"):[9999];for(this.name=b,this.offset=c(d),this.ruleSet=e,this.letters=f,this.lastRule=k(this.lastRule),i=0;i<j.length;i++)j[i]=+j[i];this.until=a.utc(j).subtract("m",c(h))}function i(a,b){return a.until-b.until}function j(a){this.name=n(a),this.displayName=a,this.zones=[],this.zoneAndRule=k(this.zoneAndRule,function(a){return+a})}function k(a,b){var c={};return function(d){var e=b?b.apply(this,arguments):d;return e in c?c[e]:c[e]=a.apply(this,arguments)}}function l(a){var b,c,d;for(b in a)for(d=a[b],c=0;c<d.length;c++)m(b+" "+d[c])}function m(a){if(y[a])return y[a];var b=a.split(/\s/),c=n(b[0]),e=new d(c,b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10]);return y[a]=e,r(c).add(e),e}function n(a){return(a||"").toLowerCase().replace(/\//g,"_")}function o(a){var b,c,d;for(b in a)for(d=a[b],c=0;c<d.length;c++)q(b+" "+d[c])}function p(a){var b;for(b in a)C[n(b)]=n(a[b])}function q(a){if(A[a])return A[a];var b=a.split(/\s/),c=n(b[0]),d=new h(c,b[1],r(b[2]),b[3],b[4],b[5]);return A[a]=d,s(b[0]).add(d),d}function r(a){return a=n(a),z[a]||(z[a]=new g(a)),z[a]}function s(a){var b=n(a);return C[b]&&(b=C[b]),B[b]||(B[b]=new j(a)),B[b]}function t(a){a&&(a.zones&&o(a.zones),a.rules&&l(a.rules),a.links&&p(a.links))}function u(){var a,b=[];for(a in B)b.push(B[a]);return b}var v,w=a.fn.zoneName,x=a.fn.zoneAbbr,y={},z={},A={},B={},C={},D=1,E=2,F=7,G=8;return void 0!==a.tz?a:(d.prototype={contains:function(a){return a>=this.startYear&&a<=this.endYear},start:function(b){return b=Math.min(Math.max(b,this.startYear),this.endYear),a.utc([b,this.month,this.date(b),0,this.time])},date:function(a){return this.dayRule===F?this.day:this.dayRule===G?this.lastWeekday(a):this.weekdayAfter(a)},weekdayAfter:function(b){for(var c=this.day,d=a([b,this.month,1]).day(),e=this.dayRule+1-d;c>e;)e+=7;return e},lastWeekday:function(b){var c=this.day,d=c%7,e=a([b,this.month+1,1]).day(),f=a([b,this.month,1]).daysInMonth(),g=f+(d-(e-1))-7*~~(c/7);return d>=e&&(g-=7),g}},e.prototype={equals:function(a){return a&&a.rule===this.rule?Math.abs(a.start-this.start)<864e5:!1}},g.prototype={add:function(a){this.rules.push(a)},ruleYears:function(a,b){var c,d,g,h=a.year(),i=[];for(c=0;c<this.rules.length;c++)d=this.rules[c],d.contains(h)?i.push(new e(h,d)):d.contains(h+1)&&i.push(new e(h+1,d));return i.push(new e(h-1,this.lastYearRule(h-1))),b&&(g=new e(h-1,b.lastRule()),g.start=b.until.clone().utc(),g.isLast=b.ruleSet!==this,i.push(g)),i.sort(f),i},rule:function(a,b,c){var d,e,f,g,h,i=this.ruleYears(a,c),j=0;for(c&&(e=c.offset+c.lastRule().offset,f=9e4*Math.abs(e)),h=i.length-1;h>-1;h--)g=d,d=i[h],d.equals(g)||(c&&!d.isLast&&Math.abs(d.start-c.until)<=f&&(j+=e-b),d.rule.timeRule===E&&(j=b),d.rule.timeRule!==D&&d.start.add("m",-j),j=d.rule.offset+b);for(h=0;h<i.length;h++)if(d=i[h],a>=d.start&&!d.isLast)return d.rule;return v},lastYearRule:function(a){var b,c,d,e=v,f=-1e30;for(b=0;b<this.rules.length;b++)c=this.rules[b],a>=c.startYear&&(d=c.start(a),d>f&&(f=d,e=c));return e}},h.prototype={rule:function(a,b){return this.ruleSet.rule(a,this.offset,b)},lastRule:function(){return this.rule(this.until)},format:function(a){return this.letters.replace("%s",a.letters)}},j.prototype={zoneAndRule:function(a){var b,c,d;for(a=a.clone().utc(),b=0;b<this.zones.length&&(c=this.zones[b],!(a<c.until));b++)d=c;return[c,c.rule(a,d)]},add:function(a){this.zones.push(a),this.zones.sort(i)},format:function(a){var b=this.zoneAndRule(a);return b[0].format(b[1])},offset:function(a){var b=this.zoneAndRule(a);return-(b[0].offset+b[1].offset)}},a.updateOffset=function(a,b){var c;a._z&&(c=a._z.offset(a),Math.abs(c)<16&&(c/=60),a.zone(c,b))},a.fn.tz=function(b){return b?(this._z=s(b),this._z&&a.updateOffset(this),this):this._z?this._z.displayName:void 0},a.fn.zoneName=function(){return this._z?this._z.format(this):w.call(this)},a.fn.zoneAbbr=function(){return this._z?this._z.format(this):x.call(this)},a.momentProperties._z=null,a.tz=function(){var b,c=[],d=arguments.length-1;for(b=0;d>b;b++)c[b]=arguments[b];var e=a.apply(null,c),f=e.zone();return e.tz(arguments[d]),e.add("minutes",e.zone()-f)},a.tz.add=t,a.tz.addRule=m,a.tz.addZone=q,a.tz.zones=u,a.tz.version=b,a.tz.zoneExists=function(a){return s(a).zones.length>0},v=m("- 0 9999 0 0 0 0 0 0"),a)}var b="0.0.6";"function"==typeof define&&define.amd?define("moment-timezone",["moment"],a):"undefined"!=typeof module?module.exports=a(require("moment")):"undefined"!=typeof window&&window.moment&&a(window.moment)}).apply(this); //! moment-timezone.js
\ No newline at end of file //! version : 0.4.1
//! author : Tim Wood
//! license : MIT
//! github.com/moment/moment-timezone
!function(a,b){"use strict";"function"==typeof define&&define.amd?define(["moment"],b):"object"==typeof exports?module.exports=b(require("moment")):b(a.moment)}(this,function(a){"use strict";function b(a){return a>96?a-87:a>64?a-29:a-48}function c(a){var c,d=0,e=a.split("."),f=e[0],g=e[1]||"",h=1,i=0,j=1;for(45===a.charCodeAt(0)&&(d=1,j=-1),d;d<f.length;d++)c=b(f.charCodeAt(d)),i=60*i+c;for(d=0;d<g.length;d++)h/=60,c=b(g.charCodeAt(d)),i+=c*h;return i*j}function d(a){for(var b=0;b<a.length;b++)a[b]=c(a[b])}function e(a,b){for(var c=0;b>c;c++)a[c]=Math.round((a[c-1]||0)+6e4*a[c]);a[b-1]=1/0}function f(a,b){var c,d=[];for(c=0;c<b.length;c++)d[c]=a[b[c]];return d}function g(a){var b=a.split("|"),c=b[2].split(" "),g=b[3].split(""),h=b[4].split(" ");return d(c),d(g),d(h),e(h,g.length),{name:b[0],abbrs:f(b[1].split(" "),g),offsets:f(c,g),untils:h}}function h(a){a&&this._set(g(a))}function i(a){return(a||"").toLowerCase().replace(/\//g,"_")}function j(a){var b,c,d;for("string"==typeof a&&(a=[a]),b=0;b<a.length;b++)c=a[b].split("|")[0],d=i(c),v[d]=a[b],x[d]=c}function k(a,b){a=i(a);var c,d=v[a];return d instanceof h?d:"string"==typeof d?(d=new h(d),v[a]=d,d):w[a]&&b!==k&&(c=k(w[a],k))?(d=v[a]=new h,d._set(c),d.name=x[a],d):null}function l(){var a,b=[];for(a in x)x.hasOwnProperty(a)&&(v[a]||v[w[a]])&&x[a]&&b.push(x[a]);return b.sort()}function m(a){var b,c,d,e;for("string"==typeof a&&(a=[a]),b=0;b<a.length;b++)c=a[b].split("|"),d=i(c[0]),e=i(c[1]),w[d]=e,x[d]=c[0],w[e]=d,x[e]=c[1]}function n(a){j(a.zones),m(a.links),r.dataVersion=a.version}function o(a){return o.didShowError||(o.didShowError=!0,q("moment.tz.zoneExists('"+a+"') has been deprecated in favor of !moment.tz.zone('"+a+"')")),!!k(a)}function p(a){return!(!a._a||void 0!==a._tzm)}function q(a){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(a)}function r(b){var c=Array.prototype.slice.call(arguments,0,-1),d=arguments[arguments.length-1],e=k(d),f=a.utc.apply(null,c);return e&&!a.isMoment(b)&&p(f)&&f.add(e.parse(f),"minutes"),f.tz(d),f}function s(a){return function(){return this._z?this._z.abbr(this):a.call(this)}}function t(a){return function(){return this._z=null,a.apply(this,arguments)}}if(void 0!==a.tz)return q("Moment Timezone "+a.tz.version+" was already loaded "+(a.tz.dataVersion?"with data from ":"without any data")+a.tz.dataVersion),a;var u="0.4.1",v={},w={},x={},y=a.version.split("."),z=+y[0],A=+y[1];(2>z||2===z&&6>A)&&q("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+a.version+". See momentjs.com"),h.prototype={_set:function(a){this.name=a.name,this.abbrs=a.abbrs,this.untils=a.untils,this.offsets=a.offsets},_index:function(a){var b,c=+a,d=this.untils;for(b=0;b<d.length;b++)if(c<d[b])return b},parse:function(a){var b,c,d,e,f=+a,g=this.offsets,h=this.untils,i=h.length-1;for(e=0;i>e;e++)if(b=g[e],c=g[e+1],d=g[e?e-1:e],c>b&&r.moveAmbiguousForward?b=c:b>d&&r.moveInvalidForward&&(b=d),f<h[e]-6e4*b)return g[e];return g[i]},abbr:function(a){return this.abbrs[this._index(a)]},offset:function(a){return this.offsets[this._index(a)]}},r.version=u,r.dataVersion="",r._zones=v,r._links=w,r._names=x,r.add=j,r.link=m,r.load=n,r.zone=k,r.zoneExists=o,r.names=l,r.Zone=h,r.unpack=g,r.unpackBase60=c,r.needsOffset=p,r.moveInvalidForward=!0,r.moveAmbiguousForward=!1;var B=a.fn;a.tz=r,a.defaultZone=null,a.updateOffset=function(b,c){var d,e=a.defaultZone;void 0===b._z&&(e&&p(b)&&!b._isUTC&&(b._d=a.utc(b._a)._d,b.utc().add(e.parse(b),"minutes")),b._z=e),b._z&&(d=b._z.offset(b),Math.abs(d)<16&&(d/=60),void 0!==b.utcOffset?b.utcOffset(-d,c):b.zone(d,c))},B.tz=function(b){return b?(this._z=k(b),this._z?a.updateOffset(this):q("Moment Timezone has no data for "+b+". See http://momentjs.com/timezone/docs/#/data-loading/."),this):this._z?this._z.name:void 0},B.zoneName=s(B.zoneName),B.zoneAbbr=s(B.zoneAbbr),B.utc=t(B.utc),a.tz.setDefault=function(b){return(2>z||2===z&&9>A)&&q("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+a.version+"."),a.defaultZone=b?k(b):null,a};var C=a.momentProperties;return"[object Array]"===Object.prototype.toString.call(C)?(C.push("_z"),C.push("_a")):C&&(C._z=null),a});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment