mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
2 lines
401 KiB
JavaScript
2 lines
401 KiB
JavaScript
|
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=79)}([function(e,t,n){"use strict";(function(t){var r=n(61),a=n(60),i=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function c(e){var n,r={},a=typeof(e=e||t.location||{});if("blob:"===e.protocol)r=new p(unescape(e.pathname),{});else if("string"===a)for(n in r=new p(e,{}),l)delete r[n];else if("object"===a){for(n in e)n in l||(r[n]=e[n]);void 0===r.slashes&&(r.slashes=o.test(e.href))}return r}function u(e){var t=i.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function p(e,t,n){if(!(this instanceof p))return new p(e,t,n);var i,o,l,d,f,h,g=s.slice(),m=typeof t,y=this,v=0;for("object"!==m&&"string"!==m&&(n=t,t=null),n&&"function"!=typeof n&&(n=a.parse),t=c(t),i=!(o=u(e||"")).protocol&&!o.slashes,y.slashes=o.slashes||i&&t.slashes,y.protocol=o.protocol||t.protocol||"",e=o.rest,o.slashes||(g[2]=[/(.*)/,"pathname"]);v<g.length;v++)l=(d=g[v])[0],h=d[1],l!=l?y[h]=e:"string"==typeof l?~(f=e.indexOf(l))&&("number"==typeof d[2]?(y[h]=e.slice(0,f),e=e.slice(f+d[2])):(y[h]=e.slice(f),e=e.slice(0,f))):(f=l.exec(e))&&(y[h]=f[1],e=e.slice(0,f.index)),y[h]=y[h]||i&&d[3]&&t[h]||"",d[4]&&(y[h]=y[h].toLowerCase());n&&(y.query=n(y.query)),i&&t.slashes&&"/"!==y.pathname.charAt(0)&&(""!==y.pathname||""!==t.pathname)&&(y.pathname=function(e,t){for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,a=n[r-1],i=!1,o=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),o++):o&&(0===r&&(i=!0),n.splice(r,1),o--);return i&&n.unshift(""),"."!==a&&".."!==a||n.push(""),n.join("/")}(y.pathname,t.pathname)),r(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(d=y.auth.split(":"),y.username=d[0]||"",y.password=d[1]||""),y.origin=y.protocol&&y.host&&"file:"!==y.protocol?y.protocol+"//"+y.host:"null",y.href=y.toString()}p.prototype={set:function(e,t,n){var i=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||a.parse)(t)),i[e]=t;break;case"port":i[e]=t,r(t,i.protocol)?t&&(i.host=i.hostname+":"+t):(i.host=i.hostname,i[e]="");break;case"hostname":i[e]=t,i.port&&(t+=":"+i.port),i.host=t;break;case"host":i[e]=t,/:\d+$/.test(t)?(t=t.split(":"),i.port=t.pop(),i.hostname=t.join(":")):(i.hostname=t,i.port="");break;case"protocol":i.protocol=t.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";i[e]=t.charAt(0)!==o?o+t:t}else i[e]=t;break;default:i[e]=t}for(var l=0;l<s.length;l++){var c=s[l];c[4]&&(i[c[1]]=i[c[1]].toLowerCase())}return i.origin=i.protocol&&i.host&&"file:"!==i.protocol?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(e){e&&"function"==typeof e||(e=a.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var i=r+(n.slashes?"//":"");return n.username&&(i+=n.username,n.password&&(i+=":"+n.password),i+="@"),i+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},p.extractProtocol=u,p.location=c,p.qs=a,e.exports=p}).call(this,n(62))},,,function(e,t,n){},function(e,t,n){"use strict";var r,a=n(0),i=(r=a)&&r.__esModule?r:{default:r};function o(e,t,n,r,a,o,s,l){function c(n,r,a){var s=new i.default(n),l=s.origin===e.location.origin,c=s.protocol.toLowerCase();if("javascript:"!==c&&"data:"!==c)if(l){var u=s.href.replace(e.location.origin,"").replace(/^\/#!/,""),p=o.url(u);r&&p.replace()}else a&&(!0===a||a.test(s
|
||
|
//# sourceMappingURL=index.js.map
|