mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-10 22:58:33 +02:00
21 lines
915 KiB
JavaScript
21 lines
915 KiB
JavaScript
|
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=349)}({158:function(M,z,b){(M.exports=b(350)).tz.load(b(351))},28:function(M,z){!function(){M.exports=this.moment}()},349:function(M,z,b){"use strict";b.r(z),b.d(z,"setSettings",function(){return q}),b.d(z,"getSettings",function(){return o}),b.d(z,"moment",function(){return W}),b.d(z,"format",function(){return X}),b.d(z,"date",function(){return B}),b.d(z,"gmdate",function(){return n}),b.d(z,"dateI18n",function(){return L});var p=b(28),O=b.n(p),A=(b(158),b(352),{l10n:{locale:"en_US",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:" % s from now",past:"% s ago"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a"},timezone:{offset:"0",string:""}});function q(M){A=M;var z=O.a.locale();O.a.updateLocale(M.l10n.locale,{parentLocale:z,months:M.l10n.months,monthsShort:M.l10n.monthsShort,weekdays:M.l10n.weekdays,weekdaysShort:M.l10n.weekdaysShort,meridiem:function(z,b,p){return z<12?p?M.l10n.meridiem.am:M.l10n.meridiem.AM:p?M.l10n.meridiem.pm:M.l10n.meridiem.PM},longDateFormat:{LT:M.formats.time,LTS:null,L:null,LL:M.formats.date,LLL:M.formats.datetime,LLLL:null},relativeTime:{future:M.l10n.relative.future,past:M.l10n.relative.past,s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}}),O.a.locale(z),c()}function o(){return A}function c(){O.a.tz.add(O.a.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-A.timezone.offset||0]}))}var W=function(){for(var M=arguments.length,z=new Array(M),b=0;b<M;b++)z[b]=arguments[b];return O.a.tz.apply(O.a,z.concat(["WP"]))},d=60,R={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(M){var z=M.format("D");return M.format("Do").replace(z,"")},w:"d",z:function(M){return""+parseInt(M.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(M){return M.daysInMonth()},L:function(M){return M.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(M){var z=O()(M).utcOffset(60),b=parseInt(z.format("s"),10),p=parseInt(z.format("m"),10),A=parseInt(z.format("H"),10);return parseInt((b+60*p+3600*A)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(M){return M.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(M){var z=M.format("Z"),b="-"===z[0]?-1:1,p=z.substring(1).split(":");return b*(p[0]*d+p[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function X(M){var z,b,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,A=[],q=O()(p);for(z=0;z<M.length;z++)"\\"!==(b=M[z])?b in R?"string"!=typeof R[b]?A.push("["+R[b](q)+"]"):A.push(R[b]):A.push("["+b+"]"):(z++,A.push("["+M[z]+"]"));return A=A.join("[]"),q.format(A)}function B(M){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,b=A.timezone.offset*d;return X(M,O()(z).utcO
|
||
|
//! 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(28)):(O=[b(28)],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(158)):(O=[b(28)],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){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(" ")}function A(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("")}function q(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}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,A(M),O(M.untils)+q(M.population)].join("|")}function c(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 W(M,z){return c(M.offsets,z.offsets)&&c(M.abbrs,z.abbrs)&&c(M.untils,z.untils)}function d(M,z){var b=[],p=[];return M.links&&(p=M.links.slice()),function(M,z,b,p){var O,A,q,o,c,d,R=[];for(O=0;O<M.length;O++){for(d=!1,q=M[O],A=0;A<R.length;A++)W(q,o=(c=R[A])[0])&&(q.population>o.population?c.unshift(q):q.population===o.population&&p&&p[q.name]?c.unshift(q):c.push(q),d=!0);d||R.push([q])}for(O=0;O<R.length;O++)for(c=R[O],z.push(c[0]),A=1;A<c.length;A++)b.push(c[0].name+"|"+c[A].name)}(M.zones,b,p,z),{version:M.version,zones:b,links:p.sort()}}function R(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=d,M.tz.filterYears=R,M.tz.filterLinkPack=function(M,z,b,p){var O,A,q=M.zones,c=[];for(O=0;O<q.length;O++)c[O]=R(q[O],z,b);for(A=d({zones:c,links:M.links.slice(),version:M.version},p),O=0;O<A.zones.length;O++)A.zones[O]=o(A.zones[O]);return A},M})}});
|