Module 89738

2,656 characters · in no known chunk
Dependencies
Required by (1)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){e=n.nmd(e),function(i){var r=t&&!t.nodeType&&t,s=e&&!e.nodeType&&e,a="object"==typeof n.g&&n.g;(a.global===a||a.window===a||a.self===a)&&(i=a);var o,l,u=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function p(e){throw RangeError(_[e])}function E(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function m(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+E((e=e.replace(d,".")).split("."),t).join(".")}function g(e){for(var t,n,i=[],r=0,s=e.length;r<s;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<s?(64512&(n=e.charCodeAt(r++)))==56320?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function A(e){return E(e,function(e){var t="";return e>65535&&(e-=65536,t+=h(e>>>10&1023|55296),e=56320|1023&e),t+=h(e)}).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var i=0;for(e=n?f(e/700):e>>1,e+=f(e/t);e>455;i+=36)e=f(e/35);return f(i+36*e/(e+38))}function S(e){var t,n,i,r,s,a,o,l,u,c,d,_=[],h=e.length,E=0,m=128,g=72;for((i=e.lastIndexOf("-"))<0&&(i=0),r=0;r<i;++r)e.charCodeAt(r)>=128&&p("not-basic"),_.push(e.charCodeAt(r));for(s=i>0?i+1:0;s<h;){for(a=E,o=1,l=36;s>=h&&p("invalid-input"),((u=(t=e.charCodeAt(s++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||u>f((0x7fffffff-E)/o))&&p("overflow"),E+=u*o,!(u<(c=l<=g?1:l>=g+26?26:l-g));l+=36){;o>f(0x7fffffff/(d=36-c))&&p("overflow"),o*=d}g=T(E-a,n=_.length+1,0==a),f(E/n)>0x7fffffff-m&&p("overflow"),m+=f(E/n),E%=n,_.splice(E++,0,m)}return A(_)}function N(e){var t,n,i,r,s,a,o,l,u,c,d,_,E,m,A,S=[];for(a=0,_=(e=g(e)).length,t=128,n=0,s=72;a<_;++a)(d=e[a])<128&&S.push(h(d));for(i=r=S.length,r&&S.push("-");i<_;){for(o=0x7fffffff,a=0;a<_;++a)(d=e[a])>=t&&d<o&&(o=d);for(o-t>f((0x7fffffff-n)/(E=i+1))&&p("overflow"),n+=(o-t)*E,t=o,a=0;a<_;++a)if((d=e[a])<t&&++n>0x7fffffff&&p("overflow"),d==t){for(l=n,u=36;!(l<(c=u<=s?1:u>=s+26?26:u-s));u+=36)A=l-c,m=36-c,S.push(h(I(c+A%m,0))),l=f(A/m);S.push(h(I(l,0))),s=T(n,E,i==r),n=0,++i}++n,++t}return S.join("")}if(o={version:"1.4.1",ucs2:{decode:g,encode:A},decode:S,encode:N,toASCII:function(e){return m(e,function(e){return c.test(e)?"xn--"+N(e):e})},toUnicode:function(e){return m(e,function(e){return u.test(e)?S(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return o});else if(r&&s)if(e.exports==r)s.exports=o;else for(l in o)o.hasOwnProperty(l)&&(r[l]=o[l]);else i.punycode=o}(this)}