2 lines
154 KiB
JavaScript
2 lines
154 KiB
JavaScript
|
(function(g,A){typeof exports=="object"&&typeof module!="undefined"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(g=typeof globalThis!="undefined"?globalThis:g||self,A(g.psl={}))})(this,function(g){"use strict";function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O,T;function G(){if(T)return O;T=1;const e=2147483647,s=36,c=1,o=26,t=38,j=700,x=72,v=128,h="-",Q=/^xn--/,X=/[^\0-\x7F]/,Y=/[\x2E\u3002\uFF0E\uFF61]/g,Z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=s-c,d=Math.floor,L=String.fromCharCode;function f(a){throw new RangeError(Z[a])}function aa(a,i){const m=[];let n=a.length;for(;n--;)m[n]=i(a[n]);return m}function M(a,i){const m=a.split("@");let n="";m.length>1&&(n=m[0]+"@",a=m[1]),a=a.replace(Y,".");const r=a.split("."),p=aa(r,i).join(".");return n+p}function F(a){const i=[];let m=0;const n=a.length;for(;m<n;){const r=a.charCodeAt(m++);if(r>=55296&&r<=56319&&m<n){const p=a.charCodeAt(m++);(p&64512)==56320?i.push(((r&1023)<<10)+(p&1023)+65536):(i.push(r),m--)}else i.push(r)}return i}const oa=a=>String.fromCodePoint(...a),sa=function(a){return a>=48&&a<58?26+(a-48):a>=65&&a<91?a-65:a>=97&&a<123?a-97:s},H=function(a,i){return a+22+75*(a<26)-((i!=0)<<5)},N=function(a,i,m){let n=0;for(a=m?d(a/j):a>>1,a+=d(a/i);a>S*o>>1;n+=s)a=d(a/S);return d(n+(S+1)*a/(a+t))},R=function(a){const i=[],m=a.length;let n=0,r=v,p=x,b=a.lastIndexOf(h);b<0&&(b=0);for(let u=0;u<b;++u)a.charCodeAt(u)>=128&&f("not-basic"),i.push(a.charCodeAt(u));for(let u=b>0?b+1:0;u<m;){const k=n;for(let l=1,w=s;;w+=s){u>=m&&f("invalid-input");const y=sa(a.charCodeAt(u++));y>=s&&f("invalid-input"),y>d((e-n)/l)&&f("overflow"),n+=y*l;const q=w<=p?c:w>=p+o?o:w-p;if(y<q)break;const C=s-q;l>d(e/C)&&f("overflow"),l*=C}const z=i.length+1;p=N(n-k,z,k==0),d(n/z)>e-r&&f("overflow"),r+=d(n/z),n%=z,i.splice(n++,0,r)}return String.fromCodePoint(...i)},P=function(a){const i=[];a=F(a);const m=a.length;let n=v,r=0,p=x;for(const k of a)k<128&&i.push(L(k));const b=i.length;let u=b;for(b&&i.push(h);u<m;){let k=e;for(const l of a)l>=n&&l<k&&(k=l);const z=u+1;k-n>d((e-r)/z)&&f("overflow"),r+=(k-n)*z,n=k;for(const l of a)if(l<n&&++r>e&&f("overflow"),l===n){let w=r;for(let y=s;;y+=s){const q=y<=p?c:y>=p+o?o:y-p;if(w<q)break;const C=w-q,V=s-q;i.push(L(H(q+C%V,0))),w=d(C/V)}i.push(L(H(w,0))),p=N(r,z,u===b),r=0,++u}++r,++n}return i.join("")};return O={version:"2.3.1",ucs2:{decode:F,encode:oa},decode:R,encode:P,toASCII:function(a){return M(a,function(i){return X.test(i)?"xn--"+P(i):i})},toUnicode:function(a){return M(a,function(i){return Q.test(i)?R(i.slice(4).toLowerCase()):i})}},O}var W=G();const _=A(W),U=["ac","com.ac","edu.ac","gov.ac","mil.ac","net.ac","org.ac","ad","ae","ac.ae","co.ae","gov.ae","mil.ae","net.ae","org.ae","sch.ae","aero","airline.aero","airport.aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","air-surveillance.aero","air-traffic-control.aero","aircraft.aero","airtraffic.aero","ambulance.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","freight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","marketplace.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recrea
|