@js-joda/locale 4.4.0 → 4.5.0

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/js-joda-locale.js +1082 -1296
  3. package/dist/js-joda-locale.js.map +1 -1
  4. package/dist/js-joda-locale.min.js +9 -36
  5. package/dist/prebuilt/de/index.js +1092 -1306
  6. package/dist/prebuilt/de/index.js.map +1 -1
  7. package/dist/prebuilt/de-de/index.js +1092 -1306
  8. package/dist/prebuilt/de-de/index.js.map +1 -1
  9. package/dist/prebuilt/en/index.js +1093 -1307
  10. package/dist/prebuilt/en/index.js.map +1 -1
  11. package/dist/prebuilt/en-us/index.js +1092 -1306
  12. package/dist/prebuilt/en-us/index.js.map +1 -1
  13. package/dist/prebuilt/es/index.js +1093 -1307
  14. package/dist/prebuilt/es/index.js.map +1 -1
  15. package/dist/prebuilt/fr/index.js +1093 -1307
  16. package/dist/prebuilt/fr/index.js.map +1 -1
  17. package/dist/prebuilt/fr-fr/index.js +1092 -1306
  18. package/dist/prebuilt/fr-fr/index.js.map +1 -1
  19. package/dist/prebuilt/hi/index.js +1092 -1306
  20. package/dist/prebuilt/hi/index.js.map +1 -1
  21. package/dist/prebuilt/it/index.js +1092 -1306
  22. package/dist/prebuilt/it/index.js.map +1 -1
  23. package/dist/prebuilt/it-it/index.js +1092 -1306
  24. package/dist/prebuilt/it-it/index.js.map +1 -1
  25. package/dist/prebuilt/ja/index.js +1092 -1306
  26. package/dist/prebuilt/ja/index.js.map +1 -1
  27. package/dist/prebuilt/ja-jp/index.js +1092 -1306
  28. package/dist/prebuilt/ja-jp/index.js.map +1 -1
  29. package/dist/prebuilt/ko/index.js +1092 -1306
  30. package/dist/prebuilt/ko/index.js.map +1 -1
  31. package/dist/prebuilt/ro/index.js +1092 -1306
  32. package/dist/prebuilt/ro/index.js.map +1 -1
  33. package/dist/prebuilt/ru/index.js +1092 -1306
  34. package/dist/prebuilt/ru/index.js.map +1 -1
  35. package/dist/prebuilt/sv/index.js +1092 -1306
  36. package/dist/prebuilt/sv/index.js.map +1 -1
  37. package/dist/prebuilt/sv-se/index.js +1092 -1306
  38. package/dist/prebuilt/sv-se/index.js.map +1 -1
  39. package/dist/prebuilt/zh/index.js +1092 -1306
  40. package/dist/prebuilt/zh/index.js.map +1 -1
  41. package/package.json +5 -5
@@ -1,65 +1,38 @@
1
- //! @version @js-joda/locale - 4.4.0
1
+ //! @version @js-joda/locale - 4.5.0
2
2
  //! @copyright (c) 2015-2016, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@js-joda/core"),require("cldr-data"),require("cldrjs")):"function"==typeof define&&define.amd?define(["@js-joda/core","cldr-data","cldrjs"],t):"object"==typeof exports?exports.JSJodaLocale=t(require("@js-joda/core"),require("cldr-data"),require("cldrjs")):e.JSJodaLocale=t(e.JSJoda,e.cldrData,e.Cldr)}(this,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
