Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/components/bitrix/pdf.viewer/pdfjs/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/components/bitrix/pdf.viewer/pdfjs/l10n.min.js |
"use strict";document.webL10n=function(e,r,n){var t={};var i="";var o="textContent";var u="";var f={};var a="loading";var l=true;function s(){return r.querySelectorAll('link[type="application/l10n"]')}function c(){var e=r.querySelector('script[type="application/l10n"]');return e?JSON.parse(e.innerHTML):null}function v(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}function d(e){if(!e)return{};var r=e.getAttribute("data-l10n-id");var n=e.getAttribute("data-l10n-args");var t={};if(n){try{t=JSON.parse(n)}catch(i){console.warn("could not parse arguments for #"+r)}}return{id:r,args:t}}function h(e){var n=r.createEvent("Event");n.initEvent("localized",true,false);n.language=e;r.dispatchEvent(n)}function g(n,t,i){t=t||function a(e){};i=i||function s(){};var o=new XMLHttpRequest;o.open("GET",n,l);var u=r.charset;if(!!e.pdfJsLangCharset){u=e.pdfJsLangCharset}if(o.overrideMimeType){o.overrideMimeType("text/plain; charset="+u)}o.onreadystatechange=function(){if(o.readyState==4){if(o.status==200||o.status===0){t(o.responseText)}else{i()}}};o.onerror=i;o.ontimeout=i;try{o.send(null)}catch(f){i()}}function p(e,r,n,u){var f=e.replace(/[^\/]*$/,"")||"./";function a(e){if(e.lastIndexOf("\\")<0)return e;return e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function l(e,n){var t={};var i=/^\s*|\s*$/;var o=/^\s*#|^\s*$/;var u=/^\s*\[(.*)\]\s*$/;var l=/^\s*@import\s+url\((.*)\)\s*$/i;var s=/^([^=\s]*)\s*=\s*(.+)$/;function c(e,n,c){var d=e.replace(i,"").split(/[\r\n]+/);var h="*";var g=r.split("-",1)[0];var p=false;var m="";function w(){while(true){if(!d.length){c();return}var e=d.shift();if(o.test(e))continue;if(n){m=u.exec(e);if(m){h=m[1].toLowerCase();p=h!=="*"&&h!==r&&h!==g;continue}else if(p){continue}m=l.exec(e);if(m){v(f+m[1],w);return}}var i=e.match(s);if(i&&i.length==3){t[i[1]]=a(i[2])}}}w()}function v(e,r){g(e,function(e){c(e,false,r)},function(){console.warn(e+" not found.");r()})}c(e,true,function(){n(t)})}g(e,function(e){i+=e;l(e,function(e){for(var r in e){var i,u,f=r.lastIndexOf(".");if(f>0){i=r.substring(0,f);u=r.substr(f+1)}else{i=r;u=o}if(!t[i]){t[i]={}}t[i][u]=e[r]}if(n){n()}})},u)}function m(e,r){if(e){e=e.toLowerCase()}r=r||function b(){};w();u=e;var n=s();var i=n.length;if(i===0){var o=c();if(o&&o.locales&&o.default_locale){console.log("using the embedded JSON directory, early way out");t=o.locales[e];if(!t){var f=o.default_locale.toLowerCase();for(var l in o.locales){l=l.toLowerCase();if(l===e){t=o.locales[e];break}else if(l===f){t=o.locales[f]}}}r()}else{console.log("no resource to load, early way out")}h(e);a="complete";return}var v=null;var d=0;v=function(){d++;if(d>=i){r();h(e);a="complete"}};function g(e){var r=e.href;this.load=function(e,n){p(r,e,n,function(){console.warn(r+" not found.");console.warn('"'+e+'" resource not found');u="";n()})}}for(var m=0;m<i;m++){var y=new g(n[m]);y.load(e,v)}}function w(){t={};i="";u=""}function y(e){var r={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function n(e,r){return r.indexOf(e)!==-1}function t(e,r,n){return r<=e&&e<=n}var i={0:function(e){return"other"},1:function(e){if(t(e%100,3,10))return"few";if(e===0)return"zero";if(t(e%100,11,99))return"many";if(e==2)return"two";if(e==1)return"one";return"other"},2:function(e){if(e!==0&&e%10===0)return"many";if(e==2)return"two";if(e==1)return"one";return"other"},3:function(e){if(e==1)return"one";return"other"},4:function(e){if(t(e,0,1))return"one";return"other"},5:function(e){if(t(e,0,2)&&e!=2)return"one";return"other"},6:function(e){if(e===0)return"zero";if(e%10==1&&e%100!=11)return"one";return"other"},7:function(e){if(e==2)return"two";if(e==1)return"one";return"other"},8:function(e){if(t(e,3,6))return"few";if(t(e,7,10))return"many";if(e==2)return"two";if(e==1)return"one";return"other"},9:function(e){if(e===0||e!=1&&t(e%100,1,19))return"few";if(e==1)return"one";return"other"},10:function(e){if(t(e%10,2,9)&&!t(e%100,11,19))return"few";if(e%10==1&&!t(e%100,11,19))return"one";return"other"},11:function(e){if(t(e%10,2,4)&&!t(e%100,12,14))return"few";if(e%10===0||t(e%10,5,9)||t(e%100,11,14))return"many";if(e%10==1&&e%100!=11)return"one";return"other"},12:function(e){if(t(e,2,4))return"few";if(e==1)return"one";return"other"},13:function(e){if(t(e%10,2,4)&&!t(e%100,12,14))return"few";if(e!=1&&t(e%10,0,1)||t(e%10,5,9)||t(e%100,12,14))return"many";if(e==1)return"one";return"other"},14:function(e){if(t(e%100,3,4))return"few";if(e%100==2)return"two";if(e%100==1)return"one";return"other"},15:function(e){if(e===0||t(e%100,2,10))return"few";if(t(e%100,11,19))return"many";if(e==1)return"one";return"other"},16:function(e){if(e%10==1&&e!=11)return"one";return"other"},17:function(e){if(e==3)return"few";if(e===0)return"zero";if(e==6)return"many";if(e==2)return"two";if(e==1)return"one";return"other"},18:function(e){if(e===0)return"zero";if(t(e,0,2)&&e!==0&&e!=2)return"one";return"other"},19:function(e){if(t(e,2,10))return"few";if(t(e,0,1))return"one";return"other"},20:function(e){if((t(e%10,3,4)||e%10==9)&&!(t(e%100,10,19)||t(e%100,70,79)||t(e%100,90,99)))return"few";if(e%1e6===0&&e!==0)return"many";if(e%10==2&&!n(e%100,[12,72,92]))return"two";if(e%10==1&&!n(e%100,[11,71,91]))return"one";return"other"},21:function(e){if(e===0)return"zero";if(e==1)return"one";return"other"},22:function(e){if(t(e,0,1)||t(e,11,99))return"one";return"other"},23:function(e){if(t(e%10,1,2)||e%20===0)return"one";return"other"},24:function(e){if(t(e,3,10)||t(e,13,19))return"few";if(n(e,[2,12]))return"two";if(n(e,[1,11]))return"one";return"other"}};var o=r[e.replace(/-.*$/,"")];if(!(o in i)){console.warn("plural form unknown for ["+e+"]");return function(){return"other"}}return i[o]}f.plural=function(e,r,n,i){var a=parseFloat(r);if(isNaN(a))return e;if(i!=o)return e;if(!f._pluralRules){f._pluralRules=y(u)}var l="["+f._pluralRules(a)+"]";if(a===0&&n+"[zero]"in t){e=t[n+"[zero]"][i]}else if(a==1&&n+"[one]"in t){e=t[n+"[one]"][i]}else if(a==2&&n+"[two]"in t){e=t[n+"[two]"][i]}else if(n+l in t){e=t[n+l][i]}else if(n+"[other]"in t){e=t[n+"[other]"][i]}return e};function b(e,r,n){var i=t[e];if(!i){if(!n){return null}i=n}var o={};for(var u in i){var f=i[u];f=k(f,r,e,u);f=z(f,r,e);o[u]=f}return o}function k(e,r,n,i){var o=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/;var u=o.exec(e);if(!u||!u.length)return e;var a=u[1];var l=u[2];var s;if(r&&l in r){s=r[l]}else if(l in t){s=t[l]}if(a in f){var c=f[a];e=c(e,s,n,i)}return e}function z(e,r,n){var i=/\{\{\s*(.+?)\s*\}\}/g;return e.replace(i,function(e,i){if(r&&i in r){return r[i]}if(i in t){return t[i]}console.log("argument {{"+i+"}} for #"+n+" is undefined.");return e})}function x(e){var n=d(e);if(!n.id)return;var t=b(n.id,n.args);if(!t){console.warn("#"+n.id+" is undefined.");return}if(t[o]){if(L(e)===0){e[o]=t[o]}else{var i=e.childNodes;var u=false;for(var f=0,a=i.length;f<a;f++){if(i[f].nodeType===3&&/\S/.test(i[f].nodeValue)){if(u){i[f].nodeValue=""}else{i[f].nodeValue=t[o];u=true}}}if(!u){var l=r.createTextNode(t[o]);e.insertBefore(l,e.firstChild)}}delete t[o]}for(var s in t){e[s]=t[s]}}function L(e){if(e.children){return e.children.length}if(typeof e.childElementCount!=="undefined"){return e.childElementCount}var r=0;for(var n=0;n<e.childNodes.length;n++){r+=e.nodeType===1?1:0}return r}function E(e){e=e||r.documentElement;var n=v(e);var t=n.length;for(var i=0;i<t;i++){x(n[i])}x(e)}return{get:function(e,r,n){var t=e.lastIndexOf(".");var i=o;if(t>0){i=e.substr(t+1);e=e.substring(0,t)}var u;if(n){u={};u[i]=n}var f=b(e,r,u);if(f&&i in f){return f[i]}return"{{"+e+"}}"},getData:function(){return t},getText:function(){return i},getLanguage:function(){return u},setLanguage:function(e,r){m(e,function(){if(r)r();E()})},getDirection:function(){var e=["ar","he","fa","ps","ur"];var r=u.split("-",1)[0];return e.indexOf(r)>=0?"rtl":"ltr"},translate:E,getReadyState:function(){return a},ready:function(n){if(!n){return}else if(a=="complete"||a=="interactive"){e.setTimeout(function(){n()})}else if(r.addEventListener){r.addEventListener("localized",function t(){r.removeEventListener("localized",t);n()})}}}}(window,document); //# sourceMappingURL=l10n.map.js