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

21 lines
915 KiB
JavaScript
Raw Normal View History

this.wp=this.wp||{},this.wp.date=function(M){var z={};function b(p){if(z[p])return z[p].exports;var O=z[p]={i:p,l:!1,exports:{}};return M[p].call(O.exports,O,O.exports,b),O.l=!0,O.exports}return b.m=M,b.c=z,b.d=function(M,z,p){b.o(M,z)||Object.defineProperty(M,z,{enumerable:!0,get:p})},b.r=function(M){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},b.t=function(M,z){if(1&z&&(M=b(M)),8&z)return M;if(4&z&&"object"==typeof M&&M&&M.__esModule)return M;var p=Object.create(null);if(b.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:M}),2&z&&"string"!=typeof M)for(var O in M)b.d(p,O,function(z){return M[z]}.bind(null,O));return p},b.n=function(M){var z=M&&M.__esModule?function(){return M.default}:function(){return M};return b.d(z,"a",z),z},b.o=function(M,z){return Object.prototype.hasOwnProperty.call(M,z)},b.p="",b(b.s=263)}({174:function(M,z,b){var p,O,A;//! moment-timezone.js
//! version : 0.5.23
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
//! moment-timezone.js
//! version : 0.5.23
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(q,o){"use strict";M.exports?M.exports=o(b(27)):(O=[b(27)],void 0===(A="function"==typeof(p=o)?p.apply(z,O):p)||(M.exports=A))}(0,function(M){"use strict";var z,b={},p={},O={},A={};M&&"string"==typeof M.version||t("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var q=M.version.split("."),o=+q[0],c=+q[1];function W(M){return M>96?M-87:M>64?M-29:M-48}function d(M){var z=0,b=M.split("."),p=b[0],O=b[1]||"",A=1,q=0,o=1;for(45===M.charCodeAt(0)&&(z=1,o=-1);z<p.length;z++)q=60*q+W(p.charCodeAt(z));for(z=0;z<O.length;z++)A/=60,q+=W(O.charCodeAt(z))*A;return q*o}function R(M){for(var z=0;z<M.length;z++)M[z]=d(M[z])}function X(M,z){var b,p=[];for(b=0;b<z.length;b++)p[b]=M[z[b]];return p}function B(M){var z=M.split("|"),b=z[2].split(" "),p=z[3].split(""),O=z[4].split(" ");return R(b),R(p),R(O),function(M,z){for(var b=0;b<z;b++)M[b]=Math.round((M[b-1]||0)+6e4*M[b]);M[z-1]=1/0}(O,p.length),{name:z[0],abbrs:X(z[1].split(" "),p),offsets:X(b,p),untils:O,population:0|z[5]}}function n(M){M&&this._set(B(M))}function L(M){var z=M.toTimeString(),b=z.match(/\([a-z ]+\)/i);"GMT"===(b=b&&b[0]?(b=b[0].match(/[A-Z]/g))?b.join(""):void 0:(b=z.match(/[A-Z]{3,5}/g))?b[0]:void 0)&&(b=void 0),this.at=+M,this.abbr=b,this.offset=M.getTimezoneOffset()}function f(M){this.zone=M,this.offsetScore=0,this.abbrScore=0}function a(M,z){for(var b,p;p=6e4*((z.at-M.at)/12e4|0);)(b=new L(new Date(M.at+p))).offset===M.offset?M=b:z=b;return M}function N(M,z){return M.offsetScore!==z.offsetScore?M.offsetScore-z.offsetScore:M.abbrScore!==z.abbrScore?M.abbrScore-z.abbrScore:z.zone.population-M.zone.population}function l(M,z){var b,p;for(R(z),b=0;b<z.length;b++)p=z[b],A[p]=A[p]||{},A[p][M]=!0}function u(M){var z,b,p,q=M.length,o={},c=[];for(z=0;z<q;z++)for(b in p=A[M[z].offset]||{})p.hasOwnProperty(b)&&(o[b]=!0);for(z in o)o.hasOwnProperty(z)&&c.push(O[z]);return c}function i(){try{var M=Intl.DateTimeFormat().resolvedOptions().timeZone;if(M&&M.length>3){var z=O[e(M)];if(z)return z;t("Moment Timezone found "+M+" from the Intl api, but did not have that data loaded.")}}catch(M){}var b,p,A,q=function(){var M,z,b,p=(new Date).getFullYear()-2,O=new L(new Date(p,0,1)),A=[O];for(b=1;b<48;b++)(z=new L(new Date(p,b,1))).offset!==O.offset&&(M=a(O,z),A.push(M),A.push(new L(new Date(M.at+6e4)))),O=z;for(b=0;b<4;b++)A.push(new L(new Date(p+b,0,1))),A.push(new L(new Date(p+b,6,1)));return A}(),o=q.length,c=u(q),W=[];for(p=0;p<c.length;p++){for(b=new f(H(c[p]),o),A=0;A<o;A++)b.scoreOffsetAt(q[A]);W.push(b)}return W.sort(N),W.length>0?W[0].zone.name:void 0}function e(M){return(M||"").toLowerCase().replace(/\//g,"_")}function r(M){var z,p,A,q;for("string"==typeof M&&(M=[M]),z=0;z<M.length;z++)q=e(p=(A=M[z].split("|"))[0]),b[q]=M[z],O[q]=p,l(q,A[2].split(" "))}function H(M,z){M=e(M);var A,q=b[M];return q instanceof n?q:"string"==typeof q?(q=new n(q),b[M]=q,q):p[M]&&z!==H&&(A=H(p[M],H))?((q=b[M]=new n)._set(A),q.name=O[M],q):null}function F(M){var z,b,A,q;for("string"==typeof M&&(M=[M]),z=0;z<M.length;z++)A=e((b=M[z].split("|"))[0]),q=e(b[1]),p[A]=q,O[A]=b[0],p[q]=A,O[q]=b[1]}function T(M){var z="X"===M._f||"x"===M._f;return!(!M._a||void 0!==M._tzm||z)}function t(M){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(M)}function s(z){var b=Array.prototype.slice.call(arguments,0,-1),p=arguments[arguments.length-1],O=H(p),A=M.utc.apply(null,b);return O&&!M.isMoment(z)&&T(A)&&A.add(O.parse(A),"minutes"),A.tz(p),A}(o<2||2===o&&c<6)&&t("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+M.version+". See momentjs.com"),n.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 z,b=+M,p=this.untils;for(z=0;z<p.length;z++)if(b<p[z])return z},parse:function(M){var z,b,p,O,A=+M,q=this.offsets,o=this.untils,c=o.length-1;for(O=0;O<c;O++)if(z=q[O],b=q[O+1],p=q[O?O-1:O],z<b&&s.moveAmbiguousForward?z=b:z>p&&s.moveInvalidForward&&(z=p),A<o[O]-6e4*z)return q[O];return q[c]},abbr:function(M){return this.a
//! version : 0.5.23
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
//! moment-timezone-utils.js
//! version : 0.5.23
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(q,o){"use strict";M.exports?M.exports=o(b(265)):(O=[b(27)],void 0===(A="function"==typeof(p=o)?p.apply(z,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 z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",b=1e-6;function p(M,p){for(var O="",A=Math.abs(M),q=Math.floor(A),o=function(M,p){for(var O,A=".",q="";p>0;)p-=1,M*=60,O=Math.floor(M+b),A+=z[O],M-=O,O&&(q+=A,A="");return q}(A-q,Math.min(~~p,10));q>0;)O=z[q%60]+O,q=Math.floor(q/60);return M<0&&(O="-"+O),O&&o?O+o:(o||"-"!==O)&&(O||o)||"0"}function O(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,function(M){var z,b,O=0,A=[],q=[],o=[],c={};for(z=0;z<M.abbrs.length;z++)void 0===c[b=M.abbrs[z]+"|"+M.offsets[z]]&&(c[b]=O,A[O]=M.abbrs[z],q[O]=p(Math.round(60*M.offsets[z])/60,1),O++),o[z]=p(c[b],0);return A.join(" ")+"|"+q.join(" ")+"|"+o.join("")}(M),function(M){var z,b=[],O=0;for(z=0;z<M.length-1;z++)b[z]=p(Math.round((M[z]-O)/1e3)/60,1),O=M[z];return b.join(" ")}(M.untils)+function(M){if(!M)return"";if(M<1e3)return"|"+M;var z=String(0|M).length-2;return"|"+Math.round(M/Math.pow(10,z))+"e"+z}(M.population)].join("|")}function A(M,z){var b;if(M.length!==z.length)return!1;for(b=0;b<M.length;b++)if(M[b]!==z[b])return!1;return!0}function q(M,z){return A(M.offsets,z.offsets)&&A(M.abbrs,z.abbrs)&&A(M.untils,z.untils)}function o(M,z){var b=[],p=[];return M.links&&(p=M.links.slice()),function(M,z,b,p){var O,A,o,c,W,d,R=[];for(O=0;O<M.length;O++){for(d=!1,o=M[O],A=0;A<R.length;A++)q(o,c=(W=R[A])[0])&&(o.population>c.population?W.unshift(o):o.population===c.population&&p&&p[o.name]?W.unshift(o):W.push(o),d=!0);d||R.push([o])}for(O=0;O<R.length;O++)for(W=R[O],z.push(W[0]),A=1;A<W.length;A++)b.push(W[0].name+"|"+W[A].name)}(M.zones,b,p,z),{version:M.version,zones:b,links:p.sort()}}function c(M,z,b){var p=Array.prototype.slice,O=function(M,z,b){var p,O,A=0,q=M.length+1;for(b||(b=z),z>b&&(O=z,z=b,b=O),O=0;O<M.length;O++)null!=M[O]&&((p=new Date(M[O]).getUTCFullYear())<z&&(A=O+1),p>b&&(q=Math.min(q,O+1)));return[A,q]}(M.untils,z,b),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}}return M.tz.pack=O,M.tz.packBase60=p,M.tz.createLinks=o,M.tz.filterYears=c,M.tz.filterLinkPack=function(M,z,b,p){var A,q,W=M.zones,d=[];for(A=0;A<W.length;A++)d[A]=c(W[A],z,b);for(q=o({zones:d,links:M.links.slice(),version:M.version},p),A=0;A<q.zones.length;A++)q.zones[A]=O(q.zones[A]);return q},M})},265:function(M,z,b){(M.exports=b(174)).tz.load(b(266))},266:function(M){M.exports={version:"2018g",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|LMT PMT WET WEST CET CEST|-c.c -9.l 0 -10 -10 -20|01232323232323232454542423234542324|-3bQob.c ME01.P 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|LMT EET EEST|-25.9 -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2MBC5.9 1AQM5.9 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0