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

12 lines
850 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
Editor: Sync changes from the Gutenberg plugin 14.1 release Updated WordPress packages necessary for releasing WordPress 6.1 Beta 1: - @wordpress/a11y@3.17.1 - @wordpress/annotations@2.17.2 - @wordpress/api-fetch@6.14.1 - @wordpress/autop@3.17.1 - @wordpress/babel-plugin-import-jsx-pragma@4.0.1 - @wordpress/babel-plugin-makepot@5.1.1 - @wordpress/babel-preset-default@7.1.1 - @wordpress/base-styles@4.8.1 - @wordpress/blob@3.17.1 - @wordpress/block-directory@3.15.2 - @wordpress/block-editor@10.0.2 - @wordpress/block-library@7.14.2 - @wordpress/block-serialization-default-parser@4.17.1 - @wordpress/block-serialization-spec-parser@4.17.1 - @wordpress/blocks@11.16.2 - @wordpress/browserslist-config@5.0.1 - @wordpress/components@21.0.2 - @wordpress/compose@5.15.2 - @wordpress/core-data@5.0.2 - @wordpress/create-block-tutorial-template@2.5.1 - @wordpress/create-block@4.1.1 - @wordpress/custom-templated-path-webpack-plugin@2.1.3 - @wordpress/customize-widgets@3.14.2 - @wordpress/data-controls@2.17.2 - @wordpress/data@7.1.2 - @wordpress/date@4.17.1 - @wordpress/dependency-extraction-webpack-plugin@4.0.2 - @wordpress/deprecated@3.17.1 - @wordpress/docgen@1.26.1 - @wordpress/dom-ready@3.17.1 - @wordpress/dom@3.17.2 - @wordpress/e2e-test-utils@8.1.1 - @wordpress/e2e-tests@5.1.2 - @wordpress/edit-post@6.14.2 - @wordpress/edit-site@4.14.2 - @wordpress/edit-widgets@4.14.2 - @wordpress/editor@12.16.2 - @wordpress/element@4.15.1 - @wordpress/env@5.2.1 - @wordpress/escape-html@2.17.1 - @wordpress/eslint-plugin@13.1.1 - @wordpress/format-library@3.15.2 - @wordpress/hooks@3.17.1 - @wordpress/html-entities@3.17.1 - @wordpress/i18n@4.17.1 - @wordpress/icons@9.8.1 - @wordpress/interface@4.16.2 - @wordpress/is-shallow-equal@4.17.1 - @wordpress/jest-console@6.0.1 - @wordpress/jest-preset-default@9.0.1 - @wordpress/jest-puppeteer-axe@5.0.1 - @wordpress/keyboard-shortcuts@3.15.2 - @wordpress/keycodes@3.17.1 - @wordpress/lazy-import@1.4.3 - @wordpress/library-export-default-webpack-plugin@2.3.3 - @wordpress/list-reusable-blocks@3.15.2 - @wordpress/media-utils@4.8.1 - @wordpress/notices@3.17.2 - @wordpress/npm-package-json-lint-config@4.2.1 - @wordpress/nux@5.15.2 - @wordpress/plugins@4.15.2 - @wordpress/postcss-plugins-preset@4.1.1 - @wordpress/postcss-themes@5.0.1 - @wordpress/preferences-persistence@1.9.1 - @wordpress/preferences@2.9.2 - @wordpress/prettier-config@2.0.1 - @wordpress/primitives@3.15.1 - @wordpress/priority-queue@2.17.2 - @wordpress/project-management-automation@1.16.1 - @wordpress/react-i18n@3.15.1 - @wordpress/readable-js-assets-webpack-plugin@2.0.1 - @wordpress/redux-routine@4.17.1 - @wordpress/reusable-blocks@3.15.2 - @wordpress/rich-text@5.15.2 - @wordpress/scripts@24.1.2 - @wordpress/server-side-render@3.15.2 - @wordpress/shortcode@3.17.1 - @wordpress/style-engine@1.0.1 - @wordpress/stylelint-config@21.0.1 - @wordpress/token-list@2.17.1 - @wordpress/url@3.18.1 - @wordpress/viewport@4.15.2 - @wordpress/warning@2.17.1 - @wordpress/widgets@2.15.2 - @wordpress/wordcount@3.17.1 Props bernhard-reiter, cbravobernal, czapla, oandregal, isabel_brison, andrewserong, mciampini. See #56467. Built from https://develop.svn.wordpress.org/trunk@54257 git-svn-id: http://core.svn.wordpress.org/trunk@53816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-20 17:43:29 +02:00
!function(){var M={7812:function(M,b,z){(M.exports=z(2828)).tz.load(z(1128))},9971:function(M,b,z){var p,O,A;//! moment-timezone-utils.js
//! version : 0.5.37
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
Editor: Sync changes from the Gutenberg plugin 14.1 release Updated WordPress packages necessary for releasing WordPress 6.1 Beta 1: - @wordpress/a11y@3.17.1 - @wordpress/annotations@2.17.2 - @wordpress/api-fetch@6.14.1 - @wordpress/autop@3.17.1 - @wordpress/babel-plugin-import-jsx-pragma@4.0.1 - @wordpress/babel-plugin-makepot@5.1.1 - @wordpress/babel-preset-default@7.1.1 - @wordpress/base-styles@4.8.1 - @wordpress/blob@3.17.1 - @wordpress/block-directory@3.15.2 - @wordpress/block-editor@10.0.2 - @wordpress/block-library@7.14.2 - @wordpress/block-serialization-default-parser@4.17.1 - @wordpress/block-serialization-spec-parser@4.17.1 - @wordpress/blocks@11.16.2 - @wordpress/browserslist-config@5.0.1 - @wordpress/components@21.0.2 - @wordpress/compose@5.15.2 - @wordpress/core-data@5.0.2 - @wordpress/create-block-tutorial-template@2.5.1 - @wordpress/create-block@4.1.1 - @wordpress/custom-templated-path-webpack-plugin@2.1.3 - @wordpress/customize-widgets@3.14.2 - @wordpress/data-controls@2.17.2 - @wordpress/data@7.1.2 - @wordpress/date@4.17.1 - @wordpress/dependency-extraction-webpack-plugin@4.0.2 - @wordpress/deprecated@3.17.1 - @wordpress/docgen@1.26.1 - @wordpress/dom-ready@3.17.1 - @wordpress/dom@3.17.2 - @wordpress/e2e-test-utils@8.1.1 - @wordpress/e2e-tests@5.1.2 - @wordpress/edit-post@6.14.2 - @wordpress/edit-site@4.14.2 - @wordpress/edit-widgets@4.14.2 - @wordpress/editor@12.16.2 - @wordpress/element@4.15.1 - @wordpress/env@5.2.1 - @wordpress/escape-html@2.17.1 - @wordpress/eslint-plugin@13.1.1 - @wordpress/format-library@3.15.2 - @wordpress/hooks@3.17.1 - @wordpress/html-entities@3.17.1 - @wordpress/i18n@4.17.1 - @wordpress/icons@9.8.1 - @wordpress/interface@4.16.2 - @wordpress/is-shallow-equal@4.17.1 - @wordpress/jest-console@6.0.1 - @wordpress/jest-preset-default@9.0.1 - @wordpress/jest-puppeteer-axe@5.0.1 - @wordpress/keyboard-shortcuts@3.15.2 - @wordpress/keycodes@3.17.1 - @wordpress/lazy-import@1.4.3 - @wordpress/library-export-default-webpack-plugin@2.3.3 - @wordpress/list-reusable-blocks@3.15.2 - @wordpress/media-utils@4.8.1 - @wordpress/notices@3.17.2 - @wordpress/npm-package-json-lint-config@4.2.1 - @wordpress/nux@5.15.2 - @wordpress/plugins@4.15.2 - @wordpress/postcss-plugins-preset@4.1.1 - @wordpress/postcss-themes@5.0.1 - @wordpress/preferences-persistence@1.9.1 - @wordpress/preferences@2.9.2 - @wordpress/prettier-config@2.0.1 - @wordpress/primitives@3.15.1 - @wordpress/priority-queue@2.17.2 - @wordpress/project-management-automation@1.16.1 - @wordpress/react-i18n@3.15.1 - @wordpress/readable-js-assets-webpack-plugin@2.0.1 - @wordpress/redux-routine@4.17.1 - @wordpress/reusable-blocks@3.15.2 - @wordpress/rich-text@5.15.2 - @wordpress/scripts@24.1.2 - @wordpress/server-side-render@3.15.2 - @wordpress/shortcode@3.17.1 - @wordpress/style-engine@1.0.1 - @wordpress/stylelint-config@21.0.1 - @wordpress/token-list@2.17.1 - @wordpress/url@3.18.1 - @wordpress/viewport@4.15.2 - @wordpress/warning@2.17.1 - @wordpress/widgets@2.15.2 - @wordpress/wordcount@3.17.1 Props bernhard-reiter, cbravobernal, czapla, oandregal, isabel_brison, andrewserong, mciampini. See #56467. Built from https://develop.svn.wordpress.org/trunk@54257 git-svn-id: http://core.svn.wordpress.org/trunk@53816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-09-20 17:43:29 +02:00
!function(c,q){"use strict";M.exports?M.exports=q(z(7812)):(O=[z(6292)],void 0===(A="function"==typeof(p=q)?p.apply(b,O):p)||(M.exports=A))}(0,(function(M){"use strict";if(!M.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var b="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function z(M,z){for(var p="",O=Math.abs(M),A=Math.floor(O),c=function(M,z){for(var p,O=".",A="";z>0;)z-=1,M*=60,p=Math.floor(M+1e-6),O+=b[p],M-=p,p&&(A+=O,O="");return A}(O-A,Math.min(~~z,10));A>0;)p=b[A%60]+p,A=Math.floor(A/60);return M<0&&(p="-"+p),p&&c?p+c:(c||"-"!==p)&&(p||c)||"0"}function p(M){var b,p=[],O=0;for(b=0;b<M.length-1;b++)p[b]=z(Math.round((M[b]-O)/1e3)/60,1),O=M[b];return p.join(" ")}function O(M){var b,p,O=0,A=[],c=[],q=[],o={};for(b=0;b<M.abbrs.length;b++)void 0===o[p=M.abbrs[b]+"|"+M.offsets[b]]&&(o[p]=O,A[O]=M.abbrs[b],c[O]=z(Math.round(60*M.offsets[b])/60,1),O++),q[b]=z(o[p],0);return A.join(" ")+"|"+c.join(" ")+"|"+q.join("")}function A(M){if(!M)return"";if(M<1e3)return M;var b=String(0|M).length-2;return Math.round(M/Math.pow(10,b))+"e"+b}function c(M){return function(M){if(!M.name)throw new Error("Missing name");if(!M.abbrs)throw new Error("Missing abbrs");if(!M.untils)throw new Error("Missing untils");if(!M.offsets)throw new Error("Missing offsets");if(M.offsets.length!==M.untils.length||M.offsets.length!==M.abbrs.length)throw new Error("Mismatched array lengths")}(M),[M.name,O(M),p(M.untils),A(M.population)].join("|")}function q(M){return[M.name,M.zones.join(" ")].join("|")}function o(M,b){var z;if(M.length!==b.length)return!1;for(z=0;z<M.length;z++)if(M[z]!==b[z])return!1;return!0}function W(M,b){return o(M.offsets,b.offsets)&&o(M.abbrs,b.abbrs)&&o(M.untils,b.untils)}function d(M,b){var z=[],p=[];return M.links&&(p=M.links.slice()),function(M,b,z,p){var O,A,c,q,o,d,n=[];for(O=0;O<M.length;O++){for(d=!1,c=M[O],A=0;A<n.length;A++)W(c,q=(o=n[A])[0])&&(c.population>q.population||c.population===q.population&&p&&p[c.name]?o.unshift(c):o.push(c),d=!0);d||n.push([c])}for(O=0;O<n.length;O++)for(o=n[O],b.push(o[0]),A=1;A<o.length;A++)z.push(o[0].name+"|"+o[A].name)}(M.zones,z,p,b),{version:M.version,zones:z,links:p.sort()}}function n(M,b,z){var p=Array.prototype.slice,O=function(M,b,z){var p,O,A=0,c=M.length+1;for(z||(z=b),b>z&&(O=b,b=z,z=O),O=0;O<M.length;O++)null!=M[O]&&((p=new Date(M[O]).getUTCFullYear())<b&&(A=O+1),p>z&&(c=Math.min(c,O+1)));return[A,c]}(M.untils,b,z),A=p.apply(M.untils,O);return A[A.length-1]=null,{name:M.name,abbrs:p.apply(M.abbrs,O),untils:A,offsets:p.apply(M.offsets,O),population:M.population,countries:M.countries}}return M.tz.pack=c,M.tz.packBase60=z,M.tz.createLinks=d,M.tz.filterYears=n,M.tz.filterLinkPack=function(M,b,z,p){var O,A,o=M.zones,W=[];for(O=0;O<o.length;O++)W[O]=n(o[O],b,z);for(A=d({zones:W,links:M.links.slice(),version:M.version},p),O=0;O<A.zones.length;O++)A.zones[O]=c(A.zones[O]);return A.countries=M.countries?M.countries.map((function(M){return q(M)})):[],A},M.tz.packCountry=q,M}))},2828:function(M,b,z){var p,O,A;//! moment-timezone.js
//! version : 0.5.37
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(c,q){"use strict";M.exports?M.exports=q(z(6292)):(O=[z(6292)],void 0===(A="function"==typeof(p=q)?p.apply(b,O):p)||(M.exports=A))}(0,(function(M){"use strict";void 0===M.version&&M.default&&(M=M.default);var b,z={},p={},O={},A={},c={};M&&"string"==typeof M.version||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var q=M.version.split("."),o=+q[0],W=+q[1];function d(M){return M>96?M-87:M>64?M-29:M-48}function n(M){var b=0,z=M.split("."),p=z[0],O=z[1]||"",A=1,c=0,q=1;for(45===M.charCodeAt(0)&&(b=1,q=-1);b<p.length;b++)c=60*c+d(p.charCodeAt(b));for(b=0;b<O.length;b++)A/=60,c+=d(O.charCodeAt(b))*A;return c*q}function R(M){for(var b=0;b<M.length;b++)M[b]=n(M[b])}function X(M,b){var z,p=[];for(z=0;z<b.length;z++)p[z]=M[b[z]];return p}function a(M){var b=M.split("|"),z=b[2].split(" "),p=b[3].split(""),O=b[4].split(" ");return R(z),R(p),R(O),function(M,b){for(var z=0;z<b;z++)M[z]=Math.round((M[z-1]||0)+6e4*M[z]);M[b-1]=1/0}(O,p.length),{name:b[0],abbrs:X(b[1].split(" "),p),offsets:X(z,p),untils:O,population:0|b[5]}}function B(M){M&&this._set(a(M))}function L(M,b){this.name=M,this.zones=b}function f(M){var b=M.toTimeString(),z=b.match(/\([a-z ]+\)/i);"GMT"===(z=z&&z[0]?(z=z[0].match(/[A-Z]/g))?z.join(""):void 0:(z=b.match(/[A-Z]{3,5}/g))?z[0]:void 0)&&(z=void 0),this.at=+M,this.abbr=z,this.offset=M.getTimezoneOffset()}function i(M){this.zone=M,this.offsetScore=0,this.abbrScore=0}function l(M,b){for(var z,p;p=6e4*((b.at-M.at)/12e4|0);)(z=new f(new Date(M.at+p))).offset===M.offset?M=z:b=z;return M}function e(M,b){return M.offsetScore!==b.offsetScore?M.offsetScore-b.offsetScore:M.abbrScore!==b.abbrScore?M.abbrScore-b.abbrScore:M.zone.population!==b.zone.population?b.zone.population-M.zone.population:b.zone.name.localeCompare(M.zone.name)}function u(M,b){var z,p;for(R(b),z=0;z<b.length;z++)p=b[z],c[p]=c[p]||{},c[p][M]=!0}function N(M){var b,z,p,O=M.length,q={},o=[];for(b=0;b<O;b++)for(z in p=c[M[b].offset]||{})p.hasOwnProperty(z)&&(q[z]=!0);for(b in q)q.hasOwnProperty(b)&&o.push(A[b]);return o}function r(){try{var M=Intl.DateTimeFormat().resolvedOptions().timeZone;if(M&&M.length>3){var b=A[t(M)];if(b)return b;E("Moment Timezone found "+M+" from the Intl api, but did not have that data loaded.")}}catch(M){}var z,p,O,c=function(){var M,b,z,p=(new Date).getFullYear()-2,O=new f(new Date(p,0,1)),A=[O];for(z=1;z<48;z++)(b=new f(new Date(p,z,1))).offset!==O.offset&&(M=l(O,b),A.push(M),A.push(new f(new Date(M.at+6e4)))),O=b;for(z=0;z<4;z++)A.push(new f(new Date(p+z,0,1))),A.push(new f(new Date(p+z,6,1)));return A}(),q=c.length,o=N(c),W=[];for(p=0;p<o.length;p++){for(z=new i(s(o[p]),q),O=0;O<q;O++)z.scoreOffsetAt(c[O]);W.push(z)}return W.sort(e),W.length>0?W[0].zone.name:void 0}function t(M){return(M||"").toLowerCase().replace(/\//g,"_")}function T(M){var b,p,O,c;for("string"==typeof M&&(M=[M]),b=0;b<M.length;b++)c=t(p=(O=M[b].split("|"))[0]),z[c]=M[b],A[c]=p,u(c,O[2].split(" "))}function s(M,b){M=t(M);var O,c=z[M];return c instanceof B?c:"string"==typeof c?(c=new B(c),z[M]=c,c):p[M]&&b!==s&&(O=s(p[M],s))?((c=z[M]=new B)._set(O),c.name=A[M],c):null}function C(M){var b,z,O,c;for("string"==typeof M&&(M=[M]),b=0;b<M.length;b++)O=t((z=M[b].split("|"))[0]),c=t(z[1]),p[O]=c,A[O]=z[0],p[c]=O,A[c]=z[1]}function m(M){var b="X"===M._f||"x"===M._f;return!(!M._a||void 0!==M._tzm||b)}function E(M){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(M)}function S(b){var z=Array.prototype.slice.call(arguments,0,-1),p=arguments[arguments.length-1],O=s(p),A=M.utc.apply(null,z);return O&&!M.isMoment(b)&&m(A)&&A.add(O.parse(A),"minutes"),A.tz(p),A}(o<2||2===o&&W<6)&&E("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+M.version+". See momentjs.com"),B.prototype={_set:function(M){this.name=M.name,this.abbrs=M.abbrs,this.untils=M.untils,this.offsets=M.offsets,this.population=M.population},_index:function(M){var b,z=+M,p=this.untils;for(b=0;b<p.length;b++)if(z<p[b])return b},countries:function(){var M=this.name;return Object.keys(O).filter((function(b){return