Rejestracja   Zaloguj się

Fahrenheit 451 Movie 2018 Age Rating 237

Cena: 1,00 zł
Ilość: szt.

"Nolite te bastardes carborundum." (Don't let the bastards grind you down.) Me, after reading this book: "Meh!" Because so many of my esteemed Goodreads friends have sung in praise of this novel, I felt that I was destined to join their burgeoning ranks. Instead, I was left scratching my head, wondering if I'd even read the same book! I was that rarity - an Atwood virgin - and I was knee-tremblingly keen to pop my cherry. I would love to say that I was enthralled and that I am now a fan, bu "Nolite te bastardes carborundum." http://www.sci-news.com/news/biology Nominated [3] https://arxiv.org/ Modeller: Industrial Light and Magic Daniel Harkness https://brayoncatoggio1998.files.wordpress.com/2020/05/la-plume-de-marie-4563.pdf window.modules["279"] = [function(require,module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n 1){var n=t.shift();t[0]=n+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^\/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^\/:]+):\/*/,"$1://");for(var r=0;r 0&&(i=i.replace(/^[\/]+/,"")),i=r 0?"?":"")+s.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():n.urljoin=r()}),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r 1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i =48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(o):a<128?i+=s[a]:a<2048?i+=s[192|a>>6]+s[128|63&a]:a<55296||a>=57344?i+=s[224|a>>12]+s[128|a>>6&63]+s[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(o)),i+=s[240|a>>18]+s[128|a>>12&63]+s[128|a>>6&63]+s[128|63&a])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=a(e,r)),o(e)&&o(n)?(n.forEach(function(n,o){if(i.call(e,o)){var s=e[o];s&&"object"==typeof s&&n&&"object"==typeof n?e[o]=t(s,n,r):e.push(n)}else e[o]=n}),e):Object.keys(n).reduce(function(e,o){var s=n[o];return i.call(e,o)?e[o]=t(e[o],s,r):e[o]=s,e},s)}},u=String.prototype.replace,c=/%20/g,h={default:"RFC3986",formatters:{RFC1738:function(t){return u.call(t,c,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"},l=Object.prototype.hasOwnProperty,d={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},f=Array.isArray,y=Array.prototype.push,m=function(t,e){y.apply(t,f(e)?e:[e])},g=Date.prototype.toISOString,v={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:p.encode,encodeValuesOnly:!1,formatter:h.formatters[h.default],indices:!1,serializeDate:function(t){return g.call(t)},skipNulls:!1,strictNullHandling:!1},b=function t(e,n,r,i,o,s,a,u,c,h,l,d,y){var g=e;if("function"==typeof a?g=a(n,g):g instanceof Date?g=h(g):"comma"===r&&f(g)&&(g=g.join(",")),null===g){if(i)return s&&!d?s(n,v.encoder,y):n;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||p.isBuffer(g))return s?[l(d?n:s(n,v.encoder,y))+"="+l(s(g,v.encoder,y))]:[l(n)+"="+l(String(g))];var b,w=[];if(void 0===g)return w;if(f(a))b=a;else{var _=Object.keys(g);b=u?_.sort(u):_}for(var T=0;T =0;--i){var o,s=t[i];if("[]"===s&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(a,10);n.parseArrays||""!==a?!isNaN(p)&&s!==a&&String(p)===a&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(o=[])[p]=r:o[a]=r:o={0:r}}r=o}return r}(a,e,n)}},k=function(t,e){var n,r=t,i=function(t){if(!t)return v;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||v.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=h.default;if(void 0!==t.format){if(!l.call(h.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=h.formatters[n],i=v.filter;return("function"==typeof t.filter||f(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:v.addQueryPrefix,allowDots:void 0===t.allowDots?v.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:v.charsetSentinel,delimiter:void 0===t.delimiter?v.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:v.encode,encoder:"function"==typeof t.encoder?t.encoder:v.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:v.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:v.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:v.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:v.strictNullHandling}}(e);"function"==typeof i.filter?r=(0,i.filter)("",r):f(i.filter)&&(n=i.filter);var o,s=[];if("object"!=typeof r||null===r)return"";o=e&&e.arrayFormat in d?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var a=d[o];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var p=0;p 0?y+c:""},C=n(function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i =this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~A.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},D.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},D.prototype.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.end(function(n,r){n?e(n):t(r)})})}return this._fullfilledPromise.then(t,e)},D.prototype.catch=function(t){return this.then(void 0,t)},D.prototype.use=function(t){return t(this),this},D.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},D.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},D.prototype.get=function(t){return this._header[t.toLowerCase()]},D.prototype.getHeader=D.prototype.get,D.prototype.set=function(t,e){if(x(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},D.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},D.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),x(t)){for(var n in t)this.field(n,t[n]);return this}if(Array.isArray(e)){for(var r in e)this.field(t,e[r]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},D.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},D.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},D.prototype.withCredentials=function(t){return null==t&&(t=!0),this._withCredentials=t,this},D.prototype.redirects=function(t){return this._maxRedirects=t,this},D.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},D.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},D.prototype.send=function(t){var e=x(t),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&x(this._data))for(var r in t)this._data[r]=t[r];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(n||this.type("json"),this)},D.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},D.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.substring(e+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,e)+"?"+n.join("&")}}},D.prototype._appendQueryString=function(){console.trace("Unsupported")},D.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error(t+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},D.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var j=E;function E(t){if(t)return function(t){for(var e in E.prototype)t[e]=E.prototype[e];return t}(t)}function q(){this._defaults=[]}E.prototype.get=function(t){return this.header[t.toLowerCase()]},E.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=e.split(/ *; */).shift();var n=function(t){return t.split(/ *; */).reduce(function(t,e){var n=e.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(t[r]=i),t},{})}(e);for(var r in n)this[r]=n[r];this.links={};try{t.link&&(this.links=function(t){return t.split(/ *, */).reduce(function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t},{})}(t.link))}catch(t){}},E.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){q.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}}),q.prototype._setDefaults=function(t){this._defaults.forEach(function(e){t[e.fn].apply(t,e.arguments)})};for(var I=q,R=n(function(t,n){var r;function i(){}"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=e);var o=n=t.exports=function(t,e){return"function"==typeof e?new n.Request("GET",t).end(e):1==arguments.length?new n.Request("GET",t):new n.Request(t,e)};n.Request=l,o.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("Browser-only version of superagent could not find XHR")};var s="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function a(t){if(!x(t))return t;var e=[];for(var n in t)p(e,n,t[n]);return e.join("&")}function p(t,e,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){p(t,e,n)});else if(x(n))for(var r in n)p(t,e+"["+r+"]",n[r]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));else null===n&&t.push(encodeURIComponent(e))}function u(t){for(var e,n,r={},i=t.split("&"),o=0,s=i.length;o =2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],s=this._serializer||o.serialize[i?i.split(";")[0]:""];!s&&c(i)&&(s=o.serialize["application/json"]),s&&(n=s(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==n?n:null),this},o.agent=function(){return new I},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){I.prototype[t.toLowerCase()]=function(e,n){var r=new o.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}}),I.prototype.del=I.prototype.delete,o.get=function(t,e,n){var r=o("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},o.head=function(t,e,n){var r=o("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},o.options=function(t,e,n){var r=o("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},o.del=d,o.delete=d,o.patch=function(t,e,n){var r=o("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},o.post=function(t,e,n){var r=o("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},o.put=function(t,e,n){var r=o("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}}),U=(R.Request,[]),M=[],P=("undefined"!=typeof Uint8Array?Uint8Array:Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),B=0,L=P.length;B 0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function H(t,e,n){for(var r,i,o=[],s=e;s >18&63]+U[i>>12&63]+U[i>>6&63]+U[63&i]);return o.join("")}M["-".charCodeAt(0)]=62,M["_".charCodeAt(0)]=63;var W=function(t){for(var e,n=t.length,r=n%3,i=[],o=0,s=n-r;o s?s:o+16383));return 1===r?(e=t[n-1],i.push(U[e>>2]+U[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(U[e>>10]+U[e>>4&63]+U[e<<2&63]+"=")),i.join("")},F=function(t){return W(function(t){for(var e=new Array(t.length),n=0;n =65&&e<=90||!i&&e>=48&&e<=57?(n+="_",n+=t[r].toLowerCase()):n+=t[r].toLowerCase(),i=e>=48&&e<=57,o=e>=65&&e<=90,r++;return n}(i):i]=t(e[i]),r},{}))},toCamelCase:function t(e,n,r){return"object"!=typeof e||Q.isArray(e)||null===e?e:(n=n||[],r=r||{},Object.keys(e).reduce(function(i,o){var s,a=-1===n.indexOf(o)?(s=o.split("_")).reduce(function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)},s.shift()):o;return i[a]=t(e[a]||e[o],[],r),r.keepOriginal&&(i[o]=t(e[o],[],r)),i},{}))},blacklist:function(t,e){return Object.keys(t).reduce(function(n,r){return-1===e.indexOf(r)&&(n[r]=t[r]),n},{})},merge:function(t,e){return{base:e?G(t,e):t,with:function(t,e){return t=e?G(t,e):t,Y(this.base,t)}}},pick:G,getKeysNotIn:function(t,e){var n=[];for(var r in t)-1===e.indexOf(r)&&n.push(r);return n},extend:Y,getOriginFromUrl:function(t){if(t){var e=tt(t),n=e.protocol+"//"+e.hostname;return e.port&&(n+=":"+e.port),n}},getLocationFromUrl:tt,trimUserDetails:function(t){return function(t,e){return["username","email","phoneNumber"].reduce(et,t)}(t)}};function rt(t){this.request=t,this.method=t.method,this.url=t.url,this.body=t._data,this.headers=t._header}function it(t){this.request=t}function ot(t){this._sendTelemetry=!1!==t._sendTelemetry||t._sendTelemetry,this._telemetryInfo=t._telemetryInfo||null,this._timesToRetryFailedRequests=t._timesToRetryFailedRequests,this.headers=t.headers||{},this._universalLoginPage=t.universalLoginPage}function st(){return window}rt.prototype.abort=function(){this.request.abort()},rt.prototype.getMethod=function(){return this.method},rt.prototype.getBody=function(){return this.body},rt.prototype.getUrl=function(){return this.url},rt.prototype.getHeaders=function(){return this.headers},it.prototype.set=function(t,e){return this.request=this.request.set(t,e),this},it.prototype.send=function(t){return this.request=this.request.send(nt.trimUserDetails(t)),this},it.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},it.prototype.end=function(t){return this.request=this.request.end(t),new rt(this.request)},ot.prototype.setCommonConfiguration=function(t,e){if(e=e||{},this._timesToRetryFailedRequests>0&&(t=t.retry(this._timesToRetryFailedRequests)),e.noHeaders)return t;var n=this.headers;t=t.set("Content-Type","application/json");for(var r=Object.keys(this.headers),i=0;i 1){if("number"==typeof(o=t({path:"/"},r.defaults,o)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(t){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var p="";for(var u in o)o[u]&&(p+="; "+u,!0!==o[u]&&(p+="="+o[u]));return document.cookie=e+"="+i+p}e||(s={});for(var c=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,l=0;l 0&&t.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),e},Tt="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ot(t,e){return t(e={exports:{}},e.exports),e.exports}var kt=Ot(function(t,e){var n;t.exports=n=n||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||p).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o >>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(o=0;o >>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=function(e){e=e;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o >>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r >>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},u=a.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i >>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r >>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},c=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,a=i/(4*o),p=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*o,u=t.min(4*p,i);if(p){for(var c=0;c >>7)^(f<<14|f>>>18)^f>>>3)+u[d-7]+((y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10)+u[d-16]}var m=r&i^r&o^i&o,g=l+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&c^~a&h)+p[d]+u[d];l=h,h=c,c=a,a=s+g|0,s=o,o=i,i=r,r=g+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+l|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(c),e.HmacSHA256=o._createHmacHelper(c)}(Math),n.SHA256)}),xt=Ot(function(t,e){var n,r;t.exports=(r=(n=kt).lib.WordArray,n.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o >>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a >>6*(3-a)&63));var p=r.charAt(64);if(p)for(;i.length%4;)i.push(p);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o >>6-s%4*2;i[o>>>2]|=(a|p)<<24-o%4*8,o++}return r.create(i,o)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}),St=Ot(function(t,e){t.exports=kt.enc.Hex}),Dt=Ot(function(t,e){(function(){var e;function n(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):this.fromString(t,null==e&&"string"!=typeof t?256:e))}function r(){return new n(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(t,e,n,r,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var p=32767&this[t],u=this[t++]>>15,c=a*p+u*s;i=((p=s*p+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+a*u+(i>>>30),n[r++]=1073741823&p}return i},e=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},e=26):(n.prototype.am=function(t,e,n,r,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var p=16383&this[t],u=this[t++]>>14,c=a*p+u*s;i=((p=s*p+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+a*u,n[r++]=268435455&p}return i},e=28),n.prototype.DB=e,n.prototype.DM=(1< >>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function d(t){this.m=t}function f(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1< >=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function w(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function _(){}function T(t){return t}function O(t){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}d.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},d.prototype.revert=function(t){return t},d.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},d.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},f.prototype.convert=function(t){var e=r();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},f.prototype.revert=function(t){var e=r();return t.copyTo(e),this.reduce(e),e},f.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e >15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},f.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},f.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=8==r?255&t[i]:c(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1< >this.DB-s):this[this.t-1]|=a< =this.DB&&(s-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1< 0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var n=t;n =0;--n)e[n+s+1]=this[n]>>i|a,a=(this[n]&o)< =0;--n)e[n]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1< >r;for(var s=n+1;s >r;r>0&&(e[this.t-n-1]|=(this.s&o)< >=this.DB;if(t.t >=this.DB;r+=this.s}else{for(r+=this.s;n >=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),o=r.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o =0;)t[n]=0;for(n=0;n =e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t 0?(o.lShiftTo(c,a),s.lShiftTo(c,i)):(o.copyTo(a),s.copyTo(i));var h=a.t,d=a[h-1];if(0!=d){var f=d*(1< 1?a[h-2]>>this.F2:0),y=this.FV/f,m=(1< =0&&(i[i.t++]=1,i.subTo(w,i)),n.ONE.dlShiftTo(h,w),w.subTo(a,a);a.t =0;){var _=i[--v]==d?this.DM:Math.floor(i[v]*y+(i[v-1]+g)*m);if((i[v]+=a.am(0,_,i,b,0,h)) 0&&i.rShiftTo(c,i),p<0&&n.ZERO.subTo(i,i)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var i=r(),o=r(),s=e.convert(this),a=l(t)-1;for(s.copyTo(i);--a>=0;)if(e.sqrTo(i,o),(t&1< 0)e.mulTo(o,s,i);else{var p=i;i=o,o=p}return e.revert(i)},n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1< 0)for(a >a)>0&&(i=!0,o=u(n));s>=0;)a >(a+=this.DB-e)):(n=this[s]>>(a-=e)&r,a<=0&&(a+=this.DB,--s)),n>0&&(i=!0),i&&(o+=u(n));return i?o:"0"},n.prototype.negate=function(){var t=r();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+l(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=r();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new d(e):new f(e),this.exp(t,n)},n.ZERO=h(0),n.ONE=h(1),_.prototype.convert=T,_.prototype.revert=T,_.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},_.prototype.sqrTo=function(t,e){t.squareTo(e)},O.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=r();return t.copyTo(e),this.reduce(e),e},O.prototype.revert=function(t){return t},O.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},O.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},O.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var k,C,x,S=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/S[S.length-1];function A(){var t;t=(new Date).getTime(),C[x++]^=255&t,C[x++]^=t>>8&255,C[x++]^=t>>16&255,C[x++]^=t>>24&255,x>=M&&(x-=M)}if(n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=h(n),o=r(),s=r(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(n+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},n.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),o=!1,s=0,a=0,p=0;p =r&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1< >=this.DB;if(t.t >=this.DB;r+=this.s}else{for(r+=this.s;n >=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,n){var r,i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i =0;)n[r]=0;for(r=Math.max(e-this.t,0);r 0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var o=e.shiftRight(i);(t=t+1>>1)>S.length&&(t=S.length);for(var s=r(),a=0;a >24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r >r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s< =0;)r<8?(n=(this[t]&(1< >(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},n.prototype.equals=function(t){return 0==this.compareTo(t)},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=r();return this.bitwiseTo(t,y,e),e},n.prototype.or=function(t){var e=r();return this.bitwiseTo(t,m,e),e},n.prototype.xor=function(t){var e=r();return this.bitwiseTo(t,g,e),e},n.prototype.andNot=function(t){var e=r();return this.bitwiseTo(t,v,e),e},n.prototype.not=function(){for(var t=r(),e=0;e =this.t?0!=this.s:0!=(this[e]&1< 1){var y=r();for(i.sqrTo(a[1],y);p<=c;)a[p]=r(),i.mulTo(y,a[p-2],a[p]),p+=2}var m,g,v=t.t-1,b=!0,w=r();for(o=l(t[v])-1;v>=0;){for(o>=u?m=t[v]>>o-u&c:(m=(t[v]&(1< 0&&(m|=t[v-1]>>this.DB+o-u)),p=n;0==(1&m);)m>>=1,--p;if((o-=p)<0&&(o+=this.DB,--v),b)a[m].copyTo(s),b=!1;else{for(;p>1;)i.sqrTo(s,w),i.sqrTo(w,s),p-=2;p>0?i.sqrTo(s,w):(g=s,s=w,w=g),i.mulTo(w,a[m],s)}for(;v>=0&&0==(t[v]&1< =0?(r.subTo(i,r),e&&o.subTo(a,o),s.subTo(p,s)):(i.subTo(r,i),e&&a.subTo(o,a),p.subTo(s,p))}return 0!=i.compareTo(n.ONE)?n.ZERO:p.compareTo(t)>=0?p.subtract(t):p.signum()<0?(p.addTo(t,p),p.signum()<0?p.add(t):p):p},n.prototype.pow=function(t){return this.exp(t,new _)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i 0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},n.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=S[S.length-1]){for(e=0;e >>8,C[x++]=255&j;x=0,A()}function I(){if(null==k){for(A(),(k=new U).init(C),x=0;x 0&&e.length>0))throw new Error("Invalid key data");this.n=new Dt(t,16),this.e=parseInt(e,16)}Et.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new Dt(e,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=function(t){for(var e in At){var n=At[e],r=n.length;if(t.substring(0,r)===n)return{alg:e,hash:t.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!jt.hasOwnProperty(r.alg))throw new Error("Hashing algorithm is not supported.");var i=jt[r.alg](t).toString();return r.hash===i};for(var qt=[],It=[],Rt="undefined"!=typeof Uint8Array?Uint8Array:Array,Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mt=0,Pt=Ut.length;Mt 0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function Lt(t,e,n){for(var r,i=[],o=e;o >18&63]+qt[r>>12&63]+qt[r>>6&63]+qt[63&r]);return i.join("")}It["-".charCodeAt(0)]=62,It["_".charCodeAt(0)]=63;var Nt={byteLength:function(t){return 3*t.length/4-Bt(t)},toByteArray:function(t){var e,n,r,i,o,s,a=t.length;o=Bt(t),s=new Rt(3*a/4-o),r=o>0?a-4:a;var p=0;for(e=0,n=0;e >16&255,s[p++]=i>>8&255,s[p++]=255&i;return 2===o?(i=It[t.charCodeAt(e)]<<2|It[t.charCodeAt(e+1)]>>4,s[p++]=255&i):1===o&&(i=It[t.charCodeAt(e)]<<10|It[t.charCodeAt(e+1)]<<4|It[t.charCodeAt(e+2)]>>2,s[p++]=i>>8&255,s[p++]=255&i),s},fromByteArray:function(t){for(var e,n=t.length,r=n%3,i="",o=[],s=0,a=n-r;s a?a:s+16383));return 1===r?(i+=qt[(e=t[n-1])>>2],i+=qt[e<<4&63],i+="=="):2===r&&(i+=qt[(e=(t[n-2]<<8)+t[n-1])>>10],i+=qt[e>>4&63],i+=qt[e<<2&63],i+="="),o.push(i),o.join("")}};function Ht(t){var e=t.length%4;return 0===e?t:t+new Array(4-e+1).join("=")}function Wt(t){return t=Ht(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(t){for(var e="",n=0;n 300)throw new ne("The leeway should be positive and lower than five minutes.");if(-1===oe.indexOf(this.expectedAlg))throw new ne("Algorithm "+this.expectedAlg+" is not supported. (Expected algs: ["+oe.join(",")+"])")}function ae(t,e){this.plugins=e;for(var n=0;n r?new re("Expired token."):void 0===e?null:(i.setUTCSeconds(e-this.leeway),n r?new re("Expired token."):(i.setUTCSeconds(e-this.leeway),n -1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1)),t>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(o,s){if(!s)throw"missing required callback argument";var a,p;o.url||(a="missing required 'url' parameter"),o.relay_url||(a="missing required 'relay_url' parameter"),a&&setTimeout(function(){s(a)},0),o.window_name||(o.window_name=null),o.window_features&&!function(){try{var t=navigator.userAgent;return-1!=t.indexOf("Fennec/")||-1!=t.indexOf("Firefox/")&&-1!=t.indexOf("Android")}catch(t){}return!1}()||(o.window_features=void 0);var u,c=o.origin||r(o.url);if(c!==r(o.relay_url))return setTimeout(function(){s("invalid arguments: origin of url and relay_url must match")},0);i&&((p=document.createElement("iframe")).setAttribute("src",o.relay_url),p.style.display="none",p.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(p),u=p.contentWindow);var h=o.popup||window.open(o.url,o.window_name,o.window_features);o.popup&&(h.location.href=o.url),u||(u=h);var l=setInterval(function(){h&&h.closed&&(f(),s&&(s("User closed the popup window"),s=null))},500),d=JSON.stringify({a:"request",d:o.params});function f(){if(p&&document.body.removeChild(p),p=void 0,l&&(l=clearInterval(l)),n(window,"message",y),n(window,"unload",f),h)try{h.close()}catch(e){u.postMessage(t,c)}h=u=void 0}function y(t){if(t.origin===c){try{var e=JSON.parse(t.data)}catch(t){if(s)return s(t);throw t}"ready"===e.a?u.postMessage(d,c):"error"===e.a?(f(),s&&(s(e.d),s=null)):"response"===e.a&&(f(),s&&(s(null,e.d),s=null))}}return e(window,"unload",f),e(window,"message",y),{originalPopup:h,close:f,focus:function(){if(h)try{h.focus()}catch(t){}}}},onOpen:function(r){var o="*",s=i?function(){window.location;for(var t=window.opener.frames,e=t.length-1;e>=0;e--)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&"__winchan_relay_frame"===t[e].name)return t[e]}catch(t){}}():window.opener;if(!s)throw"can't find relay frame";function a(t){t=JSON.stringify(t),i?s.doPost(t,o):s.postMessage(t,o)}function p(e){if(e.data===t)try{window.close()}catch(t){}}e(i?s:window,"message",function t(e){var i;try{i=JSON.parse(e.data)}catch(t){}i&&"request"===i.a&&(n(window,"message",t),o=e.origin,r&&setTimeout(function(){r(o,i.d,function(t){r=void 0,a({a:"response",d:t})})},0))}),e(i?s:window,"message",p);try{a({a:"ready"})}catch(t){e(s,"load",function(t){a({a:"ready"})})}var u=function(){try{n(i?s:window,"message",p)}catch(t){}r&&a({a:"error",d:"client closed window"}),r=void 0;try{window.close()}catch(t){}};return e(window,"unload",u),{detach:function(){n(window,"unload",u)}}}}:{open:function(t,e,n,r){setTimeout(function(){r("unsupported browser")},0)},onOpen:function(t){setTimeout(function(){t("unsupported browser")},0)}}}();t.exports&&(t.exports=e)}),ge=function(t){/^https?:\/\//.test(t)||(t=window.location.href);var e=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(t);return e?e[1]:t};function ve(){this._current_popup=null}function be(t,e){this.baseOptions=e,this.baseOptions.popupOrigin=e.popupOrigin,this.client=t.client,this.webAuth=t,this.transactionManager=new ce(this.baseOptions),this.crossOriginAuthentication=new de(t,this.baseOptions),this.warn=new ht({disableWarnings:!!e._disableDeprecationWarnings})}function we(t){this.authenticationUrl=t.authenticationUrl,this.timeout=t.timeout||6e4,this.handler=null,this.postMessageDataType=t.postMessageDataType||!1,this.postMessageOrigin=t.postMessageOrigin||at.getWindow().location.origin||at.getWindow().location.protocol+"//"+at.getWindow().location.hostname+(at.getWindow().location.port?":"+at.getWindow().location.port:"")}function _e(t){this.baseOptions=t,this.request=new ot(t),this.transactionManager=new ce(this.baseOptions)}function Te(t,e){this.baseOptions=e,this.client=t,this.baseOptions.universalLoginPage=!0,this.request=new ot(this.baseOptions),this.warn=new ht({disableWarnings:!!e._disableDeprecationWarnings})}function Oe(t){Q.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),t.overrides&&Q.check(t.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=t,this.baseOptions.plugins=new ae(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=t._timesToRetryFailedRequests?parseInt(t._timesToRetryFailedRequests,0):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,this.transactionManager=new ce(this.baseOptions),this.client=new xe(this.baseOptions),this.redirect=new ye(this,this.baseOptions),this.popup=new be(this,this.baseOptions),this.crossOriginAuthentication=new de(this,this.baseOptions),this.webMessageHandler=new le(this),this._universalLogin=new Te(this,this.baseOptions),this.ssodataStorage=new ft(this.baseOptions)}function ke(t,e){this.baseOptions=e,this.request=t}function Ce(t,e){this.baseOptions=e,this.request=t}function xe(t,e){2===arguments.length?this.auth0=t:e=t,Q.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl="https://"+this.baseOptions.domain,this.request=new ot(this.baseOptions),this.passwordless=new ke(this.request,this.baseOptions),this.dbConnection=new Ce(this.request,this.baseOptions),this.warn=new ht({disableWarnings:!!e._disableDeprecationWarnings}),this.ssodataStorage=new ft(this.baseOptions)}function Se(t){Q.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new ot(this.baseOptions),this.baseOptions.rootUrl=r("https://"+this.baseOptions.domain,"api","v2")}ve.prototype.calculatePosition=function(t){var e=t.width||500,n=t.height||600,r=at.getWindow(),i=void 0!==r.screenX?r.screenX:r.screenLeft,o=void 0!==r.screenY?r.screenY:r.screenTop,s=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,a=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:e,height:n,left:t.left||i+(s-e)/2,top:t.top||o+(a-n)/2}},ve.prototype.preload=function(t){var e=this,n=at.getWindow(),r=this.calculatePosition(t.popupOptions||{}),i=nt.merge(r).with(t.popupOptions),o=t.url||"about:blank",s=k(i,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed?this._current_popup:(this._current_popup=n.open(o,"auth0_signup_popup",s),this._current_popup.kill=function(){this.close(),e._current_popup=null},this._current_popup)},ve.prototype.load=function(t,e,n,r){var i=this,o=this.calculatePosition(n.popupOptions||{}),s=nt.merge(o).with(n.popupOptions),a=nt.merge({url:t,relay_url:e,window_features:k(s,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),p=me.open(a,function(t,e){if(!t||"SyntaxError"!==t.name)return i._current_popup=null,r(t,e)});return p.focus(),p},be.prototype.buildPopupHandler=function(){var t=this.baseOptions.plugins.get("popup.getPopupHandler");return t?t.getPopupHandler():new ve},be.prototype.preload=function(t){t=t||{};var e=this.buildPopupHandler();return e.preload(t),e},be.prototype.getPopupHandler=function(t,e){return t.popupHandler?t.popupHandler:e?this.preload(t):this.buildPopupHandler()},be.prototype.callback=function(t){var e=this,n=at.getWindow(),r=(t=t||{}).popupOrigin||this.baseOptions.popupOrigin||at.getOrigin();n.opener?me.onOpen(function(n,i,o){if(n!==r)return o({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});e.webAuth.parseHash(t||{},function(t,e){return o(t||e)})}):n.doPost=function(t){n.parent&&n.parent.postMessage(t,r)}},be.prototype.authorize=function(t,e){var n,i,o={},s=this.baseOptions.plugins.get("popup.authorize"),a=nt.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce"]).with(nt.blacklist(t,["popupHandler"]));return Q.check(a,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),i=r(this.baseOptions.rootUrl,"relay.html"),t.owp?a.owp=!0:(o.origin=ge(a.redirectUri),i=a.redirectUri),t.popupOptions&&(o.popupOptions=nt.pick(t.popupOptions,["width","height","top","left"])),s&&(a=s.processParams(a)),(a=this.transactionManager.process(a)).scope=a.scope||"openid profile email",delete a.domain,n=this.client.buildAuthorizeUrl(a),this.getPopupHandler(t).load(n,i,o,gt(e,{keepOriginalCasing:!0}))},be.prototype.loginWithCredentials=function(t,e){t.realm=t.realm||t.connection,t.popup=!0,t=nt.merge(this.baseOptions,["redirectUri","responseType","state","nonce"]).with(nt.blacklist(t,["popupHandler","connection"])),t=this.transactionManager.process(t),this.crossOriginAuthentication.login(t,e)},be.prototype.passwordlessVerify=function(t,e){var n=this;return this.client.passwordless.verify(nt.blacklist(t,["popupHandler"]),function(r){if(r)return e(r);t.username=t.phoneNumber||t.email,t.password=t.verificationCode,delete t.email,delete t.phoneNumber,delete t.verificationCode,delete t.type,n.client.loginWithResourceOwner(t,e)})},be.prototype.signupAndLogin=function(t,e){var n=this;return this.client.dbConnection.signup(t,function(r){if(r)return e(r);n.loginWithCredentials(t,e)})},we.create=function(t){return new we(t)},we.prototype.login=function(t,e){this.handler=new he({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:t?"message":"load",callback:this.getCallbackHandler(e,t),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){e(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:t||!1}),this.handler.init()},we.prototype.getEventValidator=function(){var t=this;return{isValid:function(e){switch(e.event.type){case"message":return e.event.origin===t.postMessageOrigin&&e.event.source===t.handler.iframe.contentWindow&&(!1===t.postMessageDataType||e.event.data.type&&e.event.data.type===t.postMessageDataType);case"load":if("about:"===e.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},we.prototype.getCallbackHandler=function(t,e){return function(n){var r;r=e?"object"==typeof n.event.data&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash,t(null,r)}},_e.prototype.login=function(t,e){var n,i;return n=r(this.baseOptions.rootUrl,"usernamepassword","login"),t.username=t.username||t.email,t=nt.blacklist(t,["email"]),i=nt.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(t),i=this.transactionManager.process(i),i=nt.toSnakeCase(i,["auth0Client"]),this.request.post(n).send(i).end(gt(e))},_e.prototype.callback=function(t){var e,n=at.getDocument();(e=n.createElement("div")).innerHTML=t,n.body.appendChild(e).children[0].submit()},Te.prototype.login=function(t,e){if(at.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var n,r=nt.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(t);return Q.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new _e(this.baseOptions)).login(r,function(t,r){return t?e(t):n.callback(r)})},Te.prototype.signupAndLogin=function(t,e){var n=this;return n.client.client.dbConnection.signup(t,function(r){return r?e(r):n.login(t,e)})},Te.prototype.getSSOData=function(t,e){var n,i="";return"function"==typeof t&&(e=t,t=!1),Q.check(t,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),t&&(i="?"+k({ldaps:1,client_id:this.baseOptions.clientID})),n=r(this.baseOptions.rootUrl,"user","ssodata",i),this.request.get(n,{noHeaders:!0}).withCredentials().end(gt(e))},Oe.prototype.parseHash=function(t,e){var n,r;e||"function"!=typeof t?t=t||{}:(e=t,t={});var i=at.getWindow(),o=void 0===t.hash?i.location.hash:t.hash;if((n=function(t,e){var n=function(t){if(!t)return _;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?_.charset:t.charset;return{allowDots:void 0===t.allowDots?_.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:_.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:_.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:_.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:_.comma,decoder:"function"==typeof t.decoder?t.decoder:_.decoder,delimiter:"string"==typeof t.delimiter||p.isRegExp(t.delimiter)?t.delimiter:_.delimiter,depth:"number"==typeof t.depth?t.depth:_.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:_.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:_.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:_.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:_.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof t?function(t,e){var n,r={},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=e.parameterLimit===1/0?void 0:e.parameterLimit,s=i.split(e.delimiter,o),a=-1,u=e.charset;if(e.charsetSentinel)for(n=0;n -1&&(h=h.split(",")),w.call(r,c)?r[c]=p.combine(r[c],h):r[c]=h}return r}(t,n):t,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s 0&&-1!==s.indexOf("token")&&!n.hasOwnProperty("access_token")?e(mt.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):s.length>0&&-1!==s.indexOf("id_token")&&!n.hasOwnProperty("id_token")?e(mt.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(t,n,e)},Oe.prototype.validateAuthenticationResponse=function(t,e,n){var r=this;t.__enableIdPInitiatedLogin=t.__enableIdPInitiatedLogin||t.__enableImpersonation;var i=e.state,o=this.transactionManager.getStoredTransaction(i),s=t.state||o&&o.state||null,a=s===i;if((i||s||!t.__enableIdPInitiatedLogin)&&!a)return n({error:"invalid_token",errorDescription:"`state` does not match."});var p=t.nonce||o&&o.nonce||null,u=t.state||o&&o.appState||null,c=function(t,i){return t?n(t):(o&&o.lastUsedConnection&&(i&&(s=i.sub),r.ssodataStorage.set(o.lastUsedConnection,s)),n(null,function(t,e,n){return{accessToken:t.access_token||null,idToken:t.id_token||null,idTokenPayload:n||null,appState:e||null,refreshToken:t.refresh_token||null,state:t.state||null,expiresIn:t.expires_in?parseInt(t.expires_in,10):null,tokenType:t.token_type||null,scope:t.scope||null}}(e,u,i)));var s};return e.id_token?this.validateToken(e.id_token,p,function(t,n){if(!t)return e.access_token&&n.at_hash?(new se).validateAccessToken(e.access_token,"RS256",n.at_hash,function(t){return t?c(mt.invalidToken(t.message)):c(null,n)}):c(null,n);if("invalid_token"!==t.error||"Nonce does not match."===t.errorDescription)return c(t);var i=(new se).decode(e.id_token);return"HS256"!==i.header.alg?c(t):(i.payload.nonce||null)!==p?c({error:"invalid_token",errorDescription:"Nonce does not match."}):e.access_token?r.client.userInfo(e.access_token,function(t,e){return t?c(t):c(null,e)}):c({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can’t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})}):c(null,null)},Oe.prototype.validateToken=function(t,e,n){new se({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||0,__disableExpirationCheck:this.baseOptions.__disableExpirationCheck}).verify(t,e,function(t,e){if(t)return n(mt.invalidToken(t.message));n(null,e)})},Oe.prototype.renewAuth=function(t,e){var n=!!t.usePostMessage,r=t.postMessageDataType||!1,i=t.postMessageOrigin||at.getWindow().origin,o=t.timeout,s=this,a=nt.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(t);a.responseType=a.responseType||"token",a.responseMode=a.responseMode||"fragment",a=this.transactionManager.process(a),Q.check(a,{type:"object",message:"options parameter is not valid"}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),a.prompt="none",a=nt.blacklist(a,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),we.create({authenticationUrl:this.client.buildAuthorizeUrl(a),postMessageDataType:r,postMessageOrigin:i,timeout:o}).login(n,function(t,n){if("object"==typeof n)return e(t,n);s.parseHash({hash:n},e)})},Oe.prototype.checkSession=function(t,e){var n=nt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t);return"code"===n.responseType?e({error:"error",error_description:"responseType can't be `code`"}):(t.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(Q.check(n,{type:"object",message:"options parameter is not valid"}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=nt.blacklist(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,gt(e,{forceLegacyError:!0,ignoreCasing:!0}))):e({error:"error",error_description:"redirectUri can't be empty"}))},Oe.prototype.changePassword=function(t,e){return this.client.dbConnection.changePassword(t,e)},Oe.prototype.passwordlessStart=function(t,e){var n=nt.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t.authParams);return t.authParams=this.transactionManager.process(n),this.client.passwordless.start(t,e)},Oe.prototype.signup=function(t,e){return this.client.dbConnection.signup(t,e)},Oe.prototype.authorize=function(t){var e=nt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t);Q.check(e,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(e=this.transactionManager.process(e)).scope=e.scope||"openid profile email",at.redirect(this.client.buildAuthorizeUrl(e))},Oe.prototype.signupAndAuthorize=function(t,e){var n=this;return this.client.dbConnection.signup(nt.blacklist(t,["popupHandler"]),function(r){if(r)return e(r);t.realm=t.connection,t.username||(t.username=t.email),n.client.login(t,e)})},Oe.prototype.login=function(t,e){var n=nt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t);n=this.transactionManager.process(n),at.getWindow().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,e)):this.crossOriginAuthentication.login(n,e)},Oe.prototype.passwordlessLogin=function(t,e){var n=nt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t);if(n=this.transactionManager.process(n),at.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(n,e);else{var r=nt.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},nt.blacklist(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,e)}},Oe.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},Oe.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},Oe.prototype.logout=function(t){at.redirect(this.client.buildLogoutUrl(t))},Oe.prototype.passwordlessVerify=function(t,e){var n=this,r=nt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(t);return Q.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,function(t){return t?e(t):at.redirect(n.client.passwordless.buildVerifyUrl(r))})},ke.prototype.buildVerifyUrl=function(t){var e,n;return Q.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),e=nt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(t),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=nt.toSnakeCase(e,["auth0Client"]),n=k(e),r(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},ke.prototype.start=function(t,e){var n,i;return Q.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(t){return"code"===t.send||!t.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(t){return"link"===t.send||!t.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"passwordless","start"),(i=nt.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(t)).scope&&(i.authParams=i.authParams||{},i.authParams.scope=i.scope),i.redirectUri&&(i.authParams=i.authParams||{},i.authParams.redirect_uri=i.redirectUri),i.responseType&&(i.authParams=i.authParams||{},i.authParams.response_type=i.responseType),delete i.redirectUri,delete i.responseType,delete i.scope,i=nt.toSnakeCase(i,["auth0Client","authParams"]),this.request.post(n).send(i).end(gt(e))},ke.prototype.verify=function(t,e){var n,i;return Q.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(t){return!t.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(t){return!t.phoneNumber}}}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),i=nt.pick(t,["connection","verificationCode","phoneNumber","email","auth0Client"]),i=nt.toSnakeCase(i,["auth0Client"]),n=r(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(i).end(gt(e))},Ce.prototype.signup=function(t,e){var n,i,o;return Q.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"dbconnections","signup"),o=(i=nt.merge(this.baseOptions,["clientID"]).with(t)).user_metadata||i.userMetadata,i=nt.blacklist(i,["scope","userMetadata","user_metadata"]),i=nt.toSnakeCase(i,["auth0Client"]),o&&(i.user_metadata=o),this.request.post(n).send(i).end(gt(e))},Ce.prototype.changePassword=function(t,e){var n,i;return Q.check(t,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"dbconnections","change_password"),i=nt.merge(this.baseOptions,["clientID"]).with(t,["email","connection"]),i=nt.toSnakeCase(i,["auth0Client"]),this.request.post(n).send(i).end(gt(e))},xe.prototype.buildAuthorizeUrl=function(t){var e,n;return Q.check(t,{type:"object",message:"options parameter is not valid"}),e=nt.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(t),Q.check(e,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(t){return-1===t.responseType.indexOf("code")&&-1!==t.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e.connection_scope&&Q.isArray(e.connection_scope)&&(e.connection_scope=e.connection_scope.join(",")),e=nt.blacklist(e,["username","popupOptions","domain","tenant","timeout","appState"]),e=nt.toSnakeCase(e,["auth0Client"]),e=_t(this.warn,e),n=k(e),r(this.baseOptions.rootUrl,"authorize","?"+n)},xe.prototype.buildLogoutUrl=function(t){var e,n;return Q.check(t,{optional:!0,type:"object",message:"options parameter is not valid"}),e=nt.merge(this.baseOptions,["clientID"]).with(t||{}),this.baseOptions._sendTelemetry&&(e.auth0Client=this.request.getTelemetryData()),e=nt.toSnakeCase(e,["auth0Client","returnTo"]),n=k(nt.blacklist(e,["federated"])),t&&void 0!==t.federated&&!1!==t.federated&&"false"!==t.federated&&(n+="&federated"),r(this.baseOptions.rootUrl,"v2","logout","?"+n)},xe.prototype.loginWithDefaultDirectory=function(t,e){return Q.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="password",this.oauthToken(t,e)},xe.prototype.login=function(t,e){return Q.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),t.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(t,e)},xe.prototype.oauthToken=function(t,e){var n,i;return Q.check(t,{type:"object",message:"options parameter is not valid"}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"oauth","token"),i=nt.merge(this.baseOptions,["clientID","scope","audience"]).with(t),Q.check(i,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),i=nt.toSnakeCase(i,["auth0Client"]),i=wt(this.warn,i),this.request.post(n).send(i).end(gt(e))},xe.prototype.loginWithResourceOwner=function(t,e){var n,i;return Q.check(t,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"oauth","ro"),i=nt.merge(this.baseOptions,["clientID","scope"]).with(t,["username","password","scope","connection","device"]),(i=nt.toSnakeCase(i,["auth0Client"])).grant_type=i.grant_type||"password",this.request.post(n).send(i).end(gt(e))},xe.prototype.getSSOData=function(t,e){if(this.auth0||(this.auth0=new Oe(this.baseOptions)),at.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(t,e);"function"==typeof t&&(e=t),Q.check(e,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},function(t,i){return t?"login_required"===t.error?e(null,{sso:!1}):("consent_required"===t.error&&(t.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),e(t,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==i.idTokenPayload.sub?e(t,{sso:!1}):e(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:i.idTokenPayload.sub,lastUsedUsername:i.idTokenPayload.email||i.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})})},xe.prototype.userInfo=function(t,e){var n;return Q.check(t,{type:"string",message:"accessToken parameter is not valid"}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+t).end(gt(e,{ignoreCasing:!0}))},xe.prototype.delegation=function(t,e){var n,i;return Q.check(t,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"delegation"),i=nt.merge(this.baseOptions,["clientID"]).with(t),i=nt.toSnakeCase(i,["auth0Client"]),this.request.post(n).send(i).end(gt(e))},xe.prototype.getUserCountry=function(t){var e;return Q.check(t,{type:"function",message:"cb parameter is not valid"}),e=r(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(e).end(gt(t))},Se.prototype.getUser=function(t,e){var n;return Q.check(t,{type:"string",message:"userId parameter is not valid"}),Q.check(e,{type:"function",message:"cb parameter is not valid"}),n=r(this.baseOptions.rootUrl,"users",t),this.request.get(n).end(gt(e,{ignoreCasing:!0}))},Se.prototype.patchUserMetadata=function(t,e,n){var i;return Q.check(t,{type:"string",message:"userId parameter is not valid"}),Q.check(e,{type:"object",message:"userMetadata parameter is not valid"}),Q.check(n,{type:"function",message:"cb parameter is not valid"}),i=r(this.baseOptions.rootUrl,"users",t),this.request.patch(i).send({user_metadata:e}).end(gt(n,{ignoreCasing:!0}))},Se.prototype.patchUserAttributes=function(t,e,n){var i;return Q.check(t,{type:"string",message:"userId parameter is not valid"}),Q.check(e,{type:"object",message:"user parameter is not valid"}),Q.check(n,{type:"function",message:"cb parameter is not valid"}),i=r(this.baseOptions.rootUrl,"users",t),this.request.patch(i).send(e).end(gt(n,{ignoreCasing:!0}))},Se.prototype.linkUser=function(t,e,n){var i;return Q.check(t,{type:"string",message:"userId parameter is not valid"}),Q.check(e,{type:"string",message:"secondaryUserToken parameter is not valid"}),Q.check(n,{type:"function",message:"cb parameter is not valid"}),i=r(this.baseOptions.rootUrl,"users",t,"identities"),this.request.post(i).send({link_with:e}).end(gt(n,{ignoreCasing:!0}))};var De={Authentication:xe,Management:Se,WebAuth:Oe,version:V};t.Authentication=xe,t.Management=Se,t.WebAuth=Oe,t.default=De,t.version=V,Object.defineProperty(t,"__esModule",{value:!0})}); By NYC Schools Chancellor Carmen Fariña