5
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@js-joda/core"),require("cldr-data"),require("cldrjs")):"function"==typeof define&&define.amd?define(["@js-joda/core","cldr-data","cldrjs"],t):"object"==typeof exports?exports.JSJodaLocale=t(require("@js-joda/core"),require("cldr-data"),require("cldrjs")):e.JSJodaLocale=t(e.JSJoda,e.cldrData,e.Cldr)}(this,(function(e,t,r){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t,r){"use strict";r.r(t);var n=r(0);function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}
6
6
  /**
7
7
  * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
8
8
  * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
9
9
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
10
- */
11
- var l=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._field=t,this._textStyle=n,this._provider=r}var t,n,i;return t=e,(n=[{key:"field",value:function(){return this._field}},{key:"textStyle",value:function(){return this._textStyle}},{key:"provider",value:function(){return this._provider}},{key:"print",value:function(e,t){var n=e.getValue(this._field);if(null===n)return!1;var r=this._provider.getText(this._field,n,this._textStyle,e.locale());return null===r?this._numberPrinterParser().print(e,t):(t.append(r),!0)}},{key:"parse",value:function(e,t,n){var i=t.length;if(n<0||n>i)throw new r.IllegalArgumentException("The position is invalid: ".concat(n));var o=e.isStrict()?this._textStyle:null,l=this._provider.getTextIterator(this._field,o,e.locale());if(null!=l){var u,s=a(l);try{for(s.s();!(u=s.n()).done;){var f=u.value,c=f.key;if(e.subSequenceEquals(c,0,t,n,c.length))return e.setParsedField(this._field,f.value,n,n+c.length)}}catch(e){s.e(e)}finally{s.f()}if(e.isStrict())return~n}return this._numberPrinterParser().parse(e,t,n)}},{key:"_numberPrinterParser",value:function(){return null==this._currentNumberPrinterParser&&(this._currentNumberPrinterParser=new r.DateTimeFormatterBuilder.NumberPrinterParser(this._field,1,19,r.SignStyle.NORMAL)),this._currentNumberPrinterParser}},{key:"toString",value:function(){return this._textStyle===r.TextStyle.FULL?"Text(".concat(this._field,")"):"Text(".concat(this._field,",").concat(this._textStyle,")")}}])&&o(t.prototype,n),i&&o(t,i),e}(),u=n(1),s=n.n(u);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
12
- /*
13
- * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
14
- * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
15
- */
16
- var c=function(e,t){return{key:e,value:t,toString:function(){return"".concat(e,"->").concat(t)}}},d=function(e,t){return t.key.length-e.key.length},h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._valueTextMap=t;var n={},r=[];Object.keys(t).forEach((function(e){var a={},i=[];Object.keys(t[e]).forEach((function(n){var r=t[e][n];void 0===a[r]&&(a[r]=c(r,parseInt(n)),i.push(a[r]))})),i.sort(d),n[e]=i,r=r.concat(i),n.null=r})),r.sort(d),this._parsable=n}var t,n,r;return t=e,(n=[{key:"getText",value:function(e,t){var n=this._valueTextMap[t];return null!=n?n[e]:null}},{key:"getTextIterator",value:function(e){var t=this._parsable[e];return null!=t?t[Symbol.iterator]():null}}])&&f(t.prototype,n),r&&f(t,r),e}(),y=n(2),p=n.n(y),_=new Set,v=function(e){_.has(e)||(p.a.load(s()(e)),_.add(e))},O={},k=function(e){return null==O[e]&&(O[e]=new p.a(e)),O[e]},S={};function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
17
- /*
18
- * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
19
- * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
20
- */
21
- var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cache={},v("supplemental/likelySubtags.json")}var t,n,a;return t=e,(n=[{key:"getAvailableLocales",value:function(){return"undefined"!=typeof JS_JODA_LOCALE_AVAILABLE_LOCALES?JS_JODA_LOCALE_AVAILABLE_LOCALES:s()("availableLocales.json").availableLocales}},{key:"getText",value:function(e,t,n,r){var a=this._findStore(e,r);return a instanceof h?a.getText(t,n):null}},{key:"getTextIterator",value:function(e,t,n){var r=this._findStore(e,n);return r instanceof h?r.getTextIterator(t):null}},{key:"_findStore",value:function(e,t){var n=c(e,t),r=this._cache[n];return void 0===r&&(r=this._createStore(e,t),this._cache[n]=r),r}},{key:"_createStore",value:function(e,t){v("main/".concat(t.localeString(),"/ca-gregorian.json"));var n=k(t.localeString());if(e===r.ChronoField.MONTH_OF_YEAR){var a=n.main("dates/calendars/gregorian/months/format"),i={},o={};return o[1]=a.wide[1],o[2]=a.wide[2],o[3]=a.wide[3],o[4]=a.wide[4],o[5]=a.wide[5],o[6]=a.wide[6],o[7]=a.wide[7],o[8]=a.wide[8],o[9]=a.wide[9],o[10]=a.wide[10],o[11]=a.wide[11],o[12]=a.wide[12],i[r.TextStyle.FULL]=o,(o={})[1]=a.narrow[1],o[2]=a.narrow[2],o[3]=a.narrow[3],o[4]=a.narrow[4],o[5]=a.narrow[5],o[6]=a.narrow[6],o[7]=a.narrow[7],o[8]=a.narrow[8],o[9]=a.narrow[9],o[10]=a.narrow[10],o[11]=a.narrow[11],o[12]=a.narrow[12],i[r.TextStyle.NARROW]=o,(o={})[1]=a.abbreviated[1],o[2]=a.abbreviated[2],o[3]=a.abbreviated[3],o[4]=a.abbreviated[4],o[5]=a.abbreviated[5],o[6]=a.abbreviated[6],o[7]=a.abbreviated[7],o[8]=a.abbreviated[8],o[9]=a.abbreviated[9],o[10]=a.abbreviated[10],o[11]=a.abbreviated[11],o[12]=a.abbreviated[12],i[r.TextStyle.SHORT]=o,this._createLocaleStore(i)}if(e===r.ChronoField.DAY_OF_WEEK){var l=n.main("dates/calendars/gregorian/days/format"),u={},s={};return s[1]=l.wide.mon,s[2]=l.wide.tue,s[3]=l.wide.wed,s[4]=l.wide.thu,s[5]=l.wide.fri,s[6]=l.wide.sat,s[7]=l.wide.sun,u[r.TextStyle.FULL]=s,(s={})[1]=l.narrow.mon,s[2]=l.narrow.tue,s[3]=l.narrow.wed,s[4]=l.narrow.thu,s[5]=l.narrow.fri,s[6]=l.narrow.sat,s[7]=l.narrow.sun,u[r.TextStyle.NARROW]=s,(s={})[1]=l.abbreviated.mon,s[2]=l.abbreviated.tue,s[3]=l.abbreviated.wed,s[4]=l.abbreviated.thu,s[5]=l.abbreviated.fri,s[6]=l.abbreviated.sat,s[7]=l.abbreviated.sun,u[r.TextStyle.SHORT]=s,this._createLocaleStore(u)}if(e===r.ChronoField.AMPM_OF_DAY){var f=n.main("dates/calendars/gregorian/dayPeriods/format"),c={},d={};return d[0]=f.wide.am,d[1]=f.wide.pm,c[r.TextStyle.FULL]=d,(d={})[0]=f.narrow.am,d[1]=f.narrow.pm,c[r.TextStyle.NARROW]=d,(d={})[0]=f.abbreviated.am,d[1]=f.abbreviated.pm,c[r.TextStyle.SHORT]=d,this._createLocaleStore(c)}if(e===r.ChronoField.ERA){var h=n.main("dates/calendars/gregorian/eras"),y={},p={};return p[0]=h.eraNames[0],p[1]=h.eraNames[1],y[r.TextStyle.FULL]=p,(p={})[0]=h.eraNarrow[0],p[1]=h.eraNarrow[1],y[r.TextStyle.NARROW]=p,(p={})[0]=h.eraAbbr[0],p[1]=h.eraAbbr[1],y[r.TextStyle.SHORT]=p,this._createLocaleStore(y)}if(e===r.IsoFields.QUARTER_OF_YEAR){var _=n.main("dates/calendars/gregorian/quarters/format"),O={},S={};return S[1]=_.wide[1],S[2]=_.wide[2],S[3]=_.wide[3],S[4]=_.wide[4],O[r.TextStyle.FULL]=S,(S={})[1]=_.narrow[1],S[2]=_.narrow[2],S[3]=_.narrow[3],S[4]=_.narrow[4],O[r.TextStyle.NARROW]=S,(S={})[1]=_.abbreviated[1],S[2]=_.abbreviated[2],S[3]=_.abbreviated[3],S[4]=_.abbreviated[4],O[r.TextStyle.SHORT]=S,this._createLocaleStore(O)}return null}},{key:"_createLocaleStore",value:function(e){return e[r.TextStyle.FULL_STANDALONE]=e[r.TextStyle.FULL],e[r.TextStyle.SHORT_STANDALONE]=e[r.TextStyle.SHORT],Object.keys(e).indexOf(r.TextStyle.NARROW)>-1&&-1===Object.keys(e).indexOf(r.TextStyle.NARROW_STANDALONE)&&(e[r.TextStyle.NARROW_STANDALONE]=e[r.TextStyle.NARROW]),new h(e)}}])&&m(t.prototype,n),a&&m(t,a),e}();function E(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
22
- /*
23
- * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
24
- * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
25
- */
26
- var F=r._.assert,D=F.requireNonNull,T=F.requireInstance,A=function(e,t){var n=t.length-e.length;return 0===n&&(n=e.localeCompare(t)),n},W={},C=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),D(t,"textStyle"),T(t,r.TextStyle,"textStyle"),this._textStyle=t,this._zoneIdsLocales={},v("supplemental/likelySubtags.json"),v("supplemental/metaZones.json")}var t,n,a;return t=e,(n=[{key:"_cachedResolveZoneIdText",value:function(e,t,n,r){null==W[e.locale]&&(W[e.locale]={});var a=W[e.locale];null==a[t]&&(a[t]={});var i=a[t];null==i[n]&&(i[n]={});var o=i[n];return null==o[r]&&(o[r]=this._resolveZoneIdText(e,t,n,r)),o[r]}},{key:"_resolveZoneIdText",value:function(e,t,n,r){var a=e.main("dates/timeZoneNames/zone/".concat(t,"/").concat(n,"/").concat(r));if(a)return a;var i=e.get("supplemental/metaZones/metazoneInfo/timezone/".concat(t));if(i){var o=i[i.length-1].usesMetazone._mzone,l=e.main("dates/timeZoneNames/metazone/".concat(o,"/").concat(n,"/").concat(r));if(l)return l;if((l=e.main("dates/timeZoneNames/metazone/".concat(o,"/").concat(n,"/generic")))||(l=e.main("dates/timeZoneNames/metazone/".concat(o,"/").concat(n,"/standard"))),l)return l;var u=function(e){if(null==S[e.locale]){var t={};e.get("supplemental/metaZones/metazones").forEach((function(e){e.mapZone&&(t[e.mapZone._other]||(t[e.mapZone._other]={}),t[e.mapZone._other][e.mapZone._territory]=e.mapZone._type)})),S[e.locale]=t}return S[e.locale]}(e),s=u[o][e.attributes.territory];if(s){if(s!==t)return this._cachedResolveZoneIdText(e,s,n,r)}else{var f=u[o]["001"];if(f!==t)return this._cachedResolveZoneIdText(e,f,n,r)}}}},{key:"print",value:function(e,t){var n=e.getValueQuery(r.TemporalQueries.zoneId());if(null==n)return!1;if(n.normalized()instanceof r.ZoneOffset)return t.append(n.id()),!0;var a=this._textStyle.asNormal()===r.TextStyle.FULL?"long":"short";v("main/".concat(e.locale().localeString(),"/timeZoneNames.json"));var i=k(e.locale().localeString()),o=this._cachedResolveZoneIdText(i,n.id(),a,"generic");return o?t.append(o):t.append(n.id()),!0}},{key:"_resolveZoneIds",value:function(e){if(null!=this._zoneIdsLocales[e])return this._zoneIdsLocales[e];var t={};v("main/".concat(e,"/timeZoneNames.json"));var n,a=k(e),i=E(r.ZoneRulesProvider.getAvailableZoneIds());try{for(i.s();!(n=i.n()).done;){var o=n.value;t[o]=o;var l=this._textStyle.asNormal()===r.TextStyle.FULL?"long":"short",u=this._cachedResolveZoneIdText(a,o,l,"generic");u&&(t[u]=o);var s=this._cachedResolveZoneIdText(a,o,l,"standard");s&&(t[s]=o);var f=this._cachedResolveZoneIdText(a,o,l,"daylight");f&&(t[f]=o)}}catch(e){i.e(e)}finally{i.f()}var c=Object.keys(t).sort(A);return this._zoneIdsLocales[e]={ids:t,sortedKeys:c},this._zoneIdsLocales[e]}},{key:"parse",value:function(e,t,n){for(var a=0,i=["UTC","GMT"];a<i.length;a++){var o=i[a];if(e.subSequenceEquals(t,n,o,0,o.length))return e.setParsedZone(r.ZoneId.of(o)),n+o.length}var l,u=this._resolveZoneIds(e.locale().localeString()),s=u.ids,f=E(u.sortedKeys);try{for(f.s();!(l=f.n()).done;){var c=l.value;if(e.subSequenceEquals(t,n,c,0,c.length))return e.setParsedZone(r.ZoneId.of(s[c])),n+c.length}}catch(e){f.e(e)}finally{f.f()}return~n}},{key:"toString",value:function(){return"ZoneText(".concat(this._textStyle,")")}}])&&b(t.prototype,n),a&&b(t,a),e}();function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
27
- /**
28
- * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
29
- * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
30
- * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
31
- */
32
- var R=r._.MathUtil,x=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._textStyle=t}var t,n,a;return t=e,(n=[{key:"textStyle",value:function(){return this._textStyle}},{key:"print",value:function(e,t){var n=e.getValue(r.ChronoField.OFFSET_SECONDS);if(null==n)return!1;if(t.append("GMT"),this._textStyle===r.TextStyle.FULL)return new r.DateTimeFormatterBuilder.OffsetIdPrinterParser("","+HH:MM:ss").print(e,t);var a=R.safeToInt(n);if(0!==a){var i=Math.abs(R.intMod(R.intDiv(a,3600),100)),o=Math.abs(R.intMod(R.intDiv(a,60),60)),l=Math.abs(R.intMod(a,60));t.append(a<0?"-":"+").append(i),(o>0||l>0)&&(t.append(":").append(R.intDiv(o,10)).append(R.intMod(o,10)),l>0&&t.append(":").append(R.intDiv(l,10)).append(R.intMod(l,10)))}return!0}},{key:"parse",value:function(e,t,n){if(!1===e.subSequenceEquals(t,n,"GMT",0,3))return~n;if(n+=3,this._textStyle===r.TextStyle.FULL)return new r.DateTimeFormatterBuilder.OffsetIdPrinterParser("","+HH:MM:ss").parse(e,t,n);var a=t.length;if(n===a)return e.setParsedField(r.ChronoField.OFFSET_SECONDS,0,n,n);var i=t.charAt(n);if("+"!==i&&"-"!==i)return e.setParsedField(r.ChronoField.OFFSET_SECONDS,0,n,n);var o="-"===i?-1:1;if(n===a)return~n;n++;var l=t.charAt(n);if(l<"0"||l>"9")return~n;n++;var u=R.parseInt(l);if(n!==a&&(l=t.charAt(n))>="0"&&l<="9"){if((u=10*u+R.parseInt(l))>23)return~n;n++}if(n===a||":"!==t.charAt(n)){var s=3600*o*u;return e.setParsedField(r.ChronoField.OFFSET_SECONDS,s,n,n)}if(++n>a-2)return~n;if((l=t.charAt(n))<"0"||l>"9")return~n;n++;var f=R.parseInt(l);if((l=t.charAt(n))<"0"||l>"9")return~n;if(n++,(f=10*f+R.parseInt(l))>59)return~n;if(n===a||":"!==t.charAt(n)){var c=o*(3600*u+60*f);return e.setParsedField(r.ChronoField.OFFSET_SECONDS,c,n,n)}if(++n>a-2)return~n;if((l=t.charAt(n))<"0"||l>"9")return~n;n++;var d=R.parseInt(l);if((l=t.charAt(n))<"0"||l>"9")return~n;if(n++,(d=10*d+R.parseInt(l))>59)return~n;var h=o*(3600*u+60*f+d);return e.setParsedField(r.ChronoField.OFFSET_SECONDS,h,n,n)}},{key:"toString",value:function(){return"LocalizedOffset(".concat(this._textStyle,")")}}])&&Y(t.prototype,n),a&&Y(t,a),e}();function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}
10
+ */var o=function(){function e(e,t,r){this._field=e,this._textStyle=t,this._provider=r}var t=e.prototype;return t.field=function(){return this._field},t.textStyle=function(){return this._textStyle},t.provider=function(){return this._provider},t.print=function(e,t){var r=e.getValue(this._field);if(null===r)return!1;var n=this._provider.getText(this._field,r,this._textStyle,e.locale());return null===n?this._numberPrinterParser().print(e,t):(t.append(n),!0)},t.parse=function(e,t,r){var a=t.length;if(r<0||r>a)throw new n.IllegalArgumentException("The position is invalid: "+r);var o=e.isStrict()?this._textStyle:null,l=this._provider.getTextIterator(this._field,o,e.locale());if(null!=l){for(var s,u=i(l);!(s=u()).done;){var f=s.value,d=f.key;if(e.subSequenceEquals(d,0,t,r,d.length))return e.setParsedField(this._field,f.value,r,r+d.length)}if(e.isStrict())return~r}return this._numberPrinterParser().parse(e,t,r)},t._numberPrinterParser=function(){return null==this._currentNumberPrinterParser&&(this._currentNumberPrinterParser=new n.DateTimeFormatterBuilder.NumberPrinterParser(this._field,1,19,n.SignStyle.NORMAL)),this._currentNumberPrinterParser},t.toString=function(){return this._textStyle===n.TextStyle.FULL?"Text("+this._field+")":"Text("+this._field+","+this._textStyle+")"},e}(),l=r(1),s=r.n(l),u=function(e,t){return{key:e,value:t,toString:function(){return e+"->"+t}}},f=function(e,t){return t.key.length-e.key.length},d=function(){function e(e){this._valueTextMap=e;var t={},r=[];Object.keys(e).forEach((function(n){var i={},a=[];Object.keys(e[n]).forEach((function(t){var r=e[n][t];void 0===i[r]&&(i[r]=u(r,parseInt(t)),a.push(i[r]))})),a.sort(f),t[n]=a,r=r.concat(a),t.null=r})),r.sort(f),this._parsable=t}var t=e.prototype;return t.getText=function(e,t){var r=this._valueTextMap[t];return null!=r?r[e]:null},t.getTextIterator=function(e){var t=this._parsable[e];return null!=t?t[Symbol.iterator]():null},e}(),h=r(2),c=r.n(h),_=new Set,p=function(e){_.has(e)||(c.a.load(s()(e)),_.add(e))},S={},O=function(e){return null==S[e]&&(S[e]=new c.a(e)),S[e]},y={},v=function(){function e(){this._cache={},p("supplemental/likelySubtags.json")}var t=e.prototype;return t.getAvailableLocales=function(){return"undefined"!=typeof JS_JODA_LOCALE_AVAILABLE_LOCALES?JS_JODA_LOCALE_AVAILABLE_LOCALES:s()("availableLocales.json").availableLocales},t.getText=function(e,t,r,n){var i=this._findStore(e,n);return i instanceof d?i.getText(t,r):null},t.getTextIterator=function(e,t,r){var n=this._findStore(e,r);return n instanceof d?n.getTextIterator(t):null},t._findStore=function(e,t){var r=u(e,t),n=this._cache[r];return void 0===n&&(n=this._createStore(e,t),this._cache[r]=n),n},t._createStore=function(e,t){p("main/"+t.localeString()+"/ca-gregorian.json");var r=O(t.localeString());if(e===n.ChronoField.MONTH_OF_YEAR){var i=r.main("dates/calendars/gregorian/months/format"),a={},o={};return o[1]=i.wide[1],o[2]=i.wide[2],o[3]=i.wide[3],o[4]=i.wide[4],o[5]=i.wide[5],o[6]=i.wide[6],o[7]=i.wide[7],o[8]=i.wide[8],o[9]=i.wide[9],o[10]=i.wide[10],o[11]=i.wide[11],o[12]=i.wide[12],a[n.TextStyle.FULL]=o,(o={})[1]=i.narrow[1],o[2]=i.narrow[2],o[3]=i.narrow[3],o[4]=i.narrow[4],o[5]=i.narrow[5],o[6]=i.narrow[6],o[7]=i.narrow[7],o[8]=i.narrow[8],o[9]=i.narrow[9],o[10]=i.narrow[10],o[11]=i.narrow[11],o[12]=i.narrow[12],a[n.TextStyle.NARROW]=o,(o={})[1]=i.abbreviated[1],o[2]=i.abbreviated[2],o[3]=i.abbreviated[3],o[4]=i.abbreviated[4],o[5]=i.abbreviated[5],o[6]=i.abbreviated[6],o[7]=i.abbreviated[7],o[8]=i.abbreviated[8],o[9]=i.abbreviated[9],o[10]=i.abbreviated[10],o[11]=i.abbreviated[11],o[12]=i.abbreviated[12],a[n.TextStyle.SHORT]=o,this._createLocaleStore(a)}if(e===n.ChronoField.DAY_OF_WEEK){var l=r.main("dates/calendars/gregorian/days/format"),s={},u={};return u[1]=l.wide.mon,u[2]=l.wide.tue,u[3]=l.wide.wed,u[4]=l.wide.thu,u[5]=l.wide.fri,u[6]=l.wide.sat,u[7]=l.wide.sun,s[n.TextStyle.FULL]=u,(u={})[1]=l.narrow.mon,u[2]=l.narrow.tue,u[3]=l.narrow.wed,u[4]=l.narrow.thu,u[5]=l.narrow.fri,u[6]=l.narrow.sat,u[7]=l.narrow.sun,s[n.TextStyle.NARROW]=u,(u={})[1]=l.abbreviated.mon,u[2]=l.abbreviated.tue,u[3]=l.abbreviated.wed,u[4]=l.abbreviated.thu,u[5]=l.abbreviated.fri,u[6]=l.abbreviated.sat,u[7]=l.abbreviated.sun,s[n.TextStyle.SHORT]=u,this._createLocaleStore(s)}if(e===n.ChronoField.AMPM_OF_DAY){var f=r.main("dates/calendars/gregorian/dayPeriods/format"),d={},h={};return h[0]=f.wide.am,h[1]=f.wide.pm,d[n.TextStyle.FULL]=h,(h={})[0]=f.narrow.am,h[1]=f.narrow.pm,d[n.TextStyle.NARROW]=h,(h={})[0]=f.abbreviated.am,h[1]=f.abbreviated.pm,d[n.TextStyle.SHORT]=h,this._createLocaleStore(d)}if(e===n.ChronoField.ERA){var c=r.main("dates/calendars/gregorian/eras"),_={},S={};return S[0]=c.eraNames[0],S[1]=c.eraNames[1],_[n.TextStyle.FULL]=S,(S={})[0]=c.eraNarrow[0],S[1]=c.eraNarrow[1],_[n.TextStyle.NARROW]=S,(S={})[0]=c.eraAbbr[0],S[1]=c.eraAbbr[1],_[n.TextStyle.SHORT]=S,this._createLocaleStore(_)}if(e===n.IsoFields.QUARTER_OF_YEAR){var y=r.main("dates/calendars/gregorian/quarters/format"),v={},E={};return E[1]=y.wide[1],E[2]=y.wide[2],E[3]=y.wide[3],E[4]=y.wide[4],v[n.TextStyle.FULL]=E,(E={})[1]=y.narrow[1],E[2]=y.narrow[2],E[3]=y.narrow[3],E[4]=y.narrow[4],v[n.TextStyle.NARROW]=E,(E={})[1]=y.abbreviated[1],E[2]=y.abbreviated[2],E[3]=y.abbreviated[3],E[4]=y.abbreviated[4],v[n.TextStyle.SHORT]=E,this._createLocaleStore(v)}return null},t._createLocaleStore=function(e){return e[n.TextStyle.FULL_STANDALONE]=e[n.TextStyle.FULL],e[n.TextStyle.SHORT_STANDALONE]=e[n.TextStyle.SHORT],Object.keys(e).indexOf(n.TextStyle.NARROW)>-1&&-1===Object.keys(e).indexOf(n.TextStyle.NARROW_STANDALONE)&&(e[n.TextStyle.NARROW_STANDALONE]=e[n.TextStyle.NARROW]),new d(e)},e}();function E(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}
33
11
  /*
34
12
  * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
35
13
  * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
36
- */var U=r._.MathUtil,M=r._.assert,P=M.requireNonNull,j=M.requireInstance,B=r.ValueRange.of(1,7),z=r.ValueRange.of(0,1,4,6),K=r.ValueRange.of(0,1,52,54),V=r.ValueRange.of(1,52,53),H=r.ChronoField.YEAR.range(),Z={mon:r.DayOfWeek.MONDAY,tue:r.DayOfWeek.TUESDAY,wed:r.DayOfWeek.WEDNESDAY,thu:r.DayOfWeek.THURSDAY,fri:r.DayOfWeek.FRIDAY,sat:r.DayOfWeek.SATURDAY,sun:r.DayOfWeek.SUNDAY},q=function(){function e(t,n,r,a,i){I(this,e),this._name=t,this._weekDef=n,this._baseUnit=r,this._rangeUnit=a,this._range=i}return L(e,[{key:"getFrom",value:function(e){var t=this._weekDef.firstDayOfWeek().value(),n=this._localizedDayOfWeek(e,t);if(this._rangeUnit===r.ChronoUnit.WEEKS)return n;if(this._rangeUnit===r.ChronoUnit.MONTHS)return this._localizedWeekOfMonth(e,n);if(this._rangeUnit===r.ChronoUnit.YEARS)return this._localizedWeekOfYear(e,n);if(this._rangeUnit===r.IsoFields.WEEK_BASED_YEARS)return this._localizedWOWBY(e);if(this._rangeUnit===r.ChronoUnit.FOREVER)return this._localizedWBY(e);throw new r.IllegalStateException("unreachable")}},{key:"_localizedDayOfWeek",value:function(e,t){var n=e.get(r.ChronoField.DAY_OF_WEEK);return U.floorMod(n-t,7)+1}},{key:"_localizedWeekOfMonth",value:function(t,n){var a=t.get(r.ChronoField.DAY_OF_MONTH),i=this._startOfWeekOffset(a,n);return e._computeWeek(i,a)}},{key:"_localizedWeekOfYear",value:function(t,n){var a=t.get(r.ChronoField.DAY_OF_YEAR),i=this._startOfWeekOffset(a,n);return e._computeWeek(i,a)}},{key:"_localizedWOWBY",value:function(t){var n=this._weekDef.firstDayOfWeek().value(),a=t.get(r.ChronoField.DAY_OF_WEEK),i=U.floorMod(a-n,7)+1,o=this._localizedWeekOfYear(t,i);if(0===o){var l=r.LocalDate.from(t).minus(1,r.ChronoUnit.WEEKS);return this._localizedWeekOfYear(l,i)+1}if(o>=53){var u=this._startOfWeekOffset(t.get(r.ChronoField.DAY_OF_YEAR),i),s=t.get(r.ChronoField.YEAR),f=r.Year.isLeap(s)?366:365,c=e._computeWeek(u,f+this._weekDef.minimalDaysInFirstWeek());if(o>=c)return o-(c-1)}return o}},{key:"_localizedWBY",value:function(t){var n=this._weekDef.firstDayOfWeek().value(),a=t.get(r.ChronoField.DAY_OF_WEEK),i=U.floorMod(a-n,7)+1,o=t.get(r.ChronoField.YEAR),l=this._localizedWeekOfYear(t,i);if(0===l)return o-1;if(l<53)return o;var u=this._startOfWeekOffset(t.get(r.ChronoField.DAY_OF_YEAR),i),s=r.Year.isLeap(o)?366:365;return l>=e._computeWeek(u,s+this._weekDef.minimalDaysInFirstWeek())?o+1:o}},{key:"_startOfWeekOffset",value:function(e,t){var n=U.floorMod(e-t,7),r=-n;return n+1>this._weekDef.minimalDaysInFirstWeek()&&(r=7-n),r}},{key:"adjustInto",value:function(e,t){var n=this._range.checkValidIntValue(t,this),a=e.get(this);if(n===a)return e;if(this._rangeUnit===r.ChronoUnit.FOREVER){var i=e.get(this._weekDef.weekOfWeekBasedYear()),o=U.roundDown(52.1775*(t-a)),l=e.plus(o,r.ChronoUnit.WEEKS);if(l.get(this)>n){var u=l.get(this._weekDef.weekOfWeekBasedYear());l=l.minus(u,r.ChronoUnit.WEEKS)}else{l.get(this)<n&&(l=l.plus(2,r.ChronoUnit.WEEKS));var s=l.get(this._weekDef.weekOfWeekBasedYear());(l=l.plus(i-s,r.ChronoUnit.WEEKS)).get(this)>n&&(l=l.minus(1,r.ChronoUnit.WEEKS))}return l}var f=n-a;return e.plus(f,this._baseUnit)}},{key:"resolve",value:function(e,t,n){var a=this._weekDef.firstDayOfWeek().value();if(this._rangeUnit===r.ChronoUnit.WEEKS){var i=e.remove(this),o=this._range.checkValidIntValue(i,this),l=U.floorMod(a-1+(o-1),7)+1;return e.put(r.ChronoField.DAY_OF_WEEK,l),null}if(!1===e.containsKey(r.ChronoField.DAY_OF_WEEK))return null;if(this._rangeUnit===r.ChronoUnit.FOREVER){if(!1===e.containsKey(this._weekDef.weekOfWeekBasedYear()))return null;var u,s,f=r.ChronoField.DAY_OF_WEEK.checkValidIntValue(e.get(r.ChronoField.DAY_OF_WEEK)),c=U.floorMod(f-a,7)+1,d=this.range().checkValidIntValue(e.get(this),this);if(n===r.ResolverStyle.LENIENT){u=r.LocalDate.of(d,1,this._weekDef.minimalDaysInFirstWeek());var h=e.get(this._weekDef.weekOfWeekBasedYear()),y=this._localizedDayOfWeek(u,a);s=7*(h-this._localizedWeekOfYear(u,y))+(c-y)}else{u=r.LocalDate.of(d,1,this._weekDef.minimalDaysInFirstWeek());var p=this._weekDef.weekOfWeekBasedYear().range().checkValidIntValue(e.get(this._weekDef.weekOfWeekBasedYear()),this._weekDef.weekOfWeekBasedYear),_=this._localizedDayOfWeek(u,a);s=7*(p-this._localizedWeekOfYear(u,_))+(c-_)}if(u=u.plus(s,r.ChronoUnit.DAYS),n===r.ResolverStyle.STRICT&&u.getLong(this)!==e.get(this))throw new r.DateTimeException("Strict mode rejected date parsed to a different year");return e.remove(this),e.remove(this._weekDef.weekOfWeekBasedYear()),e.remove(r.ChronoField.DAY_OF_WEEK),u}if(!1===e.containsKey(r.ChronoField.YEAR))return null;var v=r.ChronoField.DAY_OF_WEEK.checkValidIntValue(e.get(r.ChronoField.DAY_OF_WEEK)),O=U.floorMod(v-a,7)+1,k=r.ChronoField.YEAR.checkValidIntValue(e.get(r.ChronoField.YEAR));if(this._rangeUnit===r.ChronoUnit.MONTHS){if(!1===e.containsKey(r.ChronoField.MONTH_OF_YEAR))return null;var S,m,g=e.remove(this);if(n===r.ResolverStyle.LENIENT){var E=e.get(r.ChronoField.MONTH_OF_YEAR);S=(S=r.LocalDate.of(k,1,1)).plus(E-1,r.ChronoUnit.MONTHS);var w=this._localizedDayOfWeek(S,a);m=7*(g-this._localizedWeekOfMonth(S,w))+(O-w)}else{var b=r.ChronoField.MONTH_OF_YEAR.checkValidIntValue(e.get(r.ChronoField.MONTH_OF_YEAR));S=r.LocalDate.of(k,b,8);var F=this._localizedDayOfWeek(S,a);m=7*(this._range.checkValidIntValue(g,this)-this._localizedWeekOfMonth(S,F))+(O-F)}if(S=S.plus(m,r.ChronoUnit.DAYS),n===r.ResolverStyle.STRICT&&S.getLong(r.ChronoField.MONTH_OF_YEAR)!==e.get(r.ChronoField.MONTH_OF_YEAR))throw new r.DateTimeException("Strict mode rejected date parsed to a different month");return e.remove(this),e.remove(r.ChronoField.YEAR),e.remove(r.ChronoField.MONTH_OF_YEAR),e.remove(r.ChronoField.DAY_OF_WEEK),S}if(this._rangeUnit===r.ChronoUnit.YEARS){var D,T=e.remove(this),A=r.LocalDate.of(k,1,1);if(n===r.ResolverStyle.LENIENT){var W=this._localizedDayOfWeek(A,a);D=7*(T-this._localizedWeekOfYear(A,W))+(O-W)}else{var C=this._localizedDayOfWeek(A,a);D=7*(this._range.checkValidIntValue(T,this)-this._localizedWeekOfYear(A,C))+(O-C)}if(A=A.plus(D,r.ChronoUnit.DAYS),n===r.ResolverStyle.STRICT&&A.getLong(r.ChronoField.YEAR)!==e.get(r.ChronoField.YEAR))throw new r.DateTimeException("Strict mode rejected date parsed to a different year");return e.remove(this),e.remove(r.ChronoField.YEAR),e.remove(r.ChronoField.DAY_OF_WEEK),A}throw new r.IllegalStateException("unreachable")}},{key:"name",value:function(){return this._name}},{key:"baseUnit",value:function(){return this._baseUnit}},{key:"rangeUnit",value:function(){return this._rangeUnit}},{key:"range",value:function(){return this._range}},{key:"isDateBased",value:function(){return!0}},{key:"isTimeBased",value:function(){return!1}},{key:"isSupportedBy",value:function(e){if(e.isSupported(r.ChronoField.DAY_OF_WEEK)){if(this._rangeUnit===r.ChronoUnit.WEEKS)return!0;if(this._rangeUnit===r.ChronoUnit.MONTHS)return e.isSupported(r.ChronoField.DAY_OF_MONTH);if(this._rangeUnit===r.ChronoUnit.YEARS)return e.isSupported(r.ChronoField.DAY_OF_YEAR);if(this._rangeUnit===r.IsoFields.WEEK_BASED_YEARS)return e.isSupported(r.ChronoField.EPOCH_DAY);if(this._rangeUnit===r.ChronoUnit.FOREVER)return e.isSupported(r.ChronoField.EPOCH_DAY)}return!1}},{key:"rangeRefinedBy",value:function(t){if(this._rangeUnit===r.ChronoUnit.WEEKS)return this._range;var n=null;if(this._rangeUnit===r.ChronoUnit.MONTHS)n=r.ChronoField.DAY_OF_MONTH;else{if(this._rangeUnit!==r.ChronoUnit.YEARS){if(this._rangeUnit===r.IsoFields.WEEK_BASED_YEARS)return this._rangeWOWBY(t);if(this._rangeUnit===r.ChronoUnit.FOREVER)return t.range(r.ChronoField.YEAR);throw new r.IllegalStateException("unreachable")}n=r.ChronoField.DAY_OF_YEAR}var a=this._weekDef.firstDayOfWeek().value(),i=t.get(r.ChronoField.DAY_OF_WEEK),o=U.floorMod(i-a,7)+1,l=this._startOfWeekOffset(t.get(n),o),u=t.range(n);return r.ValueRange.of(e._computeWeek(l,u.minimum()),e._computeWeek(l,u.maximum()))}},{key:"_rangeWOWBY",value:function(t){var n=this._weekDef.firstDayOfWeek().value(),a=t.get(r.ChronoField.DAY_OF_WEEK),i=U.floorMod(a-n,7)+1,o=this._localizedWeekOfYear(t,i);if(0===o)return this._rangeWOWBY(r.IsoChronology.INSTANCE.date(t).minus(2,r.ChronoUnit.WEEKS));var l=this._startOfWeekOffset(t.get(r.ChronoField.DAY_OF_YEAR),i),u=t.get(r.ChronoField.YEAR),s=r.Year.isLeap(u)?366:365,f=e._computeWeek(l,s+this._weekDef.minimalDaysInFirstWeek());return o>=f?this._rangeWOWBY(r.IsoChronology.INSTANCE.date(t).plus(2,r.ChronoUnit.WEEKS)):r.ValueRange.of(1,f-1)}},{key:"displayName",value:function(e){return P(e,"locale"),this._rangeUnit===r.ChronoUnit.YEARS?"Week":this.toString()}},{key:"toString",value:function(){return"".concat(this._name,"[").concat(this._weekDef.toString(),"]")}}],[{key:"ofDayOfWeekField",value:function(t){return new e("DayOfWeek",t,r.ChronoUnit.DAYS,r.ChronoUnit.WEEKS,B)}},{key:"ofWeekOfMonthField",value:function(t){return new e("WeekOfMonth",t,r.ChronoUnit.WEEKS,r.ChronoUnit.MONTHS,z)}},{key:"ofWeekOfYearField",value:function(t){return new e("WeekOfYear",t,r.ChronoUnit.WEEKS,r.ChronoUnit.YEARS,K)}},{key:"ofWeekOfWeekBasedYearField",value:function(t){return new e("WeekOfWeekBasedYear",t,r.ChronoUnit.WEEKS,r.IsoFields.WEEK_BASED_YEARS,V)}},{key:"ofWeekBasedYearField",value:function(t){return new e("WeekBasedYear",t,r.IsoFields.WEEK_BASED_YEARS,r.ChronoUnit.FOREVER,H)}},{key:"_computeWeek",value:function(e,t){return U.intDiv(7+e+(t-1),7)}}]),e}(),J=new Map,G=function(){function e(t,n){if(I(this,e),P(t,"firstDayOfWeek"),j(t,r.DayOfWeek,"firstDayOfWeek"),P(n,"minimalDaysInFirstWeek"),n<1||n>7)throw new r.IllegalArgumentException("Minimal number of days is invalid");this._firstDayOfWeek=t,this._minimalDays=n,this._dayOfWeek=q.ofDayOfWeekField(this),this._weekOfMonth=q.ofWeekOfMonthField(this),this._weekOfYear=q.ofWeekOfYearField(this),this._weekOfWeekBasedYear=q.ofWeekOfWeekBasedYearField(this),this._weekBasedYear=q.ofWeekBasedYearField(this),p.a.load(s()("supplemental/likelySubtags.json"))}return L(e,[{key:"firstDayOfWeek",value:function(){return this._firstDayOfWeek}},{key:"minimalDaysInFirstWeek",value:function(){return this._minimalDays}},{key:"dayOfWeek",value:function(){return this._dayOfWeek}},{key:"weekOfMonth",value:function(){return this._weekOfMonth}},{key:"weekOfYear",value:function(){return this._weekOfYear}},{key:"weekOfWeekBasedYear",value:function(){return this._weekOfWeekBasedYear}},{key:"weekBasedYear",value:function(){return this._weekBasedYear}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.hashCode()===t.hashCode()}},{key:"hashCode",value:function(){return 7*this._firstDayOfWeek.ordinal()+this._minimalDays}},{key:"toString",value:function(){return"WeekFields[".concat(this._firstDayOfWeek,",").concat(this._minimalDays,"]")}}],[{key:"of",value:function(t,n){return void 0===n?e.ofLocale(t):e.ofFirstDayOfWeekMinDays(t,n)}},{key:"ofLocale",value:function(t){P(t,"locale"),p.a.load(s()("supplemental/weekData.json"));var n=new p.a(t.localeString()).get("supplemental/weekData"),r=Z[n.firstDay[t.country()]];r||(r=Z[n.firstDay["001"]]);var a=n.minDays[t.country()];return a||(a=n.minDays["001"]),e.ofFirstDayOfWeekMinDays(r,a)}},{key:"ofFirstDayOfWeekMinDays",value:function(t,n){P(t,"firstDayOfWeek"),j(t,r.DayOfWeek,"firstDayOfWeek"),P(n,"minimalDaysInFirstWeek");var a=t.toString()+n,i=J.get(a);return null==i&&(i=new e(t,n),J.set(a,i),i=J.get(a)),i}}]),e}();function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
14
+ */var m=n._.assert,F=m.requireNonNull,k=m.requireInstance,D=function(e,t){var r=t.length-e.length;return 0===r&&(r=e.localeCompare(t)),r},A={},w=function(){function e(e){F(e,"textStyle"),k(e,n.TextStyle,"textStyle"),this._textStyle=e,this._zoneIdsLocales={},p("supplemental/likelySubtags.json"),p("supplemental/metaZones.json")}var t=e.prototype;return t._cachedResolveZoneIdText=function(e,t,r,n){null==A[e.locale]&&(A[e.locale]={});var i=A[e.locale];null==i[t]&&(i[t]={});var a=i[t];null==a[r]&&(a[r]={});var o=a[r];return null==o[n]&&(o[n]=this._resolveZoneIdText(e,t,r,n)),o[n]},t._resolveZoneIdText=function(e,t,r,n){var i=e.main("dates/timeZoneNames/zone/"+t+"/"+r+"/"+n);if(i)return i;var a=e.get("supplemental/metaZones/metazoneInfo/timezone/"+t);if(a){var o=a[a.length-1].usesMetazone._mzone,l=e.main("dates/timeZoneNames/metazone/"+o+"/"+r+"/"+n);if(l)return l;if((l=e.main("dates/timeZoneNames/metazone/"+o+"/"+r+"/generic"))||(l=e.main("dates/timeZoneNames/metazone/"+o+"/"+r+"/standard")),l)return l;var s=function(e){if(null==y[e.locale]){var t={};e.get("supplemental/metaZones/metazones").forEach((function(e){e.mapZone&&(t[e.mapZone._other]||(t[e.mapZone._other]={}),t[e.mapZone._other][e.mapZone._territory]=e.mapZone._type)})),y[e.locale]=t}return y[e.locale]}(e),u=s[o][e.attributes.territory];if(u){if(u!==t)return this._cachedResolveZoneIdText(e,u,r,n)}else{var f=s[o]["001"];if(f!==t)return this._cachedResolveZoneIdText(e,f,r,n)}}},t.print=function(e,t){var r=e.getValueQuery(n.TemporalQueries.zoneId());if(null==r)return!1;if(r.normalized()instanceof n.ZoneOffset)return t.append(r.id()),!0;var i=this._textStyle.asNormal()===n.TextStyle.FULL?"long":"short";p("main/"+e.locale().localeString()+"/timeZoneNames.json");var a=O(e.locale().localeString()),o=this._cachedResolveZoneIdText(a,r.id(),i,"generic");return o?t.append(o):t.append(r.id()),!0},t._resolveZoneIds=function(e){if(null!=this._zoneIdsLocales[e])return this._zoneIdsLocales[e];var t={};p("main/"+e+"/timeZoneNames.json");for(var r,i=O(e),a=E(n.ZoneRulesProvider.getAvailableZoneIds());!(r=a()).done;){var o=r.value;t[o]=o;var l=this._textStyle.asNormal()===n.TextStyle.FULL?"long":"short",s=this._cachedResolveZoneIdText(i,o,l,"generic");s&&(t[s]=o);var u=this._cachedResolveZoneIdText(i,o,l,"standard");u&&(t[u]=o);var f=this._cachedResolveZoneIdText(i,o,l,"daylight");f&&(t[f]=o)}var d=Object.keys(t).sort(D);return this._zoneIdsLocales[e]={ids:t,sortedKeys:d},this._zoneIdsLocales[e]},t.parse=function(e,t,r){for(var i=0,a=["UTC","GMT"];i<a.length;i++){var o=a[i];if(e.subSequenceEquals(t,r,o,0,o.length))return e.setParsedZone(n.ZoneId.of(o)),r+o.length}for(var l,s=this._resolveZoneIds(e.locale().localeString()),u=s.ids,f=E(s.sortedKeys);!(l=f()).done;){var d=l.value;if(e.subSequenceEquals(t,r,d,0,d.length))return e.setParsedZone(n.ZoneId.of(u[d])),r+d.length}return~r},t.toString=function(){return"ZoneText("+this._textStyle+")"},e}(),W=n._.MathUtil,T=function(){function e(e){this._textStyle=e}var t=e.prototype;return t.textStyle=function(){return this._textStyle},t.print=function(e,t){var r=e.getValue(n.ChronoField.OFFSET_SECONDS);if(null==r)return!1;if(t.append("GMT"),this._textStyle===n.TextStyle.FULL)return new n.DateTimeFormatterBuilder.OffsetIdPrinterParser("","+HH:MM:ss").print(e,t);var i=W.safeToInt(r);if(0!==i){var a=Math.abs(W.intMod(W.intDiv(i,3600),100)),o=Math.abs(W.intMod(W.intDiv(i,60),60)),l=Math.abs(W.intMod(i,60));t.append(i<0?"-":"+").append(a),(o>0||l>0)&&(t.append(":").append(W.intDiv(o,10)).append(W.intMod(o,10)),l>0&&t.append(":").append(W.intDiv(l,10)).append(W.intMod(l,10)))}return!0},t.parse=function(e,t,r){if(!1===e.subSequenceEquals(t,r,"GMT",0,3))return~r;if(r+=3,this._textStyle===n.TextStyle.FULL)return new n.DateTimeFormatterBuilder.OffsetIdPrinterParser("","+HH:MM:ss").parse(e,t,r);var i=t.length;if(r===i)return e.setParsedField(n.ChronoField.OFFSET_SECONDS,0,r,r);var a=t.charAt(r);if("+"!==a&&"-"!==a)return e.setParsedField(n.ChronoField.OFFSET_SECONDS,0,r,r);var o="-"===a?-1:1;if(r===i)return~r;r++;var l=t.charAt(r);if(l<"0"||l>"9")return~r;r++;var s=W.parseInt(l);if(r!==i&&(l=t.charAt(r))>="0"&&l<="9"){if((s=10*s+W.parseInt(l))>23)return~r;r++}if(r===i||":"!==t.charAt(r)){var u=3600*o*s;return e.setParsedField(n.ChronoField.OFFSET_SECONDS,u,r,r)}if(++r>i-2)return~r;if((l=t.charAt(r))<"0"||l>"9")return~r;r++;var f=W.parseInt(l);if((l=t.charAt(r))<"0"||l>"9")return~r;if(r++,(f=10*f+W.parseInt(l))>59)return~r;if(r===i||":"!==t.charAt(r)){var d=o*(3600*s+60*f);return e.setParsedField(n.ChronoField.OFFSET_SECONDS,d,r,r)}if(++r>i-2)return~r;if((l=t.charAt(r))<"0"||l>"9")return~r;r++;var h=W.parseInt(l);if((l=t.charAt(r))<"0"||l>"9")return~r;if(r++,(h=10*h+W.parseInt(l))>59)return~r;var c=o*(3600*s+60*f+h);return e.setParsedField(n.ChronoField.OFFSET_SECONDS,c,r,r)},t.toString=function(){return"LocalizedOffset("+this._textStyle+")"},e}(),b=n._.MathUtil,Y=n._.assert,C=Y.requireNonNull,R=Y.requireInstance,x=n.ValueRange.of(1,7),I=n.ValueRange.of(0,1,4,6),N=n.ValueRange.of(0,1,52,54),L=n.ValueRange.of(1,52,53),U=n.ChronoField.YEAR.range(),M={mon:n.DayOfWeek.MONDAY,tue:n.DayOfWeek.TUESDAY,wed:n.DayOfWeek.WEDNESDAY,thu:n.DayOfWeek.THURSDAY,fri:n.DayOfWeek.FRIDAY,sat:n.DayOfWeek.SATURDAY,sun:n.DayOfWeek.SUNDAY},B=function(){function e(e,t,r,n,i){this._name=e,this._weekDef=t,this._baseUnit=r,this._rangeUnit=n,this._range=i}e.ofDayOfWeekField=function(t){return new e("DayOfWeek",t,n.ChronoUnit.DAYS,n.ChronoUnit.WEEKS,x)},e.ofWeekOfMonthField=function(t){return new e("WeekOfMonth",t,n.ChronoUnit.WEEKS,n.ChronoUnit.MONTHS,I)},e.ofWeekOfYearField=function(t){return new e("WeekOfYear",t,n.ChronoUnit.WEEKS,n.ChronoUnit.YEARS,N)},e.ofWeekOfWeekBasedYearField=function(t){return new e("WeekOfWeekBasedYear",t,n.ChronoUnit.WEEKS,n.IsoFields.WEEK_BASED_YEARS,L)},e.ofWeekBasedYearField=function(t){return new e("WeekBasedYear",t,n.IsoFields.WEEK_BASED_YEARS,n.ChronoUnit.FOREVER,U)};var t=e.prototype;return t.getFrom=function(e){var t=this._weekDef.firstDayOfWeek().value(),r=this._localizedDayOfWeek(e,t);if(this._rangeUnit===n.ChronoUnit.WEEKS)return r;if(this._rangeUnit===n.ChronoUnit.MONTHS)return this._localizedWeekOfMonth(e,r);if(this._rangeUnit===n.ChronoUnit.YEARS)return this._localizedWeekOfYear(e,r);if(this._rangeUnit===n.IsoFields.WEEK_BASED_YEARS)return this._localizedWOWBY(e);if(this._rangeUnit===n.ChronoUnit.FOREVER)return this._localizedWBY(e);throw new n.IllegalStateException("unreachable")},t._localizedDayOfWeek=function(e,t){var r=e.get(n.ChronoField.DAY_OF_WEEK);return b.floorMod(r-t,7)+1},t._localizedWeekOfMonth=function(t,r){var i=t.get(n.ChronoField.DAY_OF_MONTH),a=this._startOfWeekOffset(i,r);return e._computeWeek(a,i)},t._localizedWeekOfYear=function(t,r){var i=t.get(n.ChronoField.DAY_OF_YEAR),a=this._startOfWeekOffset(i,r);return e._computeWeek(a,i)},t._localizedWOWBY=function(t){var r=this._weekDef.firstDayOfWeek().value(),i=t.get(n.ChronoField.DAY_OF_WEEK),a=b.floorMod(i-r,7)+1,o=this._localizedWeekOfYear(t,a);if(0===o){var l=n.LocalDate.from(t).minus(1,n.ChronoUnit.WEEKS);return this._localizedWeekOfYear(l,a)+1}if(o>=53){var s=this._startOfWeekOffset(t.get(n.ChronoField.DAY_OF_YEAR),a),u=t.get(n.ChronoField.YEAR),f=n.Year.isLeap(u)?366:365,d=e._computeWeek(s,f+this._weekDef.minimalDaysInFirstWeek());if(o>=d)return o-(d-1)}return o},t._localizedWBY=function(t){var r=this._weekDef.firstDayOfWeek().value(),i=t.get(n.ChronoField.DAY_OF_WEEK),a=b.floorMod(i-r,7)+1,o=t.get(n.ChronoField.YEAR),l=this._localizedWeekOfYear(t,a);if(0===l)return o-1;if(l<53)return o;var s=this._startOfWeekOffset(t.get(n.ChronoField.DAY_OF_YEAR),a),u=n.Year.isLeap(o)?366:365;return l>=e._computeWeek(s,u+this._weekDef.minimalDaysInFirstWeek())?o+1:o},t._startOfWeekOffset=function(e,t){var r=b.floorMod(e-t,7),n=-r;return r+1>this._weekDef.minimalDaysInFirstWeek()&&(n=7-r),n},e._computeWeek=function(e,t){return b.intDiv(7+e+(t-1),7)},t.adjustInto=function(e,t){var r=this._range.checkValidIntValue(t,this),i=e.get(this);if(r===i)return e;if(this._rangeUnit===n.ChronoUnit.FOREVER){var a=e.get(this._weekDef.weekOfWeekBasedYear()),o=b.roundDown(52.1775*(t-i)),l=e.plus(o,n.ChronoUnit.WEEKS);if(l.get(this)>r){var s=l.get(this._weekDef.weekOfWeekBasedYear());l=l.minus(s,n.ChronoUnit.WEEKS)}else{l.get(this)<r&&(l=l.plus(2,n.ChronoUnit.WEEKS));var u=l.get(this._weekDef.weekOfWeekBasedYear());(l=l.plus(a-u,n.ChronoUnit.WEEKS)).get(this)>r&&(l=l.minus(1,n.ChronoUnit.WEEKS))}return l}var f=r-i;return e.plus(f,this._baseUnit)},t.resolve=function(e,t,r){var i=this._weekDef.firstDayOfWeek().value();if(this._rangeUnit===n.ChronoUnit.WEEKS){var a=e.remove(this),o=this._range.checkValidIntValue(a,this),l=b.floorMod(i-1+(o-1),7)+1;return e.put(n.ChronoField.DAY_OF_WEEK,l),null}if(!1===e.containsKey(n.ChronoField.DAY_OF_WEEK))return null;if(this._rangeUnit===n.ChronoUnit.FOREVER){if(!1===e.containsKey(this._weekDef.weekOfWeekBasedYear()))return null;var s,u,f=n.ChronoField.DAY_OF_WEEK.checkValidIntValue(e.get(n.ChronoField.DAY_OF_WEEK)),d=b.floorMod(f-i,7)+1,h=this.range().checkValidIntValue(e.get(this),this);if(r===n.ResolverStyle.LENIENT){s=n.LocalDate.of(h,1,this._weekDef.minimalDaysInFirstWeek());var c=e.get(this._weekDef.weekOfWeekBasedYear()),_=this._localizedDayOfWeek(s,i);u=7*(c-this._localizedWeekOfYear(s,_))+(d-_)}else{s=n.LocalDate.of(h,1,this._weekDef.minimalDaysInFirstWeek());var p=this._weekDef.weekOfWeekBasedYear().range().checkValidIntValue(e.get(this._weekDef.weekOfWeekBasedYear()),this._weekDef.weekOfWeekBasedYear),S=this._localizedDayOfWeek(s,i);u=7*(p-this._localizedWeekOfYear(s,S))+(d-S)}if(s=s.plus(u,n.ChronoUnit.DAYS),r===n.ResolverStyle.STRICT&&s.getLong(this)!==e.get(this))throw new n.DateTimeException("Strict mode rejected date parsed to a different year");return e.remove(this),e.remove(this._weekDef.weekOfWeekBasedYear()),e.remove(n.ChronoField.DAY_OF_WEEK),s}if(!1===e.containsKey(n.ChronoField.YEAR))return null;var O=n.ChronoField.DAY_OF_WEEK.checkValidIntValue(e.get(n.ChronoField.DAY_OF_WEEK)),y=b.floorMod(O-i,7)+1,v=n.ChronoField.YEAR.checkValidIntValue(e.get(n.ChronoField.YEAR));if(this._rangeUnit===n.ChronoUnit.MONTHS){if(!1===e.containsKey(n.ChronoField.MONTH_OF_YEAR))return null;var E,g,m=e.remove(this);if(r===n.ResolverStyle.LENIENT){var F=e.get(n.ChronoField.MONTH_OF_YEAR);E=(E=n.LocalDate.of(v,1,1)).plus(F-1,n.ChronoUnit.MONTHS);var k=this._localizedDayOfWeek(E,i);g=7*(m-this._localizedWeekOfMonth(E,k))+(y-k)}else{var D=n.ChronoField.MONTH_OF_YEAR.checkValidIntValue(e.get(n.ChronoField.MONTH_OF_YEAR));E=n.LocalDate.of(v,D,8);var A=this._localizedDayOfWeek(E,i);g=7*(this._range.checkValidIntValue(m,this)-this._localizedWeekOfMonth(E,A))+(y-A)}if(E=E.plus(g,n.ChronoUnit.DAYS),r===n.ResolverStyle.STRICT&&E.getLong(n.ChronoField.MONTH_OF_YEAR)!==e.get(n.ChronoField.MONTH_OF_YEAR))throw new n.DateTimeException("Strict mode rejected date parsed to a different month");return e.remove(this),e.remove(n.ChronoField.YEAR),e.remove(n.ChronoField.MONTH_OF_YEAR),e.remove(n.ChronoField.DAY_OF_WEEK),E}if(this._rangeUnit===n.ChronoUnit.YEARS){var w,W=e.remove(this),T=n.LocalDate.of(v,1,1);if(r===n.ResolverStyle.LENIENT){var Y=this._localizedDayOfWeek(T,i);w=7*(W-this._localizedWeekOfYear(T,Y))+(y-Y)}else{var C=this._localizedDayOfWeek(T,i);w=7*(this._range.checkValidIntValue(W,this)-this._localizedWeekOfYear(T,C))+(y-C)}if(T=T.plus(w,n.ChronoUnit.DAYS),r===n.ResolverStyle.STRICT&&T.getLong(n.ChronoField.YEAR)!==e.get(n.ChronoField.YEAR))throw new n.DateTimeException("Strict mode rejected date parsed to a different year");return e.remove(this),e.remove(n.ChronoField.YEAR),e.remove(n.ChronoField.DAY_OF_WEEK),T}throw new n.IllegalStateException("unreachable")},t.name=function(){return this._name},t.baseUnit=function(){return this._baseUnit},t.rangeUnit=function(){return this._rangeUnit},t.range=function(){return this._range},t.isDateBased=function(){return!0},t.isTimeBased=function(){return!1},t.isSupportedBy=function(e){if(e.isSupported(n.ChronoField.DAY_OF_WEEK)){if(this._rangeUnit===n.ChronoUnit.WEEKS)return!0;if(this._rangeUnit===n.ChronoUnit.MONTHS)return e.isSupported(n.ChronoField.DAY_OF_MONTH);if(this._rangeUnit===n.ChronoUnit.YEARS)return e.isSupported(n.ChronoField.DAY_OF_YEAR);if(this._rangeUnit===n.IsoFields.WEEK_BASED_YEARS)return e.isSupported(n.ChronoField.EPOCH_DAY);if(this._rangeUnit===n.ChronoUnit.FOREVER)return e.isSupported(n.ChronoField.EPOCH_DAY)}return!1},t.rangeRefinedBy=function(t){if(this._rangeUnit===n.ChronoUnit.WEEKS)return this._range;var r=null;if(this._rangeUnit===n.ChronoUnit.MONTHS)r=n.ChronoField.DAY_OF_MONTH;else{if(this._rangeUnit!==n.ChronoUnit.YEARS){if(this._rangeUnit===n.IsoFields.WEEK_BASED_YEARS)return this._rangeWOWBY(t);if(this._rangeUnit===n.ChronoUnit.FOREVER)return t.range(n.ChronoField.YEAR);throw new n.IllegalStateException("unreachable")}r=n.ChronoField.DAY_OF_YEAR}var i=this._weekDef.firstDayOfWeek().value(),a=t.get(n.ChronoField.DAY_OF_WEEK),o=b.floorMod(a-i,7)+1,l=this._startOfWeekOffset(t.get(r),o),s=t.range(r);return n.ValueRange.of(e._computeWeek(l,s.minimum()),e._computeWeek(l,s.maximum()))},t._rangeWOWBY=function(t){var r=this._weekDef.firstDayOfWeek().value(),i=t.get(n.ChronoField.DAY_OF_WEEK),a=b.floorMod(i-r,7)+1,o=this._localizedWeekOfYear(t,a);if(0===o)return this._rangeWOWBY(n.IsoChronology.INSTANCE.date(t).minus(2,n.ChronoUnit.WEEKS));var l=this._startOfWeekOffset(t.get(n.ChronoField.DAY_OF_YEAR),a),s=t.get(n.ChronoField.YEAR),u=n.Year.isLeap(s)?366:365,f=e._computeWeek(l,u+this._weekDef.minimalDaysInFirstWeek());return o>=f?this._rangeWOWBY(n.IsoChronology.INSTANCE.date(t).plus(2,n.ChronoUnit.WEEKS)):n.ValueRange.of(1,f-1)},t.displayName=function(e){return C(e,"locale"),this._rangeUnit===n.ChronoUnit.YEARS?"Week":this.toString()},t.toString=function(){return this._name+"["+this._weekDef.toString()+"]"},e}(),P=new Map,j=function(){function e(e,t){if(C(e,"firstDayOfWeek"),R(e,n.DayOfWeek,"firstDayOfWeek"),C(t,"minimalDaysInFirstWeek"),t<1||t>7)throw new n.IllegalArgumentException("Minimal number of days is invalid");this._firstDayOfWeek=e,this._minimalDays=t,this._dayOfWeek=B.ofDayOfWeekField(this),this._weekOfMonth=B.ofWeekOfMonthField(this),this._weekOfYear=B.ofWeekOfYearField(this),this._weekOfWeekBasedYear=B.ofWeekOfWeekBasedYearField(this),this._weekBasedYear=B.ofWeekBasedYearField(this),c.a.load(s()("supplemental/likelySubtags.json"))}e.of=function(t,r){return void 0===r?e.ofLocale(t):e.ofFirstDayOfWeekMinDays(t,r)},e.ofLocale=function(t){C(t,"locale"),c.a.load(s()("supplemental/weekData.json"));var r=new c.a(t.localeString()).get("supplemental/weekData"),n=M[r.firstDay[t.country()]];n||(n=M[r.firstDay["001"]]);var i=r.minDays[t.country()];return i||(i=r.minDays["001"]),e.ofFirstDayOfWeekMinDays(n,i)},e.ofFirstDayOfWeekMinDays=function(t,r){C(t,"firstDayOfWeek"),R(t,n.DayOfWeek,"firstDayOfWeek"),C(r,"minimalDaysInFirstWeek");var i=t.toString()+r,a=P.get(i);return null==a&&(a=new e(t,r),P.set(i,a),a=P.get(i)),a};var t=e.prototype;return t.firstDayOfWeek=function(){return this._firstDayOfWeek},t.minimalDaysInFirstWeek=function(){return this._minimalDays},t.dayOfWeek=function(){return this._dayOfWeek},t.weekOfMonth=function(){return this._weekOfMonth},t.weekOfYear=function(){return this._weekOfYear},t.weekOfWeekBasedYear=function(){return this._weekOfWeekBasedYear},t.weekBasedYear=function(){return this._weekBasedYear},t.equals=function(t){return this===t||t instanceof e&&this.hashCode()===t.hashCode()},t.hashCode=function(){return 7*this._firstDayOfWeek.ordinal()+this._minimalDays},t.toString=function(){return"WeekFields["+this._firstDayOfWeek+","+this._minimalDays+"]"},e}();
37
15
  /*
38
16
  * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
39
17
  * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
40
18
  */
