!function(a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).psl=a()}(function(){return function i(e,n,t){function m(o,a){if(!n[o]){if(!e[o]){var s="function"==typeof require&&require;if(!a&&s)return s(o,!0);if(r)return r(o,!0);throw(a=new Error("Cannot find module '"+o+"'")).code="MODULE_NOT_FOUND",a}s=n[o]={exports:{}},e[o][0].call(s.exports,function(a){return m(e[o][1][a]||a)},s,s.exports,i,e,n,t)}return n[o].exports}for(var r="function"==typeof require&&require,a=0;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=d-1,b=Math.floor,w=String.fromCharCode;function y(a){throw new RangeError(r[a])}function c(a,o){var s=a.split("@");let i="";1{var s=[];let i=a.length;for(;i--;)s[i]=o(a[i]);return s})((a=a.replace(m,".")).split("."),o).join(".");return i+s}function v(a){var o=[];let s=0;for(var i=a.length;s>1,a+=b(a/o);a>p*j>>1;i+=d)a=b(a/p);return b(i+(p+1)*a/(a+e))}function u(i){var o=[],e=i.length;let n=0,a=128,t=72,m=i.lastIndexOf("-");m<0&&(m=0);for(let a=0;a=e&&y("invalid-input");var p=48<=(p=i.charCodeAt(s++))&&p<58?p-48+26:65<=p&&p<91?p-65:97<=p&&p<123?p-97:d,c=(p>=d&&y("invalid-input"),p>b((h-n)/a)&&y("overflow"),n+=p*a,o<=t?1:o>=t+j?j:o-t);if(pb(h/p)&&y("overflow"),a*=p}var u=o.length+1;t=z(n-r,u,0==r),b(n/u)>h-a&&y("overflow"),a+=b(n/u),n%=u,o.splice(n++,0,a)}return String.fromCodePoint(...o)}function k(o){var a,s=[],i=(o=v(o)).length;let e=128,n=0,t=72;for(a of o)a<128&&s.push(w(a));var m=s.length;let r=m;for(m&&s.push("-");r=e&&pb((h-n)/u)&&y("overflow"),n+=(a-e)*u,e=a;for(c of o)if(ch&&y("overflow"),c===e){let o=n;for(let a=d;;a+=d){var k=a<=t?1:a>=t+j?j:a-t;if(oString.fromCodePoint(...a)},decode:u,encode:k,toASCII:function(a){return c(a,function(a){return t.test(a)?"xn--"+k(a):a})},toUnicode:function(a){return c(a,function(a){return i.test(a)?u(a.slice(4).toLowerCase()):a})}};o.exports=l},{}]},{},[2])(2)});