[extensions-web] i18n: drop mustache messages and make messages translatable
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] i18n: drop mustache messages and make messages translatable
- Date: Tue, 22 Jan 2019 03:48:51 +0000 (UTC)
commit 1bcc679f4792cf99d4a0084699ab48c85f1a72d3
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sun Jan 20 11:23:49 2019 +0400
i18n: drop mustache messages and make messages translatable
sweettooth/static/js/extensions.js | 25 ++++++++++++++++------
.../templates/messages/browser_extension.mustache | 2 --
.../templates/messages/cannot_list_errors.mustache | 1 -
.../templates/messages/cannot_list_local.mustache | 1 -
.../js/templates/messages/dummy_proxy.mustache | 1 -
sweettooth/static/js/voca.js | 9 ++++++++
6 files changed, 27 insertions(+), 12 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index ab1957a..7cc4d58 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -1,7 +1,7 @@
/*
GNOME Shell extensions repository
Copyright (C) 2011-2012 Jasper St. Pierre <jstpierre mecheye net>
- Copyright (C) 2016-2017 Yuri Konotopov <ykonotopov gnome org>
+ Copyright (C) 2016-2019 Yuri Konotopov <ykonotopov gnome org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -9,8 +9,8 @@
(at your option) any later version.
*/
-define(['jquery', 'messages', 'dbus!_', 'extensionUtils', 'templates', 'paginator', 'switch'],
- function ($, messages, dbusProxy, extensionUtils, templates) {
+define(['jquery', 'messages', 'dbus!_', 'extensionUtils', 'templates', 'voca' 'paginator', 'switch'],
+ function ($, messages, dbusProxy, extensionUtils, templates, voca) {
"use strict";
var ExtensionState = extensionUtils.ExtensionState;
@@ -102,11 +102,22 @@ define(['jquery', 'messages', 'dbus!_', 'extensionUtils', 'templates', 'paginato
if (IS_CHROME || IS_FIREFOX || IS_OPERA) // browser_extension.js should be
included globally
{
// Help user to install browser extension for supported browsers
- messages.addInfo(templates.get('messages/browser_extension')());
+ messages.addInfo(voca.sprintf(
+ '%s.<br /><a href="#" title="%s" onclick="return
browser_extension_install();">%s</a>. %s.',
+ gettext('To control GNOME Shell extensions using this site
you must install GNOME Shell integration that consists of two parts: browser extension and native host
messaging application'),
+ gettext('Install GNOME Shell integration browser extension'),
+ gettext('Click here to install browser extension'),
+ voca.sprintf(
+ gettext('See <a href="%s"
onclick="window.open(this.href); return false;">wiki page</a> for native host connector installation
instructions'),
+
'https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome/Installation'
+ )
+ ));
}
else
{
- messages.addError(templates.get('messages/dummy_proxy')());
+ messages.addError(
+ gettext('We cannot detect a running copy of GNOME on this
system, so some parts of the interface may be disabled. See <a href="/about/#no-detection">our
troubleshooting entry</a> for more information.')
+ );
}
}
@@ -117,13 +128,13 @@ define(['jquery', 'messages', 'dbus!_', 'extensionUtils', 'templates', 'paginato
};
$.fn.addLocalExtensions = function () {
- return this.append(templates.get('messages/cannot_list_local')());
+ return this.append(gettext('GNOME Shell Extensions cannot list your installed
extensions.'));
};
$.fn.fillInErrors = function () {
var $textarea = this.find('textarea[name=error]');
var $hidden = this.find('input:hidden[name=has_errors]');
-
$textarea.text(templates.get('messages/cannot_list_errors')()).addClass('no-errors').attr('disabled',
'disabled');
+ $textarea.text(gettext('GNOME Shell Extensions cannot list your installed
extensions.')).addClass('no-errors').attr('disabled', 'disabled');
$hidden.val('');
return this;
};
diff --git a/sweettooth/static/js/voca.js b/sweettooth/static/js/voca.js
new file mode 100644
index 0000000..026c874
--- /dev/null
+++ b/sweettooth/static/js/voca.js
@@ -0,0 +1,9 @@
+/*!
+ * Voca string library 1.4.0
+ * https://vocajs.com
+ *
+ * Copyright Dmitri Pavlutin and other contributors
+ * Released under the MIT license
+ */
+!function(e,u){"object"==typeof exports&&"undefined"!=typeof module?module.exports=u():"function"==typeof
define&&define.amd?define(u):e.v=u()}(this,function(){"use strict";function e(e){return void
0===e||null===e}function u(u){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return
e(u)?n:Boolean(u)}function n(e){return"string"==typeof e}function r(u){var r=arguments.length>1&&void
0!==arguments[1]?arguments[1]:"";return e(u)?r:n(u)?u:String(u)}function t(e,n){var
t=r(e),i=u(n);return""===t?"":(i&&(t=t.toLowerCase()),t.substr(0,1).toUpperCase()+t.substr(1))}function
i(e){return r(e,"").toLowerCase()}function a(e,u){return null==e?u:e}function o(u){return
e(u)?null:n(u)?u:String(u)}function c(u,n,t){var i=r(u),c=void 0;if(e(n))c=Ou.test(i)?Bu:mu;else if(n
instanceof RegExp)c=n;else{var f=o(a(t,""));c=new RegExp(o(n),f)}return a(i.match(c),[])}function
f(e,u){return 0===u?i(e):t(e,!0)}function s(e){var u=r(e);return""===u?"":c(u).map(f).join("")}function
l(e){va
r u=r(e)
;return""===u?"":u.substr(0,1).toLowerCase()+u.substr(1)}function p(e){var
u=r(e);return""===u?"":c(u).map(i).join("-")}function h(e){var
u=r(e);return""===u?"":c(u).map(i).join("_")}function g(e){return r(e).toUpperCase()}function v(e){return
r(e).split("").reduce(d,"")}function d(e,u){var n=u.toLowerCase(),r=u.toUpperCase();return
e+(u===n?r:n)}function F(e,u){var n=r(e),i=Array.isArray(u)?u:[],a=Ou.test(n)?Bu:mu;return
n.replace(a,function(e,u){return u>0&&i.indexOf(n[u-1])>=0?e.toLowerCase():t(e,!0)})}function x(e,u,n){return
e<=u?u:e>=n?n:e}function b(e){return e===1/0?ju:e===-1/0?-ju:~~e}function y(u,n,t){var
i=r(u),a=e(n)?i.length:x(b(n),0,ju),o=r(t,"...");return a>=i.length?i:i.substr(0,n-o.length)+o}function
w(e,u){return r(e).charAt(u)}function D(e){return e>=Ru&&e<=Lu}function A(e){return e>=Nu&&e<=Pu}function
E(e,u){return 1024*(e-Ru)+u-Nu+65536}function C(u){var n=arguments.length>1&&void
0!==arguments[1]?arguments[1]:0;return e(u)?n:"number"==typeof u?u:Number(
u)}funct
ion m(e,u){return e!==e?u:e}function B(e,u){var n=r(e),t=n.length,i=C(u);if(!((i=m(i,0))<0||i>=t)){var
a=n.charCodeAt(i),o=void 0;return D(a)&&t>i+1&&(o=n.charCodeAt(i+1),A(o))?E(a,o):a}}function k(u,n){var
t=r(u),i=e(n)?1:x(b(n),0,ju);return t.length<=i?t:t.substr(0,i)}function S(e,u){var n=r(e),t=C(u),i=void
0,a=0;for(t=m(t,0);null!==(i=pu.exec(n));){if(a===t)return pu.lastIndex=0,i[0];a++}return""}function
O(u,n){var t=r(u),i=e(n)?1:x(b(n),0,ju);return t.length<=i?t:t.substr(t.length-i,i)}function j(u,n,t){var
i=r(u),a=e(n)?i.length:x(b(n),0,ju),o=r(t,"...");if(a>=i.length)return i;var c=Ou.test(i)?Bu:mu,f=0;return
i.replace(c,function(e,u){var n=u+e.length;n<=a-o.length&&(f=n)}),i.substr(0,f)+o}function R(e,u,n){return
r(e).slice(u,n)}function L(e,u,n){return r(e).substr(u,n)}function N(e,u,n){return
r(e).substring(u,n)}function P(e){return r(e).length}function z(e){return
r(e).replace(su,"*").replace(lu,"*").length}function U(e,u){var n=r(e),t=r(u),i=t.length,a=0,o=0;if
(""===n|
|""===t)return a;do{-1!==(o=n.indexOf(t,o))&&(a++,o+=i)}while(-1!==o);return a}function I(e,u,n){var
t=r(e);if(""===t||"function"!=typeof u)return 0;var i=u.bind(n);return zu.call(t,function(e,u,n){return
i(u,n,t)?e+1:e},0)}function $(e,u,n){return c(e,u,n).length}function _(){this.index=0}function V(u,n){for(var
t=r(u),i=e(n)?1:x(b(n),0,ju),a="";i;)1&i&&(a+=t),i>1&&(t+=t),i>>=1;return a}function Y(e,u){return
V(e,b(u/e.length)+u%e.length).substr(0,u)}function Z(u,n,t){var i=r(u),a=e(n)?0:x(b(n),0,ju),o=r(t,"
");return a<=i.length?i:Y(o,a-i.length)+i}function T(u,n,t){var i=r(u),a=e(n)?0:x(b(n),0,ju),o=r(t,"
");return a<=i.length?i:i+Y(o,a-i.length)}function W(u,n){var r=n.width;return
e(r)||u.length>=r?u:(n.alignmentSpecifier===Mu?T:Z)(u,r,n.getPaddingCharacter())}function G(e,u,n){return
n.signSpecifier===Ku&&e>=0&&(u=Ku+u),u}function H(e,u){var n=parseFloat(e),t=void 0;isNaN(n)&&(n=0);var
i=C(u.precision,6);switch(u.typeSpecifier){case Hu:t=n.toFixed(i);break;case Wu:t=n.
toExpone
ntial(i);break;case Gu:t=n.toExponential(i).toUpperCase();break;case Ju:case qu:t=J(n,i,u)}return
t=G(n,t,u),r(t)}function J(e,u,n){if(0===e)return"0";var r=0===u?1:u,t=e.toPrecision(r).replace(wu,"");return
n.typeSpecifier===qu&&(t=t.toUpperCase()),t}function q(e,u){var
n=parseInt(e);switch(isNaN(n)&&(n=0),n>>>=0,u.typeSpecifier){case $u:n=String.fromCharCode(n);break;case
Iu:n=n.toString(Qu);break;case Vu:n=n.toString(en);break;case Zu:n=n.toString(un);break;case
Tu:n=n.toString(un).toUpperCase()}return r(n)}function X(e,u){var n=parseInt(e);return
isNaN(n)&&(n=0),G(n,o(n),u)}function K(u,n){var
r=u,t=n.precision;return!e(t)&&r.length>t&&(r=y(r,t,"")),r}function M(e,u){var n=void
0;switch(u.typeSpecifier){case Xu:n=K;break;case _u:case Uu:n=X;break;case $u:case Iu:case Vu:case Zu:case
Tu:case Yu:n=q;break;case Hu:case Wu:case Gu:case Ju:case qu:n=H}return W(n(e,u),u)}function
Q(e){this.percent=e.percent,this.signSpecifier=e.signSpecifier,this.paddingSpecifier=e.paddingSpec
ifier,th
is.alignmentSpecifier=e.alignmentSpecifier,this.width=e.width,this.precision=e.precision,this.typeSpecifier=e.typeSpecifier}function
ee(u,n,r){if(e(r.typeSpecifier))throw new Error("sprintf(): Unknown type specifier");if(u>n-1)throw new
Error("sprintf(): Too few arguments");if(u<0)throw new Error("sprintf(): Argument number must be greater than
zero")}function ue(e,u,n,r,t,i,a,o,c,f,s){var l=new
Q({percent:r,signSpecifier:i,paddingSpecifier:a,alignmentSpecifier:o,width:C(c,null),precision:C(f,null),typeSpecifier:s});if(l.isPercentLiteral())return
n.slice(1);var p=e.getIndexByPosition(t);return
e.incrementOnEmptyPosition(t),ee(p,u.length,l),M(u[p],l)}function ne(e){var u=r(e);if(""===u)return u;for(var
n=arguments.length,t=Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];var a=ue.bind(void 0,new _,t);return
u.replace(yu,a)}function re(e){if(Array.isArray(e)){for(var
u=0,n=Array(e.length);u<e.length;u++)n[u]=e[u];return n}return Array.from(e)}function te(e,u){return
ne.apply(v
oid 0,[e
].concat(re(a(u,[]))))}function ie(e){return nn[e]}function ae(e){return r(e).replace(bu,ie)}function
oe(e){return r(e).replace(Fu,"\\$&")}function ce(e,u){return e.replace(rn[u],u)}function fe(e){var
u=r(e);return tn.reduce(ce,u)}function se(e,u,n){return r(e).indexOf(u,n)}function le(e,u,n){return
r(e).lastIndexOf(u,n)}function pe(u,n,t){var
i=r(u),a=e(t)?0:x(b(t),0,i.length),o=i.substr(a).search(n);return-1===o||isNaN(a)||(o+=a),o}function
he(e,u,n){var t=r(e),i=r(u),a=C(n);return a<0||a>t.length||""===i?t:t.slice(0,a)+i+t.slice(a)}function
ge(){return null!==on?on:(on={},Object.keys(an).forEach(function(e){for(var u=an[e],n=0;n<u.length;n++){var
r=u[n];on[r]=e}}),on)}function ve(e){var u=ge()[e];return u||e}function de(e,u){return u}function Fe(e){var
u=r(e);return""===u?"":u.replace(xu,ve).replace(su,de)}function xe(u,n,t){var
i=r(u),a=e(n)?0:x(b(n),0,ju),o=r(t," ");if(a<=i.length)return i;var c=a-i.length,f=b(c/2),s=c%2;return
Y(o,f)+i+Y(o,f+s)}function be(e,u,n){retur
n r(e).r
eplace(u,n)}function ye(e){return e.toString().match(Du)[0]}function we(u,n,t){var i=r(u),a=o(n);return
null!==a&&(""===a||(t=e(t)?0:x(b(t),0,i.length),-1!==i.indexOf(a,t)))}function De(e,u){var n=ye(e);return
we(n,u)?e:new RegExp(e.source,n+u)}function Ae(e,u,n){var t=r(e),i=u;return u instanceof
RegExp?u.global||(i=De(u,"g")):i=new RegExp(oe(u),"g"),t.replace(i,n)}function Ee(e){return
r(e).split("").reverse().join("")}function Ce(e){for(var u=r(e),n="",t=(u=u.replace(su,function(e,u,n){return
Ce(n)+u}).replace(lu,"$2$1")).length;t--;)n+=u.charAt(t);return n}function me(e){var
u=r(e);return""===u?"":p(Fe(u).replace(xu,"-"))}function Be(e,u,n,t){var
i=r(e),a=r(t),o=C(u);o<0?(o=i.length+o)<0&&(o=0):o>i.length&&(o=i.length);var c=C(n,i.length-o);return
c<0&&(c=0),i.slice(0,o)+a+i.slice(o+c)}function ke(e,u,t){var i=r(e),o=void 0,c=void
0;if(n(u)&&n(t))o=u.split(""),c=t.split("");else{var f=Se(a(u,{})),s=cn(f,2);o=s[0],c=s[1]}var
l=o.length;if(0===l)return i;for(var p="",h=c.l
ength,g=
0;g<i.length;g++){for(var v=!1,d=void 0,F=0;F<l&&F<h;F++){var
x=o[F];if(i.substr(g,x.length)===x){v=!0,d=c[F],g=g+x.length-1;break}}p+=v?d:i[g]}return p}function Se(e){var
u=Object.keys(e);return[u,u.sort(Oe).map(function(u){return e[u]})]}function Oe(e,u){return
e.length===u.length?0:e.length<u.length?1:-1}function je(u,n){var t=r(u);if(""===n||""===t)return t;var
i=o(n);if(e(i))return t.replace(gu,"");var a=!0;return fn.call(t,function(e,u){return
a&&we(i,u)?e:(a=!1,e+u)},"")}function Re(u,n){var t=r(u);if(""===n||""===t)return t;var i=o(n);if(e(i))return
t.replace(vu,"");var a=!0;return sn.call(t,function(e,u){return a&&we(i,u)?e:(a=!1,u+e)},"")}function
Le(u,n){var t=r(u);if(""===n||""===t)return t;var i=o(n);return e(i)?t.trim():Re(je(t,i),i)}function
Ne(e){var u=arguments.length>1&&void
0!==arguments[1]?arguments[1]:{},n=r(e),t=Pe(u),i=t.width,a=t.newLine,o=t.indent,c=t.cut;if(""===n||i<=0)return
o;for(var f=n.length,s=n.substring.bind(n),l=0,p="";f-l>i;)if(" "!==n[l])
{var h=n
.lastIndexOf(" ",i+l);h>=l?(p+=o+s(l,h)+a,l=h+1):c?(p+=o+s(l,i+l)+a,l+=i):(h=n.indexOf("
",i+l))>=0?(p+=o+s(l,h)+a,l=h+1):(p+=o+s(l),l=f)}else l++;return l<f&&(p+=o+s(l)),p}function
Pe(e){return{width:C(e[ln],75),newLine:r(e[pn],"\n"),indent:r(e[hn],""),cut:u(e[gn],!1)}}function
ze(u,n,t){if(e(n))return!1;var
i=r(u),a=r(n);if(""===a)return!0;t=e(t)?i.length:x(b(t),0,i.length),t-=a.length;var
o=i.indexOf(a,t);return-1!==o&&o===t}function Ue(e){var u=r(e);return ku.test(u)}function Ie(e){var
u=r(e);return Su.test(u)}function $e(e){return 0===r(e).trim().length}function _e(e){var u=r(e);return
du.test(u)}function Ve(e){return 0===r(e).length}function Ye(e){var u=r(e);return
Ue(u)&&u.toLowerCase()===u}function Ze(u){var n="object"!=typeof u||e(u)?u:Number(u);return("number"==typeof
n||"string"==typeof n)&&!isNaN(n-parseFloat(n))}function Te(e){var u=r(e);return
Ue(u)&&u.toUpperCase()===u}function We(e,u,n){var t=r(e),i=r(n),a=void 0;if(!(u instanceof
RegExp)){if(null===(a=o(u)))
return!1
;u=new RegExp(a,i)}return u.test(t)}function Ge(u,n,t){var i=r(u),a=o(n);return
null!==a&&(""===a||(t=e(t)?0:x(b(t),0,i.length),i.substr(t,a.length)===a))}function He(e){return
r(e).split("")}function Je(e){for(var u=r(e),n=u.length,t=[],i=0,a=void
0;i<n;)a=B(u,i),t.push(a),i+=a>65535?2:1;return t}function qe(e){return a(r(e).match(pu),[])}function
Xe(e,u,n){return r(e).split(u,n)}function Ke(e){var
u=r(e);return""===u?"":u[0]===vn?u.substring(1):u}function Me(e,u,n){var
r=0;return(!(arguments.length>3&&void
0!==arguments[3])||arguments[3])&&(r=1-u.length),e.substr(n+r,u.length).toLowerCase()===u}function
Qe(e){for(var u=[],n=void 0;null!==(n=Au.exec(e));)u.push(n[1]);return u}function eu(e){for(var
u=dn,n="",r=0;u!==xn;){var
t=e[r++].toLowerCase();switch(t){case"<":break;case">":u=xn;break;default:hu.test(t)?u===Fn&&(u=xn):(u===dn&&(u=Fn),"/"!==t&&(n+=t))}}return
n}function uu(e,u,n){if(""===(e=r(e)))return"";if(!Array.isArray(u)){var t=r(u);u=""===t?[]:Qe(t)}for(var
i=r(n)
,a=e.len
gth,o=u.length>0,c=Me.bind(null,e),f=bn,s=0,l="",p="",h=null,g=0;g<a;g++){var
v=e[g],d=!1;switch(v){case"<":if(h)break;if(c("<
",g,!1)){d=!0;break}if(f===bn){d=!0,f=yn;break}if(f===yn){s++;break}d=!0;break;case"!":if(f===yn&&c("<!",g)){f=wn;break}d=!0;break;case"-":if(f===wn&&c("!--",g)){f=Dn;break}d=!0;break;case'"':case"'":f===yn&&(h===v?h=null:h||(h=v)),d=!0;break;case"E":case"e":if(f===wn&&c("doctype",g)){f=yn;break}d=!0;break;case">":if(s>0){s--;break}if(h)break;if(f===yn){if(h=null,f=bn,o){var
F=eu(p+=">");-1!==u.indexOf(F.toLowerCase())?l+=p:l+=i,p=""}else
l+=i;break}if(f===wn||f===Dn&&c("--\x3e",g)){h=null,f=bn,p="";break}d=!0;break;default:d=!0}if(d)switch(f){case
bn:l+=v;break;case yn:o&&(p+=v)}}return l}function nu(){return this===En.v&&(En.v=Cn),this}function
ru(e,u){this._wrappedValue=e,this._explicitChain=u}function tu(e){return function(){for(var
u=arguments.length,n=Array(u),r=0;r<u;r++)n[r]=arguments[r];var t=e.apply(void
0,[this._wrappedValue].concat(n));re
turn thi
s._explicitChain||"string"==typeof t?new ru(t,this._explicitChain):t}}function iu(e){return new
ru(e,!0)}function au(e){return new ru(e,!1)}var
ou="\\uDC00-\\uDFFF",cu="\\u0300-\\u036F\\u1AB0-\\u1AFF\\u1DC0-\\u1DFF\\u20D0-\\u20FF\\uFE20-\\uFE2F",fu="\\0-\\u02FF\\u0370-\\u1AAF\\u1B00-\\u1DBF\\u1E00-\\u20CF\\u2100-\\uD7FF\\uE000-\\uFE1F\\uFE30-\\uFFFF",su=new
RegExp("(["+fu+"]|[\\uD800-\\uDBFF]["+ou+"]|[\\uD800-\\uDBFF](?!["+ou+"])|(?:[^\\uD800-\\uDBFF]|^)["+ou+"])(["+cu+"]+)","g"),lu=new
RegExp("([\\uD800-\\uDBFF])([\\uDC00-\\uDFFF])","g"),pu=new
RegExp("((?:["+fu+"]|[\\uD800-\\uDBFF]["+ou+"]|[\\uD800-\\uDBFF](?!["+ou+"])|(?:[^\\uD800-\\uDBFF]|^)["+ou+"])(?:["+cu+"]+))|([\\uD800-\\uDBFF]["+ou+"])|([\\n\\r\\u2028\\u2029])|(.)","g"),hu=new
RegExp("[\\s\\uFEFF\\xA0]"),gu=new RegExp("^[\\s\\uFEFF\\xA0]+"),vu=new RegExp("[\\s\\uFEFF\\xA0]+$"),du=new
RegExp("^\\d+$"),Fu=/[-[\]{}()*+!<=:?./\\^$|#,]/g,xu=/[^A-Za-z0-9]/g,bu=/[<>&"'`]/g,yu=/(%{1,2})(?:(\d+)\$)?(\+)?([
0]|'.{1})?(-)?(\d
+)?(?:\.
(\d+))?([bcdiouxXeEfgGs])?/g,wu=/\.?0+$/g,Du=/[gimuy]*$/,Au=/<([A-Za-z0-9]+)>/g,Eu="a-z\\xB5\\xDF-\\xF6\\xF8-\\xFF\\u0101\\u0103\\u0105\\u0107\\u0109\\u010B\\u010D\\u010F\\u0111\\u0113\\u0115\\u0117\\u0119\\u011B\\u011D\\u011F\\u0121\\u0123\\u0125\\u0127\\u0129\\u012B\\u012D\\u012F\\u0131\\u0133\\u0135\\u0137\\u0138\\u013A\\u013C\\u013E\\u0140\\u0142\\u0144\\u0146\\u0148\\u0149\\u014B\\u014D\\u014F\\u0151\\u0153\\u0155\\u0157\\u0159\\u015B\\u015D\\u015F\\u0161\\u0163\\u0165\\u0167\\u0169\\u016B\\u016D\\u016F\\u0171\\u0173\\u0175\\u0177\\u017A\\u017C\\u017E-\\u0180\\u0183\\u0185\\u0188\\u018C\\u018D\\u0192\\u0195\\u0199-\\u019B\\u019E\\u01A1\\u01A3\\u01A5\\u01A8\\u01AA\\u01AB\\u01AD\\u01B0\\u01B4\\u01B6\\u01B9\\u01BA\\u01BD-\\u01BF\\u01C6\\u01C9\\u01CC\\u01CE\\u01D0\\u01D2\\u01D4\\u01D6\\u01D8\\u01DA\\u01DC\\u01DD\\u01DF\\u01E1\\u01E3\\u01E5\\u01E7\\u01E9\\u01EB\\u01ED\\u01EF\\u01F0\\u01F3\\u01F5\\u01F9\\u01FB\\u01FD\\u01FF\\u0201\\u0203\\u0205\\u0207\\u0209\\u020B\\u020D\\u0
20F\\u02
11\\u0213\\u0215\\u0217\\u0219\\u021B\\u021D\\u021F\\u0221\\u0223\\u0225\\u0227\\u0229\\u022B\\u022D\\u022F\\u0231\\u0233-\\u0239\\u023C\\u023F\\u0240\\u0242\\u0247\\u0249\\u024B\\u024D\\u024F",Cu="\\x41-\\x5a\\xc0-\\xd6\\xd8-\\xde\\u0100\\u0102\\u0104\\u0106\\u0108\\u010a\\u010c\\u010e\\u0110\\u0112\\u0114\\u0116\\u0118\\u011a\\u011c\\u011e\\u0120\\u0122\\u0124\\u0126\\u0128\\u012a\\u012c\\u012e\\u0130\\u0132\\u0134\\u0136\\u0139\\u013b\\u013d\\u013f\\u0141\\u0143\\u0145\\u0147\\u014a\\u014c\\u014e\\u0150\\u0152\\u0154\\u0156\\u0158\\u015a\\u015c\\u015e\\u0160\\u0162\\u0164\\u0166\\u0168\\u016a\\u016c\\u016e\\u0170\\u0172\\u0174\\u0176\\u0178\\u0179\\u017b\\u017d\\u0181\\u0182\\u0184\\u0186\\u0187\\u0189-\\u018b\\u018e-\\u0191\\u0193\\u0194\\u0196-\\u0198\\u019c\\u019d\\u019f\\u01a0\\u01a2\\u01a4\\u01a6\\u01a7\\u01a9\\u01ac\\u01ae\\u01af\\u01b1-\\u01b3\\u01b5\\u01b7\\u01b8\\u01bc\\u01c4\\u01c5\\u01c7\\u01c8\\u01ca\\u01cb\\u01cd\\u01cf\\u01d1\\u01d3\\u01d5\\u01d7\\u01d9\\u01
db\\u01d
e\\u01e0\\u01e2\\u01e4\\u01e6\\u01e8\\u01ea\\u01ec\\u01ee\\u01f1\\u01f2\\u01f4\\u01f6-\\u01f8\\u01fa\\u01fc\\u01fe\\u0200\\u0202\\u0204\\u0206\\u0208\\u020a\\u020c\\u020e\\u0210\\u0212\\u0214\\u0216\\u0218\\u021a\\u021c\\u021e\\u0220\\u0222\\u0224\\u0226\\u0228\\u022a\\u022c\\u022e\\u0230\\u0232\\u023a\\u023b\\u023d\\u023e\\u0241\\u0243-\\u0246\\u0248\\u024a\\u024c\\u024e",mu=new
RegExp("(?:["+Cu+"]["+cu+"]*)?(?:["+Eu+"]["+cu+"]*)+|(?:["+Cu+"]["+cu+"]*)+(?!["+Eu+"])|[\\d]+|[\\u2700-\\u27BF]|[^\\x00-\\x2F\\x3A-\\x40\\x5B-\\x60\\x7b-\\xBF\\xD7\\xF7\\u2000-\\u206F\\s\\uFEFF\\xA0]+","g"),Bu=/[A-Z\xC0-\xD6\xD8-\xDE]?[a-z\xDF-\xF6\xF8-\xFF]+|[A-Z\xC0-\xD6\xD8-\xDE]+(?![a-z\xDF-\xF6\xF8-\xFF])|\d+/g,ku=new
RegExp("^(?:["+Eu+Cu+"]["+cu+"]*)+$"),Su=new
RegExp("^((?:["+Eu+Cu+"]["+cu+"]*)|[\\d])+$"),Ou=/^[\x01-\xFF]*$/,ju=9007199254740991,Ru=55296,Lu=56319,Nu=56320,Pu=57343,zu=Array.prototype.reduce;_.prototype.increment=function(){this.index++},_.prototype.incrementOnEmptyPosition=fun
ction(u)
{e(u)&&this.increment()},_.prototype.getIndexByPosition=function(u){return e(u)?this.index:u-1};var
Uu="i",Iu="b",$u="c",_u="d",Vu="o",Yu="u",Zu="x",Tu="X",Wu="e",Gu="E",Hu="f",Ju="g",qu="G",Xu="s",Ku="+",Mu="-",Qu=2,en=8,un=16;Q.prototype.isPercentLiteral=function(){return"%%"===this.percent},Q.prototype.getPaddingCharacter=function(){var
e=a(this.paddingSpecifier," ");return 2===e.length&&"'"===e[0]&&(e=e[1]),e};var
nn={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},rn={"<":/(<)|(�*3c;)|(�*60;)/gi,">":/(>)|(�*3e;)|(�*62;)/gi,"&":/(&)|(�*26;)|(�*38;)/gi,'"':/(")|(�*22;)|(�*34;)/gi,"'":/(�*27;)|(�*39;)/gi,"`":/(�*60;)|(�*96;)/gi},tn=Object.keys(rn),an={3:"Ξξ",8:"Θθ",A:"AÀÁÂÃÄÅĀĂĄǍǞǠǺȀȂȦȺḀẠẢẤẦẨẪẬẮẰẲẴẶⒶⱯAΆΑА",B:"BƁƂɃḂḄḆⒷBΒБ",C:"CÇĆĈĊČƇȻḈⒸꜾCЦ",D:"DĎĐƉƊƋḊḌḎḐḒⒹꝹDÐΔД",E:"EÈÉÊËĒĔĖĘĚƎƐȄȆȨ�
��ḖḘ
ḚḜẸẺẼẾỀỂỄỆⒺEΈΕЕЭ",F:"FƑḞⒻꝻFΦФ",G:"GĜĞĠĢƓǤǦǴḠⒼꝽꝾꞠGΓГҐ",H:"HĤĦȞḢḤḦḨḪⒽⱧⱵꞍHΉΗХ",I:"IÌÍÎÏĨĪĬĮİƗǏȈȊḬḮỈỊⒾIΊΙΪІИ",J:"JĴɈⒿJЙ",K:"KĶƘǨḰḲḴⓀⱩꝀꝂꝄꞢKΚК",L:"LĹĻĽĿŁȽḶḸḺḼⓁⱠⱢꝆꝈꞀLΛЛ",M:"MƜḾṀṂⓂⱮMΜМ",N:"NÑŃŅŇƝǸȠṄṆṈṊⓃꞐꞤNΝН",O:"OÒÓÔÕÖØŌŎŐƆƟƠǑǪǬǾȌȎȪȬȮȰṌṎṐṒỌỎỐỒỔỖỘỚỜỞỠỢⓄꝊꝌOΌΟО",P:"PƤṔṖⓅⱣꝐꝒꝔPΠП",Q:"QɊⓆꝖꝘQ",R:"RŔŖŘȐȒɌṘṚṜṞⓇⱤꝚꞂꞦRΡР",S:"SŚŜŞŠȘṠṢṤṦṨẞⓈⱾꞄꞨSΣС",T:"TŢŤŦƬƮȚȾṪṬṮṰⓉꞆTΤТ",U:"UÙÚÛÜŨŪŬŮŰŲƯǓǕǗǙǛȔȖɄṲṴṶṸṺỤỦỨỪỬỮỰⓊUУЪ",V:"VƲɅṼṾⓋꝞVВ",W:"WŴẀẂẄẆẈⓌⱲWΏΩ",X:"XẊẌⓍXΧ",Y:"YÝŶŸƳȲɎẎỲỴỶỸỾⓎYΎΥΫЫ",Z:"ZŹŻŽƵȤẐẒẔ
ⓏⱫ��
�ꝢZΖЗ",a:"aàáâãäåāăąǎǟǡǻȁȃȧɐḁẚạảấầẩẫậắằẳẵặⓐⱥaάαа",b:"bƀƃɓḃḅḇⓑbβб",c:"cçćĉċčƈȼḉↄⓒꜿcц",d:"dďđƌɖɗḋḍḏḑḓⓓꝺdðδд",e:"eèéêëēĕėęěǝȅȇȩɇɛḕḗḙḛḝẹẻẽếềểễệⓔeέεеэ",f:"fƒḟⓕꝼfφф",g:"gĝğġģǥǧǵɠᵹḡⓖꝿꞡgγгґ",h:"hĥħȟɥḣḥḧḩḫẖⓗⱨⱶhήηх",i:"iìíîïĩīĭįıǐȉȋɨḭḯỉịⓘiΐίιϊиі",j:"jĵǰɉⓙjй",k:"kķƙǩḱḳḵⓚⱪꝁꝃꝅꞣkκк",l:"lĺļľŀłſƚɫḷḹḻḽⓛⱡꝇꝉꞁlλл",m:"mɯɱḿṁṃⓜmμм",n:"nñńņňʼnƞǹɲṅṇṉṋⓝꞑꞥnνн",o:"oòóôõöøōŏőơǒǫǭǿȍȏȫȭȯȱɔɵṍṏṑṓọỏốồổỗộớờởỡợⓞꝋꝍoοόо",p:"pƥᵽṕṗⓟꝑꝓꝕpπп",q:"qɋⓠꝗꝙq",r:"rŕŗřȑȓɍɽṙṛṝṟⓡꝛꞃꞧrρр",s:"sßśŝşšșȿṡṣṥṧṩẛⓢꞅꞩsςσс",t:"tţťŧƭț
ʈṫṭ
ṯṱẗⓣⱦꞇtτт",u:"uùúûüũūŭůűųưǔǖǘǚǜȕȗʉṳṵṷṹṻụủứừửữựⓤuуъ",v:"vʋʌṽṿⓥꝟvв",w:"wŵẁẃẅẇẉẘⓦⱳwωώ",x:"xẋẍⓧxχ",y:"yýÿŷƴȳɏẏẙỳỵỷỹỿⓨyΰυϋύы",z:"zźżžƶȥɀẑẓẕⓩⱬꝣzζз",OE:"Œ",oe:"œ",AE:"ÆǢǼ",ae:"æǣǽ",hv:"ƕ",OI:"Ƣ",oi:"ƣ",DZ:"DŽDZ",Dz:"DžDz",dz:"dždz",LJ:"LJ",Lj:"Lj",lj:"lj",NJ:"NJ",Nj:"Nj",nj:"nj",OU:"Ȣ",ou:"ȣ",TZ:"Ꜩ",tz:"ꜩ",AA:"Ꜳ",aa:"ꜳ",AO:"Ꜵ",ao:"ꜵ",AU:"Ꜷ",au:"ꜷ",AV:"ꜸꜺ",av:"ꜹꜻ",AY:"Ꜽ",ay:"ꜽ",OO:"Ꝏ",oo:"ꝏ",VY:"Ꝡ",vy:"ꝡ",TH:"Þ",th:"þ",PS:"Ψ",ps:"ψ",Yo:"Ё",Ye:"Є",Yi:"Ї",Zh:"Ж",Ch:"Ч",Sh:"ШЩ","":"Ьь",Yu:"Ю",Ya:"Я",zh:"ж",ch:"ч",sh:"шщ",yu:"ю",ya:"я",yo:"ё",ye:"є",yi:"ї"},on=null,cn=function(){function
e(e,u){var n=[],r=!0,t=!1,i=void 0;try{for(var
a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!u||n.length!==u);r=!0);}catch(e){t=!0,i=e}finally{try{!r
&&o.retu
rn&&o.return()}finally{if(t)throw i}}return n}return function(u,n){if(Array.isArray(u))return
u;if(Symbol.iterator in Object(u))return e(u,n);throw new TypeError("Invalid attempt to destructure
non-iterable
instance")}}(),fn=Array.prototype.reduce,sn=Array.prototype.reduceRight,ln="width",pn="newLine",hn="indent",gn="cut",vn="\ufeff",dn=0,Fn=1,xn=2,bn=0,yn=1,wn=2,Dn=3,An=null,En=function(){return
null!==An?An:An="object"==typeof global&&global.Object===Object?global:"object"==typeof
self&&self.Object===Object?self:new Function("return
this")()}(),Cn=En.v,mn={camelCase:s,capitalize:t,decapitalize:l,kebabCase:p,lowerCase:i,snakeCase:h,swapCase:v,titleCase:F,upperCase:g,count:P,countGraphemes:z,countSubstrings:U,countWhere:I,countWords:$,escapeHtml:ae,escapeRegExp:oe,unescapeHtml:fe,sprintf:ne,vprintf:te,indexOf:se,lastIndexOf:le,search:pe,charAt:w,codePointAt:B,first:k,graphemeAt:S,last:O,prune:j,slice:R,substr:L,substring:N,truncate:y,insert:he,latinise:Fe,pad:xe,padLeft:Z,pa
dRight:T
,repeat:V,replace:be,replaceAll:Ae,reverse:Ee,reverseGrapheme:Ce,slugify:me,splice:Be,tr:ke,trim:Le,trimLeft:je,trimRight:Re,wordWrap:Ne,endsWith:ze,includes:we,isAlpha:Ue,isAlphaDigit:Ie,isBlank:$e,isDigit:_e,isEmpty:Ve,isLowerCase:Ye,isNumeric:Ze,isString:n,isUpperCase:Te,matches:We,startsWith:Ge,chars:He,codePoints:Je,graphemes:qe,split:Xe,words:c,stripBom:Ke,stripTags:uu,noConflict:nu,version:"1.4.0"};return
ru.prototype.value=function(){return this._wrappedValue},ru.prototype.valueOf=function(){return
this.value()},ru.prototype.toJSON=function(){return this.value()},ru.prototype.toString=function(){return
String(this.value())},ru.prototype.chain=function(){return new
ru(this._wrappedValue,!0)},ru.prototype.thru=function(e){return"function"==typeof e?new
ru(e(this._wrappedValue),this._explicitChain):this},ru.prototype._explicitChain=!0,Object.keys(mn).forEach(function(e){ru.prototype[e]=tu(mn[e])}),(Object.assign||function(e){for(var
u=1;u<arguments.length;u++){var n=arg
uments[u
];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e})(au,mn,{chain:iu}),au});
+//# sourceMappingURL=voca.min.js.map
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]