You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
49 KiB
7 lines
49 KiB
1 year ago
|
/*!
|
||
|
* vue-i18n v9.2.2
|
||
|
* (c) 2022 kazuya kawaguchi
|
||
|
* Released under the MIT License.
|
||
|
*/
|
||
|
import{createVNode as e,Text as t,ref as n,computed as r,watch as a,getCurrentInstance as l,Fragment as o,h as s,effectScope as c,inject as u,onMounted as i,onUnmounted as f,shallowRef as m,onBeforeMount as p,isRef as g}from"vue";const _="undefined"!=typeof window,d="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,b=e=>d?Symbol(e):e,v=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),k=e=>"number"==typeof e&&isFinite(e),h=e=>"[object RegExp]"===w(e),L=e=>W(e)&&0===Object.keys(e).length;function y(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const T=Object.assign;function E(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const F=Object.prototype.hasOwnProperty;function N(e,t){return F.call(e,t)}const I=Array.isArray,O=e=>"function"==typeof e,R=e=>"string"==typeof e,P=e=>"boolean"==typeof e,C=e=>null!==e&&"object"==typeof e,M=Object.prototype.toString,w=e=>M.call(e),W=e=>"[object Object]"===w(e),S=15;function x(e,t,n={}){const{domain:r,messages:a,args:l}=n,o=new SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function D(e){throw e}function A(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const $=String.fromCharCode(8232),U=String.fromCharCode(8233);function H(e){const t=e;let n=0,r=1,a=1,l=0;const o=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===U,c=e=>t[e]===$,u=e=>o(e)||(e=>"\n"===t[e])(e)||s(e)||c(e),i=e=>o(e)||s(e)||c(e)?"\n":t[e];function f(){return l=0,u(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>l,charAt:i,currentChar:()=>i(n),currentPeek:()=>i(n+l),next:f,peek:function(){return o(n+l)&&l++,l++,t[n+l]},reset:function(){n=0,r=1,a=1,l=0},resetPeek:function(e=0){l=e},skipToPeek:function(){const e=n+l;for(;e!==n;)f();l=0}}}const j=void 0;function V(e,t={}){const n=!1!==t.location,r=H(e),a=()=>r.index(),l=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},o=l(),s=a(),c={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:i}=t;function f(e,t,r){e.endLoc=l(),e.currentType=t;const a={type:t};return n&&(a.loc=A(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(l(),"")}function g(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function _(e){const t=g(e);return e.skipToPeek(),t}function d(e){if(e===j)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===j)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function v(e){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function k(e,t=!0){const n=(t=!1,r="",a=!1)=>{const l=e.currentPeek();return"{"===l?"%"!==r&&t:"@"!==l&&l?"%"===l?(e.peek(),n(t,"%",!0)):"|"===l?!("%"!==r&&!a)||!(" "===r||"\n"===r):" "===l?(e.peek(),n(!0," ",a)):"\n"!==l||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function h(e,t){const n=e.currentChar();return n===j?j:t(n)?(e.next(),n):null}function L(e){return h(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function y(e){return h(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return h(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function E(e){let t="",n="";for(;t=y(e);)n+=t;return n}function F(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!k(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(k(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function N(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t
|