Because of the limitation of shell, i change the bash to zsh.
Thanks to @clowwindy's reminder, X-level domain validation is added, the xld list is downloaded from https://publicsuffix.org/list/effective_tld_names.dat
All domains will be uniqued in the pac file.