ok
Direktori : /home2/selectio/www/ramali.in/assets/js/ |
Current File : /home2/selectio/www/ramali.in/assets/js/webfont.min.js |
!function(){function t(n,i,e){return(t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?function(t,n,i){return t.call.apply(t.bind,arguments)}:function(t,n,i){if(!t)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,e),t.apply(n,i)}}return function(){return t.apply(n,arguments)}}).apply(null,arguments)}function n(t,n,i,e){if(n=t.c.createElement(n),i)for(var o in i)i.hasOwnProperty(o)&&("style"==o?n.style.cssText=i[o]:n.setAttribute(o,i[o]));return e&&n.appendChild(t.c.createTextNode(e)),n}function i(t,n,i){(t=t.c.getElementsByTagName(n)[0])||(t=document.documentElement),t.insertBefore(i,t.lastChild)}function e(t){t.parentNode&&t.parentNode.removeChild(t)}function o(t,n,i){n=n||[],i=i||[];for(var e=t.className.split(/\s+/),o=0;o<n.length;o+=1){for(var a=!1,s=0;s<e.length;s+=1)if(n[o]===e[s]){a=!0;break}a||e.push(n[o])}for(n=[],o=0;o<e.length;o+=1){for(a=!1,s=0;s<i.length;s+=1)if(e[o]===i[s]){a=!0;break}a||n.push(e[o])}t.className=n.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function a(t,n){for(var i=t.className.split(/\s+/),e=0,o=i.length;e<o;e++)if(i[e]==n)return!0;return!1}function s(t){if("string"==typeof t.f)return t.f;var n=t.m.location.protocol;return"about:"==n&&(n=t.a.location.protocol),"https:"==n?"https:":"http:"}function r(t,e,o){function a(){c&&s&&r&&(c(f),c=null)}e=n(t,"link",{rel:"stylesheet",href:e,media:"all"});var s=!1,r=!0,f=null,c=o||null;M?(e.onload=function(){s=!0,a()},e.onerror=function(){s=!0,f=Error("Stylesheet failed to load"),a()}):setTimeout(function(){s=!0,a()},0),i(t,"head",e)}function f(t,i,e,o){var a=t.c.getElementsByTagName("head")[0];if(a){var s=n(t,"script",{src:i}),r=!1;return s.onload=s.onreadystatechange=function(){r||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(r=!0,e&&e(null),s.onload=s.onreadystatechange=null,"HEAD"==s.parentNode.tagName&&a.removeChild(s))},a.appendChild(s),setTimeout(function(){r||(r=!0,e&&e(Error("Script load timeout")))},o||5e3),s}return null}function c(){this.a=0,this.c=null}function h(t){return t.a++,function(){t.a--,u(t)}}function l(t,n){t.c=n,u(t)}function u(t){0==t.a&&t.c&&(t.c(),t.c=null)}function p(t){this.a=t||"-"}function d(t,n){this.c=t,this.f=4,this.a="n";var i=(n||"n4").match(/^([nio])([1-9])$/i);i&&(this.a=i[1],this.f=parseInt(i[2],10))}function g(t){var n=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var e=t[i].replace(/['"]/g,"");-1!=e.indexOf(" ")||/^\d/.test(e)?n.push("'"+e+"'"):n.push(e)}return n.join(",")}function v(t){return t.a+t.f}function m(t){var n="normal";return"o"===t.a?n="oblique":"i"===t.a&&(n="italic"),n}function w(t){var n=4,i="n",e=null;return t&&((e=t.match(/(normal|oblique|italic)/i))&&e[1]&&(i=e[1].substr(0,1).toLowerCase()),(e=t.match(/([1-9]00|normal|bold)/i))&&e[1]&&(/bold/i.test(e[1])?n=7:/[1-9]00/.test(e[1])&&(n=parseInt(e[1].substr(0,1),10)))),i+n}function y(t){if(t.g){var n=a(t.f,t.a.c("wf","active")),i=[],e=[t.a.c("wf","loading")];n||i.push(t.a.c("wf","inactive")),o(t.f,i,e)}b(t,"inactive")}function b(t,n,i){t.j&&t.h[n]&&(i?t.h[n](i.c,v(i)):t.h[n]())}function j(t,i){this.c=t,this.f=i,this.a=n(this.c,"span",{"aria-hidden":"true"},this.f)}function x(t){i(t.c,"body",t.a)}function _(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+g(t.c)+";font-style:"+m(t)+";font-weight:"+t.f+"00;"}function k(t,n,i,e,o,a){this.g=t,this.j=n,this.a=e,this.c=i,this.f=o||3e3,this.h=a||void 0}function T(t,n,i,e,o,a,s){this.v=t,this.B=n,this.c=i,this.a=e,this.s=s||"BESbswy",this.f={},this.w=o||3e3,this.u=a||null,this.o=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.o=new j(this.c,this.s),t=_(t=new d(this.a.c+",serif",v(this.a))),this.g.a.style.cssText=t,t=_(t=new d(this.a.c+",sans-serif",v(this.a))),this.h.a.style.cssText=t,t=_(t=new d("serif",v(this.a))),this.j.a.style.cssText=t,t=_(t=new d("sans-serif",v(this.a))),this.o.a.style.cssText=t,x(this.g),x(this.h),x(this.j),x(this.o)}function S(){if(null===G){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);G=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return G}function C(t,n,i){for(var e in z)if(z.hasOwnProperty(e)&&n===t.f[z[e]]&&i===t.f[z[e]])return!0;return!1}function N(n){var i,e=n.g.a.offsetWidth,o=n.h.a.offsetWidth;(i=e===n.f.serif&&o===n.f["sans-serif"])||(i=S()&&C(n,e,o)),i?H()-n.A>=n.w?S()&&C(n,e,o)&&(null===n.u||n.u.hasOwnProperty(n.a.c))?A(n,n.v):A(n,n.B):function(n){setTimeout(t(function(){N(this)},n),50)}(n):A(n,n.v)}function A(n,i){setTimeout(t(function(){e(this.g.a),e(this.h.a),e(this.j.a),e(this.o.a),i(this.a)},n),0)}function E(t,n,i){this.c=t,this.a=n,this.f=0,this.o=this.j=!1,this.s=i}function W(t){0==--t.f&&t.j&&(t.o?((t=t.a).g&&o(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),b(t,"active")):y(t.a))}function F(t){this.j=t,this.a=new function(){this.c={}},this.h=0,this.f=this.g=!0}function I(n,i,e,a,s){var r=0==--n.h;(n.f||n.g)&&setTimeout(function(){var n=s||null,f=a||null||{};if(0===e.length&&r)y(i.a);else{i.f+=e.length,r&&(i.j=r);var c,h=[];for(c=0;c<e.length;c++){var l=e[c],u=f[l.c],p=i.a,d=l;p.g&&o(p.f,[p.a.c("wf",d.c,v(d).toString(),"loading")]),b(p,"fontloading",d),p=null,null===K&&(K=!!window.FontFace&&(!(d=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(d[1],10))),p=K?new k(t(i.g,i),t(i.h,i),i.c,l,i.s,u):new T(t(i.g,i),t(i.h,i),i.c,l,i.s,n,u),h.push(p)}for(c=0;c<h.length;c++)h[c].start()}},0)}function P(t,n,i){var e=[],a=i.timeout;!function(t){t.g&&o(t.f,[t.a.c("wf","loading")]),b(t,"loading")}(n);var e=function(t,n,i){var e,o=[];for(e in n)if(n.hasOwnProperty(e)){var a=t.c[e];a&&o.push(a(n[e],i))}return o}(t.a,i,t.c),s=new E(t.c,n,a);for(t.h=e.length,n=0,i=e.length;n<i;n++)e[n].load(function(n,i,e){I(t,s,n,i,e)})}function B(t,n){this.c=t,this.a=n}function O(t,n){this.c=t,this.a=n}function L(t){for(var n=t.f.length,i=0;i<n;i++){var e=t.f[i].split(":"),o=e[0].replace(/\+/g," "),a=["n4"];if(2<=e.length){var s;if(s=[],r=e[1])for(var r=r.split(","),f=r.length,c=0;c<f;c++){var h;if((h=r[c]).match(/^[\w-]+$/)){if(null==(u=V.exec(h.toLowerCase())))h="";else{if(h=u[2],h=null==h||""==h?"n":Q[h],null==(u=u[1])||""==u)u="4";else var l=J[u],u=l||(isNaN(u)?"4":u.substr(0,1));h=[h,u].join("")}}else h="";h&&s.push(h)}0<s.length&&(a=s),3==e.length&&(e=e[2],s=[],0<(e=e?e.split(","):s).length&&(e=U[e[0]])&&(t.c[o]=e))}for(t.c[o]||(e=U[o])&&(t.c[o]=e),e=0;e<a.length;e+=1)t.a.push(new d(o,a[e]))}}function D(t,n){this.c=t,this.a=n}function $(t,n){this.c=t,this.a=n}function q(t,n){this.c=t,this.f=n,this.a=[]}var H=Date.now||function(){return+new Date},M=!!window.FontFace;p.prototype.c=function(t){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return n.join(this.a)},k.prototype.start=function(){var t=this.c.m.document,n=this,i=H(),e=new Promise(function(e,o){function a(){H()-i>=n.f?o():t.fonts.load(function(t){return m(t)+" "+t.f+"00 300px "+g(t.c)}(n.a),n.h).then(function(t){1<=t.length?e():setTimeout(a,25)},function(){o()})}a()}),o=new Promise(function(t,i){setTimeout(i,n.f)});Promise.race([o,e]).then(function(){n.g(n.a)},function(){n.j(n.a)})};var z={D:"serif",C:"sans-serif"},G=null;T.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.o.a.offsetWidth,this.A=H(),N(this)};var K=null;E.prototype.g=function(t){var n=this.a;n.g&&o(n.f,[n.a.c("wf",t.c,v(t).toString(),"active")],[n.a.c("wf",t.c,v(t).toString(),"loading"),n.a.c("wf",t.c,v(t).toString(),"inactive")]),b(n,"fontactive",t),this.o=!0,W(this)},E.prototype.h=function(t){var n=this.a;if(n.g){var i=a(n.f,n.a.c("wf",t.c,v(t).toString(),"active")),e=[],s=[n.a.c("wf",t.c,v(t).toString(),"loading")];i||e.push(n.a.c("wf",t.c,v(t).toString(),"inactive")),o(n.f,e,s)}b(n,"fontinactive",t),W(this)},F.prototype.load=function(t){this.c=new function(t,n){this.a=t,this.m=n||t,this.c=this.m.document}(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,P(this,new function(t,n){this.c=t,this.f=t.m.document.documentElement,this.h=n,this.a=new p("-"),this.j=!1!==n.events,this.g=!1!==n.classes}(this.c,t),t)},B.prototype.load=function(t){function n(){if(a["__mti_fntLst"+e]){var i,o=a["__mti_fntLst"+e](),s=[];if(o)for(var r=0;r<o.length;r++){var f=o[r].fontfamily;void 0!=o[r].fontStyle&&void 0!=o[r].fontWeight?(i=o[r].fontStyle+o[r].fontWeight,s.push(new d(f,i))):s.push(new d(f))}t(s)}else setTimeout(function(){n()},50)}var i=this,e=i.a.projectId,o=i.a.version;if(e){var a=i.c.m;f(this.c,function(t,n,i){var e=s(t.c);return t=(t.a.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,""),e+"//"+t+"/"+n+".js"+(i?"?v="+i:"")}(i,e,o),function(o){o?t([]):(a["__MonotypeConfiguration__"+e]=function(){return i.a},n())}).id="__MonotypeAPIScript__"+e}else t([])},O.prototype.load=function(t){var n,i,e=this.a.urls||[],o=this.a.families||[],a=this.a.testStrings||{},s=new c;for(n=0,i=e.length;n<i;n++)r(this.c,e[n],h(s));var f=[];for(n=0,i=o.length;n<i;n++)if((e=o[n].split(":"))[1])for(var u=e[1].split(","),p=0;p<u.length;p+=1)f.push(new d(e[0],u[p]));else f.push(new d(e[0]));l(s,function(){t(f,a)})};var R="//fonts.googleapis.com/css",U={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Q={i:"i",italic:"i",n:"n",normal:"n"},V=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/,X={Arimo:!0,Cousine:!0,Tinos:!0};D.prototype.load=function(t){var n=new c,i=this.c,e=new function(t,n,i){this.c=t||n+R,this.a=[],this.f=[],this.g=i||""}(this.a.api,s(i),this.a.text),o=this.a.families;!function(t,n){for(var i=n.length,e=0;e<i;e++){var o=n[e].split(":");3==o.length&&t.f.push(o.pop());var a="";2==o.length&&""!=o[1]&&(a=":"),t.a.push(o.join(a))}}(e,o);var a=new function(t){this.f=t,this.a=[],this.c={}}(o);L(a),r(i,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var n=t.a.length,i=[],e=0;e<n;e++)i.push(t.a[e].replace(/ /g,"+"));return n=t.c+"?family="+i.join("%7C"),0<t.f.length&&(n+="&subset="+t.f.join(",")),0<t.g.length&&(n+="&text="+encodeURIComponent(t.g)),n}(e),h(n)),l(n,function(){t(a.a,a.c,X)})},$.prototype.load=function(t){var n=this.a.id,i=this.c.m;n?f(this.c,(this.a.api||"https://use.typekit.net")+"/"+n+".js",function(n){if(n)t([]);else if(i.Typekit&&i.Typekit.config&&i.Typekit.config.fn){n=i.Typekit.config.fn;for(var e=[],o=0;o<n.length;o+=2)for(var a=n[o],s=n[o+1],r=0;r<s.length;r++)e.push(new d(a,s[r]));try{i.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}t(e)}},2e3):t([])},q.prototype.load=function(t){var n=this.f.id,i=this.c.m,e=this;n?(i.__webfontfontdeckmodule__||(i.__webfontfontdeckmodule__={}),i.__webfontfontdeckmodule__[n]=function(n,i){for(var o=0,a=i.fonts.length;o<a;++o){var s=i.fonts[o];e.a.push(new d(s.name,w("font-weight:"+s.weight+";font-style:"+s.style)))}t(e.a)},f(this.c,s(this.c)+(this.f.api||"//f.fontdeck.com/s/css/js/")+function(t){return t.m.location.hostname||t.a.location.hostname}(this.c)+"/"+n+".js",function(n){n&&t([])})):t([])};var Y=new F(window);Y.a.c.custom=function(t,n){return new O(n,t)},Y.a.c.fontdeck=function(t,n){return new q(n,t)},Y.a.c.monotype=function(t,n){return new B(n,t)},Y.a.c.typekit=function(t,n){return new $(n,t)},Y.a.c.google=function(t,n){return new D(n,t)};var Z={load:t(Y.load,Y)};"function"==typeof define&&define.amd?define(function(){return Z}):"undefined"!=typeof module&&module.exports?module.exports=Z:(window.WebFont=Z,window.WebFontConfig&&Y.load(window.WebFontConfig))}();