2 lines
154 KiB
JavaScript
2 lines
154 KiB
JavaScript
|
|
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,H;function X(){if(H)return S;H=1;const e=2147483647,s=36,c=1,o=26,t=38,d=700,z=72,y=128,g="-",V=/^xn--/,G=/[^\0-\x7F]/,W=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=s-c,h=Math.floor,O=String.fromCharCode;function v(a){throw new RangeError(U[a])}function $(a,i){const m=[];let n=a.length;for(;n--;)m[n]=i(a[n]);return m}function L(a,i){const m=a.split("@");let n="";m.length>1&&(n=m[0]+"@",a=m[1]),a=a.replace(W,".");const r=a.split("."),p=$(r,i).join(".");return n+p}function D(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 J=a=>String.fromCodePoint(...a),K=function(a){return a>=48&&a<58?26+(a-48):a>=65&&a<91?a-65:a>=97&&a<123?a-97:s},T=function(a,i){return a+22+75*(a<26)-((i!=0)<<5)},E=function(a,i,m){let n=0;for(a=m?h(a/d):a>>1,a+=h(a/i);a>I*o>>1;n+=s)a=h(a/I);return h(n+(I+1)*a/(a+t))},B=function(a){const i=[],m=a.length;let n=0,r=y,p=z,j=a.lastIndexOf(g);j<0&&(j=0);for(let u=0;u<j;++u)a.charCodeAt(u)>=128&&v("not-basic"),i.push(a.charCodeAt(u));for(let u=j>0?j+1:0;u<m;){const k=n;for(let l=1,b=s;;b+=s){u>=m&&v("invalid-input");const w=K(a.charCodeAt(u++));w>=s&&v("invalid-input"),w>h((e-n)/l)&&v("overflow"),n+=w*l;const x=b<=p?c:b>=p+o?o:b-p;if(w<x)break;const q=s-x;l>h(e/q)&&v("overflow"),l*=q}const f=i.length+1;p=E(n-k,f,k==0),h(n/f)>e-r&&v("overflow"),r+=h(n/f),n%=f,i.splice(n++,0,r)}return String.fromCodePoint(...i)},M=function(a){const i=[];a=D(a);const m=a.length;let n=y,r=0,p=z;for(const k of a)k<128&&i.push(O(k));const j=i.length;let u=j;for(j&&i.push(g);u<m;){let k=e;for(const l of a)l>=n&&l<k&&(k=l);const f=u+1;k-n>h((e-r)/f)&&v("overflow"),r+=(k-n)*f,n=k;for(const l of a)if(l<n&&++r>e&&v("overflow"),l===n){let b=r;for(let w=s;;w+=s){const x=w<=p?c:w>=p+o?o:w-p;if(b<x)break;const q=b-x,F=s-x;i.push(O(T(x+q%F,0))),b=h(q/F)}i.push(O(T(b,0))),p=E(r,f,u===j),r=0,++u}++r,++n}return i.join("")};return S={version:"2.3.1",ucs2:{decode:D,encode:J},decode:B,encode:M,toASCII:function(a){return L(a,function(i){return G.test(i)?"xn--"+M(i):i})},toUnicode:function(a){return L(a,function(i){return V.test(i)?B(i.slice(4).toLowerCase()):i})}},S}var Y=X();const A=Q(Y),Z=["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.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","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skyd
|