WordPress/wp-includes/js/dist/date.min.js

12 lines
189 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
Block Editor: Update WordPress Packages. The following package versions were changed: @wordpress/a11y: 2.5.1 -> 2.6.0 @wordpress/annotations: 1.9.0 -> 1.10.0 @wordpress/api-fetch: 3.8.0 -> 3.9.0 @wordpress/blob: 2.5.1 -> 2.6.0 @wordpress/block-directory: 1.2.0 -> 1.3.0 @wordpress/block-editor: 3.4.0 -> 3.5.0 @wordpress/block-library: 2.11.0 -> 2.12.0 @wordpress/blocks: 6.9.0 -> 6.10.0 @wordpress/components: 8.5.0 -> 9.0.0 @wordpress/compose: 3.9.0 -> 3.10.0 @wordpress/core-data: 2.9.0 -> 2.10.0 @wordpress/data: 4.11.0 -> 4.12.0 @wordpress/data-controls: 1.5.0 -> 1.6.0 @wordpress/dom: 2.6.0 -> 2.7.0 @wordpress/dom-ready: 2.5.1 -> 2.6.0 @wordpress/e2e-test-utils: 4.0.0 -> 4.1.0 @wordpress/edit-post: 3.10.0 -> 3.11.0 @wordpress/editor: 9.9.0 -> 9.10.0 @wordpress/format-library: 1.11.0 -> 1.12.0 @wordpress/i18n: 3.7.0 -> 3.8.0 @wordpress/is-shallow-equal: 1.6.1 -> 1.7.0 @wordpress/keycodes: 2.7.0 -> 2.8.0 @wordpress/list-reusable-blocks: 1.10.0 -> 1.11.0 @wordpress/media-utils: 1.4.0 -> 1.5.0 @wordpress/notices: 1.10.0 -> 1.11.0 @wordpress/nux: 3.9.0 -> 3.10.0 @wordpress/plugins: 2.9.0 -> 2.10.0 @wordpress/priority-queue: 1.3.1 -> 1.4.0 @wordpress/rich-text: 3.9.0 -> 3.10.0 @wordpress/scripts: 6.1.1 -> 6.2.0 @wordpress/server-side-render: 1.5.0 -> 1.6.0 @wordpress/viewport: 2.10.0 -> 2.11.0 The following package was added: @wordpress/keyboard-shortcuts Props gziolo. Fixes #49204. Built from https://develop.svn.wordpress.org/trunk@47106 git-svn-id: http://core.svn.wordpress.org/trunk@46906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-01-22 23:06:21 +01:00
this.wp=this.wp||{},this.wp.date=function(c){var M={};function o(z){if(M[z])return M[z].exports;var A=M[z]={i:z,l:!1,exports:{}};return c[z].call(A.exports,A,A.exports,o),A.l=!0,A.exports}return o.m=c,o.c=M,o.d=function(c,M,z){o.o(c,M)||Object.defineProperty(c,M,{enumerable:!0,get:z})},o.r=function(c){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,M){if(1&M&&(c=o(c)),8&M)return c;if(4&M&&"object"==typeof c&&c&&c.__esModule)return c;var z=Object.create(null);if(o.r(z),Object.defineProperty(z,"default",{enumerable:!0,value:c}),2&M&&"string"!=typeof c)for(var A in c)o.d(z,A,function(M){return c[M]}.bind(null,A));return z},o.n=function(c){var M=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(M,"a",M),M},o.o=function(c,M){return Object.prototype.hasOwnProperty.call(c,M)},o.p="",o(o.s=340)}({209:function(c,M,o){var z,A,b;//! moment-timezone.js
2020-01-08 12:57:23 +01:00
//! version : 0.5.27
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
Block Editor: Update WordPress Packages. The following package versions were changed: @wordpress/a11y: 2.5.1 -> 2.6.0 @wordpress/annotations: 1.9.0 -> 1.10.0 @wordpress/api-fetch: 3.8.0 -> 3.9.0 @wordpress/blob: 2.5.1 -> 2.6.0 @wordpress/block-directory: 1.2.0 -> 1.3.0 @wordpress/block-editor: 3.4.0 -> 3.5.0 @wordpress/block-library: 2.11.0 -> 2.12.0 @wordpress/blocks: 6.9.0 -> 6.10.0 @wordpress/components: 8.5.0 -> 9.0.0 @wordpress/compose: 3.9.0 -> 3.10.0 @wordpress/core-data: 2.9.0 -> 2.10.0 @wordpress/data: 4.11.0 -> 4.12.0 @wordpress/data-controls: 1.5.0 -> 1.6.0 @wordpress/dom: 2.6.0 -> 2.7.0 @wordpress/dom-ready: 2.5.1 -> 2.6.0 @wordpress/e2e-test-utils: 4.0.0 -> 4.1.0 @wordpress/edit-post: 3.10.0 -> 3.11.0 @wordpress/editor: 9.9.0 -> 9.10.0 @wordpress/format-library: 1.11.0 -> 1.12.0 @wordpress/i18n: 3.7.0 -> 3.8.0 @wordpress/is-shallow-equal: 1.6.1 -> 1.7.0 @wordpress/keycodes: 2.7.0 -> 2.8.0 @wordpress/list-reusable-blocks: 1.10.0 -> 1.11.0 @wordpress/media-utils: 1.4.0 -> 1.5.0 @wordpress/notices: 1.10.0 -> 1.11.0 @wordpress/nux: 3.9.0 -> 3.10.0 @wordpress/plugins: 2.9.0 -> 2.10.0 @wordpress/priority-queue: 1.3.1 -> 1.4.0 @wordpress/rich-text: 3.9.0 -> 3.10.0 @wordpress/scripts: 6.1.1 -> 6.2.0 @wordpress/server-side-render: 1.5.0 -> 1.6.0 @wordpress/viewport: 2.10.0 -> 2.11.0 The following package was added: @wordpress/keyboard-shortcuts Props gziolo. Fixes #49204. Built from https://develop.svn.wordpress.org/trunk@47106 git-svn-id: http://core.svn.wordpress.org/trunk@46906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-01-22 23:06:21 +01:00
!function(p,n){"use strict";c.exports?c.exports=n(o(30)):(A=[o(30)],void 0===(b="function"==typeof(z=n)?z.apply(M,A):z)||(c.exports=b))}(0,(function(c){"use strict";var M,o={},z={},A={},b={};c&&"string"==typeof c.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var p=c.version.split("."),n=+p[0],a=+p[1];function O(c){return c>96?c-87:c>64?c-29:c-48}function L(c){var M=0,o=c.split("."),z=o[0],A=o[1]||"",b=1,p=0,n=1;for(45===c.charCodeAt(0)&&(M=1,n=-1);M<z.length;M++)p=60*p+O(z.charCodeAt(M));for(M=0;M<A.length;M++)b/=60,p+=O(A.charCodeAt(M))*b;return p*n}function q(c){for(var M=0;M<c.length;M++)c[M]=L(c[M])}function e(c,M){var o,z=[];for(o=0;o<M.length;o++)z[o]=c[M[o]];return z}function i(c){var M=c.split("|"),o=M[2].split(" "),z=M[3].split(""),A=M[4].split(" ");return q(o),q(z),q(A),function(c,M){for(var o=0;o<M;o++)c[o]=Math.round((c[o-1]||0)+6e4*c[o]);c[M-1]=1/0}(A,z.length),{name:M[0],abbrs:e(M[1].split(" "),z),offsets:e(o,z),untils:A,population:0|M[5]}}function N(c){c&&this._set(i(c))}function d(c){var M=c.toTimeString(),o=M.match(/\([a-z ]+\)/i);"GMT"===(o=o&&o[0]?(o=o[0].match(/[A-Z]/g))?o.join(""):void 0:(o=M.match(/[A-Z]{3,5}/g))?o[0]:void 0)&&(o=void 0),this.at=+c,this.abbr=o,this.offset=c.getTimezoneOffset()}function W(c){this.zone=c,this.offsetScore=0,this.abbrScore=0}function f(c,M){for(var o,z;z=6e4*((M.at-c.at)/12e4|0);)(o=new d(new Date(c.at+z))).offset===c.offset?c=o:M=o;return c}function r(c,M){return c.offsetScore!==M.offsetScore?c.offsetScore-M.offsetScore:c.abbrScore!==M.abbrScore?c.abbrScore-M.abbrScore:c.zone.population!==M.zone.population?M.zone.population-c.zone.population:M.zone.name.localeCompare(c.zone.name)}function X(c,M){var o,z;for(q(M),o=0;o<M.length;o++)z=M[o],b[z]=b[z]||{},b[z][c]=!0}function t(c){var M,o,z,p=c.length,n={},a=[];for(M=0;M<p;M++)for(o in z=b[c[M].offset]||{})z.hasOwnProperty(o)&&(n[o]=!0);for(M in n)n.hasOwnProperty(M)&&a.push(A[M]);return a}function B(){try{var c=Intl.DateTimeFormat().resolvedOptions().timeZone;if(c&&c.length>3){var M=A[l(c)];if(M)return M;E("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,z,b,p=function(){var c,M,o,z=(new Date).getFullYear()-2,A=new d(new Date(z,0,1)),b=[A];for(o=1;o<48;o++)(M=new d(new Date(z,o,1))).offset!==A.offset&&(c=f(A,M),b.push(c),b.push(new d(new Date(c.at+6e4)))),A=M;for(o=0;o<4;o++)b.push(new d(new Date(z+o,0,1))),b.push(new d(new Date(z+o,6,1)));return b}(),n=p.length,a=t(p),O=[];for(z=0;z<a.length;z++){for(o=new W(T(a[z]),n),b=0;b<n;b++)o.scoreOffsetAt(p[b]);O.push(o)}return O.sort(r),O.length>0?O[0].zone.name:void 0}function l(c){return(c||"").toLowerCase().replace(/\//g,"_")}function u(c){var M,z,b,p;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)p=l(z=(b=c[M].split("|"))[0]),o[p]=c[M],A[p]=z,X(p,b[2].split(" "))}function T(c,M){c=l(c);var b,p=o[c];return p instanceof N?p:"string"==typeof p?(p=new N(p),o[c]=p,p):z[c]&&M!==T&&(b=T(z[c],T))?((p=o[c]=new N)._set(b),p.name=A[c],p):null}function s(c){var M,o,b,p;for("string"==typeof c&&(c=[c]),M=0;M<c.length;M++)b=l((o=c[M].split("|"))[0]),p=l(o[1]),z[b]=p,A[b]=o[0],z[p]=b,A[p]=o[1]}function C(c){var M="X"===c._f||"x"===c._f;return!(!c._a||void 0!==c._tzm||M)}function E(c){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(c)}function S(M){var o=Array.prototype.slice.call(arguments,0,-1),z=arguments[arguments.length-1],A=T(z),b=c.utc.apply(null,o);return A&&!c.isMoment(M)&&C(b)&&b.add(A.parse(b),"minutes"),b.tz(z),b}(n<2||2===n&&a<6)&&E("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,z=this.untils;for(M=0;M<z.length;M++)if(o<z[M])return M},parse:function(c){var M,o,z,A,b=+c,p=this.offsets,n=this.untils,a=n.length-1;for(A=0;A<a;A++)if(M=p[A],o=p[A+1],z=p[A?A-1:A],M<o&&S.moveAmbiguousForward?M=o:M>z&&S.moveInvalidForwa
2020-01-08 12:57:23 +01:00
//! version : 0.5.27
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
Block Editor: Update WordPress Packages. The following package versions were changed: @wordpress/a11y: 2.5.1 -> 2.6.0 @wordpress/annotations: 1.9.0 -> 1.10.0 @wordpress/api-fetch: 3.8.0 -> 3.9.0 @wordpress/blob: 2.5.1 -> 2.6.0 @wordpress/block-directory: 1.2.0 -> 1.3.0 @wordpress/block-editor: 3.4.0 -> 3.5.0 @wordpress/block-library: 2.11.0 -> 2.12.0 @wordpress/blocks: 6.9.0 -> 6.10.0 @wordpress/components: 8.5.0 -> 9.0.0 @wordpress/compose: 3.9.0 -> 3.10.0 @wordpress/core-data: 2.9.0 -> 2.10.0 @wordpress/data: 4.11.0 -> 4.12.0 @wordpress/data-controls: 1.5.0 -> 1.6.0 @wordpress/dom: 2.6.0 -> 2.7.0 @wordpress/dom-ready: 2.5.1 -> 2.6.0 @wordpress/e2e-test-utils: 4.0.0 -> 4.1.0 @wordpress/edit-post: 3.10.0 -> 3.11.0 @wordpress/editor: 9.9.0 -> 9.10.0 @wordpress/format-library: 1.11.0 -> 1.12.0 @wordpress/i18n: 3.7.0 -> 3.8.0 @wordpress/is-shallow-equal: 1.6.1 -> 1.7.0 @wordpress/keycodes: 2.7.0 -> 2.8.0 @wordpress/list-reusable-blocks: 1.10.0 -> 1.11.0 @wordpress/media-utils: 1.4.0 -> 1.5.0 @wordpress/notices: 1.10.0 -> 1.11.0 @wordpress/nux: 3.9.0 -> 3.10.0 @wordpress/plugins: 2.9.0 -> 2.10.0 @wordpress/priority-queue: 1.3.1 -> 1.4.0 @wordpress/rich-text: 3.9.0 -> 3.10.0 @wordpress/scripts: 6.1.1 -> 6.2.0 @wordpress/server-side-render: 1.5.0 -> 1.6.0 @wordpress/viewport: 2.10.0 -> 2.11.0 The following package was added: @wordpress/keyboard-shortcuts Props gziolo. Fixes #49204. Built from https://develop.svn.wordpress.org/trunk@47106 git-svn-id: http://core.svn.wordpress.org/trunk@46906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-01-22 23:06:21 +01:00
!function(p,n){"use strict";c.exports?c.exports=n(o(342)):(A=[o(30)],void 0===(b="function"==typeof(z=n)?z.apply(M,A):z)||(c.exports=b))}(0,(function(c){"use strict";if(!c.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",o=1e-6;function z(c,z){for(var A="",b=Math.abs(c),p=Math.floor(b),n=function(c,z){for(var A,b=".",p="";z>0;)z-=1,c*=60,A=Math.floor(c+o),b+=M[A],c-=A,A&&(p+=b,b="");return p}(b-p,Math.min(~~z,10));p>0;)A=M[p%60]+A,p=Math.floor(p/60);return c<0&&(A="-"+A),A&&n?A+n:(n||"-"!==A)&&(A||n)||"0"}function A(c){var M,o=[],A=0;for(M=0;M<c.length-1;M++)o[M]=z(Math.round((c[M]-A)/1e3)/60,1),A=c[M];return o.join(" ")}function b(c){var M,o,A=0,b=[],p=[],n=[],a={};for(M=0;M<c.abbrs.length;M++)void 0===a[o=c.abbrs[M]+"|"+c.offsets[M]]&&(a[o]=A,b[A]=c.abbrs[M],p[A]=z(Math.round(60*c.offsets[M])/60,1),A++),n[M]=z(a[o],0);return b.join(" ")+"|"+p.join(" ")+"|"+n.join("")}function p(c){if(!c)return"";if(c<1e3)return"|"+c;var M=String(0|c).length-2;return"|"+Math.round(c/Math.pow(10,M))+"e"+M}function n(c){return function(c){if(!c.name)throw new Error("Missing name");if(!c.abbrs)throw new Error("Missing abbrs");if(!c.untils)throw new Error("Missing untils");if(!c.offsets)throw new Error("Missing offsets");if(c.offsets.length!==c.untils.length||c.offsets.length!==c.abbrs.length)throw new Error("Mismatched array lengths")}(c),[c.name,b(c),A(c.untils)+p(c.population)].join("|")}function a(c,M){var o;if(c.length!==M.length)return!1;for(o=0;o<c.length;o++)if(c[o]!==M[o])return!1;return!0}function O(c,M){return a(c.offsets,M.offsets)&&a(c.abbrs,M.abbrs)&&a(c.untils,M.untils)}function L(c,M){var o=[],z=[];return c.links&&(z=c.links.slice()),function(c,M,o,z){var A,b,p,n,a,L,q=[];for(A=0;A<c.length;A++){for(L=!1,p=c[A],b=0;b<q.length;b++)O(p,n=(a=q[b])[0])&&(p.population>n.population?a.unshift(p):p.population===n.population&&z&&z[p.name]?a.unshift(p):a.push(p),L=!0);L||q.push([p])}for(A=0;A<q.length;A++)for(a=q[A],M.push(a[0]),b=1;b<a.length;b++)o.push(a[0].name+"|"+a[b].name)}(c.zones,o,z,M),{version:c.version,zones:o,links:z.sort()}}function q(c,M,o){var z=Array.prototype.slice,A=function(c,M,o){var z,A,b=0,p=c.length+1;for(o||(o=M),M>o&&(A=M,M=o,o=A),A=0;A<c.length;A++)null!=c[A]&&((z=new Date(c[A]).getUTCFullYear())<M&&(b=A+1),z>o&&(p=Math.min(p,A+1)));return[b,p]}(c.untils,M,o),b=z.apply(c.untils,A);return b[b.length-1]=null,{name:c.name,abbrs:z.apply(c.abbrs,A),untils:b,offsets:z.apply(c.offsets,A),population:c.population}}return c.tz.pack=n,c.tz.packBase60=z,c.tz.createLinks=L,c.tz.filterYears=q,c.tz.filterLinkPack=function(c,M,o,z){var A,b,p=c.zones,a=[];for(A=0;A<p.length;A++)a[A]=q(p[A],M,o);for(b=L({zones:a,links:c.links.slice(),version:c.version},z),A=0;A<b.zones.length;A++)b.zones[A]=n(b.zones[A]);return b},c}))},342:function(c,M,o){(c.exports=o(209)).tz.load(o(343))},343:function(c){c.exports=JSON.parse('{"version":"2019c","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1o