41
- var X=r._.StringBuilder,$=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._letter=t,this._count=n}var t,n,a;return t=e,(n=[{key:"print",value:function(e,t){var n=G.of(e.locale());return this._evaluate(n).print(e,t)}},{key:"parse",value:function(e,t,n){var r=G.of(e.locale());return this._evaluate(r).parse(e,t,n)}},{key:"_evaluate",value:function(e){var t=null;switch(this._letter){case"e":case"c":t=new r.DateTimeFormatterBuilder.NumberPrinterParser(e.dayOfWeek(),this._count,2,r.SignStyle.NOT_NEGATIVE);break;case"w":t=new r.DateTimeFormatterBuilder.NumberPrinterParser(e.weekOfWeekBasedYear(),this._count,2,r.SignStyle.NOT_NEGATIVE);break;case"W":t=new r.DateTimeFormatterBuilder.NumberPrinterParser(e.weekOfMonth(),1,2,r.SignStyle.NOT_NEGATIVE);break;case"Y":t=2===this._count?new r.DateTimeFormatterBuilder.ReducedPrinterParser(e.weekBasedYear(),2,2,0,r.DateTimeFormatterBuilder.ReducedPrinterParser.BASE_DATE):new r.DateTimeFormatterBuilder.NumberPrinterParser(e.weekBasedYear(),this._count,19,this._count<4?r.SignStyle.NORMAL:r.SignStyle.EXCEEDS_PAD,-1)}return t}},{key:"toString",value:function(){var e=new X(30);return e.append("Localized("),"Y"===this._letter?1===this._count?e.append("WeekBasedYear"):2===this._count?e.append("ReducedValue(WeekBasedYear,2,2,2000-01-01)"):e.append("WeekBasedYear,").append(this._count).append(",").append(19).append(",").append(this._count<4?r.SignStyle.NORMAL:r.SignStyle.EXCEEDS_PAD):("c"===this._letter||"e"===this._letter?e.append("DayOfWeek"):"w"===this._letter?e.append("WeekOfWeekBasedYear"):"W"===this._letter&&e.append("WeekOfMonth"),e.append(","),e.append(this._count)),e.append(")"),e.toString()}}])&&Q(t.prototype,n),a&&Q(t,a),e}();function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var a=oe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ie(this,n)}}function ie(e,t){if(t&&("object"===ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
19
+ var z=n._.StringBuilder,K=function(){function e(e,t){this._letter=e,this._count=t}var t=e.prototype;return t.print=function(e,t){var r=j.of(e.locale());return this._evaluate(r).print(e,t)},t.parse=function(e,t,r){var n=j.of(e.locale());return this._evaluate(n).parse(e,t,r)},t._evaluate=function(e){var t=null;switch(this._letter){case"e":case"c":t=new n.DateTimeFormatterBuilder.NumberPrinterParser(e.dayOfWeek(),this._count,2,n.SignStyle.NOT_NEGATIVE);break;case"w":t=new n.DateTimeFormatterBuilder.NumberPrinterParser(e.weekOfWeekBasedYear(),this._count,2,n.SignStyle.NOT_NEGATIVE);break;case"W":t=new n.DateTimeFormatterBuilder.NumberPrinterParser(e.weekOfMonth(),1,2,n.SignStyle.NOT_NEGATIVE);break;case"Y":t=2===this._count?new n.DateTimeFormatterBuilder.ReducedPrinterParser(e.weekBasedYear(),2,2,0,n.DateTimeFormatterBuilder.ReducedPrinterParser.BASE_DATE):new n.DateTimeFormatterBuilder.NumberPrinterParser(e.weekBasedYear(),this._count,19,this._count<4?n.SignStyle.NORMAL:n.SignStyle.EXCEEDS_PAD,-1)}return t},t.toString=function(){var e=new z(30);return e.append("Localized("),"Y"===this._letter?1===this._count?e.append("WeekBasedYear"):2===this._count?e.append("ReducedValue(WeekBasedYear,2,2,2000-01-01)"):e.append("WeekBasedYear,").append(this._count).append(",").append(19).append(",").append(this._count<4?n.SignStyle.NORMAL:n.SignStyle.EXCEEDS_PAD):("c"===this._letter||"e"===this._letter?e.append("DayOfWeek"):"w"===this._letter?e.append("WeekOfWeekBasedYear"):"W"===this._letter&&e.append("WeekOfMonth"),e.append(","),e.append(this._count)),e.append(")"),e.toString()},e}();function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}
42
20
  /**
43
21
  * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
44
22
  * @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
45
23
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
46
- */var le=r._.assert,ue=le.requireNonNull,se=le.requireInstance,fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(o,e);var t,n,a,i=ae(o);function o(){return te(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appendText",value:function(e,t){return void 0===t?this.appendTextField(e):t instanceof r.TextStyle?this.appendTextFieldStyle(e,t):this.appendTextFieldMap(e,t)}},{key:"appendTextField",value:function(e){return this.appendTextFieldStyle(e,r.TextStyle.FULL)}},{key:"appendTextFieldStyle",value:function(e,t){return ue(e,"field"),se(e,r.TemporalField,"field"),ue(t,"textStyle"),se(t,r.TextStyle,"textStyle"),this._appendInternal(new l(e,t,new g)),this}},{key:"appendTextFieldMap",value:function(e,t){ue(e,"field"),se(e,r.ChronoField,"field"),ue(t,"textLookup");var n=Object.assign({},t),a={};a[r.TextStyle.FULL]=n;var i=new h(a),o={getText:function(e,t,n){return i.getText(t,n)},getTextIterator:function(e,t){return i.getTextIterator(t)}};return this._appendInternal(new l(e,r.TextStyle.FULL,o)),this}},{key:"appendWeekField",value:function(e,t){return ue(e,"field"),ue(t,"count"),this._appendInternal(new $(e,t)),this}},{key:"appendZoneText",value:function(e){return this._appendInternal(new C(e)),this}},{key:"appendLocalizedOffset",value:function(e){if(ue(e,"textStyle"),e!==r.TextStyle.FULL&&e!==r.TextStyle.SHORT)throw new r.IllegalArgumentException("Style must be either full or short");return this._appendInternal(new x(e)),this}}])&&ne(t.prototype,n),a&&ne(t,a),o}(r.DateTimeFormatterBuilder);function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
47
- /*
48
- * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
49
- * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
50
- */
51
- var he=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";ce(this,e),this._language=t,this._country=n,this._localeString=r}var t,n,r;return t=e,r=[{key:"getAvailableLocales",value:function(){return(new g).getAvailableLocales()}}],(n=[{key:"language",value:function(){return this._language}},{key:"country",value:function(){return this._country}},{key:"localeString",value:function(){return this._localeString.length>0?this._localeString:this._country.length>0?"".concat(this._language,"-").concat(this._country):this._language}},{key:"toString",value:function(){return"Locale[".concat(this.localeString(),"]")}},{key:"equals",value:function(t){return!!t&&t instanceof e&&this.localeString()===t.localeString()}}])&&de(t.prototype,n),r&&de(t,r),e}();function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ve(e,t){return(ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Se(e);if(t){var a=Se(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return ke(this,n)}}function ke(e,t){if(t&&("object"===ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
24
+ */var H=n._.assert,Z=H.requireNonNull,q=H.requireInstance,J=function(e){var t,r;function i(){return e.apply(this,arguments)||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,V(t,r);var a=i.prototype;return a.appendText=function(e,t){return void 0===t?this.appendTextField(e):t instanceof n.TextStyle?this.appendTextFieldStyle(e,t):this.appendTextFieldMap(e,t)},a.appendTextField=function(e){return this.appendTextFieldStyle(e,n.TextStyle.FULL)},a.appendTextFieldStyle=function(e,t){return Z(e,"field"),q(e,n.TemporalField,"field"),Z(t,"textStyle"),q(t,n.TextStyle,"textStyle"),this._appendInternal(new o(e,t,new v)),this},a.appendTextFieldMap=function(e,t){Z(e,"field"),q(e,n.ChronoField,"field"),Z(t,"textLookup");var r=Object.assign({},t),i={};i[n.TextStyle.FULL]=r;var a=new d(i),l={getText:function(e,t,r){return a.getText(t,r)},getTextIterator:function(e,t){return a.getTextIterator(t)}};return this._appendInternal(new o(e,n.TextStyle.FULL,l)),this},a.appendWeekField=function(e,t){return Z(e,"field"),Z(t,"count"),this._appendInternal(new K(e,t)),this},a.appendZoneText=function(e){return this._appendInternal(new w(e)),this},a.appendLocalizedOffset=function(e){if(Z(e,"textStyle"),e!==n.TextStyle.FULL&&e!==n.TextStyle.SHORT)throw new n.IllegalArgumentException("Style must be either full or short");return this._appendInternal(new T(e)),this},i}(n.DateTimeFormatterBuilder),G=function(){function e(e,t,r){void 0===t&&(t=""),void 0===r&&(r=""),this._language=e,this._country=t,this._localeString=r}e.getAvailableLocales=function(){return(new v).getAvailableLocales()};var t=e.prototype;return t.language=function(){return this._language},t.country=function(){return this._country},t.localeString=function(){return this._localeString.length>0?this._localeString:this._country.length>0?this._language+"-"+this._country:this._language},t.toString=function(){return"Locale["+this.localeString()+"]"},t.equals=function(t){return!!t&&(t instanceof e&&this.localeString()===t.localeString())},e}();function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}
52
25
  /*
53
26
  * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
54
27
  * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
55
- */var me=r._.assert.requireNonNull,ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ve(e,t)}(o,e);var t,n,a,i=Oe(o);function o(){return pe(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"withLocale",value:function(e){return me(e,"locale"),e.equals(this._locale)?this:new r.DateTimeFormatter(this._printerParser,e,this._decimalStyle,this._resolverStyle,this._resolverFields,this._chrono,this._zone)}}])&&_e(t.prototype,n),a&&_e(t,a),o}(r.DateTimeFormatter);
28
+ */var X=n._.assert.requireNonNull,$=function(e){var t,r;function i(){return e.apply(this,arguments)||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,Q(t,r),i.prototype.withLocale=function(e){return X(e,"locale"),e.equals(this._locale)?this:new n.DateTimeFormatter(this._printerParser,e,this._decimalStyle,this._resolverStyle,this._resolverFields,this._chrono,this._zone)},i}(n.DateTimeFormatter);
56
29
  /*
57
30
  * @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
58
31
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
59
32
  */
60
- var Ee=!1;Ee||(Ee=!0,he.ENGLISH=new he("en"),he.US=new he("en","US","en"),he.UK=new he("en","GB"),he.CANADA=new he("en","CA"),he.FRENCH=new he("fr"),he.FRANCE=new he("fr","FR","fr"),he.GERMAN=new he("de"),he.GERMANY=new he("de","DE","de"),he.KOREAN=new he("ko"),he.JAPANESE=new he("ja","JP"),he.JAPAN=new he("ja","JP","ja"),he.ITALIAN=new he("it"),he.ITALY=new he("it","IT","it"),he.CHINESE=new he("zh"),he.ROMANIAN=new he("ro"),he.SWEDISH=new he("sv"),he.SWEDEN=new he("sv","SE","sv"),he.HINDI=new he("hi"),he.RUSSIAN=new he("ru"),G.ISO=G.of(r.DayOfWeek.MONDAY,4),G.SUNDAY_START=G.of(r.DayOfWeek.SUNDAY,1),ge.RFC_1123_DATE_TIME=(new fe).parseCaseInsensitive().parseLenient().optionalStart().appendText(r.ChronoField.DAY_OF_WEEK,{1:"Mon",2:"Tue",3:"Wed",4:"Thu",5:"Fri",6:"Sat",7:"Sun"}).appendLiteral(", ").optionalEnd().appendValue(r.ChronoField.DAY_OF_MONTH,2).appendLiteral(" ").appendText(r.ChronoField.MONTH_OF_YEAR,{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"}).appendLiteral(" ").appendValue(r.ChronoField.YEAR,4).appendLiteral(" ").appendValue(r.ChronoField.HOUR_OF_DAY,2).appendLiteral(":").appendValue(r.ChronoField.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(r.ChronoField.SECOND_OF_MINUTE,2).optionalEnd().appendLiteral(" ").appendZoneId().toFormatter(r.ResolverStyle.SMART).withChronology(r.IsoChronology.INSTANCE));n.d(t,"Locale",(function(){return he})),
33
+ var ee=!1;ee||(ee=!0,G.ENGLISH=new G("en"),G.US=new G("en","US","en"),G.UK=new G("en","GB"),G.CANADA=new G("en","CA"),G.FRENCH=new G("fr"),G.FRANCE=new G("fr","FR","fr"),G.GERMAN=new G("de"),G.GERMANY=new G("de","DE","de"),G.KOREAN=new G("ko"),G.JAPANESE=new G("ja","JP"),G.JAPAN=new G("ja","JP","ja"),G.ITALIAN=new G("it"),G.ITALY=new G("it","IT","it"),G.CHINESE=new G("zh"),G.ROMANIAN=new G("ro"),G.SWEDISH=new G("sv"),G.SWEDEN=new G("sv","SE","sv"),G.HINDI=new G("hi"),G.RUSSIAN=new G("ru"),j.ISO=j.of(n.DayOfWeek.MONDAY,4),j.SUNDAY_START=j.of(n.DayOfWeek.SUNDAY,1),$.RFC_1123_DATE_TIME=(new J).parseCaseInsensitive().parseLenient().optionalStart().appendText(n.ChronoField.DAY_OF_WEEK,{1:"Mon",2:"Tue",3:"Wed",4:"Thu",5:"Fri",6:"Sat",7:"Sun"}).appendLiteral(", ").optionalEnd().appendValue(n.ChronoField.DAY_OF_MONTH,2).appendLiteral(" ").appendText(n.ChronoField.MONTH_OF_YEAR,{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"}).appendLiteral(" ").appendValue(n.ChronoField.YEAR,4).appendLiteral(" ").appendValue(n.ChronoField.HOUR_OF_DAY,2).appendLiteral(":").appendValue(n.ChronoField.MINUTE_OF_HOUR,2).optionalStart().appendLiteral(":").appendValue(n.ChronoField.SECOND_OF_MINUTE,2).optionalEnd().appendLiteral(" ").appendZoneId().toFormatter(n.ResolverStyle.SMART).withChronology(n.IsoChronology.INSTANCE));r.d(t,"Locale",(function(){return G})),
61
34
  /*
62
35
  * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper
63
36
  * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree)
64
37
  */
65
- Object(r.use)((function(e){Object.getOwnPropertyNames(fe.prototype).forEach((function(t){"constructor"!==t&&(e.DateTimeFormatterBuilder.prototype[t]=fe.prototype[t])})),Object.getOwnPropertyNames(ge.prototype).forEach((function(t){"constructor"!==t&&(e.DateTimeFormatter.prototype[t]=ge.prototype[t])})),e.DateTimeFormatter.RFC_1123_DATE_TIME=ge.RFC_1123_DATE_TIME}))}])}));
38
+ Object(n.use)((function(e){Object.getOwnPropertyNames(J.prototype).forEach((function(t){"constructor"!==t&&(e.DateTimeFormatterBuilder.prototype[t]=J.prototype[t])})),Object.getOwnPropertyNames($.prototype).forEach((function(t){"constructor"!==t&&(e.DateTimeFormatter.prototype[t]=$.prototype[t])})),e.DateTimeFormatter.RFC_1123_DATE_TIME=$.RFC_1123_DATE_TIME}))}])}));