1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/vue-i18n/dist/vue-i18n.min.js

6 lines
28 KiB
JavaScript
Raw Permalink Normal View History

2023-12-18 13:12:25 +08:00
/*!
2024-01-16 21:26:16 +08:00
* vue-i18n v8.28.2
* (c) 2022 kazuya kawaguchi
2023-12-18 13:12:25 +08:00
* Released under the MIT License.
*/
2024-01-16 21:26:16 +08:00
var t,e;t=this,e=function(){"use strict";var t=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],e=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function n(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}var r=Array.isArray;function a(t){return null!==t&&"object"==typeof t}function i(t){return"string"==typeof t}var o=Object.prototype.toString,s="[object Object]";function l(t){return o.call(t)===s}function c(t){return null==t}function u(t){return"function"==typeof t}function h(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=null,i=null;return 1===t.length?a(t[0])||r(t[0])?i=t[0]:"string"==typeof t[0]&&(n=t[0]):2===t.length&&("string"==typeof t[0]&&(n=t[0]),(a(t[1])||r(t[1]))&&(i=t[1])),{locale:n,params:i}}function f(t){return JSON.parse(JSON.stringify(t))}function p(t,e){return!!~t.indexOf(e)}var _=Object.prototype.hasOwnProperty;function m(t,e){return _.call(t,e)}function g(t){for(var e=arguments,n=Object(t),r=1;r<arguments.length;r++){var i=e[r];if(null!=i){var o=void 0;for(o in i)m(i,o)&&(a(i[o])?n[o]=g(n[o],i[o]):n[o]=i[o])}}return n}function v(t,e){if(t===e)return!0;var n=a(t),i=a(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var o=r(t),s=r(e);if(o&&s)return t.length===e.length&&t.every(function(t,n){return v(t,e[n])});if(o||s)return!1;var l=Object.keys(t),c=Object.keys(e);return l.length===c.length&&l.every(function(n){return v(t[n],e[n])})}catch(t){return!1}}var d={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,r=e.parent,a=e.props,i=e.slots,o=r.$i18n;if(o){var s=a.path,l=a.locale,c=a.places,u=i(),h=o.i(s,l,function(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}(u)||c?function(t,e){var n=e?function(t){return Array.isArray(t)?t.reduce(y,{}):Object.assign({},t)}(e):{};if(!t)return n;var r=(t=t.filter(function(t){return t.tag||""!==t.text.trim()})).every(F);return t.reduce(r?b:y,n)}(u.default,c):u),f=a.tag&&!0!==a.tag||!1===a.tag?a.tag:"span";return f?t(f,n,h):h}}};function b(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function y(t,e,n){return t[n]=e,t}function F(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var k,w={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,n){var r=n.props,o=n.parent,s=n.data,l=o.$i18n;if(!l)return null;var c=null,u=null;i(r.format)?c=r.format:a(r.format)&&(r.format.key&&(c=r.format.key),u=Object.keys(r.format).reduce(function(e,n){var a;return p(t,n)?Object.assign({},e,((a={})[n]=r.format[n],a)):e},null));var h=r.locale||l.locale,f=l._ntp(r.value,h,c,u),_=f.map(function(t,e){var n,r=s.scopedSlots&&s.scopedSlots[t.type];return r?r(((n={})[t.type]=t.value,n.index=e,n.parts=f,n)):t.value}),m=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return m?e(m,{attrs:s.attrs,class:s.class,staticClass:s.staticClass},_):_}};function $(t,e,n){C(t,n)&&I(t,e,n)}function M(t,e,n,r){if(C(t,n)){var a=n.context.$i18n;(function(t,e){var n=e.context;return t._locale===n.$i18n.locale})(t,n)&&v(e.value,e.oldValue)&&v(t._localeMessage,a.getLocaleMessage(a.locale))||I(t,e,n)}}function T(t,e,r,a){if(r.context){var i=r.context.$i18n||{};e.modifiers.preserve||i.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}else n("Vue instance does not exists in VNode context")}function C(t,e){var r=e.context;return r?!!r.$i18n||(n("VueI18n instance does