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

2 lines
9.3 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.i18n=function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)e.d(r,i,function(t){return n[t]}.bind(null,i));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=449)}({189:function(n,t,e){var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(n){return a(c(n),arguments)}function u(n,t){return o.apply(null,[n].concat(t||[]))}function a(n,t){var e,r,u,a,s,c,p,f,l,d=1,g=n.length,h="";for(r=0;r<g;r++)if("string"==typeof n[r])h+=n[r];else if("object"==typeof n[r]){if((a=n[r]).keys)for(e=t[d],u=0;u<a.keys.length;u++){if(null==e)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[u],a.keys[u-1]));e=e[a.keys[u]]}else e=a.param_no?t[a.param_no]:t[d++];if(i.not_type.test(a.type)&&i.not_primitive.test(a.type)&&e instanceof Function&&(e=e()),i.numeric_arg.test(a.type)&&"number"!=typeof e&&isNaN(e))throw new TypeError(o("[sprintf] expecting number but found %T",e));switch(i.number.test(a.type)&&(f=e>=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?h+=e:(!i.number.test(a.type)||f&&!a.sign?l="":(l=f?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(l+e).length,s=a.width&&p>0?c.repeat(p):"",h+=a.align?l+e+s:"0"===c?l+s+e:s+l+e)}return h}var s=Object.create(null);function c(n){if(s[n])return s[n];for(var t,e=n,r=[],o=0;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],a=t[2],c=[];if(null===(c=i.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=i.key_access.exec(a)))u.push(c[1]);else{if(null===(c=i.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return s[n]=r}t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},449:function(n,t,e){"use strict";e.r(t),e.d(t,"sprintf",(function(){return s})),e.d(t,"createI18n",(function(){return _})),e.d(t,"setLocaleData",(function(){return O})),e.d(t,"__",(function(){return j})),e.d(t,"_x",(function(){return k})),e.d(t,"_n",(function(){return S})),e.d(t,"_nx",(function(){return P})),e.d(t,"isRTL",(function(){return F}));var r=e(50),i=e.n(r),o=e(189),u=e.n(o),a=i()(console.error);function s(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return u.a.sprintf.apply(u.a,[n].concat(e))}catch(t){return a("sprintf error: \n\n"+t.toString()),n}}var c,p,f,l,d=e(5);c={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},p=["(","?"],f={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var g={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n<t},"<=":function(n,t){return n<=t},">":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function h(n){var t=function(n){for(var t,e,r,i,o=[],u=[];t=n.match(l);){for(e=t[0],(r=n.substr(0,t.index).trim())&&o.push(r);i=u.pop();){if(f[e]){if(f[e][0]===i){e=f[e][1]||e;break}}else if(p.indexOf(i)>=0||c[i]<c[e]){u.push(i);break}o.push(i)}f[e]||u.push(e),n=n.substr(t.index+e.length)}return(n=n.trim())&&o.push(n),o.concat(u.reverse())}(n);return function(n){return function(n,t){var e,r,i,o,u,a,s=[];for(e=0;e<n.length;e++){if(u=n[e],o=g[u]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{a=o.apply(null,i)}catch(n){return n}}else a=t.hasOwnProperty(u)?t[u]:+u;s.push(a)}return s[0]}(t,n)}}var b={contextDelimiter:"",onMissingKey:null};function y(n,t){var e;for(e in this.data=n,this.pluralForms={},this.options={},b)this.options[e]=void 0!==t&&e in t?t[e]:b[e]}function v(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function x(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?v(Object(e),!0).forEach((function(t){Object(d.a)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}y.prototype.getPluralForm=function(n,t){var e,r,i,o,u=this.pluralForms[n];return u||("function"!=typeof(i=(e=this.data[n][""])["Plural-Forms"]||e["plural-forms"]||e.plural_forms)&&(r=function(n){var t,e,r;for(t=n.split(";"),e=0;e<t.length;e++)if(0===(r=t[e].trim()).indexOf("plural="))return r.substr(7)}(e["Plural-Forms"]||e["plural-forms"]||e.plural_forms),o=h(r),i=function(n){return+o({n:n})}),u=this.pluralForms[n]=i),u(t)},y.prototype.dcnpgettext=function(n,t,e,r,i){var o,u,a;return o=void 0===i?0:this.getPluralForm(n,i),u=e,t&&(u=t+this.options.contextDelimiter+e),(a=this.data[n][u])&&a[o]?a[o]:(this.options.onMissingKey&&this.options.onMissingKey(e,n),0===o?e:r)};var m={"":{plural_forms:function(n){return 1===n?0:1}}},_=function(n,t){var e=new y({}),r=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";e.data[t]=x({},m,{},e.data[t],{},n),e.data[t][""]=x({},m[""],{},e.data[t][""])},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return e.data[n]||r(void 0,n),e.dcnpgettext(n,t,i,o,u)},o=function(n,t,e){return i(e,t,n)};return n&&r(n,t),{setLocaleData:r,__:function(n,t){return i(t,void 0,n)},_x:o,_n:function(n,t,e,r){return i(r,void 0,n,t,e)},_nx:function(n,t,e,r,o){return i(o,r,n,t,e)},isRTL:function(){return"rtl"===o("ltr","text direction")}}},w=_(),O=w.setLocaleData.bind(w),j=w.__.bind(w),k=w._x.bind(w),S=w._n.bind(w),P=w._nx.bind(w),F=w.isRTL.bind(w)},5:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",(function(){return r}))},50:function(n,t,e){n.exports=function(n,t){var e,r,i=0;function o(){var o,u,a=e,s=arguments.length;n:for(;a;){if(a.args.length===arguments.length){for(u=0;u<s;u++)if(a.args[u]!==arguments[u]){a=a.next;continue n}return a!==e&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=e,a.prev=null,e.prev=a,e=a),a.val}a=a.next}for(o=new Array(s),u=0;u<s;u++)o[u]=arguments[u];return a={args:o,val:n.apply(null,o)},e?(e.prev=a,a.next=e):r=a,i===t.maxSize?(r=r.prev).next=null:i++,e=a,a.val}return t=t||{},o.clear=function(){e=null,r=null,i=0},o}}});