@liquidcommercedev/rmn-sdk 1.1.6 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/index.d.ts +37 -38
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
var e,t,n;!function(e){e.BILLBOARD="billboard",e.LARGE_RECTANGLE="largeRectangle",e.VERTICAL_RECTANGLE="verticalRectangle",e.SQUARE="square",e.LARGE_LEADERBOARD="largeLeaderboard",e.WIDE_SKYSCRAPER="wideSkyscraper",e.IN_TEXT="inText",e.SMALL_RECTANGLE="smallRectangle",e.MEDIUM_RECTANGLE="mediumRectangle",e.BANNER="banner",e.LEADERBOARD="leaderboard",e.SKYSCRAPER="skyscraper",e.HALF_PAGE="halfPage",e.SMALL_SQUARE="smallSquare",e.VERTICAL_BANNER="verticalBanner",e.BUTTON_2="button2",e.MICRO_BAR="microBar",e.POP_UP="popUp",e.PORTRAIT="portrait",e.SMARTPHONE_BANNER_1="smartphoneBanner1",e.SMARTPHONE_BANNER_2="smartphoneBanner2",e.MOBILE_PHONE_INTERSTITIAL_1="mobilePhoneInterstitial1",e.MOBILE_PHONE_INTERSTITIAL_2="mobilePhoneInterstitial2",e.MOBILE_PHONE_INTERSTITIAL_3="mobilePhoneInterstitial3",e.FEATURE_PHONE_SMALL_BANNER="featurePhoneSmallBanner",e.FEATURE_PHONE_MEDIUM_BANNER="featurePhoneMediumBanner",e.FEATURE_PHONE_LARGE_BANNER="featurePhoneLargeBanner"}(e||(e={})),function(e){e.KEYWORDS="keywords",e.PARENTCO="parentCo",e.BRAND="brand",e.CATEGORY="category",e.TYPE="type",e.CLASSIFICATION="classification",e.HOLIDAY="holiday",e.EXACT_MATCH="exactMatch",e.PUBLISHERS="publishers",e.DEVICE_TYPE="deviceType",e.BROWSER_TYPE="browserType",e.LOCATION="location"}(t||(t={})),function(e){e.LOC="loc",e.DEV="dev",e.STAGE="stage",e.PROD="prod"}(n||(n={}));const r="X-Liquid-Protected",o="X-Liquid-Timestamp",i="X-Liquid-Api-Env",s={url:{loc:"http://localhost:8300",dev:"https://rmn-services-development-948630220003.us-central1.run.app",stage:"https://rmn-services-development-948630220003.us-central1.run.app",prod:"https://rmn-services-development-948630220003.us-central1.run.app"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{authenticated:!1,apiKey:"",token:"",env:n.DEV}};class a{}var c="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}var h=l,f=u;function d(e){if(h===setTimeout)return setTimeout(e,0);if((h===l||!h)&&setTimeout)return h=setTimeout,setTimeout(e,0);try{return h(e,0)}catch(t){try{return h.call(null,e,0)}catch(t){return h.call(this,e,0)}}}"function"==typeof c.setTimeout&&(h=setTimeout),"function"==typeof c.clearTimeout&&(f=clearTimeout);var p,g=[],y=!1,m=-1;function w(){y&&p&&(y=!1,p.length?g=p.concat(g):m=-1,g.length&&v())}function v(){if(!y){var e=d(w);y=!0;for(var t=g.length;t;){for(p=g,g=[];++m<t;)p&&p[m].run();m=-1,t=g.length}p=null,y=!1,function(e){if(f===clearTimeout)return clearTimeout(e);if((f===u||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}(e)}}function b(e,t){this.fun=e,this.array=t}b.prototype.run=function(){this.fun.apply(null,this.array)};function _(){}var S=_,E=_,x=_,A=_,k=_,R=_,T=_;var B=c.performance||{},O=B.now||B.mozNow||B.msNow||B.oNow||B.webkitNow||function(){return(new Date).getTime()};var C=new Date;var P={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new b(e,t)),1!==g.length||y||d(v)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:S,addListener:E,once:x,off:A,removeListener:k,removeAllListeners:R,emit:T,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*O.call(B),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-C)/1e3}};function H(e,t){return function(){return e.apply(t,arguments)}}const{toString:I}=Object.prototype,{getPrototypeOf:D}=Object,U=(L=Object.create(null),e=>{const t=I.call(e);return L[t]||(L[t]=t.slice(8,-1).toLowerCase())});var L;const N=e=>(e=e.toLowerCase(),t=>U(t)===e),z=e=>t=>typeof t===e,{isArray:F}=Array,j=z("undefined");const q=N("ArrayBuffer");const M=z("string"),$=z("function"),W=z("number"),K=e=>null!==e&&"object"==typeof e,J=e=>{if("object"!==U(e))return!1;const t=D(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},V=N("Date"),Y=N("File"),G=N("Blob"),X=N("FileList"),Z=N("URLSearchParams"),[Q,ee,te,ne]=["ReadableStream","Request","Response","Headers"].map(N);function re(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),F(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function oe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:c,se=e=>!j(e)&&e!==ie;const ae=(ce="undefined"!=typeof Uint8Array&&D(Uint8Array),e=>ce&&e instanceof ce);var ce;const le=N("HTMLFormElement"),ue=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),he=N("RegExp"),fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};re(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},de="abcdefghijklmnopqrstuvwxyz",pe="0123456789",ge={DIGIT:pe,ALPHA:de,ALPHA_DIGIT:de+de.toUpperCase()+pe};const ye=N("AsyncFunction"),me=(we="function"==typeof setImmediate,ve=$(ie.postMessage),we?setImmediate:ve?(be=`axios@${Math.random()}`,_e=[],ie.addEventListener("message",(({source:e,data:t})=>{e===ie&&t===be&&_e.length&&_e.shift()()}),!1),e=>{_e.push(e),ie.postMessage(be,"*")}):e=>setTimeout(e));var we,ve,be,_e;const Se="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ie):P.nextTick||me;var Ee={isArray:F,isArrayBuffer:q,isBuffer:function(e){return null!==e&&!j(e)&&null!==e.constructor&&!j(e.constructor)&&$(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||$(e.append)&&("formdata"===(t=U(e))||"object"===t&&$(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&q(e.buffer),t},isString:M,isNumber:W,isBoolean:e=>!0===e||!1===e,isObject:K,isPlainObject:J,isReadableStream:Q,isRequest:ee,isResponse:te,isHeaders:ne,isUndefined:j,isDate:V,isFile:Y,isBlob:G,isRegExp:he,isFunction:$,isStream:e=>K(e)&&$(e.pipe),isURLSearchParams:Z,isTypedArray:ae,isFileList:X,forEach:re,merge:function e(){const{caseless:t}=se(this)&&this||{},n={},r=(r,o)=>{const i=t&&oe(n,o)||o;J(n[i])&&J(r)?n[i]=e(n[i],r):J(r)?n[i]=e({},r):F(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&re(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(re(t,((t,r)=>{n&&$(t)?e[r]=H(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&D(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:U,kindOfTest:N,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(F(e))return e;let t=e.length;if(!W(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:le,hasOwnProperty:ue,hasOwnProp:ue,reduceDescriptors:fe,freezeMethods:e=>{fe(e,((t,n)=>{if($(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];$(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return F(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:oe,global:ie,isContextDefined:se,ALPHABET:ge,generateString:(e=16,t=ge.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&$(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(K(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=F(e)?[]:{};return re(e,((e,t)=>{const i=n(e,r+1);!j(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ye,isThenable:e=>e&&(K(e)||$(e))&&$(e.then)&&$(e.catch),setImmediate:me,asap:Se},xe=[],Ae=[],ke="undefined"!=typeof Uint8Array?Uint8Array:Array,Re=!1;function Te(){Re=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)xe[t]=e[t],Ae[e.charCodeAt(t)]=t;Ae["-".charCodeAt(0)]=62,Ae["_".charCodeAt(0)]=63}function Be(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(xe[(o=r)>>18&63]+xe[o>>12&63]+xe[o>>6&63]+xe[63&o]);return i.join("")}function Oe(e){var t;Re||Te();for(var n=e.length,r=n%3,o="",i=[],s=16383,a=0,c=n-r;a<c;a+=s)i.push(Be(e,a,a+s>c?c:a+s));return 1===r?(t=e[n-1],o+=xe[t>>2],o+=xe[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=xe[t>>10],o+=xe[t>>4&63],o+=xe[t<<2&63],o+="="),i.push(o),i.join("")}function Ce(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,l=c>>1,u=-7,h=n?o-1:0,f=n?-1:1,d=e[t+h];for(h+=f,i=d&(1<<-u)-1,d>>=-u,u+=a;u>0;i=256*i+e[t+h],h+=f,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=256*s+e[t+h],h+=f,u-=8);if(0===i)i=1-l;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),i-=l}return(d?-1:1)*s*Math.pow(2,i-r)}function Pe(e,t,n,r,o,i){var s,a,c,l=8*i-o-1,u=(1<<l)-1,h=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+h>=1?f/c:f*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*c-1)*Math.pow(2,o),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[n+d]=255&a,d+=p,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;e[n+d]=255&s,d+=p,s/=256,l-=8);e[n+d-p]|=128*g}var He={}.toString,Ie=Array.isArray||function(e){return"[object Array]"==He.call(e)};function De(){return Le.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ue(e,t){if(De()<t)throw new RangeError("Invalid typed array length");return Le.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Le.prototype:(null===e&&(e=new Le(t)),e.length=t),e}function Le(e,t,n){if(!(Le.TYPED_ARRAY_SUPPORT||this instanceof Le))return new Le(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Fe(this,e)}return Ne(this,e,t,n)}function Ne(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);Le.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Le.prototype:e=je(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Le.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|$e(t,n);e=Ue(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(Me(t)){var n=0|qe(t.length);return 0===(e=Ue(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Ue(e,0):je(e,t);if("Buffer"===t.type&&Ie(t.data))return je(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function ze(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Fe(e,t){if(ze(t),e=Ue(e,t<0?0:0|qe(t)),!Le.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function je(e,t){var n=t.length<0?0:0|qe(t.length);e=Ue(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function qe(e){if(e>=De())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De().toString(16)+" bytes");return 0|e}function Me(e){return!(null==e||!e._isBuffer)}function $e(e,t){if(Me(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return mt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return wt(e).length;default:if(r)return mt(e).length;t=(""+t).toLowerCase(),r=!0}}function We(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return st(this,t,n);case"utf8":case"utf-8":return nt(this,t,n);case"ascii":return ot(this,t,n);case"latin1":case"binary":return it(this,t,n);case"base64":return tt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ke(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Je(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Le.from(t,r)),Me(t))return 0===t.length?-1:Ve(e,t,n,r,o);if("number"==typeof t)return t&=255,Le.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ve(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Ve(e,t,n,r,o){var i,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var u=-1;for(i=n;i<a;i++)if(l(e,i)===l(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*s}else-1!==u&&(i-=i-u),u=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){for(var h=!0,f=0;f<c;f++)if(l(e,i+f)!==l(t,f)){h=!1;break}if(h)return i}return-1}function Ye(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function Ge(e,t,n,r){return vt(mt(t,e.length-n),e,n,r)}function Xe(e,t,n,r){return vt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ze(e,t,n,r){return Xe(e,t,n,r)}function Qe(e,t,n,r){return vt(wt(t),e,n,r)}function et(e,t,n,r){return vt(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function tt(e,t,n){return 0===t&&n===e.length?Oe(e):Oe(e.slice(t,n))}function nt(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,c,l=e[o],u=null,h=l>239?4:l>223?3:l>191?2:1;if(o+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&l)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=h}return function(e){var t=e.length;if(t<=rt)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=rt));return n}(r)}Le.TYPED_ARRAY_SUPPORT=void 0===c.TYPED_ARRAY_SUPPORT||c.TYPED_ARRAY_SUPPORT,De(),Le.poolSize=8192,Le._augment=function(e){return e.__proto__=Le.prototype,e},Le.from=function(e,t,n){return Ne(null,e,t,n)},Le.TYPED_ARRAY_SUPPORT&&(Le.prototype.__proto__=Uint8Array.prototype,Le.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Le[Symbol.species]),Le.alloc=function(e,t,n){return function(e,t,n,r){return ze(t),t<=0?Ue(e,t):void 0!==n?"string"==typeof r?Ue(e,t).fill(n,r):Ue(e,t).fill(n):Ue(e,t)}(null,e,t,n)},Le.allocUnsafe=function(e){return Fe(null,e)},Le.allocUnsafeSlow=function(e){return Fe(null,e)},Le.isBuffer=function(e){return null!=e&&(!!e._isBuffer||bt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&bt(e.slice(0,0))}(e))},Le.compare=function(e,t){if(!Me(e)||!Me(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},Le.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Le.concat=function(e,t){if(!Ie(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Le.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Le.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Me(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},Le.byteLength=$e,Le.prototype._isBuffer=!0,Le.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ke(this,t,t+1);return this},Le.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ke(this,t,t+3),Ke(this,t+1,t+2);return this},Le.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ke(this,t,t+7),Ke(this,t+1,t+6),Ke(this,t+2,t+5),Ke(this,t+3,t+4);return this},Le.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?nt(this,0,e):We.apply(this,arguments)},Le.prototype.equals=function(e){if(!Me(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Le.compare(this,e)},Le.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Le.prototype.compare=function(e,t,n,r,o){if(!Me(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),u=0;u<a;++u)if(c[u]!==l[u]){i=c[u],s=l[u];break}return i<s?-1:s<i?1:0},Le.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Le.prototype.indexOf=function(e,t,n){return Je(this,e,t,n,!0)},Le.prototype.lastIndexOf=function(e,t,n){return Je(this,e,t,n,!1)},Le.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return Ye(this,e,t,n);case"utf8":case"utf-8":return Ge(this,e,t,n);case"ascii":return Xe(this,e,t,n);case"latin1":case"binary":return Ze(this,e,t,n);case"base64":return Qe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Le.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var rt=4096;function ot(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function it(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function st(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=yt(e[i]);return o}function at(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function ct(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function lt(e,t,n,r,o,i){if(!Me(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function ut(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function ht(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function ft(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function dt(e,t,n,r,o){return o||ft(e,0,n,4),Pe(e,t,n,r,23,4),n+4}function pt(e,t,n,r,o){return o||ft(e,0,n,8),Pe(e,t,n,r,52,8),n+8}Le.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Le.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Le.prototype;else{var o=t-e;n=new Le(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Le.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},Le.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Le.prototype.readUInt8=function(e,t){return t||ct(e,1,this.length),this[e]},Le.prototype.readUInt16LE=function(e,t){return t||ct(e,2,this.length),this[e]|this[e+1]<<8},Le.prototype.readUInt16BE=function(e,t){return t||ct(e,2,this.length),this[e]<<8|this[e+1]},Le.prototype.readUInt32LE=function(e,t){return t||ct(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Le.prototype.readUInt32BE=function(e,t){return t||ct(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Le.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},Le.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Le.prototype.readInt8=function(e,t){return t||ct(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Le.prototype.readInt16LE=function(e,t){t||ct(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Le.prototype.readInt16BE=function(e,t){t||ct(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Le.prototype.readInt32LE=function(e,t){return t||ct(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Le.prototype.readInt32BE=function(e,t){return t||ct(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Le.prototype.readFloatLE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!0,23,4)},Le.prototype.readFloatBE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!1,23,4)},Le.prototype.readDoubleLE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!0,52,8)},Le.prototype.readDoubleBE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!1,52,8)},Le.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||lt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},Le.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||lt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Le.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,255,0),Le.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Le.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),Le.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ut(this,e,t,!0),t+2},Le.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),Le.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ut(this,e,t,!1),t+2},Le.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),Le.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ht(this,e,t,!0),t+4},Le.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),Le.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ht(this,e,t,!1),t+4},Le.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lt(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},Le.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lt(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},Le.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,127,-128),Le.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Le.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),Le.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ut(this,e,t,!0),t+2},Le.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),Le.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ut(this,e,t,!1),t+2},Le.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),Le.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ht(this,e,t,!0),t+4},Le.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Le.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ht(this,e,t,!1),t+4},Le.prototype.writeFloatLE=function(e,t,n){return dt(this,e,t,!0,n)},Le.prototype.writeFloatBE=function(e,t,n){return dt(this,e,t,!1,n)},Le.prototype.writeDoubleLE=function(e,t,n){return pt(this,e,t,!0,n)},Le.prototype.writeDoubleBE=function(e,t,n){return pt(this,e,t,!1,n)},Le.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Le.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},Le.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Le.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=Me(e)?e:mt(new Le(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var gt=/[^+\/0-9A-Za-z-_]/g;function yt(e){return e<16?"0"+e.toString(16):e.toString(16)}function mt(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function wt(e){return function(e){var t,n,r,o,i,s;Re||Te();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new ke(3*a/4-i),r=i>0?a-4:a;var c=0;for(t=0,n=0;t<r;t+=4,n+=3)o=Ae[e.charCodeAt(t)]<<18|Ae[e.charCodeAt(t+1)]<<12|Ae[e.charCodeAt(t+2)]<<6|Ae[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===i?(o=Ae[e.charCodeAt(t)]<<2|Ae[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===i&&(o=Ae[e.charCodeAt(t)]<<10|Ae[e.charCodeAt(t+1)]<<4|Ae[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(gt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function vt(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function bt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function _t(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ee.inherits(_t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.status}}});const St=_t.prototype,Et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Et[e]={value:e}})),Object.defineProperties(_t,Et),Object.defineProperty(St,"isAxiosError",{value:!0}),_t.from=(e,t,n,r,o,i)=>{const s=Object.create(St);return Ee.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),_t.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function xt(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function At(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function kt(e,t,n){return e?e.concat(t).map((function(e,t){return e=At(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Rt=Ee.toFlatObject(Ee,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Tt(e,t,n){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ee.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ee.isDate(e))return e.toISOString();if(!a&&Ee.isBlob(e))throw new _t("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(e)||Ee.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Le.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Ee.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ee.isArray(e)&&function(e){return Ee.isArray(e)&&!e.some(xt)}(e)||(Ee.isFileList(e)||Ee.endsWith(n,"[]"))&&(a=Ee.toArray(e)))return n=At(n),a.forEach((function(e,r){!Ee.isUndefined(e)&&null!==e&&t.append(!0===s?kt([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!xt(e)||(t.append(kt(o,n,i),c(e)),!1)}const u=[],h=Object.assign(Rt,{defaultVisitor:l,convertValue:c,isVisitable:xt});if(!Ee.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ee.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ee.forEach(n,(function(n,i){!0===(!(Ee.isUndefined(n)||null===n)&&o.call(t,n,Ee.isString(i)?i.trim():i,r,h))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Bt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ot(e,t){this._pairs=[],e&&Tt(e,this,t)}const Ct=Ot.prototype;function Pt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ht(e,t,n){if(!t)return e;const r=n&&n.encode||Pt,o=n&&n.serialize;let i;if(i=o?o(t,n):Ee.isURLSearchParams(t)?t.toString():new Ot(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ct.append=function(e,t){this._pairs.push([e,t])},Ct.toString=function(e){const t=e?function(t){return e.call(this,t,Bt)}:Bt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class It{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ee.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ut={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Lt="undefined"!=typeof window&&"undefined"!=typeof document,Nt="object"==typeof navigator&&navigator||void 0,zt=Lt&&(!Nt||["ReactNative","NativeScript","NS"].indexOf(Nt.product)<0),Ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,jt=Lt&&window.location.href||"http://localhost";var qt={...Object.freeze({__proto__:null,hasBrowserEnv:Lt,hasStandardBrowserEnv:zt,hasStandardBrowserWebWorkerEnv:Ft,navigator:Nt,origin:jt}),...Ut};function Mt(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&Ee.isArray(r)?r.length:i,a)return Ee.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&Ee.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ee.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){const n={};return Ee.forEachEntry(e,((e,r)=>{t(function(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const $t={transitional:Dt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ee.isObject(e);o&&Ee.isHTMLForm(e)&&(e=new FormData(e));if(Ee.isFormData(e))return r?JSON.stringify(Mt(e)):e;if(Ee.isArrayBuffer(e)||Ee.isBuffer(e)||Ee.isStream(e)||Ee.isFile(e)||Ee.isBlob(e)||Ee.isReadableStream(e))return e;if(Ee.isArrayBufferView(e))return e.buffer;if(Ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tt(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return qt.isNode&&Ee.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ee.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$t.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ee.isResponse(e)||Ee.isReadableStream(e))return e;if(e&&Ee.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw _t.from(e,_t.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ee.forEach(["delete","get","head","post","put","patch"],(e=>{$t.headers[e]={}}));const Wt=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Kt=Symbol("internals");function Jt(e){return e&&String(e).trim().toLowerCase()}function Vt(e){return!1===e||null==e?e:Ee.isArray(e)?e.map(Vt):String(e)}function Yt(e,t,n,r,o){return Ee.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ee.isString(t)?Ee.isString(r)?-1!==t.indexOf(r):Ee.isRegExp(r)?r.test(t):void 0:void 0)}class Gt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Jt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ee.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Vt(e))}const i=(e,t)=>Ee.forEach(e,((e,n)=>o(e,n,t)));if(Ee.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ee.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Wt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Ee.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Jt(e)){const n=Ee.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ee.isFunction(t))return t.call(this,e,n);if(Ee.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Jt(e)){const n=Ee.findKey(this,e);return!(!n||void 0===this[n]||t&&!Yt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Jt(e)){const o=Ee.findKey(n,e);!o||t&&!Yt(0,n[o],o,t)||(delete n[o],r=!0)}}return Ee.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Yt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ee.forEach(this,((r,o)=>{const i=Ee.findKey(n,o);if(i)return t[i]=Vt(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Vt(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ee.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ee.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Kt]=this[Kt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Jt(e);t[r]||(!function(e,t){const n=Ee.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Ee.isArray(e)?e.forEach(r):r(e),this}}function Xt(e,t){const n=this||$t,r=t||n,o=Gt.from(r.headers);let i=r.data;return Ee.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Zt(e){return!(!e||!e.__CANCEL__)}function Qt(e,t,n){_t.call(this,null==e?"canceled":e,_t.ERR_CANCELED,t,n),this.name="CanceledError"}function en(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new _t("Request failed with status code "+n.status,[_t.ERR_BAD_REQUEST,_t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ee.reduceDescriptors(Gt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ee.freezeMethods(Gt),Ee.inherits(Qt,_t,{__CANCEL__:!0});const tn=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let u=s,h=0;for(;u!==i;)h+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*h/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},nn=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rn=e=>(...t)=>Ee.asap((()=>e(...t)));var on=qt.hasStandardBrowserEnv?function(){const e=qt.navigator&&/(msie|trident)/i.test(qt.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Ee.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},sn=qt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Ee.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Ee.isString(r)&&s.push("path="+r),Ee.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function an(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const cn=e=>e instanceof Gt?{...e}:e;function ln(e,t){t=t||{};const n={};function r(e,t,n){return Ee.isPlainObject(e)&&Ee.isPlainObject(t)?Ee.merge.call({caseless:n},e,t):Ee.isPlainObject(t)?Ee.merge({},t):Ee.isArray(t)?t.slice():t}function o(e,t,n){return Ee.isUndefined(t)?Ee.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Ee.isUndefined(t))return r(void 0,t)}function s(e,t){return Ee.isUndefined(t)?Ee.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(cn(e),cn(t),!0)};return Ee.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);Ee.isUndefined(s)&&i!==a||(n[r]=s)})),n}var un=e=>{const t=ln({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Gt.from(a),t.url=Ht(an(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Ee.isFormData(r))if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qt.hasStandardBrowserEnv&&(o&&Ee.isFunction(o)&&(o=o(t)),o||!1!==o&&on(t.url))){const e=i&&s&&sn.read(s);e&&a.set(i,e)}return t};var hn="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=un(e);let o=r.data;const i=Gt.from(r.headers).normalize();let s,a,c,l,u,{responseType:h,onUploadProgress:f,onDownloadProgress:d}=r;function p(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function y(){if(!g)return;const r=Gt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());en((function(e){t(e),p()}),(function(e){n(e),p()}),{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(n(new _t("Request aborted",_t.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new _t("Network Error",_t.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Dt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new _t(t,o.clarifyTimeoutError?_t.ETIMEDOUT:_t.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Ee.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),Ee.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),h&&"json"!==h&&(g.responseType=r.responseType),d&&([c,u]=tn(d,!0),g.addEventListener("progress",c)),f&&g.upload&&([a,l]=tn(f),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{g&&(n(!t||t.type?new Qt(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===qt.protocols.indexOf(m)?n(new _t("Unsupported protocol "+m+":",_t.ERR_BAD_REQUEST,e)):g.send(o||null)}))};const fn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof _t?t:new Qt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new _t(`timeout ${t} of ms exceeded`,_t.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>Ee.asap(s),a}},dn=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},pn=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},gn=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of pn(e))yield*dn(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},yn="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mn=yn&&"function"==typeof ReadableStream,wn=yn&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vn=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},bn=mn&&vn((()=>{let e=!1;const t=new Request(qt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),_n=mn&&vn((()=>Ee.isReadableStream(new Response("").body))),Sn={stream:_n&&(e=>e.body)};var En;yn&&(En=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Sn[e]&&(Sn[e]=Ee.isFunction(En[e])?t=>t[e]():(t,n)=>{throw new _t(`Response type '${e}' is not supported`,_t.ERR_NOT_SUPPORT,n)})})));const xn=async(e,t)=>{const n=Ee.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ee.isBlob(e))return e.size;if(Ee.isSpecCompliantForm(e)){const t=new Request(qt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ee.isArrayBufferView(e)||Ee.isArrayBuffer(e)?e.byteLength:(Ee.isURLSearchParams(e)&&(e+=""),Ee.isString(e)?(await wn(e)).byteLength:void 0)})(t):n};var An=yn&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:h="same-origin",fetchOptions:f}=un(e);l=l?(l+"").toLowerCase():"text";let d,p=fn([o,i&&i.toAbortSignal()],s);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(c&&bn&&"get"!==n&&"head"!==n&&0!==(y=await xn(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ee.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=nn(y,tn(rn(c)));r=gn(n.body,65536,e,t)}}Ee.isString(h)||(h=h?"include":"omit");const o="credentials"in Request.prototype;d=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?h:void 0});let i=await fetch(d);const s=_n&&("stream"===l||"response"===l);if(_n&&(a||s&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ee.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&nn(t,tn(rn(a),!0))||[];i=new Response(gn(i.body,65536,n,(()=>{r&&r(),g&&g()})),e)}l=l||"text";let m=await Sn[Ee.findKey(Sn,l)||"text"](i,e);return!s&&g&&g(),await new Promise(((t,n)=>{en(t,n,{data:m,headers:Gt.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:d})}))}catch(t){if(g&&g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new _t("Network Error",_t.ERR_NETWORK,e,d),{cause:t.cause||t});throw _t.from(t,t&&t.code,e,d)}});const kn={http:null,xhr:hn,fetch:An};Ee.forEach(kn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Rn=e=>`- ${e}`,Tn=e=>Ee.isFunction(e)||null===e||!1===e;var Bn=e=>{e=Ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Tn(n)&&(r=kn[(t=String(n)).toLowerCase()],void 0===r))throw new _t(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new _t("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Rn).join("\n"):" "+Rn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function On(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qt(null,e)}function Cn(e){On(e),e.headers=Gt.from(e.headers),e.data=Xt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Bn(e.adapter||$t.adapter)(e).then((function(t){return On(e),t.data=Xt.call(e,e.transformResponse,t),t.headers=Gt.from(t.headers),t}),(function(t){return Zt(t)||(On(e),t&&t.response&&(t.response.data=Xt.call(e,e.transformResponse,t.response),t.response.headers=Gt.from(t.response.headers))),Promise.reject(t)}))}const Pn="1.7.7",Hn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Hn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const In={};Hn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _t(r(o," has been removed"+(t?" in "+t:"")),_t.ERR_DEPRECATED);return t&&!In[o]&&(In[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Dn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _t("options must be an object",_t.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new _t("option "+i+" must be "+n,_t.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new _t("Unknown option "+i,_t.ERR_BAD_OPTION)}},validators:Hn};const Un=Dn.validators;class Ln{constructor(e){this.defaults=e,this.interceptors={request:new It,response:new It}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ln(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Dn.assertOptions(n,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean)},!1),null!=r&&(Ee.isFunction(r)?t.paramsSerializer={serialize:r}:Dn.assertOptions(r,{encode:Un.function,serialize:Un.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ee.merge(o.common,o[t.method]);o&&Ee.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Gt.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,h=0;if(!a){const e=[Cn.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);h<u;)l=l.then(e[h++],e[h++]);return l}u=s.length;let f=t;for(h=0;h<u;){const e=s[h++],t=s[h++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Cn.call(this,f)}catch(e){return Promise.reject(e)}for(h=0,u=c.length;h<u;)l=l.then(c[h++],c[h++]);return l}getUri(e){return Ht(an((e=ln(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ee.forEach(["delete","get","head","options"],(function(e){Ln.prototype[e]=function(t,n){return this.request(ln(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ee.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ln(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ln.prototype[e]=t(),Ln.prototype[e+"Form"]=t(!0)}));class Nn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Qt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Nn((function(t){e=t})),cancel:e}}}const zn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zn).forEach((([e,t])=>{zn[t]=e}));const Fn=function e(t){const n=new Ln(t),r=H(Ln.prototype.request,n);return Ee.extend(r,Ln.prototype,n,{allOwnKeys:!0}),Ee.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ln(t,n))},r}($t);Fn.Axios=Ln,Fn.CanceledError=Qt,Fn.CancelToken=Nn,Fn.isCancel=Zt,Fn.VERSION=Pn,Fn.toFormData=Tt,Fn.AxiosError=_t,Fn.Cancel=Fn.CanceledError,Fn.all=function(e){return Promise.all(e)},Fn.spread=function(e){return function(t){return e.apply(null,t)}},Fn.isAxiosError=function(e){return Ee.isObject(e)&&!0===e.isAxiosError},Fn.mergeConfig=ln,Fn.AxiosHeaders=Gt,Fn.formToJSON=e=>Mt(Ee.isHTMLForm(e)?new FormData(e):e),Fn.getAdapter=Bn,Fn.HttpStatusCode=zn,Fn.default=Fn;class jn{static getInstance(e,t){this.instances.has(e)||this.instances.set(e,t());const n=this.instances.get(e);if(!n)throw new Error(`Instance for class ${e} could not be created.`);return n}}jn.instances=new Map;class qn{static getInstance(){return jn.getInstance("ObjectHelper",(()=>new qn))}merge(e,...t){for(const n of t)this.mergeValue(e,n);return e}values(e){return Object.values(e)}includes(e,t){return t in e}valuesIncludes(e,t){return Object.values(e).includes(t)}hasAllValues(e,t){const n=Object.keys(e);return t.every((e=>n.includes(e)))}isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}mergeValue(e,t){var n;return this.isArray(t)?this.mergeArrayValues(e,t):"object"==typeof t?this.mergeObjectValues(e,t):null!==(n=null!=t?t:e)&&void 0!==n?n:void 0}mergeArrayValues(e,t){if(!this.isArray(e))return[...t];const n=e;for(let e=0,r=t.length;e<r;e++)n[e]=this.mergeValue(n[e],t[e]);return n}mergeObjectValues(e,t){return e&&"object"==typeof e?(this.innerMerge(e,t),e):t?Object.assign({},t):t}innerMerge(e,t){for(const n of Object.keys(t))e[n]=this.mergeValue(e[n],t[n])}}var Mn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $n(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Wn={exports:{}};var Kn,Jn={exports:{}},Vn=$n(Object.freeze({__proto__:null,default:{}}));function Yn(){return Kn||(Kn=1,Jn.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Mn&&Mn.crypto&&(n=Mn.crypto),!n)try{n=Vn}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=s<<24-(r+i)%4*8}else for(var a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),l=i.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},h=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},f=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*l,i);if(l){for(var h=0;h<l;h+=s)this._doProcessBlock(o,h);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=i.algo={};return i}(Math),e)),Jn.exports;var e}var Gn,Xn={exports:{}};function Zn(){return Gn||(Gn=1,Xn.exports=(s=Yn(),n=(t=s).lib,r=n.Base,o=n.WordArray,(i=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),s)),Xn.exports;var e,t,n,r,o,i,s}var Qn,er={exports:{}};function tr(){return Qn||(Qn=1,er.exports=(e=Yn(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),er.exports;var e}var nr,rr={exports:{}};function or(){return nr?rr.exports:(nr=1,rr.exports=(e=Yn(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16));var e}var ir,sr={exports:{}};function ar(){return ir||(ir=1,sr.exports=(e=Yn(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)o.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),sr.exports;var e}var cr,lr={exports:{}};function ur(){return cr?lr.exports:(cr=1,lr.exports=(e=Yn(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s<r;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)i.push(o.charAt(a>>>6*(3-c)&63));var l=o.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<o.length;s++)i[o.charCodeAt(s)]=s}var a=o.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(n=c)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var hr,fr={exports:{}};function dr(){return hr||(hr=1,fr.exports=(e=Yn(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],y=e[t+5],m=e[t+6],w=e[t+7],v=e[t+8],b=e[t+9],_=e[t+10],S=e[t+11],E=e[t+12],x=e[t+13],A=e[t+14],k=e[t+15],R=i[0],T=i[1],B=i[2],O=i[3];R=l(R,T,B,O,s,7,a[0]),O=l(O,R,T,B,c,12,a[1]),B=l(B,O,R,T,d,17,a[2]),T=l(T,B,O,R,p,22,a[3]),R=l(R,T,B,O,g,7,a[4]),O=l(O,R,T,B,y,12,a[5]),B=l(B,O,R,T,m,17,a[6]),T=l(T,B,O,R,w,22,a[7]),R=l(R,T,B,O,v,7,a[8]),O=l(O,R,T,B,b,12,a[9]),B=l(B,O,R,T,_,17,a[10]),T=l(T,B,O,R,S,22,a[11]),R=l(R,T,B,O,E,7,a[12]),O=l(O,R,T,B,x,12,a[13]),B=l(B,O,R,T,A,17,a[14]),R=u(R,T=l(T,B,O,R,k,22,a[15]),B,O,c,5,a[16]),O=u(O,R,T,B,m,9,a[17]),B=u(B,O,R,T,S,14,a[18]),T=u(T,B,O,R,s,20,a[19]),R=u(R,T,B,O,y,5,a[20]),O=u(O,R,T,B,_,9,a[21]),B=u(B,O,R,T,k,14,a[22]),T=u(T,B,O,R,g,20,a[23]),R=u(R,T,B,O,b,5,a[24]),O=u(O,R,T,B,A,9,a[25]),B=u(B,O,R,T,p,14,a[26]),T=u(T,B,O,R,v,20,a[27]),R=u(R,T,B,O,x,5,a[28]),O=u(O,R,T,B,d,9,a[29]),B=u(B,O,R,T,w,14,a[30]),R=h(R,T=u(T,B,O,R,E,20,a[31]),B,O,y,4,a[32]),O=h(O,R,T,B,v,11,a[33]),B=h(B,O,R,T,S,16,a[34]),T=h(T,B,O,R,A,23,a[35]),R=h(R,T,B,O,c,4,a[36]),O=h(O,R,T,B,g,11,a[37]),B=h(B,O,R,T,w,16,a[38]),T=h(T,B,O,R,_,23,a[39]),R=h(R,T,B,O,x,4,a[40]),O=h(O,R,T,B,s,11,a[41]),B=h(B,O,R,T,p,16,a[42]),T=h(T,B,O,R,m,23,a[43]),R=h(R,T,B,O,b,4,a[44]),O=h(O,R,T,B,E,11,a[45]),B=h(B,O,R,T,k,16,a[46]),R=f(R,T=h(T,B,O,R,d,23,a[47]),B,O,s,6,a[48]),O=f(O,R,T,B,w,10,a[49]),B=f(B,O,R,T,A,15,a[50]),T=f(T,B,O,R,y,21,a[51]),R=f(R,T,B,O,E,6,a[52]),O=f(O,R,T,B,p,10,a[53]),B=f(B,O,R,T,_,15,a[54]),T=f(T,B,O,R,c,21,a[55]),R=f(R,T,B,O,v,6,a[56]),O=f(O,R,T,B,k,10,a[57]),B=f(B,O,R,T,m,15,a[58]),T=f(T,B,O,R,x,21,a[59]),R=f(R,T,B,O,g,6,a[60]),O=f(O,R,T,B,S,10,a[61]),B=f(B,O,R,T,d,15,a[62]),T=f(T,B,O,R,b,21,a[63]),i[0]=i[0]+R|0,i[1]=i[1]+T|0,i[2]=i[2]+B|0,i[3]=i[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),s=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,i,s){var a=e+(t&n|~t&r)+o+s;return(a<<i|a>>>32-i)+t}function u(e,t,n,r,o,i,s){var a=e+(t&r|n&~r)+o+s;return(a<<i|a>>>32-i)+t}function h(e,t,n,r,o,i,s){var a=e+(t^n^r)+o+s;return(a<<i|a>>>32-i)+t}function f(e,t,n,r,o,i,s){var a=e+(n^(t|~r))+o+s;return(a<<i|a>>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),e.MD5)),fr.exports;var e}var pr,gr={exports:{}};function yr(){return pr||(pr=1,gr.exports=(a=Yn(),t=(e=a).lib,n=t.WordArray,r=t.Hasher,o=e.algo,i=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],s=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)i[l]=0|e[t+l];else{var u=i[l-3]^i[l-8]^i[l-14]^i[l-16];i[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+c+i[l];h+=l<20?1518500249+(o&s|~o&a):l<40?1859775393+(o^s^a):l<60?(o&s|o&a|s&a)-1894007588:(o^s^a)-899497514,c=a,a=s,s=o<<30|o>>>2,o=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s),a.SHA1)),gr.exports;var e,t,n,r,o,i,s,a}var mr,wr={exports:{}};function vr(){return mr||(mr=1,wr.exports=(e=Yn(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(a[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var l=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],h=n[6],f=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=l[d-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[d]=g+l[d-7]+m+l[d-16]}var w=r&o^r&i^o&i,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[d]+l[d];f=h,h=u,u=a,a=s+b|0,s=i,i=o,o=r,r=b+(v+w)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256)),wr.exports;var e}var br,_r={exports:{}};var Sr,Er={exports:{}};function xr(){return Sr||(Sr=1,Er.exports=(e=Yn(),Zn(),function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,s=t.algo;function a(){return o.create.apply(o,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=a()}();var u=s.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],h=n[6],f=n[7],d=r.high,p=r.low,g=o.high,y=o.low,m=i.high,w=i.low,v=s.high,b=s.low,_=a.high,S=a.low,E=u.high,x=u.low,A=h.high,k=h.low,R=f.high,T=f.low,B=d,O=p,C=g,P=y,H=m,I=w,D=v,U=b,L=_,N=S,z=E,F=x,j=A,q=k,M=R,$=T,W=0;W<80;W++){var K,J,V=l[W];if(W<16)J=V.high=0|e[t+2*W],K=V.low=0|e[t+2*W+1];else{var Y=l[W-15],G=Y.high,X=Y.low,Z=(G>>>1|X<<31)^(G>>>8|X<<24)^G>>>7,Q=(X>>>1|G<<31)^(X>>>8|G<<24)^(X>>>7|G<<25),ee=l[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=l[W-7],se=ie.high,ae=ie.low,ce=l[W-16],le=ce.high,ue=ce.low;J=(J=(J=Z+se+((K=Q+ae)>>>0<Q>>>0?1:0))+re+((K+=oe)>>>0<oe>>>0?1:0))+le+((K+=ue)>>>0<ue>>>0?1:0),V.high=J,V.low=K}var he,fe=L&z^~L&j,de=N&F^~N&q,pe=B&C^B&H^C&H,ge=O&P^O&I^P&I,ye=(B>>>28|O<<4)^(B<<30|O>>>2)^(B<<25|O>>>7),me=(O>>>28|B<<4)^(O<<30|B>>>2)^(O<<25|B>>>7),we=(L>>>14|N<<18)^(L>>>18|N<<14)^(L<<23|N>>>9),ve=(N>>>14|L<<18)^(N>>>18|L<<14)^(N<<23|L>>>9),be=c[W],_e=be.high,Se=be.low,Ee=M+we+((he=$+ve)>>>0<$>>>0?1:0),xe=me+ge;M=j,$=q,j=z,q=F,z=L,F=N,L=D+(Ee=(Ee=(Ee=Ee+fe+((he+=de)>>>0<de>>>0?1:0))+_e+((he+=Se)>>>0<Se>>>0?1:0))+J+((he+=K)>>>0<K>>>0?1:0))+((N=U+he|0)>>>0<U>>>0?1:0)|0,D=H,U=I,H=C,I=P,C=B,P=O,B=Ee+(ye+pe+(xe>>>0<me>>>0?1:0))+((O=he+xe|0)>>>0<he>>>0?1:0)|0}p=r.low=p+O,r.high=d+B+(p>>>0<O>>>0?1:0),y=o.low=y+P,o.high=g+C+(y>>>0<P>>>0?1:0),w=i.low=w+I,i.high=m+H+(w>>>0<I>>>0?1:0),b=s.low=b+U,s.high=v+D+(b>>>0<U>>>0?1:0),S=a.low=S+N,a.high=_+L+(S>>>0<N>>>0?1:0),x=u.low=x+F,u.high=E+z+(x>>>0<F>>>0?1:0),k=h.low=k+q,h.high=A+j+(k>>>0<q>>>0?1:0),T=f.low=T+$,f.high=R+M+(T>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512)),Er.exports;var e}var Ar,kr={exports:{}};var Rr,Tr={exports:{}};function Br(){return Rr?Tr.exports:(Rr=1,Tr.exports=(e=Yn(),Zn(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.x64.Word,a=n.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,h=0,f=0;f<7;f++){if(1&o){var d=(1<<f)-1;d<32?h^=1<<d:a^=1<<d-32}128&o?o=o<<1^113:o<<=1}u[i]=s.create(a,h)}}();var h=[];!function(){for(var e=0;e<25;e++)h[e]=s.create()}();var f=a.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],s=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(T=n[o]).high^=s,T.low^=i}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var d=0,p=0,g=0;g<5;g++)d^=(T=n[f+5*g]).high,p^=T.low;var y=h[f];y.high=d,y.low=p}for(f=0;f<5;f++){var m=h[(f+4)%5],w=h[(f+1)%5],v=w.high,b=w.low;for(d=m.high^(v<<1|b>>>31),p=m.low^(b<<1|v>>>31),g=0;g<5;g++)(T=n[f+5*g]).high^=d,T.low^=p}for(var _=1;_<25;_++){var S=(T=n[_]).high,E=T.low,x=c[_];x<32?(d=S<<x|E>>>32-x,p=E<<x|S>>>32-x):(d=E<<x-32|S>>>64-x,p=S<<x-32|E>>>64-x);var A=h[l[_]];A.high=d,A.low=p}var k=h[0],R=n[0];for(k.high=R.high,k.low=R.low,f=0;f<5;f++)for(g=0;g<5;g++){var T=n[_=f+5*g],B=h[_],O=h[(f+1)%5+5*g],C=h[(f+2)%5+5*g];T.high=B.high^~O.high&C.high,T.low=B.low^~O.low&C.low}T=n[0];var P=u[a];T.high^=P.high,T.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var h=s[u],f=h.high,d=h.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new o.init(l,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(f),n.HmacSHA3=i._createHmacHelper(f)}(Math),e.SHA3));var e}var Or,Cr={exports:{}};var Pr,Hr={exports:{}};function Ir(){return Pr||(Pr=1,Hr.exports=(e=Yn(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))),Hr.exports;var e,t,n,r}var Dr,Ur={exports:{}};var Lr,Nr={exports:{}};function zr(){return Lr||(Lr=1,Nr.exports=(a=Yn(),yr(),Ir(),t=(e=a).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),s=r.create(),a=s.words,c=o.keySize,l=o.iterations;a.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();s.concat(n)}return s.sigBytes=4*c,s}}),e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)},a.EvpKDF)),Nr.exports;var e,t,n,r,o,i,s,a}var Fr,jr={exports:{}};function qr(){return Fr||(Fr=1,jr.exports=(e=Yn(),zr(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,s=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var c=a.Base64,l=n.algo.EvpKDF,u=r.Cipher=s.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?v:m}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=n.mode={},f=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=h.CBC=function(){var e=f.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var s=0;s<r;s++)e[n+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(o);var c=i.create(s,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},m=r.SerializableCipher=o.extend({cfg:o.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),s=o.cfg;return g.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)s=l.create({keySize:t+n,hasher:o}).compute(e,r);else var s=l.create({keySize:t+n}).compute(e,r);var a=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,g.create({key:s,iv:a,salt:r})}},v=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:w}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=m.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,m.decrypt.call(this,e,t,o.key,r)}})}()))),jr.exports;var e}var Mr,$r={exports:{}};function Wr(){return Mr?$r.exports:(Mr=1,$r.exports=(e=Yn(),qr(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB));var e}var Kr,Jr={exports:{}};function Vr(){return Kr?Jr.exports:(Kr=1,Jr.exports=(n=Yn(),qr(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[r-1]=i[r-1]+1|0;for(var a=0;a<r;a++)e[t+a]^=s[a]}}),e.Decryptor=t,e),n.mode.CTR));var e,t,n}var Yr,Gr={exports:{}};function Xr(){return Yr?Gr.exports:(Yr=1,Gr.exports=(e=Yn(),qr(),
|
1
|
+
var e,t,n;!function(e){e.RB_HOMEPAGE_HERO_THREE_TILE="rbHomepageHeroThreeTile",e.RB_HOMEPAGE_HERO_FULL_IMAGE="rbHomepageHeroFullImage",e.RB_LARGE_CATEGORY_IMAGE_TOUT="rbLargeCategoryImageTout",e.RB_SMALL_DISCOVER_TOUT="rbSmallDiscoverTout",e.RB_SMALL_CATEGORY_IMAGE_TOUT="rbSmallCategoryImageTout",e.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK="rbCollectionBannerWithoutTextBlock",e.RB_PRODUCT_UPCS="rbProductUpcs",e.RB_NAVIGATION_BANNER="rbNavigationBanner",e.BILLBOARD="billboard",e.LARGE_RECTANGLE="largeRectangle",e.VERTICAL_RECTANGLE="verticalRectangle",e.SQUARE="square",e.LARGE_LEADERBOARD="largeLeaderboard",e.WIDE_SKYSCRAPER="wideSkyscraper",e.IN_TEXT="inText",e.SMALL_RECTANGLE="smallRectangle",e.MEDIUM_RECTANGLE="mediumRectangle",e.BANNER="banner",e.LEADERBOARD="leaderboard",e.SKYSCRAPER="skyscraper",e.HALF_PAGE="halfPage",e.SMALL_SQUARE="smallSquare",e.VERTICAL_BANNER="verticalBanner",e.BUTTON_2="button2",e.MICRO_BAR="microBar",e.POP_UP="popUp",e.PORTRAIT="portrait",e.SMARTPHONE_BANNER_1="smartphoneBanner1",e.SMARTPHONE_BANNER_2="smartphoneBanner2",e.MOBILE_PHONE_INTERSTITIAL_1="mobilePhoneInterstitial1",e.MOBILE_PHONE_INTERSTITIAL_2="mobilePhoneInterstitial2",e.MOBILE_PHONE_INTERSTITIAL_3="mobilePhoneInterstitial3",e.FEATURE_PHONE_SMALL_BANNER="featurePhoneSmallBanner",e.FEATURE_PHONE_MEDIUM_BANNER="featurePhoneMediumBanner",e.FEATURE_PHONE_LARGE_BANNER="featurePhoneLargeBanner"}(e||(e={})),function(e){e.KEYWORDS="keywords",e.PARENTCO="parentCo",e.BRAND="brand",e.CATEGORY="category",e.TYPE="type",e.CLASSIFICATION="classification",e.HOLIDAY="holiday",e.PUBLISHERS="publishers"}(t||(t={})),function(e){e.LOC="loc",e.DEV="dev",e.STAGE="stage",e.PROD="prod"}(n||(n={}));const r="X-Liquid-Protected",o="X-Liquid-Timestamp",i="X-Liquid-Api-Env",s={url:{loc:"http://localhost:8300",dev:"https://rmn-services-development-948630220003.us-central1.run.app",stage:"https://rmn-services-development-948630220003.us-central1.run.app",prod:"https://rmn-services-development-948630220003.us-central1.run.app"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{authenticated:!1,apiKey:"",token:"",env:n.DEV}};class a{}var c="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function l(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}var u=l,f=h;function d(e){if(u===setTimeout)return setTimeout(e,0);if((u===l||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}"function"==typeof c.setTimeout&&(u=setTimeout),"function"==typeof c.clearTimeout&&(f=clearTimeout);var p,g=[],y=!1,m=-1;function w(){y&&p&&(y=!1,p.length?g=p.concat(g):m=-1,g.length&&b())}function b(){if(!y){var e=d(w);y=!0;for(var t=g.length;t;){for(p=g,g=[];++m<t;)p&&p[m].run();m=-1,t=g.length}p=null,y=!1,function(e){if(f===clearTimeout)return clearTimeout(e);if((f===h||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}v.prototype.run=function(){this.fun.apply(null,this.array)};function _(){}var x=_,E=_,S=_,A=_,k=_,R=_,T=_;var B=c.performance||{},O=B.now||B.mozNow||B.msNow||B.oNow||B.webkitNow||function(){return(new Date).getTime()};var C=new Date;var P={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new v(e,t)),1!==g.length||y||d(b)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:x,addListener:E,once:S,off:A,removeListener:k,removeAllListeners:R,emit:T,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*O.call(B),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-C)/1e3}};function I(e,t){return function(){return e.apply(t,arguments)}}const{toString:H}=Object.prototype,{getPrototypeOf:D}=Object,U=(z=Object.create(null),e=>{const t=H.call(e);return z[t]||(z[t]=t.slice(8,-1).toLowerCase())});var z;const L=e=>(e=e.toLowerCase(),t=>U(t)===e),N=e=>t=>typeof t===e,{isArray:F}=Array,M=N("undefined");const q=L("ArrayBuffer");const j=N("string"),$=N("function"),W=N("number"),K=e=>null!==e&&"object"==typeof e,J=e=>{if("object"!==U(e))return!1;const t=D(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Y=L("Date"),V=L("File"),G=L("Blob"),X=L("FileList"),Z=L("URLSearchParams"),[Q,ee,te,ne]=["ReadableStream","Request","Response","Headers"].map(L);function re(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),F(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function oe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:c,se=e=>!M(e)&&e!==ie;const ae=(ce="undefined"!=typeof Uint8Array&&D(Uint8Array),e=>ce&&e instanceof ce);var ce;const le=L("HTMLFormElement"),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ue=L("RegExp"),fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};re(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},de="abcdefghijklmnopqrstuvwxyz",pe="0123456789",ge={DIGIT:pe,ALPHA:de,ALPHA_DIGIT:de+de.toUpperCase()+pe};const ye=L("AsyncFunction"),me=(we="function"==typeof setImmediate,be=$(ie.postMessage),we?setImmediate:be?(ve=`axios@${Math.random()}`,_e=[],ie.addEventListener("message",(({source:e,data:t})=>{e===ie&&t===ve&&_e.length&&_e.shift()()}),!1),e=>{_e.push(e),ie.postMessage(ve,"*")}):e=>setTimeout(e));var we,be,ve,_e;const xe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ie):P.nextTick||me;var Ee={isArray:F,isArrayBuffer:q,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(e.constructor)&&$(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||$(e.append)&&("formdata"===(t=U(e))||"object"===t&&$(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&q(e.buffer),t},isString:j,isNumber:W,isBoolean:e=>!0===e||!1===e,isObject:K,isPlainObject:J,isReadableStream:Q,isRequest:ee,isResponse:te,isHeaders:ne,isUndefined:M,isDate:Y,isFile:V,isBlob:G,isRegExp:ue,isFunction:$,isStream:e=>K(e)&&$(e.pipe),isURLSearchParams:Z,isTypedArray:ae,isFileList:X,forEach:re,merge:function e(){const{caseless:t}=se(this)&&this||{},n={},r=(r,o)=>{const i=t&&oe(n,o)||o;J(n[i])&&J(r)?n[i]=e(n[i],r):J(r)?n[i]=e({},r):F(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&re(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(re(t,((t,r)=>{n&&$(t)?e[r]=I(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&D(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:U,kindOfTest:L,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(F(e))return e;let t=e.length;if(!W(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:le,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:fe,freezeMethods:e=>{fe(e,((t,n)=>{if($(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];$(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return F(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:oe,global:ie,isContextDefined:se,ALPHABET:ge,generateString:(e=16,t=ge.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&$(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(K(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=F(e)?[]:{};return re(e,((e,t)=>{const i=n(e,r+1);!M(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ye,isThenable:e=>e&&(K(e)||$(e))&&$(e.then)&&$(e.catch),setImmediate:me,asap:xe},Se=[],Ae=[],ke="undefined"!=typeof Uint8Array?Uint8Array:Array,Re=!1;function Te(){Re=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Se[t]=e[t],Ae[e.charCodeAt(t)]=t;Ae["-".charCodeAt(0)]=62,Ae["_".charCodeAt(0)]=63}function Be(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(Se[(o=r)>>18&63]+Se[o>>12&63]+Se[o>>6&63]+Se[63&o]);return i.join("")}function Oe(e){var t;Re||Te();for(var n=e.length,r=n%3,o="",i=[],s=16383,a=0,c=n-r;a<c;a+=s)i.push(Be(e,a,a+s>c?c:a+s));return 1===r?(t=e[n-1],o+=Se[t>>2],o+=Se[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Se[t>>10],o+=Se[t>>4&63],o+=Se[t<<2&63],o+="="),i.push(o),i.join("")}function Ce(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,l=c>>1,h=-7,u=n?o-1:0,f=n?-1:1,d=e[t+u];for(u+=f,i=d&(1<<-h)-1,d>>=-h,h+=a;h>0;i=256*i+e[t+u],u+=f,h-=8);for(s=i&(1<<-h)-1,i>>=-h,h+=r;h>0;s=256*s+e[t+u],u+=f,h-=8);if(0===i)i=1-l;else{if(i===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),i-=l}return(d?-1:1)*s*Math.pow(2,i-r)}function Pe(e,t,n,r,o,i){var s,a,c,l=8*i-o-1,h=(1<<l)-1,u=h>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+u>=1?f/c:f*Math.pow(2,1-u))*c>=2&&(s++,c/=2),s+u>=h?(a=0,s=h):s+u>=1?(a=(t*c-1)*Math.pow(2,o),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;e[n+d]=255&a,d+=p,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;e[n+d]=255&s,d+=p,s/=256,l-=8);e[n+d-p]|=128*g}var Ie={}.toString,He=Array.isArray||function(e){return"[object Array]"==Ie.call(e)};function De(){return ze.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ue(e,t){if(De()<t)throw new RangeError("Invalid typed array length");return ze.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ze.prototype:(null===e&&(e=new ze(t)),e.length=t),e}function ze(e,t,n){if(!(ze.TYPED_ARRAY_SUPPORT||this instanceof ze))return new ze(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Fe(this,e)}return Le(this,e,t,n)}function Le(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);ze.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ze.prototype:e=Me(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!ze.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|$e(t,n);e=Ue(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(je(t)){var n=0|qe(t.length);return 0===(e=Ue(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Ue(e,0):Me(e,t);if("Buffer"===t.type&&He(t.data))return Me(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ne(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Fe(e,t){if(Ne(t),e=Ue(e,t<0?0:0|qe(t)),!ze.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Me(e,t){var n=t.length<0?0:0|qe(t.length);e=Ue(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function qe(e){if(e>=De())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+De().toString(16)+" bytes");return 0|e}function je(e){return!(null==e||!e._isBuffer)}function $e(e,t){if(je(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return mt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return wt(e).length;default:if(r)return mt(e).length;t=(""+t).toLowerCase(),r=!0}}function We(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return st(this,t,n);case"utf8":case"utf-8":return nt(this,t,n);case"ascii":return ot(this,t,n);case"latin1":case"binary":return it(this,t,n);case"base64":return tt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ke(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Je(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=ze.from(t,r)),je(t))return 0===t.length?-1:Ye(e,t,n,r,o);if("number"==typeof t)return t&=255,ze.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ye(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Ye(e,t,n,r,o){var i,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var h=-1;for(i=n;i<a;i++)if(l(e,i)===l(t,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===c)return h*s}else-1!==h&&(i-=i-h),h=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){for(var u=!0,f=0;f<c;f++)if(l(e,i+f)!==l(t,f)){u=!1;break}if(u)return i}return-1}function Ve(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function Ge(e,t,n,r){return bt(mt(t,e.length-n),e,n,r)}function Xe(e,t,n,r){return bt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ze(e,t,n,r){return Xe(e,t,n,r)}function Qe(e,t,n,r){return bt(wt(t),e,n,r)}function et(e,t,n,r){return bt(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function tt(e,t,n){return 0===t&&n===e.length?Oe(e):Oe(e.slice(t,n))}function nt(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,c,l=e[o],h=null,u=l>239?4:l>223?3:l>191?2:1;if(o+u<=n)switch(u){case 1:l<128&&(h=l);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&l)<<6|63&i)>127&&(h=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&l)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(h=c)}null===h?(h=65533,u=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),o+=u}return function(e){var t=e.length;if(t<=rt)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=rt));return n}(r)}ze.TYPED_ARRAY_SUPPORT=void 0===c.TYPED_ARRAY_SUPPORT||c.TYPED_ARRAY_SUPPORT,De(),ze.poolSize=8192,ze._augment=function(e){return e.__proto__=ze.prototype,e},ze.from=function(e,t,n){return Le(null,e,t,n)},ze.TYPED_ARRAY_SUPPORT&&(ze.prototype.__proto__=Uint8Array.prototype,ze.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ze[Symbol.species]),ze.alloc=function(e,t,n){return function(e,t,n,r){return Ne(t),t<=0?Ue(e,t):void 0!==n?"string"==typeof r?Ue(e,t).fill(n,r):Ue(e,t).fill(n):Ue(e,t)}(null,e,t,n)},ze.allocUnsafe=function(e){return Fe(null,e)},ze.allocUnsafeSlow=function(e){return Fe(null,e)},ze.isBuffer=function(e){return null!=e&&(!!e._isBuffer||vt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&vt(e.slice(0,0))}(e))},ze.compare=function(e,t){if(!je(e)||!je(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},ze.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ze.concat=function(e,t){if(!He(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ze.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=ze.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!je(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},ze.byteLength=$e,ze.prototype._isBuffer=!0,ze.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ke(this,t,t+1);return this},ze.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ke(this,t,t+3),Ke(this,t+1,t+2);return this},ze.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ke(this,t,t+7),Ke(this,t+1,t+6),Ke(this,t+2,t+5),Ke(this,t+3,t+4);return this},ze.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?nt(this,0,e):We.apply(this,arguments)},ze.prototype.equals=function(e){if(!je(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ze.compare(this,e)},ze.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ze.prototype.compare=function(e,t,n,r,o){if(!je(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),h=0;h<a;++h)if(c[h]!==l[h]){i=c[h],s=l[h];break}return i<s?-1:s<i?1:0},ze.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},ze.prototype.indexOf=function(e,t,n){return Je(this,e,t,n,!0)},ze.prototype.lastIndexOf=function(e,t,n){return Je(this,e,t,n,!1)},ze.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return Ve(this,e,t,n);case"utf8":case"utf-8":return Ge(this,e,t,n);case"ascii":return Xe(this,e,t,n);case"latin1":case"binary":return Ze(this,e,t,n);case"base64":return Qe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},ze.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var rt=4096;function ot(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function it(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function st(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=yt(e[i]);return o}function at(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function ct(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function lt(e,t,n,r,o,i){if(!je(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function ht(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function ut(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function ft(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function dt(e,t,n,r,o){return o||ft(e,0,n,4),Pe(e,t,n,r,23,4),n+4}function pt(e,t,n,r,o){return o||ft(e,0,n,8),Pe(e,t,n,r,52,8),n+8}ze.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),ze.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ze.prototype;else{var o=t-e;n=new ze(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},ze.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},ze.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},ze.prototype.readUInt8=function(e,t){return t||ct(e,1,this.length),this[e]},ze.prototype.readUInt16LE=function(e,t){return t||ct(e,2,this.length),this[e]|this[e+1]<<8},ze.prototype.readUInt16BE=function(e,t){return t||ct(e,2,this.length),this[e]<<8|this[e+1]},ze.prototype.readUInt32LE=function(e,t){return t||ct(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ze.prototype.readUInt32BE=function(e,t){return t||ct(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ze.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},ze.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||ct(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},ze.prototype.readInt8=function(e,t){return t||ct(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ze.prototype.readInt16LE=function(e,t){t||ct(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ze.prototype.readInt16BE=function(e,t){t||ct(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ze.prototype.readInt32LE=function(e,t){return t||ct(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ze.prototype.readInt32BE=function(e,t){return t||ct(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ze.prototype.readFloatLE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!0,23,4)},ze.prototype.readFloatBE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!1,23,4)},ze.prototype.readDoubleLE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!0,52,8)},ze.prototype.readDoubleBE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!1,52,8)},ze.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||lt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},ze.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||lt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},ze.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,255,0),ze.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ze.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),ze.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ht(this,e,t,!0),t+2},ze.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ht(this,e,t,!1),t+2},ze.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),ze.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ut(this,e,t,!0),t+4},ze.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ut(this,e,t,!1),t+4},ze.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lt(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},ze.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);lt(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+n},ze.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,127,-128),ze.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ze.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),ze.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ht(this,e,t,!0),t+2},ze.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ht(this,e,t,!1),t+2},ze.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),ze.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ut(this,e,t,!0),t+4},ze.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ze.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ut(this,e,t,!1),t+4},ze.prototype.writeFloatLE=function(e,t,n){return dt(this,e,t,!0,n)},ze.prototype.writeFloatBE=function(e,t,n){return dt(this,e,t,!1,n)},ze.prototype.writeDoubleLE=function(e,t,n){return pt(this,e,t,!0,n)},ze.prototype.writeDoubleBE=function(e,t,n){return pt(this,e,t,!1,n)},ze.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!ze.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},ze.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!ze.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=je(e)?e:mt(new ze(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var gt=/[^+\/0-9A-Za-z-_]/g;function yt(e){return e<16?"0"+e.toString(16):e.toString(16)}function mt(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function wt(e){return function(e){var t,n,r,o,i,s;Re||Te();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new ke(3*a/4-i),r=i>0?a-4:a;var c=0;for(t=0,n=0;t<r;t+=4,n+=3)o=Ae[e.charCodeAt(t)]<<18|Ae[e.charCodeAt(t+1)]<<12|Ae[e.charCodeAt(t+2)]<<6|Ae[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===i?(o=Ae[e.charCodeAt(t)]<<2|Ae[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===i&&(o=Ae[e.charCodeAt(t)]<<10|Ae[e.charCodeAt(t+1)]<<4|Ae[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(gt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function bt(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function vt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function _t(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ee.inherits(_t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.status}}});const xt=_t.prototype,Et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Et[e]={value:e}})),Object.defineProperties(_t,Et),Object.defineProperty(xt,"isAxiosError",{value:!0}),_t.from=(e,t,n,r,o,i)=>{const s=Object.create(xt);return Ee.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),_t.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function St(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function At(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function kt(e,t,n){return e?e.concat(t).map((function(e,t){return e=At(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Rt=Ee.toFlatObject(Ee,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Tt(e,t,n){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ee.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ee.isDate(e))return e.toISOString();if(!a&&Ee.isBlob(e))throw new _t("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(e)||Ee.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):ze.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Ee.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ee.isArray(e)&&function(e){return Ee.isArray(e)&&!e.some(St)}(e)||(Ee.isFileList(e)||Ee.endsWith(n,"[]"))&&(a=Ee.toArray(e)))return n=At(n),a.forEach((function(e,r){!Ee.isUndefined(e)&&null!==e&&t.append(!0===s?kt([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!St(e)||(t.append(kt(o,n,i),c(e)),!1)}const h=[],u=Object.assign(Rt,{defaultVisitor:l,convertValue:c,isVisitable:St});if(!Ee.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ee.isUndefined(n)){if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),Ee.forEach(n,(function(n,i){!0===(!(Ee.isUndefined(n)||null===n)&&o.call(t,n,Ee.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),h.pop()}}(e),t}function Bt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ot(e,t){this._pairs=[],e&&Tt(e,this,t)}const Ct=Ot.prototype;function Pt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function It(e,t,n){if(!t)return e;const r=n&&n.encode||Pt,o=n&&n.serialize;let i;if(i=o?o(t,n):Ee.isURLSearchParams(t)?t.toString():new Ot(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ct.append=function(e,t){this._pairs.push([e,t])},Ct.toString=function(e){const t=e?function(t){return e.call(this,t,Bt)}:Bt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Ht{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ee.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ut={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const zt="undefined"!=typeof window&&"undefined"!=typeof document,Lt="object"==typeof navigator&&navigator||void 0,Nt=zt&&(!Lt||["ReactNative","NativeScript","NS"].indexOf(Lt.product)<0),Ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Mt=zt&&window.location.href||"http://localhost";var qt={...Object.freeze({__proto__:null,hasBrowserEnv:zt,hasStandardBrowserEnv:Nt,hasStandardBrowserWebWorkerEnv:Ft,navigator:Lt,origin:Mt}),...Ut};function jt(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&Ee.isArray(r)?r.length:i,a)return Ee.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&Ee.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ee.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){const n={};return Ee.forEachEntry(e,((e,r)=>{t(function(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const $t={transitional:Dt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ee.isObject(e);o&&Ee.isHTMLForm(e)&&(e=new FormData(e));if(Ee.isFormData(e))return r?JSON.stringify(jt(e)):e;if(Ee.isArrayBuffer(e)||Ee.isBuffer(e)||Ee.isStream(e)||Ee.isFile(e)||Ee.isBlob(e)||Ee.isReadableStream(e))return e;if(Ee.isArrayBufferView(e))return e.buffer;if(Ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tt(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return qt.isNode&&Ee.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ee.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$t.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ee.isResponse(e)||Ee.isReadableStream(e))return e;if(e&&Ee.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw _t.from(e,_t.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ee.forEach(["delete","get","head","post","put","patch"],(e=>{$t.headers[e]={}}));const Wt=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Kt=Symbol("internals");function Jt(e){return e&&String(e).trim().toLowerCase()}function Yt(e){return!1===e||null==e?e:Ee.isArray(e)?e.map(Yt):String(e)}function Vt(e,t,n,r,o){return Ee.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ee.isString(t)?Ee.isString(r)?-1!==t.indexOf(r):Ee.isRegExp(r)?r.test(t):void 0:void 0)}class Gt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Jt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ee.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Yt(e))}const i=(e,t)=>Ee.forEach(e,((e,n)=>o(e,n,t)));if(Ee.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ee.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Wt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Ee.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Jt(e)){const n=Ee.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ee.isFunction(t))return t.call(this,e,n);if(Ee.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Jt(e)){const n=Ee.findKey(this,e);return!(!n||void 0===this[n]||t&&!Vt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Jt(e)){const o=Ee.findKey(n,e);!o||t&&!Vt(0,n[o],o,t)||(delete n[o],r=!0)}}return Ee.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Vt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ee.forEach(this,((r,o)=>{const i=Ee.findKey(n,o);if(i)return t[i]=Yt(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Yt(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ee.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ee.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Kt]=this[Kt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Jt(e);t[r]||(!function(e,t){const n=Ee.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Ee.isArray(e)?e.forEach(r):r(e),this}}function Xt(e,t){const n=this||$t,r=t||n,o=Gt.from(r.headers);let i=r.data;return Ee.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Zt(e){return!(!e||!e.__CANCEL__)}function Qt(e,t,n){_t.call(this,null==e?"canceled":e,_t.ERR_CANCELED,t,n),this.name="CanceledError"}function en(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new _t("Request failed with status code "+n.status,[_t.ERR_BAD_REQUEST,_t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ee.reduceDescriptors(Gt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ee.freezeMethods(Gt),Ee.inherits(Qt,_t,{__CANCEL__:!0});const tn=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let h=s,u=0;for(;h!==i;)u+=n[h++],h%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*u/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},nn=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rn=e=>(...t)=>Ee.asap((()=>e(...t)));var on=qt.hasStandardBrowserEnv?function(){const e=qt.navigator&&/(msie|trident)/i.test(qt.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Ee.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},sn=qt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Ee.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Ee.isString(r)&&s.push("path="+r),Ee.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function an(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const cn=e=>e instanceof Gt?{...e}:e;function ln(e,t){t=t||{};const n={};function r(e,t,n){return Ee.isPlainObject(e)&&Ee.isPlainObject(t)?Ee.merge.call({caseless:n},e,t):Ee.isPlainObject(t)?Ee.merge({},t):Ee.isArray(t)?t.slice():t}function o(e,t,n){return Ee.isUndefined(t)?Ee.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Ee.isUndefined(t))return r(void 0,t)}function s(e,t){return Ee.isUndefined(t)?Ee.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(cn(e),cn(t),!0)};return Ee.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);Ee.isUndefined(s)&&i!==a||(n[r]=s)})),n}var hn=e=>{const t=ln({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Gt.from(a),t.url=It(an(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Ee.isFormData(r))if(qt.hasStandardBrowserEnv||qt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(qt.hasStandardBrowserEnv&&(o&&Ee.isFunction(o)&&(o=o(t)),o||!1!==o&&on(t.url))){const e=i&&s&&sn.read(s);e&&a.set(i,e)}return t};var un="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=hn(e);let o=r.data;const i=Gt.from(r.headers).normalize();let s,a,c,l,h,{responseType:u,onUploadProgress:f,onDownloadProgress:d}=r;function p(){l&&l(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function y(){if(!g)return;const r=Gt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());en((function(e){t(e),p()}),(function(e){n(e),p()}),{data:u&&"text"!==u&&"json"!==u?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(n(new _t("Request aborted",_t.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new _t("Network Error",_t.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Dt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new _t(t,o.clarifyTimeoutError?_t.ETIMEDOUT:_t.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Ee.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),Ee.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),u&&"json"!==u&&(g.responseType=r.responseType),d&&([c,h]=tn(d,!0),g.addEventListener("progress",c)),f&&g.upload&&([a,l]=tn(f),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(s=t=>{g&&(n(!t||t.type?new Qt(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===qt.protocols.indexOf(m)?n(new _t("Unsupported protocol "+m+":",_t.ERR_BAD_REQUEST,e)):g.send(o||null)}))};const fn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof _t?t:new Qt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new _t(`timeout ${t} of ms exceeded`,_t.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>Ee.asap(s),a}},dn=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},pn=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},gn=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of pn(e))yield*dn(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},yn="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,mn=yn&&"function"==typeof ReadableStream,wn=yn&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),bn=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},vn=mn&&bn((()=>{let e=!1;const t=new Request(qt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),_n=mn&&bn((()=>Ee.isReadableStream(new Response("").body))),xn={stream:_n&&(e=>e.body)};var En;yn&&(En=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!xn[e]&&(xn[e]=Ee.isFunction(En[e])?t=>t[e]():(t,n)=>{throw new _t(`Response type '${e}' is not supported`,_t.ERR_NOT_SUPPORT,n)})})));const Sn=async(e,t)=>{const n=Ee.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ee.isBlob(e))return e.size;if(Ee.isSpecCompliantForm(e)){const t=new Request(qt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ee.isArrayBufferView(e)||Ee.isArrayBuffer(e)?e.byteLength:(Ee.isURLSearchParams(e)&&(e+=""),Ee.isString(e)?(await wn(e)).byteLength:void 0)})(t):n};var An=yn&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:h,withCredentials:u="same-origin",fetchOptions:f}=hn(e);l=l?(l+"").toLowerCase():"text";let d,p=fn([o,i&&i.toAbortSignal()],s);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(c&&vn&&"get"!==n&&"head"!==n&&0!==(y=await Sn(h,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ee.isFormData(r)&&(e=n.headers.get("content-type"))&&h.setContentType(e),n.body){const[e,t]=nn(y,tn(rn(c)));r=gn(n.body,65536,e,t)}}Ee.isString(u)||(u=u?"include":"omit");const o="credentials"in Request.prototype;d=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:o?u:void 0});let i=await fetch(d);const s=_n&&("stream"===l||"response"===l);if(_n&&(a||s&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ee.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&nn(t,tn(rn(a),!0))||[];i=new Response(gn(i.body,65536,n,(()=>{r&&r(),g&&g()})),e)}l=l||"text";let m=await xn[Ee.findKey(xn,l)||"text"](i,e);return!s&&g&&g(),await new Promise(((t,n)=>{en(t,n,{data:m,headers:Gt.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:d})}))}catch(t){if(g&&g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new _t("Network Error",_t.ERR_NETWORK,e,d),{cause:t.cause||t});throw _t.from(t,t&&t.code,e,d)}});const kn={http:null,xhr:un,fetch:An};Ee.forEach(kn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Rn=e=>`- ${e}`,Tn=e=>Ee.isFunction(e)||null===e||!1===e;var Bn=e=>{e=Ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Tn(n)&&(r=kn[(t=String(n)).toLowerCase()],void 0===r))throw new _t(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new _t("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Rn).join("\n"):" "+Rn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function On(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qt(null,e)}function Cn(e){On(e),e.headers=Gt.from(e.headers),e.data=Xt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Bn(e.adapter||$t.adapter)(e).then((function(t){return On(e),t.data=Xt.call(e,e.transformResponse,t),t.headers=Gt.from(t.headers),t}),(function(t){return Zt(t)||(On(e),t&&t.response&&(t.response.data=Xt.call(e,e.transformResponse,t.response),t.response.headers=Gt.from(t.response.headers))),Promise.reject(t)}))}const Pn="1.7.7",In={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{In[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Hn={};In.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _t(r(o," has been removed"+(t?" in "+t:"")),_t.ERR_DEPRECATED);return t&&!Hn[o]&&(Hn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var Dn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _t("options must be an object",_t.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new _t("option "+i+" must be "+n,_t.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new _t("Unknown option "+i,_t.ERR_BAD_OPTION)}},validators:In};const Un=Dn.validators;class zn{constructor(e){this.defaults=e,this.interceptors={request:new Ht,response:new Ht}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ln(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Dn.assertOptions(n,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean)},!1),null!=r&&(Ee.isFunction(r)?t.paramsSerializer={serialize:r}:Dn.assertOptions(r,{encode:Un.function,serialize:Un.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ee.merge(o.common,o[t.method]);o&&Ee.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Gt.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let h,u=0;if(!a){const e=[Cn.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),h=e.length,l=Promise.resolve(t);u<h;)l=l.then(e[u++],e[u++]);return l}h=s.length;let f=t;for(u=0;u<h;){const e=s[u++],t=s[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Cn.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,h=c.length;u<h;)l=l.then(c[u++],c[u++]);return l}getUri(e){return It(an((e=ln(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ee.forEach(["delete","get","head","options"],(function(e){zn.prototype[e]=function(t,n){return this.request(ln(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ee.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ln(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}zn.prototype[e]=t(),zn.prototype[e+"Form"]=t(!0)}));class Ln{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Qt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ln((function(t){e=t})),cancel:e}}}const Nn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nn).forEach((([e,t])=>{Nn[t]=e}));const Fn=function e(t){const n=new zn(t),r=I(zn.prototype.request,n);return Ee.extend(r,zn.prototype,n,{allOwnKeys:!0}),Ee.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ln(t,n))},r}($t);Fn.Axios=zn,Fn.CanceledError=Qt,Fn.CancelToken=Ln,Fn.isCancel=Zt,Fn.VERSION=Pn,Fn.toFormData=Tt,Fn.AxiosError=_t,Fn.Cancel=Fn.CanceledError,Fn.all=function(e){return Promise.all(e)},Fn.spread=function(e){return function(t){return e.apply(null,t)}},Fn.isAxiosError=function(e){return Ee.isObject(e)&&!0===e.isAxiosError},Fn.mergeConfig=ln,Fn.AxiosHeaders=Gt,Fn.formToJSON=e=>jt(Ee.isHTMLForm(e)?new FormData(e):e),Fn.getAdapter=Bn,Fn.HttpStatusCode=Nn,Fn.default=Fn;class Mn{static getInstance(e,t){this.instances.has(e)||this.instances.set(e,t());const n=this.instances.get(e);if(!n)throw new Error(`Instance for class ${e} could not be created.`);return n}}Mn.instances=new Map;class qn{static getInstance(){return Mn.getInstance("ObjectHelper",(()=>new qn))}merge(e,...t){for(const n of t)this.mergeValue(e,n);return e}values(e){return Object.values(e)}includes(e,t){return t in e}valuesIncludes(e,t){return Object.values(e).includes(t)}hasAllValues(e,t){const n=Object.keys(e);return t.every((e=>n.includes(e)))}isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}mergeValue(e,t){var n;return this.isArray(t)?this.mergeArrayValues(e,t):"object"==typeof t?this.mergeObjectValues(e,t):null!==(n=null!=t?t:e)&&void 0!==n?n:void 0}mergeArrayValues(e,t){if(!this.isArray(e))return[...t];const n=e;for(let e=0,r=t.length;e<r;e++)n[e]=this.mergeValue(n[e],t[e]);return n}mergeObjectValues(e,t){return e&&"object"==typeof e?(this.innerMerge(e,t),e):t?Object.assign({},t):t}innerMerge(e,t){for(const n of Object.keys(t))e[n]=this.mergeValue(e[n],t[n])}}var jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $n(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Wn={exports:{}};var Kn,Jn={exports:{}},Yn=$n(Object.freeze({__proto__:null,default:{}}));function Vn(){return Kn||(Kn=1,Jn.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==jn&&jn.crypto&&(n=jn.crypto),!n)try{n=Yn}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=s<<24-(r+i)%4*8}else for(var a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),l=i.enc={},h=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},u=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},f=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,h=e.min(4*l,i);if(l){for(var u=0;u<l;u+=s)this._doProcessBlock(o,u);n=o.splice(0,l),r.sigBytes-=h}return new c.init(n,h)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=i.algo={};return i}(Math),e)),Jn.exports;var e}var Gn,Xn={exports:{}};function Zn(){return Gn||(Gn=1,Xn.exports=(s=Vn(),n=(t=s).lib,r=n.Base,o=n.WordArray,(i=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}}),s)),Xn.exports;var e,t,n,r,o,i,s}var Qn,er={exports:{}};function tr(){return Qn||(Qn=1,er.exports=(e=Vn(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),er.exports;var e}var nr,rr={exports:{}};function or(){return nr?rr.exports:(nr=1,rr.exports=(e=Vn(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16));var e}var ir,sr={exports:{}};function ar(){return ir||(ir=1,sr.exports=(e=Vn(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)o.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)),sr.exports;var e}var cr,lr={exports:{}};function hr(){return cr?lr.exports:(cr=1,lr.exports=(e=Vn(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s<r;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)i.push(o.charAt(a>>>6*(3-c)&63));var l=o.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<o.length;s++)i[o.charCodeAt(s)]=s}var a=o.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(n=c)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var ur,fr={exports:{}};function dr(){return ur||(ur=1,fr.exports=(e=Vn(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],y=e[t+5],m=e[t+6],w=e[t+7],b=e[t+8],v=e[t+9],_=e[t+10],x=e[t+11],E=e[t+12],S=e[t+13],A=e[t+14],k=e[t+15],R=i[0],T=i[1],B=i[2],O=i[3];R=l(R,T,B,O,s,7,a[0]),O=l(O,R,T,B,c,12,a[1]),B=l(B,O,R,T,d,17,a[2]),T=l(T,B,O,R,p,22,a[3]),R=l(R,T,B,O,g,7,a[4]),O=l(O,R,T,B,y,12,a[5]),B=l(B,O,R,T,m,17,a[6]),T=l(T,B,O,R,w,22,a[7]),R=l(R,T,B,O,b,7,a[8]),O=l(O,R,T,B,v,12,a[9]),B=l(B,O,R,T,_,17,a[10]),T=l(T,B,O,R,x,22,a[11]),R=l(R,T,B,O,E,7,a[12]),O=l(O,R,T,B,S,12,a[13]),B=l(B,O,R,T,A,17,a[14]),R=h(R,T=l(T,B,O,R,k,22,a[15]),B,O,c,5,a[16]),O=h(O,R,T,B,m,9,a[17]),B=h(B,O,R,T,x,14,a[18]),T=h(T,B,O,R,s,20,a[19]),R=h(R,T,B,O,y,5,a[20]),O=h(O,R,T,B,_,9,a[21]),B=h(B,O,R,T,k,14,a[22]),T=h(T,B,O,R,g,20,a[23]),R=h(R,T,B,O,v,5,a[24]),O=h(O,R,T,B,A,9,a[25]),B=h(B,O,R,T,p,14,a[26]),T=h(T,B,O,R,b,20,a[27]),R=h(R,T,B,O,S,5,a[28]),O=h(O,R,T,B,d,9,a[29]),B=h(B,O,R,T,w,14,a[30]),R=u(R,T=h(T,B,O,R,E,20,a[31]),B,O,y,4,a[32]),O=u(O,R,T,B,b,11,a[33]),B=u(B,O,R,T,x,16,a[34]),T=u(T,B,O,R,A,23,a[35]),R=u(R,T,B,O,c,4,a[36]),O=u(O,R,T,B,g,11,a[37]),B=u(B,O,R,T,w,16,a[38]),T=u(T,B,O,R,_,23,a[39]),R=u(R,T,B,O,S,4,a[40]),O=u(O,R,T,B,s,11,a[41]),B=u(B,O,R,T,p,16,a[42]),T=u(T,B,O,R,m,23,a[43]),R=u(R,T,B,O,v,4,a[44]),O=u(O,R,T,B,E,11,a[45]),B=u(B,O,R,T,k,16,a[46]),R=f(R,T=u(T,B,O,R,d,23,a[47]),B,O,s,6,a[48]),O=f(O,R,T,B,w,10,a[49]),B=f(B,O,R,T,A,15,a[50]),T=f(T,B,O,R,y,21,a[51]),R=f(R,T,B,O,E,6,a[52]),O=f(O,R,T,B,p,10,a[53]),B=f(B,O,R,T,_,15,a[54]),T=f(T,B,O,R,c,21,a[55]),R=f(R,T,B,O,b,6,a[56]),O=f(O,R,T,B,k,10,a[57]),B=f(B,O,R,T,m,15,a[58]),T=f(T,B,O,R,S,21,a[59]),R=f(R,T,B,O,g,6,a[60]),O=f(O,R,T,B,x,10,a[61]),B=f(B,O,R,T,d,15,a[62]),T=f(T,B,O,R,v,21,a[63]),i[0]=i[0]+R|0,i[1]=i[1]+T|0,i[2]=i[2]+B|0,i[3]=i[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),s=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var h=c[l];c[l]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,i,s){var a=e+(t&n|~t&r)+o+s;return(a<<i|a>>>32-i)+t}function h(e,t,n,r,o,i,s){var a=e+(t&r|n&~r)+o+s;return(a<<i|a>>>32-i)+t}function u(e,t,n,r,o,i,s){var a=e+(t^n^r)+o+s;return(a<<i|a>>>32-i)+t}function f(e,t,n,r,o,i,s){var a=e+(n^(t|~r))+o+s;return(a<<i|a>>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),e.MD5)),fr.exports;var e}var pr,gr={exports:{}};function yr(){return pr||(pr=1,gr.exports=(a=Vn(),t=(e=a).lib,n=t.WordArray,r=t.Hasher,o=e.algo,i=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],s=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)i[l]=0|e[t+l];else{var h=i[l-3]^i[l-8]^i[l-14]^i[l-16];i[l]=h<<1|h>>>31}var u=(r<<5|r>>>27)+c+i[l];u+=l<20?1518500249+(o&s|~o&a):l<40?1859775393+(o^s^a):l<60?(o&s|o&a|s&a)-1894007588:(o^s^a)-899497514,c=a,a=s,s=o<<30|o>>>2,o=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s),a.SHA1)),gr.exports;var e,t,n,r,o,i,s,a}var mr,wr={exports:{}};function br(){return mr||(mr=1,wr.exports=(e=Vn(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(a[o]=n(t.pow(r,.5))),c[o]=n(t.pow(r,1/3)),o++),r++}();var l=[],h=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],h=n[5],u=n[6],f=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=l[d-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;l[d]=g+l[d-7]+m+l[d-16]}var w=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),v=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&u)+c[d]+l[d];f=u,u=h,h=a,a=s+v|0,s=i,i=o,o=r,r=v+(b+w)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+h|0,n[6]=n[6]+u|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(h),n.HmacSHA256=i._createHmacHelper(h)}(Math),e.SHA256)),wr.exports;var e}var vr,_r={exports:{}};var xr,Er={exports:{}};function Sr(){return xr||(xr=1,Er.exports=(e=Vn(),Zn(),function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,s=t.algo;function a(){return o.create.apply(o,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=a()}();var h=s.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],h=n[5],u=n[6],f=n[7],d=r.high,p=r.low,g=o.high,y=o.low,m=i.high,w=i.low,b=s.high,v=s.low,_=a.high,x=a.low,E=h.high,S=h.low,A=u.high,k=u.low,R=f.high,T=f.low,B=d,O=p,C=g,P=y,I=m,H=w,D=b,U=v,z=_,L=x,N=E,F=S,M=A,q=k,j=R,$=T,W=0;W<80;W++){var K,J,Y=l[W];if(W<16)J=Y.high=0|e[t+2*W],K=Y.low=0|e[t+2*W+1];else{var V=l[W-15],G=V.high,X=V.low,Z=(G>>>1|X<<31)^(G>>>8|X<<24)^G>>>7,Q=(X>>>1|G<<31)^(X>>>8|G<<24)^(X>>>7|G<<25),ee=l[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=l[W-7],se=ie.high,ae=ie.low,ce=l[W-16],le=ce.high,he=ce.low;J=(J=(J=Z+se+((K=Q+ae)>>>0<Q>>>0?1:0))+re+((K+=oe)>>>0<oe>>>0?1:0))+le+((K+=he)>>>0<he>>>0?1:0),Y.high=J,Y.low=K}var ue,fe=z&N^~z&M,de=L&F^~L&q,pe=B&C^B&I^C&I,ge=O&P^O&H^P&H,ye=(B>>>28|O<<4)^(B<<30|O>>>2)^(B<<25|O>>>7),me=(O>>>28|B<<4)^(O<<30|B>>>2)^(O<<25|B>>>7),we=(z>>>14|L<<18)^(z>>>18|L<<14)^(z<<23|L>>>9),be=(L>>>14|z<<18)^(L>>>18|z<<14)^(L<<23|z>>>9),ve=c[W],_e=ve.high,xe=ve.low,Ee=j+we+((ue=$+be)>>>0<$>>>0?1:0),Se=me+ge;j=M,$=q,M=N,q=F,N=z,F=L,z=D+(Ee=(Ee=(Ee=Ee+fe+((ue+=de)>>>0<de>>>0?1:0))+_e+((ue+=xe)>>>0<xe>>>0?1:0))+J+((ue+=K)>>>0<K>>>0?1:0))+((L=U+ue|0)>>>0<U>>>0?1:0)|0,D=I,U=H,I=C,H=P,C=B,P=O,B=Ee+(ye+pe+(Se>>>0<me>>>0?1:0))+((O=ue+Se|0)>>>0<ue>>>0?1:0)|0}p=r.low=p+O,r.high=d+B+(p>>>0<O>>>0?1:0),y=o.low=y+P,o.high=g+C+(y>>>0<P>>>0?1:0),w=i.low=w+H,i.high=m+I+(w>>>0<H>>>0?1:0),v=s.low=v+U,s.high=b+D+(v>>>0<U>>>0?1:0),x=a.low=x+L,a.high=_+z+(x>>>0<L>>>0?1:0),S=h.low=S+F,h.high=E+N+(S>>>0<F>>>0?1:0),k=u.low=k+q,u.high=A+M+(k>>>0<q>>>0?1:0),T=f.low=T+$,f.high=R+j+(T>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512)),Er.exports;var e}var Ar,kr={exports:{}};var Rr,Tr={exports:{}};function Br(){return Rr?Tr.exports:(Rr=1,Tr.exports=(e=Vn(),Zn(),function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.x64.Word,a=n.algo,c=[],l=[],h=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,u=0,f=0;f<7;f++){if(1&o){var d=(1<<f)-1;d<32?u^=1<<d:a^=1<<d-32}128&o?o=o<<1^113:o<<=1}h[i]=s.create(a,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=s.create()}();var f=a.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],s=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(T=n[o]).high^=s,T.low^=i}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var d=0,p=0,g=0;g<5;g++)d^=(T=n[f+5*g]).high,p^=T.low;var y=u[f];y.high=d,y.low=p}for(f=0;f<5;f++){var m=u[(f+4)%5],w=u[(f+1)%5],b=w.high,v=w.low;for(d=m.high^(b<<1|v>>>31),p=m.low^(v<<1|b>>>31),g=0;g<5;g++)(T=n[f+5*g]).high^=d,T.low^=p}for(var _=1;_<25;_++){var x=(T=n[_]).high,E=T.low,S=c[_];S<32?(d=x<<S|E>>>32-S,p=E<<S|x>>>32-S):(d=E<<S-32|x>>>64-S,p=x<<S-32|E>>>64-S);var A=u[l[_]];A.high=d,A.low=p}var k=u[0],R=n[0];for(k.high=R.high,k.low=R.low,f=0;f<5;f++)for(g=0;g<5;g++){var T=n[_=f+5*g],B=u[_],O=u[(f+1)%5+5*g],C=u[(f+2)%5+5*g];T.high=B.high^~O.high&C.high,T.low=B.low^~O.low&C.low}T=n[0];var P=h[a];T.high^=P.high,T.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],h=0;h<c;h++){var u=s[h],f=u.high,d=u.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new o.init(l,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(f),n.HmacSHA3=i._createHmacHelper(f)}(Math),e.SHA3));var e}var Or,Cr={exports:{}};var Pr,Ir={exports:{}};function Hr(){return Pr||(Pr=1,Ir.exports=(e=Vn(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))),Ir.exports;var e,t,n,r}var Dr,Ur={exports:{}};var zr,Lr={exports:{}};function Nr(){return zr||(zr=1,Lr.exports=(a=Vn(),yr(),Hr(),t=(e=a).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,i=o.hasher.create(),s=r.create(),a=s.words,c=o.keySize,l=o.iterations;a.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var h=1;h<l;h++)n=i.finalize(n),i.reset();s.concat(n)}return s.sigBytes=4*c,s}}),e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)},a.EvpKDF)),Lr.exports;var e,t,n,r,o,i,s,a}var Fr,Mr={exports:{}};function qr(){return Fr||(Fr=1,Mr.exports=(e=Vn(),Nr(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,s=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var c=a.Base64,l=n.algo.EvpKDF,h=r.Cipher=s.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:m}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=n.mode={},f=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=u.CBC=function(){var e=f.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var s=0;s<r;s++)e[n+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(o);var c=i.create(s,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:p}),reset:function(){var e;h.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},m=r.SerializableCipher=o.extend({cfg:o.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),s=o.cfg;return g.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)s=l.create({keySize:t+n,hasher:o}).compute(e,r);else var s=l.create({keySize:t+n}).compute(e,r);var a=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,g.create({key:s,iv:a,salt:r})}},b=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:w}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=m.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,m.decrypt.call(this,e,t,o.key,r)}})}()))),Mr.exports;var e}var jr,$r={exports:{}};function Wr(){return jr?$r.exports:(jr=1,$r.exports=(e=Vn(),qr(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB));var e}var Kr,Jr={exports:{}};function Yr(){return Kr?Jr.exports:(Kr=1,Jr.exports=(n=Vn(),qr(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[r-1]=i[r-1]+1|0;for(var a=0;a<r;a++)e[t+a]^=s[a]}}),e.Decryptor=t,e),n.mode.CTR));var e,t,n}var Vr,Gr={exports:{}};function Xr(){return Vr?Gr.exports:(Vr=1,Gr.exports=(e=Vn(),qr(),
|
2
2
|
/** @preserve
|
3
3
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
4
4
|
* derived from CryptoJS.mode.CTR
|
5
5
|
* Jan Hruby jhruby.web@gmail.com
|
6
6
|
*/
|
7
|
-
e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var c=0;c<o;c++)e[t+c]^=a[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var Zr,Qr={exports:{}};function eo(){return Zr?Qr.exports:(Zr=1,Qr.exports=(n=Yn(),qr(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<r;s++)e[t+s]^=i[s]}}),e.Decryptor=t,e),n.mode.OFB));var e,t,n}var to,no={exports:{}};var ro,oo={exports:{}};var io,so={exports:{}};var ao,co={exports:{}};var lo,uo={exports:{}};var ho,fo={exports:{}};var po,go={exports:{}};var yo,mo={exports:{}};var wo,vo={exports:{}};function bo(){return wo?vo.exports:(wo=1,vo.exports=(e=Yn(),ar(),dr(),zr(),qr(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var l=o[i]=[],u=c[i];for(n=0;n<24;n++)l[n/6|0]|=t[(a[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(a[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((s^o[c])&u[c])>>>0];this._lBlock=s,this._rBlock=i^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(h);var p=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=h.createEncryptor(r.create(t)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(p)}(),e.TripleDES));var e}var _o,So={exports:{}};var Eo,xo={exports:{}};var Ao,ko={exports:{}};var Ro,To,Bo,Oo,Co,Po,Ho,Io={exports:{}};function Do(){return Ro||(Ro=1,Io.exports=(e=Yn(),ar(),dr(),zr(),qr(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,s=e.sbox[0][n]+e.sbox[1][r];return s^=e.sbox[2][o],s+=e.sbox[3][i],s}function l(e,t,n){let r,i=t,s=n;for(let t=0;t<o;++t)i^=e.pbox[t],s=c(e,i)^s,r=i,i=s,s=r;return r=i,i=s,s=r,s^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:s}}function u(e,t,n){let r,i=t,s=n;for(let t=o+1;t>1;--t)i^=e.pbox[t],s=c(e,i)^s,r=i,i=s,s=r;return r=i,i=s,s=r,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function h(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let r=0;for(let s=0;s<o+2;s++)e.pbox[s]=i[s]^t[r],r++,r>=n&&(r=0);let a=0,c=0,u=0;for(let t=0;t<o+2;t+=2)u=l(e,a,c),a=u.left,c=u.right,e.pbox[t]=a,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)u=l(e,a,c),a=u.left,c=u.right,e.sbox[t][n]=a,e.sbox[t][n+1]=c;return!0}var f=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;h(a,t,n)}},encryptBlock:function(e,t){var n=l(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(f)}(),e.Blowfish)),Io.exports;var e}Wn.exports=function(e){return e}(Yn(),Zn(),tr(),or(),ar(),ur(),dr(),yr(),vr(),br||(br=1,_r.exports=(Ho=Yn(),vr(),Bo=(To=Ho).lib.WordArray,Oo=To.algo,Co=Oo.SHA256,Po=Oo.SHA224=Co.extend({_doReset:function(){this._hash=new Bo.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=Co._doFinalize.call(this);return e.sigBytes-=4,e}}),To.SHA224=Co._createHelper(Po),To.HmacSHA224=Co._createHmacHelper(Po),Ho.SHA224)),xr(),function(){return Ar?kr.exports:(Ar=1,kr.exports=(a=Yn(),Zn(),xr(),t=(e=a).x64,n=t.Word,r=t.WordArray,o=e.algo,i=o.SHA512,s=o.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(s),e.HmacSHA384=i._createHmacHelper(s),a.SHA384));var e,t,n,r,o,i,s,a}(),Br(),function(){return Or?Cr.exports:(Or=1,Cr.exports=(e=Yn(),
|
7
|
+
e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var c=0;c<o;c++)e[t+c]^=a[c]}});return t.Decryptor=o,t}(),e.mode.CTRGladman));var e}var Zr,Qr={exports:{}};function eo(){return Zr?Qr.exports:(Zr=1,Qr.exports=(n=Vn(),qr(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<r;s++)e[t+s]^=i[s]}}),e.Decryptor=t,e),n.mode.OFB));var e,t,n}var to,no={exports:{}};var ro,oo={exports:{}};var io,so={exports:{}};var ao,co={exports:{}};var lo,ho={exports:{}};var uo,fo={exports:{}};var po,go={exports:{}};var yo,mo={exports:{}};var wo,bo={exports:{}};function vo(){return wo?bo.exports:(wo=1,bo.exports=(e=Vn(),ar(),dr(),Nr(),qr(),function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var l=o[i]=[],h=c[i];for(n=0;n<24;n++)l[n/6|0]|=t[(a[n]-1+h)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(a[n+24]-1+h)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((s^o[c])&h[c])>>>0];this._lBlock=s,this._rBlock=i^a}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(u);var p=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(r.create(t)),this._des2=u.createEncryptor(r.create(n)),this._des3=u.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(p)}(),e.TripleDES));var e}var _o,xo={exports:{}};var Eo,So={exports:{}};var Ao,ko={exports:{}};var Ro,To,Bo,Oo,Co,Po,Io,Ho={exports:{}};function Do(){return Ro||(Ro=1,Ho.exports=(e=Vn(),ar(),dr(),Nr(),qr(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,s=e.sbox[0][n]+e.sbox[1][r];return s^=e.sbox[2][o],s+=e.sbox[3][i],s}function l(e,t,n){let r,i=t,s=n;for(let t=0;t<o;++t)i^=e.pbox[t],s=c(e,i)^s,r=i,i=s,s=r;return r=i,i=s,s=r,s^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:s}}function h(e,t,n){let r,i=t,s=n;for(let t=o+1;t>1;--t)i^=e.pbox[t],s=c(e,i)^s,r=i,i=s,s=r;return r=i,i=s,s=r,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function u(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let r=0;for(let s=0;s<o+2;s++)e.pbox[s]=i[s]^t[r],r++,r>=n&&(r=0);let a=0,c=0,h=0;for(let t=0;t<o+2;t+=2)h=l(e,a,c),a=h.left,c=h.right,e.pbox[t]=a,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)h=l(e,a,c),a=h.left,c=h.right,e.sbox[t][n]=a,e.sbox[t][n+1]=c;return!0}var f=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;u(a,t,n)}},encryptBlock:function(e,t){var n=l(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=h(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(f)}(),e.Blowfish)),Ho.exports;var e}Wn.exports=function(e){return e}(Vn(),Zn(),tr(),or(),ar(),hr(),dr(),yr(),br(),vr||(vr=1,_r.exports=(Io=Vn(),br(),Bo=(To=Io).lib.WordArray,Oo=To.algo,Co=Oo.SHA256,Po=Oo.SHA224=Co.extend({_doReset:function(){this._hash=new Bo.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=Co._doFinalize.call(this);return e.sigBytes-=4,e}}),To.SHA224=Co._createHelper(Po),To.HmacSHA224=Co._createHmacHelper(Po),Io.SHA224)),Sr(),function(){return Ar?kr.exports:(Ar=1,kr.exports=(a=Vn(),Zn(),Sr(),t=(e=a).x64,n=t.Word,r=t.WordArray,o=e.algo,i=o.SHA512,s=o.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=i._createHelper(s),e.HmacSHA384=i._createHmacHelper(s),a.SHA384));var e,t,n,r,o,i,s,a}(),Br(),function(){return Or?Cr.exports:(Or=1,Cr.exports=(e=Vn(),
|
8
8
|
/** @preserve
|
9
9
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
10
10
|
|
@@ -15,5 +15,5 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){
|
|
15
15
|
|
16
16
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
17
17
|
*/
|
18
|
-
function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,v,b,_,S,E,x,A,k,R,T=this._hash.words,B=u.words,O=h.words,C=s.words,P=a.words,H=c.words,I=l.words;for(S=i=T[0],E=f=T[1],x=v=T[2],A=b=T[3],k=_=T[4],n=0;n<80;n+=1)R=i+e[t+C[n]]|0,R+=n<16?d(f,v,b)+B[0]:n<32?p(f,v,b)+B[1]:n<48?g(f,v,b)+B[2]:n<64?y(f,v,b)+B[3]:m(f,v,b)+B[4],R=(R=w(R|=0,H[n]))+_|0,i=_,_=b,b=w(v,10),v=f,f=R,R=S+e[t+P[n]]|0,R+=n<16?m(E,x,A)+O[0]:n<32?y(E,x,A)+O[1]:n<48?g(E,x,A)+O[2]:n<64?p(E,x,A)+O[3]:d(E,x,A)+O[4],R=(R=w(R|=0,I[n]))+k|0,S=k,k=A,A=w(x,10),x=E,E=R;R=T[1]+v+A|0,T[1]=T[2]+b+k|0,T[2]=T[3]+_+S|0,T[3]=T[4]+i+E|0,T[4]=T[0]+f+x|0,T[0]=R},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function m(e,t,n){return e^(t|~n)}function w(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160));var e}(),Ir(),function(){return Dr||(Dr=1,Ur.exports=(c=Yn(),vr(),Ir(),t=(e=c).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.SHA256,s=o.HMAC,a=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=s.create(n.hasher,e),i=r.create(),a=r.create([1]),c=i.words,l=a.words,u=n.keySize,h=n.iterations;c.length<u;){var f=o.update(t).finalize(a);o.reset();for(var d=f.words,p=d.length,g=f,y=1;y<h;y++){g=o.finalize(g),o.reset();for(var m=g.words,w=0;w<p;w++)d[w]^=m[w]}i.concat(f),l[0]++}return i.sigBytes=4*u,i}}),e.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)},c.PBKDF2)),Ur.exports;var e,t,n,r,o,i,s,a,c}(),zr(),qr(),Wr(),Vr(),Xr(),eo(),function(){return to?no.exports:(to=1,no.exports=(t=Yn(),qr(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return ro?oo.exports:(ro=1,oo.exports=(e=Yn(),qr(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return io?so.exports:(io=1,so.exports=(e=Yn(),qr(),e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return ao?co.exports:(ao=1,co.exports=(e=Yn(),qr(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return lo?uo.exports:(lo=1,uo.exports=(e=Yn(),qr(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding));var e}(),function(){return ho?fo.exports:(ho=1,fo.exports=(e=Yn(),qr(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return po?go.exports:(po=1,go.exports=(r=Yn(),qr(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return yo?mo.exports:(yo=1,mo.exports=(e=Yn(),ar(),dr(),zr(),qr(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],s=[],a=[],c=[],l=[],u=[],h=[],f=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,o[n]=p,i[p]=n;var g=e[n],y=e[g],m=e[y],w=257*e[p]^16843008*p;s[n]=w<<24|w>>>8,a[n]=w<<16|w>>>16,c[n]=w<<8|w>>>24,l[n]=w,w=16843009*m^65537*y^257*g^16843008*n,u[p]=w<<24|w>>>8,h[p]=w<<16|w>>>16,f[p]=w<<8|w>>>24,d[p]=w,n?(n=g^e[e[e[m^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<r;s++)s<n?i[s]=t[s]:(l=i[s-1],s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[s/n|0]<<24),i[s]=i[s-n]^l);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(s=r-c,c%4)var l=i[s];else l=i[s-4];a[c]=c<4||s<=4?l:u[o[l>>>24]]^h[o[l>>>16&255]]^f[o[l>>>8&255]]^d[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,l,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,h,f,d,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,s,a){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],h=e[t+2]^n[2],f=e[t+3]^n[3],d=4,p=1;p<c;p++){var g=r[l>>>24]^o[u>>>16&255]^i[h>>>8&255]^s[255&f]^n[d++],y=r[u>>>24]^o[h>>>16&255]^i[f>>>8&255]^s[255&l]^n[d++],m=r[h>>>24]^o[f>>>16&255]^i[l>>>8&255]^s[255&u]^n[d++],w=r[f>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&h]^n[d++];l=g,u=y,h=m,f=w}g=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&f])^n[d++],y=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[f>>>8&255]<<8|a[255&l])^n[d++],m=(a[h>>>24]<<24|a[f>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^n[d++],w=(a[f>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^n[d++],e[t]=g,e[t+1]=y,e[t+2]=m,e[t+3]=w},keySize:8});t.AES=n._createHelper(g)}(),e.AES));var e}(),bo(),function(){return _o?So.exports:(_o=1,So.exports=(e=Yn(),ar(),dr(),zr(),qr(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var s=o%n,a=t[s>>>2]>>>24-s%4*8&255;i=(i+r[o]+a)%256;var c=r[o];r[o]=r[i],r[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4));var e}(),function(){return Eo?xo.exports:(Eo=1,xo.exports=(e=Yn(),ar(),dr(),zr(),qr(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(o[0]^=l,o[1]^=h,o[2]^=u,o[3]^=f,o[4]^=l,o[5]^=h,o[6]^=u,o[7]^=f,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit));var e}(),function(){return Ao?ko.exports:(Ao=1,ko.exports=(e=Yn(),ar(),dr(),zr(),qr(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=u,r[3]^=f,r[4]^=l,r[5]^=h,r[6]^=u,r[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy));var e}(),Do());var Uo=Wn.exports,Lo=crypto;const No=e=>e instanceof CryptoKey,zo=new TextEncoder,Fo=new TextDecoder;function jo(...e){const t=e.reduce(((e,{length:t})=>e+t),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const qo=e=>(e=>{let t=e;"string"==typeof t&&(t=zo.encode(t));const n=[];for(let e=0;e<t.length;e+=32768)n.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(n.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Mo=e=>{let t=e;t instanceof Uint8Array&&(t=Fo.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n})(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class $o extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class Wo extends $o{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,n="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=t}}class Ko extends $o{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,n="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=t}}class Jo extends $o{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class Vo extends $o{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class Yo extends $o{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class Go extends $o{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function Xo(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function Zo(e,t){return e.name===t}function Qo(e){return parseInt(e.name.slice(4),10)}function ei(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!Zo(e.algorithm,"HMAC"))throw Xo("HMAC");const n=parseInt(t.slice(2),10);if(Qo(e.algorithm.hash)!==n)throw Xo(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Zo(e.algorithm,"RSASSA-PKCS1-v1_5"))throw Xo("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(Qo(e.algorithm.hash)!==n)throw Xo(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Zo(e.algorithm,"RSA-PSS"))throw Xo("RSA-PSS");const n=parseInt(t.slice(2),10);if(Qo(e.algorithm.hash)!==n)throw Xo(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw Xo("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!Zo(e.algorithm,"ECDSA"))throw Xo("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw Xo(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(e,t){if(t.length&&!t.some((t=>e.usages.includes(t)))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}(e,n)}function ti(e,t,...n){if((n=n.filter(Boolean)).length>2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else 2===n.length?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var ni=(e,...t)=>ti("Key must be ",e,...t);function ri(e,t,...n){return ti(`Key for the ${e} algorithm must be `,t,...n)}var oi=e=>!!No(e)||"KeyObject"===e?.[Symbol.toStringTag];const ii=["CryptoKey"],si=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let n;for(const e of t){const t=Object.keys(e);if(n&&0!==n.size)for(const e of t){if(n.has(e))return!1;n.add(e)}else n=new Set(t)}return!0};function ai(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}var ci=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function li(e){return ai(e)&&"string"==typeof e.kty}const ui=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=function(e){let t,n;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Jo('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new Jo('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new Jo('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new Jo('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}(e),r=[t,e.ext??!1,e.key_ops??n],o={...e};return delete o.alg,delete o.use,Lo.subtle.importKey("jwk",o,...r)},hi=e=>Mo(e);let fi,di;const pi=e=>"KeyObject"===e?.[Symbol.toStringTag],gi=async(e,t,n,r,o=!1)=>{let i=e.get(t);if(i?.[r])return i[r];const s=await ui({...n,alg:r});return o&&Object.freeze(t),i?i[r]=s:e.set(t,{[r]:s}),s};var yi=(e,t)=>{if(pi(e)){let n=e.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?hi(n.k):(di||(di=new WeakMap),gi(di,e,n,t))}if(li(e)){if(e.k)return Mo(e.k);di||(di=new WeakMap);return gi(di,e,e,t,!0)}return e},mi=(e,t)=>{if(pi(e)){let n=e.export({format:"jwk"});return n.k?hi(n.k):(fi||(fi=new WeakMap),gi(fi,e,n,t))}if(li(e)){if(e.k)return Mo(e.k);fi||(fi=new WeakMap);return gi(fi,e,e,t,!0)}return e};const wi=e=>e?.[Symbol.toStringTag],vi=(e,t,n)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(n))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(void 0!==t.alg&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},bi=(e,t,n,r)=>{if(!(t instanceof Uint8Array)){if(r&&li(t)){if(function(e){return li(e)&&"oct"===e.kty&&"string"==typeof e.k}(t)&&vi(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!oi(t))throw new TypeError(ri(e,t,...ii,"Uint8Array",r?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${wi(t)} instances for symmetric algorithms must be of type "secret"`)}};function _i(e,t,n,r){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?bi(t,n,r,e):((e,t,n,r)=>{if(r&&li(t))switch(n){case"sign":if(function(e){return"oct"!==e.kty&&"string"==typeof e.d}(t)&&vi(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(e){return"oct"!==e.kty&&void 0===e.d}(t)&&vi(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!oi(t))throw new TypeError(ri(e,t,...ii,r?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===n&&"public"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===n&&"public"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===n&&"private"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===n&&"private"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,n,r,e)}_i.bind(void 0,!1);const Si=_i.bind(void 0,!0);function Ei(e,t,n,r,o){if(void 0!==o.crit&&void 0===r?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return new Set;if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some((e=>"string"!=typeof e||0===e.length)))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let i;i=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of r.crit){if(!i.has(t))throw new Jo(`Extension Header Parameter "${t}" is not recognized`);if(void 0===o[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(i.get(t)&&void 0===r[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(r.crit)}function xi(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new Jo(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function Ai(e,t,n){if("sign"===n&&(t=await mi(t,e)),"verify"===n&&(t=await yi(t,e)),No(t))return ei(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(ni(t,...ii));return Lo.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(ni(t,...ii,"Uint8Array","JSON Web Key"))}const ki=async(e,t,n,r)=>{const o=await Ai(e,t,"verify");ci(e,o);const i=xi(e,o.algorithm);try{return await Lo.subtle.verify(i,o,n,r)}catch{return!1}};async function Ri(e,t,n){if(!ai(e))throw new Vo("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new Vo('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new Vo("JWS Protected Header incorrect type");if(void 0===e.payload)throw new Vo("JWS Payload missing");if("string"!=typeof e.signature)throw new Vo("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ai(e.header))throw new Vo("JWS Unprotected Header incorrect type");let r={};if(e.protected)try{const t=Mo(e.protected);r=JSON.parse(Fo.decode(t))}catch{throw new Vo("JWS Protected Header is invalid")}if(!si(r,e.header))throw new Vo("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const o={...r,...e.header};let i=!0;if(Ei(Vo,new Map([["b64",!0]]),n?.crit,r,o).has("b64")&&(i=r.b64,"boolean"!=typeof i))throw new Vo('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=o;if("string"!=typeof s||!s)throw new Vo('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(i){if("string"!=typeof e.payload)throw new Vo("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new Vo("JWS Payload must be a string or an Uint8Array instance");let a=!1;"function"==typeof t?(t=await t(r,e),a=!0,Si(s,t,"verify"),li(t)&&(t=await async function(e,t){if(!ai(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return Mo(e.k);case"RSA":if(void 0!==e.oth)throw new Jo('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return ui({...e,alg:t});default:throw new Jo('Unsupported "kty" (Key Type) Parameter value')}}(t,s))):Si(s,t,"verify");const c=jo(zo.encode(e.protected??""),zo.encode("."),"string"==typeof e.payload?zo.encode(e.payload):e.payload);let l;try{l=Mo(e.signature)}catch{throw new Vo("Failed to base64url decode the signature")}if(!await ki(s,t,l,c))throw new Go;let u;if(i)try{u=Mo(e.payload)}catch{throw new Vo("Failed to base64url decode the payload")}else u="string"==typeof e.payload?zo.encode(e.payload):e.payload;const h={payload:u};return void 0!==e.protected&&(h.protectedHeader=r),void 0!==e.header&&(h.unprotectedHeader=e.header),a?{...h,key:t}:h}var Ti=e=>Math.floor(e.getTime()/1e3);const Bi=86400,Oi=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var Ci=e=>{const t=Oi.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(n*Bi);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-r:r};const Pi=e=>e.toLowerCase().replace(/^application\//,"");var Hi=(e,t,n={})=>{let r;try{r=JSON.parse(Fo.decode(t))}catch{}if(!ai(r))throw new Yo("JWT Claims Set must be a top-level JSON object");const{typ:o}=n;if(o&&("string"!=typeof e.typ||Pi(e.typ)!==Pi(o)))throw new Wo('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:i=[],issuer:s,subject:a,audience:c,maxTokenAge:l}=n,u=[...i];void 0!==l&&u.push("iat"),void 0!==c&&u.push("aud"),void 0!==a&&u.push("sub"),void 0!==s&&u.push("iss");for(const e of new Set(u.reverse()))if(!(e in r))throw new Wo(`missing required "${e}" claim`,r,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(r.iss))throw new Wo('unexpected "iss" claim value',r,"iss","check_failed");if(a&&r.sub!==a)throw new Wo('unexpected "sub" claim value',r,"sub","check_failed");if(c&&(h=r.aud,f="string"==typeof c?[c]:c,!("string"==typeof h?f.includes(h):Array.isArray(h)&&f.some(Set.prototype.has.bind(new Set(h))))))throw new Wo('unexpected "aud" claim value',r,"aud","check_failed");var h,f;let d;switch(typeof n.clockTolerance){case"string":d=Ci(n.clockTolerance);break;case"number":d=n.clockTolerance;break;case"undefined":d=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=n,g=Ti(p||new Date);if((void 0!==r.iat||l)&&"number"!=typeof r.iat)throw new Wo('"iat" claim must be a number',r,"iat","invalid");if(void 0!==r.nbf){if("number"!=typeof r.nbf)throw new Wo('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>g+d)throw new Wo('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(void 0!==r.exp){if("number"!=typeof r.exp)throw new Wo('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=g-d)throw new Ko('"exp" claim timestamp check failed',r,"exp","check_failed")}if(l){const e=g-r.iat;if(e-d>("number"==typeof l?l:Ci(l)))throw new Ko('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(e<0-d)throw new Wo('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};async function Ii(e,t,n){const r=await async function(e,t,n){if(e instanceof Uint8Array&&(e=Fo.decode(e)),"string"!=typeof e)throw new Vo("Compact JWS must be a string or Uint8Array");const{0:r,1:o,2:i,length:s}=e.split(".");if(3!==s)throw new Vo("Invalid Compact JWS");const a=await Ri({payload:o,protected:r,signature:i},t,n),c={payload:a.payload,protectedHeader:a.protectedHeader};return"function"==typeof t?{...c,key:a.key}:c}(e,t,n);if(r.protectedHeader.crit?.includes("b64")&&!1===r.protectedHeader.b64)throw new Yo("JWTs MUST NOT use unencoded payload");const o={payload:Hi(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...o,key:r.key}:o}class Di{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new Vo("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!si(this._protectedHeader,this._unprotectedHeader))throw new Vo("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader};let r=!0;if(Ei(Vo,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n).has("b64")&&(r=this._protectedHeader.b64,"boolean"!=typeof r))throw new Vo('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:o}=n;if("string"!=typeof o||!o)throw new Vo('JWS "alg" (Algorithm) Header Parameter missing or invalid');Si(o,e,"sign");let i,s=this._payload;r&&(s=zo.encode(qo(s))),i=this._protectedHeader?zo.encode(qo(JSON.stringify(this._protectedHeader))):zo.encode("");const a=jo(i,zo.encode("."),s),c=await(async(e,t,n)=>{const r=await Ai(e,t,"sign");ci(e,r);const o=await Lo.subtle.sign(xi(e,r.algorithm),r,n);return new Uint8Array(o)})(o,e,a),l={signature:qo(c),payload:""};return r&&(l.payload=Fo.decode(s)),this._unprotectedHeader&&(l.header=this._unprotectedHeader),this._protectedHeader&&(l.protected=Fo.decode(i)),l}}class Ui{constructor(e){this._flattened=new Di(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Li(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Ni{constructor(e={}){if(!ai(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:Li("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:Li("setNotBefore",Ti(e))}:this._payload={...this._payload,nbf:Ti(new Date)+Ci(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:Li("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:Li("setExpirationTime",Ti(e))}:this._payload={...this._payload,exp:Ti(new Date)+Ci(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:Ti(new Date)}:e instanceof Date?this._payload={...this._payload,iat:Li("setIssuedAt",Ti(e))}:this._payload="string"==typeof e?{...this._payload,iat:Li("setIssuedAt",Ti(new Date)+Ci(e))}:{...this._payload,iat:Li("setIssuedAt",e)},this}}class zi extends Ni{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new Ui(zo.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new Yo("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class Fi{constructor(e){var t,n,r,o,i,s,a;const c=e;this.cause=null!==(o=null!==(n=null===(t=null==c?void 0:c.response)||void 0===t?void 0:t.data.statusCode)&&void 0!==n?n:null===(r=null==c?void 0:c.response)||void 0===r?void 0:r.status)&&void 0!==o?o:0,this.errorMessage=null!==(a=null!==(s=null===(i=null==c?void 0:c.response)||void 0===i?void 0:i.data.message)&&void 0!==s?s:null==c?void 0:c.message)&&void 0!==a?a:"There's been an error related to the API request to LiquidCommerce RMN Services."}}class ji{constructor(e){this.apiKey=e}static getInstance(e){return jn.getInstance("EncryptedApi",(()=>new ji(e)))}async handleEncryption(e,t){const n=this.getKey(t);try{return this.joseEncrypt(e,n,this.forwardInMinutes(30,t))}catch(e){this.handleError({cause:"Payload decryption error",message:"The decryption of the payload failed"})}}async handleDecryption(e,t){const n=this.getKey(t);return this.joseDecrypt(e,n)}getKey(e){return this.apiKey.slice(Number(`${e}`.replace(/0/g,"").slice(-1)))}forwardInMinutes(e,t){const n=new Date(t);return n.setMinutes(n.getMinutes()+e)}async joseDecrypt(e,t){return Ii(Uo.AES.decrypt(e,t).toString(Uo.enc.Utf8),Le.from(t))}async joseEncrypt(e,t,n){const r=new Date,o=new zi(e).setProtectedHeader({alg:"HS256"}).setIssuedAt(r.getTime()).setExpirationTime(n),i=await o.sign(Le.from(t));return Uo.AES.encrypt(i,t).toString()}handleError(e){throw new Fi(e)}}class qi extends a{constructor(e){var t;super(),this.authInfo=e,this.encryptedApi=ji.getInstance(this.authInfo.apiKey),this.objectHelper=qn.getInstance(),this.baseUrl=null!==(t=s.url[this.authInfo.env])&&void 0!==t?t:s.url.dev,this.client=Fn.create(Object.assign({baseURL:this.baseUrl},this.getConfig({[s.accessHeader]:`Bearer ${this.authInfo.token}`})))}getConfig(e){return{headers:Object.assign({"Content-Type":"application/json",[i]:this.authInfo.env},e)}}async get(e,t){return this.createRequest(e,t,this.client.get)}async post(e,t,i){let a=t;if(this.authInfo.env!==n.DEV){const e=(new Date).getTime();i=Object.assign(Object.assign({},i),{headers:Object.assign(Object.assign({},null==i?void 0:i.headers),{[r]:"true",[o]:e,[s.apiHeader]:this.authInfo.apiKey})}),a={t:await this.encryptedApi.handleEncryption(t,e)}}return this.createRequest(e,i,((e,t)=>this.client.post(e,a,t)))}async createRequest(e,t,n){try{const r=this.createURL(e),o=this.createFullConfig(t),i=await this.sendRequest(r,o,n);return await this.getResponse(i)}catch(e){return{isOk:!1,val:null,isErr:new Fi(e)}}}createFullConfig(e){return this.objectHelper.merge(this.getConfig(),null!=e?e:{})}async sendRequest(e,t,n){return n(e,t)}async getResponse(e){var t,n,i,s,a,c,l;let u=(null==e?void 0:e.data)?e.data:null,h=!1,f=0;if((null==e?void 0:e.headers)&&(null===(t=null==e?void 0:e.headers)||void 0===t?void 0:t.has)&&(null===(n=null==e?void 0:e.headers)||void 0===n?void 0:n.has(r))&&(null===(i=null==e?void 0:e.headers)||void 0===i?void 0:i.has(o))&&(null===(s=null==e?void 0:e.headers)||void 0===s?void 0:s.get)&&(h="true"===(null===(a=null==e?void 0:e.headers)||void 0===a?void 0:a.get(r)),f=(null===(c=null==e?void 0:e.headers)||void 0===c?void 0:c.get(o))?Number(null===(l=null==e?void 0:e.headers)||void 0===l?void 0:l.get(o)):0),u&&h&&this.objectHelper.includes(u,"t")&&f>0){const{t:e}=u,t=await this.encryptedApi.handleDecryption(e,f);(null==t?void 0:t.payload)&&(delete t.payload.exp,delete t.payload.iat,u=t.payload)}return{isOk:!0,val:u,isErr:!1}}createURL(e){const t=e&&"/"!==e[0]?`/${e}`:e;return`${this.baseUrl}/api${t}`}}class Mi extends qi{constructor(e,t){super({authenticated:!1,apiKey:e,token:"",env:t})}static getInstance(e,t){return jn.getInstance("AuthService",(()=>new Mi(e,t)))}async initialize(){const{isOk:e,isErr:t,val:n}=await this.get("/auth",{headers:{[s.apiHeader]:this.authInfo.apiKey}});if(t)throw new Error(`There was an error during authentication: (${null==t?void 0:t.errorMessage})`);if(!e||!(null==n?void 0:n.data.token))throw new Error("Auth response was not successful");return this.authInfo.token=n.data.token,this.authInfo.authenticated=!0,this.authInfo}}const $i="spot-element";function Wi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e,image2:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n gap: 7px;\n }\n .big-image {\n width: 65%;\n height: 100%;\n background-image: url("${e}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .main {\n width: 35%;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 7px;\n }\n .small-image {\n width: 100%;\n height: 50%;\n background-image: url("${t}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .text {\n background: #D0D4BF;\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 7px;\n height: 50%;\n width: 100%;\n overflow: hidden;\n font-family: "Source Sans 3", sans-serif;\n }\n .headline {\n font-size: 2.3cqw;\n color: #212121;\n font-style: normal;\n font-weight: 700;\n font-family: "Cormorant", serif;\n }\n .body {\n font-size: 1.2cqw;\n color: #212121;\n font-style: normal;\n font-weight: 400;\n width: 80%;\n }\n a {\n font-size: 1cqw;\n color: #212121;\n font-style: normal;\n font-weight: 700;\n text-decoration-line: underline;\n text-transform: uppercase;\n }\n @container (max-width: 600px) {\n .headline {\n font-size: 2cqh;\n }\n .body {\n font-size: 1cqh;\n width: 95%;\n }\n a {\n font-size: 0.7cqh;\n }\n }\n </style>\n`)(e)}\n <div class="content">\n <div class="big-image"></div>\n <div class="main">\n <div class="small-image"></div>\n <div class="text">\n <span class="headline">${e.headline}</span>\n <span class="body">${e.body}</span>\n <a href="${e.clickUrl}">${e.buttonText}</a>\n </div>\n </div>\n </div>\n `}function Ki(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n font-family: "Source Sans 3", sans-serif;\n background-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%), url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n }\n .text-container {\n max-width: 50%;\n }\n .headline {\n font-size: clamp(1.8cqw, 2.4cqw, 2.8cqw);\n color: #FFF;\n font-style: normal;\n font-weight: 700;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin: 0 0 0.8cqh 0;\n }\n .body {\n font-size: clamp(1.2cqw, 1.4cqw, 1.6cqw);\n color: #FFF;\n font-style: normal;\n font-weight: 400;\n line-height: 1.4;\n margin: 0 0 1.2cqh 0;\n }\n a {\n font-size: clamp(1cqw, 1.1cqw, 1.4cqw);\n border-radius: 0.4cqh;\n border: 0.1cqh solid #FFF;\n background: rgba(255, 255, 255, 0.2);\n backdrop-filter: blur(2px);\n display: inline-block;\n padding: 0.8cqh 1.6cqw;\n text-decoration: none;\n color: #FFF;\n transition: background-color 0.3s, color 0.3s;\n }\n a:hover {\n background-color: #FFF;\n color: #000;\n }\n @container (max-width: 600px) {\n .text-container {\n max-width: 100%;\n }\n .headline {\n font-size: clamp(1.6cqw, 4vw, 2.4cqw);\n margin: 0 0 0.4cqh 0;\n }\n .body {\n font-size: clamp(1cqw, 2.5vw, 1.4cqw);\n margin: 0 0 .3cqh 0;\n }\n a {\n font-size: clamp(0.9cqw, 2vw, 1.2cqw);\n padding: 0.4cqh 0.8cqw;\n }\n }\n </style>\n`)(e)}\n <div class="content">\n <div class="text-container">\n <h2 class="headline">${e.headline}</h2>\n <p class="body">${e.body}</p>\n <a href="${e.clickUrl}">${e.buttonText}</a>\n </div>\n </div>\n `}function Ji(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #F7F5F2;\n display: flex;\n flex-direction: row;\n align-items: stretch;\n }\n .text {\n width: 30%;\n padding: 2% 5%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 1cqh;\n font-family: "Source Sans 3", sans-serif;\n }\n .headline {\n font-size: clamp(18px, 2.5cqw, 32px);\n color: #212121;\n text-align: center;\n font-style: normal;\n font-weight: 300;\n font-family: "Cormorant", serif;\n margin: 0;\n line-height: 1.2;\n }\n .body {\n font-size: clamp(12px, 1.4cqw, 18px);\n color: #212121;\n text-align: center;\n font-style: normal;\n font-weight: 400;\n margin: 0.5em 0;\n line-height: 1.4;\n }\n a {\n font-size: clamp(10px, 1.2cqw, 16px);\n border-radius: 5px;\n border: 0.5px solid #212121;\n backdrop-filter: blur(2px);\n display: inline-block;\n padding: 0.5em 1.5em;\n text-decoration: none;\n color: #212121;\n transition: background-color 0.3s, color 0.3s;\n }\n a:hover {\n background-color: #212121;\n color: #F7F5F2;\n }\n .image {\n width: 70%;\n background-image: url("${e}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n @container (max-width: 600px) {\n .text {\n padding: 2%;\n gap: 0;\n }\n .headline {\n font-size: clamp(16px, 5vw, 24px);\n }\n .body {\n font-size: clamp(10px, 3vw, 14px);\n }\n a {\n font-size: clamp(9px, 2.5vw, 12px);\n }\n }\n </style>\n`)(e)}\n <div class="content">\n <div class="text">\n <h2 class="headline">${e.headline}</h2>\n <p class="body">${e.body}</p>\n <a href="${e.clickUrl}">${e.buttonText}</a>\n </div>\n <div class="image"></div>\n </div>\n `}function Vi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n <style>\n .content {\n display: inline-block;\n text-decoration: none;\n max-width: 100%;\n padding: 0.5em;\n background-color: #fff;\n }\n .headline {\n display: block;\n font-size: 1.1em;\n font-weight: 500;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin-bottom: 0.2em;\n }\n .body {\n display: block;\n font-size: 0.9em;\n color: #4d4d4d;\n font-family: "Source Sans 3", sans-serif;\n line-height: 1.3;\n }\n </style>\n\n <a href="${e.clickUrl}" class="content">\n <span class="headline">${e.headline}</span>\n <span class="body">${e.body}</span>\n </a>\n `}function Yi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n }\n .text {\n width: 50%;\n padding-left: 3%;\n display: flex;\n flex-direction: column;\n gap: 0.3cqh;\n }\n .headline {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n }\n .body {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n color: #4d4d4d;\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n text-decoration: none;\n color: #98773c;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n position: relative;\n width: fit-content;\n }\n .cta-button::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: -0.2cqh;\n width: 100%;\n height: 1px;\n background-color: #98773c;\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .body {\n -webkit-line-clamp: 1;\n }\n .cta-button::after {\n bottom: -0.1cqh;\n }\n }\n </style>\n`)(e)}\n <div class="content">\n <div class="text">\n <h2 class="headline">${e.headline}</h2>\n <p class="body">${e.body}</p>\n <a href="${e.clickUrl}" class="cta-button">${e.buttonText}</a>\n </div>\n </div>\n `}function Gi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n }\n .text {\n width: 50%;\n padding-right: 3%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 0.3cqh;\n }\n .headline {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n color: #FFF;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n text-align: left;\n }\n .body {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n color: #FFF;\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-align: left;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n text-decoration: none;\n color: #FFF;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n padding: 0.5cqh 1cqw;\n border: 1px solid #FFF;\n border-radius: 4px;\n transition: background-color 0.3s ease;\n }\n .cta-button:hover {\n background-color: rgba(255, 255, 255, 0.2);\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .body {\n -webkit-line-clamp: 1;\n }\n .cta-button {\n padding: 0.3cqh 0.8cqw;\n }\n }\n </style>\n`)(e)}\n <div class="content">\n <div class="text">\n <h2 class="headline">${e.headline}</h2>\n <p class="body">${e.body}</p>\n <a href="${e.clickUrl}" class="cta-button">${e.buttonText}</a>\n </div>\n </div>\n `}function Xi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n text-decoration: none;\n display: flex;\n flex-direction: column;\n }\n .image {\n width: 100%;\n height: 80%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n }\n .text {\n text-align: left;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: auto;\n width: 100%;\n position: relative;\n overflow: hidden;\n font-family: "Source Sans 3", sans-serif;\n }\n .headline {\n font-size: 5.5cqw;\n font-weight: 400;\n color: black;\n padding: 10px 10px 0 10px;\n font-family: "Cormorant", serif;\n }\n .body {\n font-size: 4cqw;\n color: rgb(77, 77, 77);\n padding: 0 10px 10px 10px;\n }\n </style>\n`)(e)}\n <a class="content" href="${e.clickUrl}">\n <div class="image"></div>\n <div class="text">\n <span class="headline">${e.headline}</span>\n <span class="body">${e.body}</span>\n </div>\n </a>\n `}function Zi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.6) 100%), url("${e}") center/cover no-repeat;\n border-radius: 2%;\n overflow: hidden;\n }\n .text {\n padding: 5%;\n color: #FFF;\n font-family: "Source Sans 3", sans-serif;\n }\n .headline {\n font-family: "Cormorant", serif;\n font-size: 7cqw;\n font-weight: 300;\n line-height: 1.2;\n margin: 0 0 0.5cqw 0;\n }\n .body {\n font-size: 4cqw;\n line-height: 1.4;\n margin: 0 0 2cqw 0;\n }\n .cta-button {\n display: inline-block;\n padding: 1.5cqw 3cqw;\n border: 0.3cqw solid rgba(255, 255, 255, 0.5);\n border-radius: 1cqw;\n background: rgba(255, 255, 255, 0.2);\n color: #FFF;\n text-decoration: none;\n font-size: 3.5cqw;\n transition: background-color 0.3s ease;\n }\n .cta-button:hover {\n background: rgba(255, 255, 255, 0.3);\n }\n\n @container (max-width: 380px) {\n .headline {\n font-size: 8cqw;\n }\n .body {\n font-size: 4.5cqw;\n }\n .cta-button {\n font-size: 4cqw;\n padding: 2cqw 4cqw;\n }\n }\n\n @container (min-width: 381px) and (max-width: 480px) {\n .headline {\n font-size: 7.5cqw;\n }\n .body {\n font-size: 4.2cqw;\n }\n .cta-button {\n font-size: 3.8cqw;\n }\n }\n\n @container (min-width: 481px) {\n .headline {\n font-size: 6.5cqw;\n }\n .body {\n font-size: 3.8cqw;\n }\n .cta-button {\n font-size: 3.2cqw;\n }\n }\n </style>\n`)(e)}\n <div class="content">\n <div class="text">\n <h2 class="headline">${e.headline}</h2>\n <p class="body">${e.body}</p>\n <a href="${e.clickUrl}" class="cta-button">${e.buttonText}</a>\n </div>\n </div>\n `}function Qi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n text-decoration: none;\n display: flex;\n justify-content: flex-start;\n align-items: flex-end;\n border-radius: 1cqw;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 52.1%, #000 100%), url("${e}") lightgray 50% / cover no-repeat;\n overflow: hidden;\n }\n .headline {\n font-size: 7cqw;\n color: #FFF;\n font-style: normal;\n font-weight: 400;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n padding: 0 5cqw 5cqw 5cqw;\n }\n\n @container (min-width: 400px) {\n .headline {\n font-size: 6cqw;\n padding: 0 4cqw 4cqw 4cqw;\n }\n }\n\n @container (min-width: 800px) {\n .headline {\n font-size: 5cqw;\n padding: 0 3cqw 3cqw 3cqw;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <span class="headline">${e.headline}</span>\n </a>\n `}function es(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #000;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n font-family: "Source Sans 3", sans-serif;\n }\n .text {\n padding: 5%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: left;\n gap: 1.5cqw;\n background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 30%);\n }\n .headline {\n font-size: 7cqw;\n color: #FFF;\n font-weight: 300;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .body {\n font-size: 4cqw;\n color: #CCC;\n font-weight: 400;\n line-height: 1.3;\n margin: 0.5cqw 0 1.5cqw 0;\n }\n .cta-button {\n font-size: 3.5cqw;\n font-weight: 600;\n text-decoration: none;\n color: #B59048;\n text-transform: uppercase;\n letter-spacing: 0.1em;\n transition: opacity 0.3s;\n }\n .cta-button:hover {\n opacity: 0.8;\n }\n </style>\n`)(e)}\n <div class="content">\n <div class="text">\n <h2 class="headline">${e.headline}</h2>\n <p class="body">${e.body}</p>\n <a href="${e.clickUrl}" class="cta-button">${e.buttonText}</a>\n </div>\n </div>\n `}function ts(e){return`\n ${(({image:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n display: block;\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content"></a>\n `}var ns;!function(e){e.TYPE="type",e.VARIANT="variant",e.WIDTH="width",e.HEIGHT="height",e.FLUID="fluid",e.HEADLINE="headline",e.BODY="body",e.IMAGE="image",e.IMAGE2="image2",e.BUTTON_TEXT="buttonText",e.CLICK_URL="clickUrl",e.UPC="upc"}(ns||(ns={}));let rs;if("undefined"!=typeof window&&void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(e,t,n){t!==n&&this.render()}render(){const t={type:String(this.getAttribute(ns.TYPE)),variant:String(this.getAttribute(ns.VARIANT)),width:Number(this.getAttribute(ns.WIDTH)),height:Number(this.getAttribute(ns.HEIGHT)),fluid:String(this.getAttribute(ns.FLUID)),headline:this.getAttribute(ns.HEADLINE),body:this.getAttribute(ns.BODY),image:this.getAttribute(ns.IMAGE),image2:this.getAttribute(ns.IMAGE2),buttonText:this.getAttribute(ns.BUTTON_TEXT),clickUrl:this.getAttribute(ns.CLICK_URL),upc:this.getAttribute(ns.UPC)};if(this.shadowRoot){const n=((e,t)=>{const n=t/e*100,r=document.createElement("style");r.textContent=`\n :host {\n display: block;\n position: relative;\n container-type: inline-size;\n }\n :host([fluid="true"]) {\n width: 100%;\n height: 0;\n padding-top: ${n}%;\n }\n :host([fluid="false"]) {\n width: ${e}px;\n height: ${t}px;\n }\n .wrapper {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n`;const o=document.createElement("div");return o.className="wrapper",{style:r,wrapper:o}})(t.width,t.height);n.wrapper.innerHTML=(t=>{const n={[e.BILLBOARD]:{billboardV1:Wi,billboardV2:Ki,billboardV3:Ji},[e.LARGE_RECTANGLE]:{largeRectangleV1:Xi},[e.VERTICAL_RECTANGLE]:{verticalRectangleV1:es,verticalRectangleV2:()=>""},[e.SQUARE]:{squareV1:Zi,squareV2:Qi},[e.LARGE_LEADERBOARD]:{largeLeaderboardV1:Yi,largeLeaderboardV2:Gi},[e.WIDE_SKYSCRAPER]:{wideSkyscraperV1:ts},[e.IN_TEXT]:{inTextV1:Vi}}[t.type];if(!n)return"";const r=n[t.variant];return r?r(t):""})(t),this.shadowRoot.innerHTML="",this.shadowRoot.appendChild(n.style),this.shadowRoot.appendChild(n.wrapper)}}}t.observedAttributes=Object.values(ns),rs=t}class os{static getInstance(){return jn.getInstance("SpotHtmlService",(()=>new os))}createSpotHtmlElement(e,t){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const n=document.createElement($i),r=this.onlySpotAttributes(e,t);for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&n.setAttribute(e,String(r[e]));return n}ensureBrowserEnvironmentAndDefineElement(){return"undefined"==typeof window||"undefined"==typeof document?(console.warn("LiquidCommerce Rmn Sdk: createSpotHtmlElement is only available in browser environments!!!"),!1):(customElements.get($i)||customElements.define($i,rs),!0)}onlySpotAttributes(e,t){const n=Object.assign({},e);for(const e of Object.values(ns))void 0===n[e]&&delete n[e];return n.type=e.spot,n.fluid=String(t),n}}class is extends qi{constructor(e){super(e)}static getInstance(e){return jn.getInstance("SpotSelectionService",(()=>new is(e)))}async spotSelection(e){const{isOk:t,val:n,isErr:r}=await this.post("/spots/selection",e,{});if(r)throw new Error(`There was an error during spot selection: (${null==r?void 0:r.errorMessage})`);if(t&&n&&n.data&&(null==n?void 0:n.refresh.token))return this.authInfo.authenticated=!0,this.authInfo.token=n.refresh.token,n.data.spots;throw new Error("Spot selection response was not successful")}}class ss{constructor(e){this.spotSelectionService=is.getInstance(e),this.spotHtmlService=os.getInstance()}async spotSelection(e){return this.spotSelectionService.spotSelection(e)}createSpotElement(e,t){return this.spotHtmlService.createSpotHtmlElement(e,null!=t&&t)}}async function as(e,t){const n=Mi.getInstance(e,t.env),r=await n.initialize();return new ss(r)}function cs(e,t){return os.getInstance().createSpotHtmlElement(e,null!=t&&t)}export{ss as LiquidCommerceRmnClient,n as RMN_ENV,t as RMN_FILTER_PROPERTIES,e as RMN_SPOT_TYPE,as as RmnClient,cs as RmnCreateSpotElement};
|
18
|
+
function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=r.create([0,1518500249,1859775393,2400959708,2840853838]),u=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,v,_,x,E,S,A,k,R,T=this._hash.words,B=h.words,O=u.words,C=s.words,P=a.words,I=c.words,H=l.words;for(x=i=T[0],E=f=T[1],S=b=T[2],A=v=T[3],k=_=T[4],n=0;n<80;n+=1)R=i+e[t+C[n]]|0,R+=n<16?d(f,b,v)+B[0]:n<32?p(f,b,v)+B[1]:n<48?g(f,b,v)+B[2]:n<64?y(f,b,v)+B[3]:m(f,b,v)+B[4],R=(R=w(R|=0,I[n]))+_|0,i=_,_=v,v=w(b,10),b=f,f=R,R=x+e[t+P[n]]|0,R+=n<16?m(E,S,A)+O[0]:n<32?y(E,S,A)+O[1]:n<48?g(E,S,A)+O[2]:n<64?p(E,S,A)+O[3]:d(E,S,A)+O[4],R=(R=w(R|=0,H[n]))+k|0,x=k,k=A,A=w(S,10),S=E,E=R;R=T[1]+b+A|0,T[1]=T[2]+v+k|0,T[2]=T[3]+_+x|0,T[3]=T[4]+i+E|0,T[4]=T[0]+f+S|0,T[0]=R},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function m(e,t,n){return e^(t|~n)}function w(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160));var e}(),Hr(),function(){return Dr||(Dr=1,Ur.exports=(c=Vn(),br(),Hr(),t=(e=c).lib,n=t.Base,r=t.WordArray,o=e.algo,i=o.SHA256,s=o.HMAC,a=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=s.create(n.hasher,e),i=r.create(),a=r.create([1]),c=i.words,l=a.words,h=n.keySize,u=n.iterations;c.length<h;){var f=o.update(t).finalize(a);o.reset();for(var d=f.words,p=d.length,g=f,y=1;y<u;y++){g=o.finalize(g),o.reset();for(var m=g.words,w=0;w<p;w++)d[w]^=m[w]}i.concat(f),l[0]++}return i.sigBytes=4*h,i}}),e.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)},c.PBKDF2)),Ur.exports;var e,t,n,r,o,i,s,a,c}(),Nr(),qr(),Wr(),Yr(),Xr(),eo(),function(){return to?no.exports:(to=1,no.exports=(t=Vn(),qr(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return ro?oo.exports:(ro=1,oo.exports=(e=Vn(),qr(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return io?so.exports:(io=1,so.exports=(e=Vn(),qr(),e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return ao?co.exports:(ao=1,co.exports=(e=Vn(),qr(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return lo?ho.exports:(lo=1,ho.exports=(e=Vn(),qr(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding));var e}(),function(){return uo?fo.exports:(uo=1,fo.exports=(e=Vn(),qr(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return po?go.exports:(po=1,go.exports=(r=Vn(),qr(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return yo?mo.exports:(yo=1,mo.exports=(e=Vn(),ar(),dr(),Nr(),qr(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],s=[],a=[],c=[],l=[],h=[],u=[],f=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,o[n]=p,i[p]=n;var g=e[n],y=e[g],m=e[y],w=257*e[p]^16843008*p;s[n]=w<<24|w>>>8,a[n]=w<<16|w>>>16,c[n]=w<<8|w>>>24,l[n]=w,w=16843009*m^65537*y^257*g^16843008*n,h[p]=w<<24|w>>>8,u[p]=w<<16|w>>>16,f[p]=w<<8|w>>>24,d[p]=w,n?(n=g^e[e[e[m^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<r;s++)s<n?i[s]=t[s]:(l=i[s-1],s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[s/n|0]<<24),i[s]=i[s-n]^l);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(s=r-c,c%4)var l=i[s];else l=i[s-4];a[c]=c<4||s<=4?l:h[o[l>>>24]]^u[o[l>>>16&255]]^f[o[l>>>8&255]]^d[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,l,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,h,u,f,d,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,s,a){for(var c=this._nRounds,l=e[t]^n[0],h=e[t+1]^n[1],u=e[t+2]^n[2],f=e[t+3]^n[3],d=4,p=1;p<c;p++){var g=r[l>>>24]^o[h>>>16&255]^i[u>>>8&255]^s[255&f]^n[d++],y=r[h>>>24]^o[u>>>16&255]^i[f>>>8&255]^s[255&l]^n[d++],m=r[u>>>24]^o[f>>>16&255]^i[l>>>8&255]^s[255&h]^n[d++],w=r[f>>>24]^o[l>>>16&255]^i[h>>>8&255]^s[255&u]^n[d++];l=g,h=y,u=m,f=w}g=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&f])^n[d++],y=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[f>>>8&255]<<8|a[255&l])^n[d++],m=(a[u>>>24]<<24|a[f>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^n[d++],w=(a[f>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^n[d++],e[t]=g,e[t+1]=y,e[t+2]=m,e[t+3]=w},keySize:8});t.AES=n._createHelper(g)}(),e.AES));var e}(),vo(),function(){return _o?xo.exports:(_o=1,xo.exports=(e=Vn(),ar(),dr(),Nr(),qr(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var s=o%n,a=t[s>>>2]>>>24-s%4*8&255;i=(i+r[o]+a)%256;var c=r[o];r[o]=r[i],r[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4));var e}(),function(){return Eo?So.exports:(Eo=1,So.exports=(e=Vn(),ar(),dr(),Nr(),qr(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=l>>>16|4294901760&h,f=h<<16|65535&l;for(o[0]^=l,o[1]^=u,o[2]^=h,o[3]^=f,o[4]^=l,o[5]^=u,o[6]^=h,o[7]^=f,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit));var e}(),function(){return Ao?ko.exports:(Ao=1,ko.exports=(e=Vn(),ar(),dr(),Nr(),qr(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],s=[],a=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=l>>>16|4294901760&h,f=h<<16|65535&l;for(r[0]^=l,r[1]^=u,r[2]^=h,r[3]^=f,r[4]^=l,r[5]^=u,r[6]^=h,r[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^l}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy));var e}(),Do());var Uo=Wn.exports,zo=crypto;const Lo=e=>e instanceof CryptoKey,No=new TextEncoder,Fo=new TextDecoder;function Mo(...e){const t=e.reduce(((e,{length:t})=>e+t),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const qo=e=>(e=>{let t=e;"string"==typeof t&&(t=No.encode(t));const n=[];for(let e=0;e<t.length;e+=32768)n.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(n.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),jo=e=>{let t=e;t instanceof Uint8Array&&(t=Fo.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(e=>{const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n})(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class $o extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class Wo extends $o{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,n="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=t}}class Ko extends $o{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,n="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=t}}class Jo extends $o{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class Yo extends $o{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class Vo extends $o{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class Go extends $o{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}function Xo(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function Zo(e,t){return e.name===t}function Qo(e){return parseInt(e.name.slice(4),10)}function ei(e,t,...n){switch(t){case"HS256":case"HS384":case"HS512":{if(!Zo(e.algorithm,"HMAC"))throw Xo("HMAC");const n=parseInt(t.slice(2),10);if(Qo(e.algorithm.hash)!==n)throw Xo(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Zo(e.algorithm,"RSASSA-PKCS1-v1_5"))throw Xo("RSASSA-PKCS1-v1_5");const n=parseInt(t.slice(2),10);if(Qo(e.algorithm.hash)!==n)throw Xo(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Zo(e.algorithm,"RSA-PSS"))throw Xo("RSA-PSS");const n=parseInt(t.slice(2),10);if(Qo(e.algorithm.hash)!==n)throw Xo(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw Xo("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!Zo(e.algorithm,"ECDSA"))throw Xo("ECDSA");const n=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==n)throw Xo(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}!function(e,t){if(t.length&&!t.some((t=>e.usages.includes(t)))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const n=t.pop();e+=`one of ${t.join(", ")}, or ${n}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}(e,n)}function ti(e,t,...n){if((n=n.filter(Boolean)).length>2){const t=n.pop();e+=`one of type ${n.join(", ")}, or ${t}.`}else 2===n.length?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var ni=(e,...t)=>ti("Key must be ",e,...t);function ri(e,t,...n){return ti(`Key for the ${e} algorithm must be `,t,...n)}var oi=e=>!!Lo(e)||"KeyObject"===e?.[Symbol.toStringTag];const ii=["CryptoKey"],si=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let n;for(const e of t){const t=Object.keys(e);if(n&&0!==n.size)for(const e of t){if(n.has(e))return!1;n.add(e)}else n=new Set(t)}return!0};function ai(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}var ci=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if("number"!=typeof n||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function li(e){return ai(e)&&"string"==typeof e.kty}const hi=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=function(e){let t,n;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new Jo('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new Jo('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new Jo('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new Jo('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}(e),r=[t,e.ext??!1,e.key_ops??n],o={...e};return delete o.alg,delete o.use,zo.subtle.importKey("jwk",o,...r)},ui=e=>jo(e);let fi,di;const pi=e=>"KeyObject"===e?.[Symbol.toStringTag],gi=async(e,t,n,r,o=!1)=>{let i=e.get(t);if(i?.[r])return i[r];const s=await hi({...n,alg:r});return o&&Object.freeze(t),i?i[r]=s:e.set(t,{[r]:s}),s};var yi=(e,t)=>{if(pi(e)){let n=e.export({format:"jwk"});return delete n.d,delete n.dp,delete n.dq,delete n.p,delete n.q,delete n.qi,n.k?ui(n.k):(di||(di=new WeakMap),gi(di,e,n,t))}if(li(e)){if(e.k)return jo(e.k);di||(di=new WeakMap);return gi(di,e,e,t,!0)}return e},mi=(e,t)=>{if(pi(e)){let n=e.export({format:"jwk"});return n.k?ui(n.k):(fi||(fi=new WeakMap),gi(fi,e,n,t))}if(li(e)){if(e.k)return jo(e.k);fi||(fi=new WeakMap);return gi(fi,e,e,t,!0)}return e};const wi=e=>e?.[Symbol.toStringTag],bi=(e,t,n)=>{if(void 0!==t.use&&"sig"!==t.use)throw new TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&!0!==t.key_ops.includes?.(n))throw new TypeError(`Invalid key for this operation, when present its key_ops must include ${n}`);if(void 0!==t.alg&&t.alg!==e)throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},vi=(e,t,n,r)=>{if(!(t instanceof Uint8Array)){if(r&&li(t)){if(function(e){return li(e)&&"oct"===e.kty&&"string"==typeof e.k}(t)&&bi(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!oi(t))throw new TypeError(ri(e,t,...ii,"Uint8Array",r?"JSON Web Key":null));if("secret"!==t.type)throw new TypeError(`${wi(t)} instances for symmetric algorithms must be of type "secret"`)}};function _i(e,t,n,r){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?vi(t,n,r,e):((e,t,n,r)=>{if(r&&li(t))switch(n){case"sign":if(function(e){return"oct"!==e.kty&&"string"==typeof e.d}(t)&&bi(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(function(e){return"oct"!==e.kty&&void 0===e.d}(t)&&bi(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!oi(t))throw new TypeError(ri(e,t,...ii,r?"JSON Web Key":null));if("secret"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===n&&"public"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===n&&"public"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===n&&"private"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===n&&"private"===t.type)throw new TypeError(`${wi(t)} instances for asymmetric algorithm encryption must be of type "public"`)})(t,n,r,e)}_i.bind(void 0,!1);const xi=_i.bind(void 0,!0);function Ei(e,t,n,r,o){if(void 0!==o.crit&&void 0===r?.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return new Set;if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some((e=>"string"!=typeof e||0===e.length)))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let i;i=void 0!==n?new Map([...Object.entries(n),...t.entries()]):t;for(const t of r.crit){if(!i.has(t))throw new Jo(`Extension Header Parameter "${t}" is not recognized`);if(void 0===o[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(i.get(t)&&void 0===r[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(r.crit)}function Si(e,t){const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new Jo(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function Ai(e,t,n){if("sign"===n&&(t=await mi(t,e)),"verify"===n&&(t=await yi(t,e)),Lo(t))return ei(t,e,n),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(ni(t,...ii));return zo.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(ni(t,...ii,"Uint8Array","JSON Web Key"))}const ki=async(e,t,n,r)=>{const o=await Ai(e,t,"verify");ci(e,o);const i=Si(e,o.algorithm);try{return await zo.subtle.verify(i,o,n,r)}catch{return!1}};async function Ri(e,t,n){if(!ai(e))throw new Yo("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new Yo('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new Yo("JWS Protected Header incorrect type");if(void 0===e.payload)throw new Yo("JWS Payload missing");if("string"!=typeof e.signature)throw new Yo("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ai(e.header))throw new Yo("JWS Unprotected Header incorrect type");let r={};if(e.protected)try{const t=jo(e.protected);r=JSON.parse(Fo.decode(t))}catch{throw new Yo("JWS Protected Header is invalid")}if(!si(r,e.header))throw new Yo("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const o={...r,...e.header};let i=!0;if(Ei(Yo,new Map([["b64",!0]]),n?.crit,r,o).has("b64")&&(i=r.b64,"boolean"!=typeof i))throw new Yo('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=o;if("string"!=typeof s||!s)throw new Yo('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(i){if("string"!=typeof e.payload)throw new Yo("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new Yo("JWS Payload must be a string or an Uint8Array instance");let a=!1;"function"==typeof t?(t=await t(r,e),a=!0,xi(s,t,"verify"),li(t)&&(t=await async function(e,t){if(!ai(e))throw new TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw new TypeError('missing "k" (Key Value) Parameter value');return jo(e.k);case"RSA":if(void 0!==e.oth)throw new Jo('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return hi({...e,alg:t});default:throw new Jo('Unsupported "kty" (Key Type) Parameter value')}}(t,s))):xi(s,t,"verify");const c=Mo(No.encode(e.protected??""),No.encode("."),"string"==typeof e.payload?No.encode(e.payload):e.payload);let l;try{l=jo(e.signature)}catch{throw new Yo("Failed to base64url decode the signature")}if(!await ki(s,t,l,c))throw new Go;let h;if(i)try{h=jo(e.payload)}catch{throw new Yo("Failed to base64url decode the payload")}else h="string"==typeof e.payload?No.encode(e.payload):e.payload;const u={payload:h};return void 0!==e.protected&&(u.protectedHeader=r),void 0!==e.header&&(u.unprotectedHeader=e.header),a?{...u,key:t}:u}var Ti=e=>Math.floor(e.getTime()/1e3);const Bi=86400,Oi=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var Ci=e=>{const t=Oi.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]);let r;switch(t[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":r=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":r=Math.round(60*n);break;case"hour":case"hours":case"hr":case"hrs":case"h":r=Math.round(3600*n);break;case"day":case"days":case"d":r=Math.round(n*Bi);break;case"week":case"weeks":case"w":r=Math.round(604800*n);break;default:r=Math.round(31557600*n)}return"-"===t[1]||"ago"===t[4]?-r:r};const Pi=e=>e.toLowerCase().replace(/^application\//,"");var Ii=(e,t,n={})=>{let r;try{r=JSON.parse(Fo.decode(t))}catch{}if(!ai(r))throw new Vo("JWT Claims Set must be a top-level JSON object");const{typ:o}=n;if(o&&("string"!=typeof e.typ||Pi(e.typ)!==Pi(o)))throw new Wo('unexpected "typ" JWT header value',r,"typ","check_failed");const{requiredClaims:i=[],issuer:s,subject:a,audience:c,maxTokenAge:l}=n,h=[...i];void 0!==l&&h.push("iat"),void 0!==c&&h.push("aud"),void 0!==a&&h.push("sub"),void 0!==s&&h.push("iss");for(const e of new Set(h.reverse()))if(!(e in r))throw new Wo(`missing required "${e}" claim`,r,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(r.iss))throw new Wo('unexpected "iss" claim value',r,"iss","check_failed");if(a&&r.sub!==a)throw new Wo('unexpected "sub" claim value',r,"sub","check_failed");if(c&&(u=r.aud,f="string"==typeof c?[c]:c,!("string"==typeof u?f.includes(u):Array.isArray(u)&&f.some(Set.prototype.has.bind(new Set(u))))))throw new Wo('unexpected "aud" claim value',r,"aud","check_failed");var u,f;let d;switch(typeof n.clockTolerance){case"string":d=Ci(n.clockTolerance);break;case"number":d=n.clockTolerance;break;case"undefined":d=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const{currentDate:p}=n,g=Ti(p||new Date);if((void 0!==r.iat||l)&&"number"!=typeof r.iat)throw new Wo('"iat" claim must be a number',r,"iat","invalid");if(void 0!==r.nbf){if("number"!=typeof r.nbf)throw new Wo('"nbf" claim must be a number',r,"nbf","invalid");if(r.nbf>g+d)throw new Wo('"nbf" claim timestamp check failed',r,"nbf","check_failed")}if(void 0!==r.exp){if("number"!=typeof r.exp)throw new Wo('"exp" claim must be a number',r,"exp","invalid");if(r.exp<=g-d)throw new Ko('"exp" claim timestamp check failed',r,"exp","check_failed")}if(l){const e=g-r.iat;if(e-d>("number"==typeof l?l:Ci(l)))throw new Ko('"iat" claim timestamp check failed (too far in the past)',r,"iat","check_failed");if(e<0-d)throw new Wo('"iat" claim timestamp check failed (it should be in the past)',r,"iat","check_failed")}return r};async function Hi(e,t,n){const r=await async function(e,t,n){if(e instanceof Uint8Array&&(e=Fo.decode(e)),"string"!=typeof e)throw new Yo("Compact JWS must be a string or Uint8Array");const{0:r,1:o,2:i,length:s}=e.split(".");if(3!==s)throw new Yo("Invalid Compact JWS");const a=await Ri({payload:o,protected:r,signature:i},t,n),c={payload:a.payload,protectedHeader:a.protectedHeader};return"function"==typeof t?{...c,key:a.key}:c}(e,t,n);if(r.protectedHeader.crit?.includes("b64")&&!1===r.protectedHeader.b64)throw new Vo("JWTs MUST NOT use unencoded payload");const o={payload:Ii(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...o,key:r.key}:o}class Di{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new Yo("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!si(this._protectedHeader,this._unprotectedHeader))throw new Yo("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader};let r=!0;if(Ei(Yo,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n).has("b64")&&(r=this._protectedHeader.b64,"boolean"!=typeof r))throw new Yo('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:o}=n;if("string"!=typeof o||!o)throw new Yo('JWS "alg" (Algorithm) Header Parameter missing or invalid');xi(o,e,"sign");let i,s=this._payload;r&&(s=No.encode(qo(s))),i=this._protectedHeader?No.encode(qo(JSON.stringify(this._protectedHeader))):No.encode("");const a=Mo(i,No.encode("."),s),c=await(async(e,t,n)=>{const r=await Ai(e,t,"sign");ci(e,r);const o=await zo.subtle.sign(Si(e,r.algorithm),r,n);return new Uint8Array(o)})(o,e,a),l={signature:qo(c),payload:""};return r&&(l.payload=Fo.decode(s)),this._unprotectedHeader&&(l.header=this._unprotectedHeader),this._protectedHeader&&(l.protected=Fo.decode(i)),l}}class Ui{constructor(e){this._flattened=new Di(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const n=await this._flattened.sign(e,t);if(void 0===n.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function zi(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}class Li{constructor(e={}){if(!ai(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:zi("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:zi("setNotBefore",Ti(e))}:this._payload={...this._payload,nbf:Ti(new Date)+Ci(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:zi("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:zi("setExpirationTime",Ti(e))}:this._payload={...this._payload,exp:Ti(new Date)+Ci(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:Ti(new Date)}:e instanceof Date?this._payload={...this._payload,iat:zi("setIssuedAt",Ti(e))}:this._payload="string"==typeof e?{...this._payload,iat:zi("setIssuedAt",Ti(new Date)+Ci(e))}:{...this._payload,iat:zi("setIssuedAt",e)},this}}class Ni extends Li{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new Ui(No.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(this._protectedHeader?.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new Vo("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class Fi{constructor(e){var t,n,r,o,i,s,a;const c=e;this.cause=null!==(o=null!==(n=null===(t=null==c?void 0:c.response)||void 0===t?void 0:t.data.statusCode)&&void 0!==n?n:null===(r=null==c?void 0:c.response)||void 0===r?void 0:r.status)&&void 0!==o?o:0,this.errorMessage=null!==(a=null!==(s=null===(i=null==c?void 0:c.response)||void 0===i?void 0:i.data.message)&&void 0!==s?s:null==c?void 0:c.message)&&void 0!==a?a:"There's been an error related to the API request to LiquidCommerce RMN Services."}}class Mi{constructor(e){this.apiKey=e}static getInstance(e){return Mn.getInstance("EncryptedApi",(()=>new Mi(e)))}async handleEncryption(e,t){const n=this.getKey(t);try{return this.joseEncrypt(e,n,this.forwardInMinutes(30,t))}catch(e){this.handleError({cause:"Payload decryption error",message:"The decryption of the payload failed"})}}async handleDecryption(e,t){const n=this.getKey(t);return this.joseDecrypt(e,n)}getKey(e){return this.apiKey.slice(Number(`${e}`.replace(/0/g,"").slice(-1)))}forwardInMinutes(e,t){const n=new Date(t);return n.setMinutes(n.getMinutes()+e)}async joseDecrypt(e,t){return Hi(Uo.AES.decrypt(e,t).toString(Uo.enc.Utf8),ze.from(t))}async joseEncrypt(e,t,n){const r=new Date,o=new Ni(e).setProtectedHeader({alg:"HS256"}).setIssuedAt(r.getTime()).setExpirationTime(n),i=await o.sign(ze.from(t));return Uo.AES.encrypt(i,t).toString()}handleError(e){throw new Fi(e)}}class qi extends a{constructor(e){var t;super(),this.authInfo=e,this.encryptedApi=Mi.getInstance(this.authInfo.apiKey),this.objectHelper=qn.getInstance(),this.baseUrl=null!==(t=s.url[this.authInfo.env])&&void 0!==t?t:s.url.dev,this.client=Fn.create(Object.assign({baseURL:this.baseUrl},this.getConfig({[s.accessHeader]:`Bearer ${this.authInfo.token}`})))}getConfig(e){return{headers:Object.assign({"Content-Type":"application/json",[i]:this.authInfo.env},e)}}async get(e,t){return this.createRequest(e,t,this.client.get)}async post(e,t,i){let a=t;if(this.authInfo.env!==n.DEV){const e=(new Date).getTime();i=Object.assign(Object.assign({},i),{headers:Object.assign(Object.assign({},null==i?void 0:i.headers),{[r]:"true",[o]:e,[s.apiHeader]:this.authInfo.apiKey})}),a={t:await this.encryptedApi.handleEncryption(t,e)}}return this.createRequest(e,i,((e,t)=>this.client.post(e,a,t)))}async createRequest(e,t,n){try{const r=this.createURL(e),o=this.createFullConfig(t),i=await this.sendRequest(r,o,n);return await this.getResponse(i)}catch(e){return{isOk:!1,val:null,isErr:new Fi(e)}}}createFullConfig(e){return this.objectHelper.merge(this.getConfig(),null!=e?e:{})}async sendRequest(e,t,n){return n(e,t)}async getResponse(e){var t,n,i,s,a,c,l;let h=(null==e?void 0:e.data)?e.data:null,u=!1,f=0;if((null==e?void 0:e.headers)&&(null===(t=null==e?void 0:e.headers)||void 0===t?void 0:t.has)&&(null===(n=null==e?void 0:e.headers)||void 0===n?void 0:n.has(r))&&(null===(i=null==e?void 0:e.headers)||void 0===i?void 0:i.has(o))&&(null===(s=null==e?void 0:e.headers)||void 0===s?void 0:s.get)&&(u="true"===(null===(a=null==e?void 0:e.headers)||void 0===a?void 0:a.get(r)),f=(null===(c=null==e?void 0:e.headers)||void 0===c?void 0:c.get(o))?Number(null===(l=null==e?void 0:e.headers)||void 0===l?void 0:l.get(o)):0),h&&u&&this.objectHelper.includes(h,"t")&&f>0){const{t:e}=h,t=await this.encryptedApi.handleDecryption(e,f);(null==t?void 0:t.payload)&&(delete t.payload.exp,delete t.payload.iat,h=t.payload)}return{isOk:!0,val:h,isErr:!1}}createURL(e){const t=e&&"/"!==e[0]?`/${e}`:e;return`${this.baseUrl}/api${t}`}}class ji extends qi{constructor(e,t){super({authenticated:!1,apiKey:e,token:"",env:t})}static getInstance(e,t){return Mn.getInstance("AuthService",(()=>new ji(e,t)))}async initialize(){const{isOk:e,isErr:t,val:n}=await this.get("/auth",{headers:{[s.apiHeader]:this.authInfo.apiKey}});if(t)throw new Error(`There was an error during authentication: (${null==t?void 0:t.errorMessage})`);if(!e||!(null==n?void 0:n.data.token))throw new Error("Auth response was not successful");return this.authInfo.token=n.data.token,this.authInfo.authenticated=!0,this.authInfo}}const $i="spot-element";function Wi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e,secondaryImage:t})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n background-color: #FFFFFF;\n gap: 0.5cqw;\n text-decoration: none;\n color: inherit;\n }\n .big-image {\n width: 65%;\n height: 100%;\n background-image: url("${e}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .main {\n width: 35%;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 0.5cqw;\n }\n .small-image {\n width: 100%;\n height: 50%;\n background-image: url("${t}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .text {\n background: #E8E6DE;\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 50%;\n width: 100%;\n padding: 5% 10%;\n box-sizing: border-box;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-size: 2.2cqw;\n color: #000000;\n font-style: normal;\n font-weight: 400;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .description {\n font-size: 1.2cqw;\n color: #000000;\n font-style: normal;\n font-weight: 400;\n margin: 1cqh 0;\n }\n .button {\n font-size: 1cqw;\n color: #000000;\n background-color: transparent;\n font-style: normal;\n font-weight: 700;\n text-decoration: underline;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n .content:hover .button {\n opacity: 0.7;\n }\n @container (max-width: 600px) {\n .header {\n font-size: 3cqw;\n }\n .description {\n font-size: 1.6cqw;\n margin: 0;\n }\n .button {\n font-size: 1.4cqw;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="big-image"></div>\n <div class="main">\n <div class="small-image"></div>\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="button">${e.ctaText}</span>\n </div>\n </div>\n </a>\n `}function Ki(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n font-family: "Source Sans 3", sans-serif;\n background-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%), url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n text-decoration: none;\n color: #FFF;\n }\n .text-container {\n max-width: 50%;\n }\n .header {\n font-size: clamp(1.8cqw, 2.4cqw, 2.8cqw);\n font-style: normal;\n font-weight: 700;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin: 0 0 0.8cqh 0;\n }\n .description {\n font-size: clamp(1.2cqw, 1.4cqw, 1.6cqw);\n font-style: normal;\n font-weight: 400;\n line-height: 1.4;\n margin: 0 0 1.2cqh 0;\n }\n .cta-button {\n font-size: clamp(1cqw, 1.1cqw, 1.4cqw);\n border-radius: 0.4cqh;\n border: 0.1cqh solid #FFF;\n background: rgba(255, 255, 255, 0.2);\n backdrop-filter: blur(2px);\n display: inline-block;\n padding: 0.8cqh 1.6cqw;\n transition: background-color 0.3s, color 0.3s;\n }\n .content:hover .cta-button {\n background-color: #FFF;\n color: #000;\n }\n @container (max-width: 600px) {\n .text-container {\n max-width: 100%;\n }\n .header {\n font-size: clamp(1.6cqw, 4vw, 2.4cqw);\n margin: 0 0 0.4cqh 0;\n }\n .description {\n font-size: clamp(1cqw, 2.5vw, 1.4cqw);\n margin: 0 0 .3cqh 0;\n }\n .cta-button {\n font-size: clamp(0.9cqw, 2vw, 1.2cqw);\n padding: 0.4cqh 0.8cqw;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text-container">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </a>\n `}function Ji(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-items: stretch;\n text-decoration: none;\n color: inherit;\n }\n .text {\n width: 40%;\n padding: 4cqh 5cqw;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n gap: 0.7cqh;\n font-family: "Source Sans 3", sans-serif;\n background-color: #F9F7F5;\n }\n .header {\n font-size: clamp(18px, 4cqw, 36px);\n color: #000000;\n font-style: normal;\n font-weight: 300;\n font-family: "Cormorant", serif;\n margin: 0;\n line-height: 1.2;\n }\n .description {\n font-size: clamp(12px, 2cqw, 16px);\n color: #000000;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n line-height: 1.5;\n }\n .button {\n font-size: clamp(10px, 1.5cqw, 14px);\n border: 1px solid #000000;\n border-radius: 5px;\n display: inline-block;\n padding: 0.7cqh 1.5cqw;\n color: #000000;\n font-weight: 600;\n text-transform: uppercase;\n transition: background-color 0.3s, color 0.3s;\n }\n .content:hover .button {\n background-color: #000000;\n color: #FFFFFF;\n }\n .image {\n width: 60%;\n background-image: url("${e}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n @container (max-width: 600px) {\n .text {\n padding: 1cqh 4cqw;\n width: 60%;\n }\n .image {\n width: 40%;\n }\n .header {\n font-size: clamp(12px, 3cqw, 24px);\n line-height: 0.5;\n }\n .description {\n font-size: clamp(10px, 2.5cqw, 14px);\n line-height: 1;\n }\n .button {\n font-size: clamp(6px, 2cqw, 12px);\n padding: 0.4cqh 1cqw;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="button">${e.ctaText}</span>\n </div>\n <div class="image"></div>\n </a>\n `}function Yi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n <style>\n .content {\n display: inline-block;\n text-decoration: none;\n max-width: 100%;\n padding: 0.5em;\n background-color: #fff;\n }\n .header {\n display: block;\n font-size: 1.1em;\n font-weight: 500;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.2;\n margin-bottom: 0.2em;\n }\n .description {\n display: block;\n font-size: 0.9em;\n color: #4d4d4d;\n font-family: "Source Sans 3", sans-serif;\n line-height: 1.3;\n }\n </style>\n\n <a href="${e.clickUrl}" class="content">\n <span class="header">${e.header}</span>\n <span class="description">${e.description}</span>\n </a>\n `}function Vi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n text-decoration: none;\n color: inherit;\n }\n .text {\n width: 50%;\n padding-left: 3%;\n display: flex;\n flex-direction: column;\n gap: 0.3cqh;\n }\n .header {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n color: #333;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n }\n .description {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n color: #4d4d4d;\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n color: #98773c;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n position: relative;\n width: fit-content;\n }\n .cta-button::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: -0.2cqh;\n width: 100%;\n height: 1px;\n background-color: #98773c;\n transition: opacity 0.3s ease;\n }\n .content:hover .cta-button::after {\n opacity: 0.7;\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .description {\n -webkit-line-clamp: 1;\n }\n .cta-button::after {\n bottom: -0.1cqh;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </a>\n `}function Gi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n font-family: "Source Sans 3", sans-serif;\n text-decoration: none;\n color: #FFF;\n }\n .text {\n width: 50%;\n padding-right: 3%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 0.3cqh;\n }\n .header {\n font-size: clamp(1.8cqh, 2.2cqw, 3cqh);\n font-weight: 300;\n font-family: "Cormorant", serif;\n line-height: 1.1;\n margin: 0;\n text-align: left;\n }\n .description {\n font-size: clamp(1.2cqh, 1.3cqw, 2cqh);\n line-height: 1.2;\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-align: left;\n }\n .cta-button {\n font-size: clamp(1cqh, 1.1cqw, 1.5cqh);\n font-weight: 600;\n color: #FFF;\n text-transform: uppercase;\n margin-top: 0.3cqh;\n display: inline-block;\n padding: 0.5cqh 1cqw;\n border: 1px solid #FFF;\n border-radius: 4px;\n transition: background-color 0.3s ease;\n }\n .content:hover .cta-button {\n background-color: rgba(255, 255, 255, 0.2);\n }\n\n @container (max-height: 100px) {\n .text {\n gap: 0.1cqh;\n }\n .description {\n -webkit-line-clamp: 1;\n }\n .cta-button {\n padding: 0.3cqh 0.8cqw;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </a>\n `}function Xi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n text-decoration: none;\n display: flex;\n flex-direction: column;\n }\n .image {\n width: 100%;\n height: 80%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n }\n .text {\n text-align: left;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: auto;\n width: 100%;\n position: relative;\n overflow: hidden;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-size: 5.5cqw;\n font-weight: 400;\n color: black;\n padding: 10px 10px 0 10px;\n font-family: "Cormorant", serif;\n }\n .description {\n font-size: 4cqw;\n color: rgb(77, 77, 77);\n padding: 0 10px 10px 10px;\n }\n </style>\n`)(e)}\n <a class="content" href="${e.clickUrl}">\n <div class="image"></div>\n <div class="text">\n <span class="header">${e.header}</span>\n <span class="description">${e.description}</span>\n </div>\n </a>\n `}function Zi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.6) 100%), url("${e}") center/cover no-repeat;\n border-radius: 2%;\n overflow: hidden;\n text-decoration: none;\n color: #FFF;\n }\n .text {\n padding: 5%;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-family: "Cormorant", serif;\n font-size: 7cqw;\n font-weight: 300;\n line-height: 1.2;\n margin: 0 0 0.5cqw 0;\n }\n .description {\n font-size: 4cqw;\n line-height: 1.4;\n margin: 0 0 2cqw 0;\n }\n .cta-button {\n display: inline-block;\n padding: 1.5cqw 3cqw;\n border: 0.3cqw solid rgba(255, 255, 255, 0.5);\n border-radius: 1cqw;\n background: rgba(255, 255, 255, 0.2);\n color: #FFF;\n font-size: 3.5cqw;\n transition: background-color 0.3s ease;\n }\n .content:hover .cta-button {\n background: rgba(255, 255, 255, 0.3);\n }\n\n @container (max-width: 380px) {\n .header {\n font-size: 8cqw;\n }\n .description {\n font-size: 4.5cqw;\n }\n .cta-button {\n font-size: 4cqw;\n padding: 2cqw 4cqw;\n }\n }\n\n @container (min-width: 381px) and (max-width: 480px) {\n .header {\n font-size: 7.5cqw;\n }\n .description {\n font-size: 4.2cqw;\n }\n .cta-button {\n font-size: 3.8cqw;\n }\n }\n\n @container (min-width: 481px) {\n .header {\n font-size: 6.5cqw;\n }\n .description {\n font-size: 3.8cqw;\n }\n .cta-button {\n font-size: 3.2cqw;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </a>\n `}function Qi(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n text-decoration: none;\n display: flex;\n justify-content: flex-start;\n align-items: flex-end;\n border-radius: 1cqw;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 52.1%, #000 100%), url("${e}") lightgray 50% / cover no-repeat;\n overflow: hidden;\n }\n .header {\n font-size: 7cqw;\n color: #FFF;\n font-style: normal;\n font-weight: 400;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n padding: 0 5cqw 5cqw 5cqw;\n }\n\n @container (min-width: 400px) {\n .header {\n font-size: 6cqw;\n padding: 0 4cqw 4cqw 4cqw;\n }\n }\n\n @container (min-width: 800px) {\n .header {\n font-size: 5cqw;\n padding: 0 3cqw 3cqw 3cqw;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <span class="header">${e.header}</span>\n </a>\n `}function es(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #000;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n font-family: "Source Sans 3", sans-serif;\n text-decoration: none;\n color: inherit;\n }\n .text {\n padding: 5%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: left;\n gap: 1.5cqw;\n background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 30%);\n }\n .header {\n font-size: 7cqw;\n color: #FFF;\n font-weight: 300;\n line-height: 1.2;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .description {\n font-size: 4cqw;\n color: #CCC;\n font-weight: 400;\n line-height: 1.3;\n margin: 0.5cqw 0 1.5cqw 0;\n }\n .cta-button {\n font-size: 3.5cqw;\n font-weight: 600;\n color: #B59048;\n text-transform: uppercase;\n letter-spacing: 0.1em;\n }\n .content:hover .cta-button {\n opacity: 0.8;\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </a>\n `}function ts(e){return`\n ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n display: block;\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content"></a>\n `}function ns(e){return`\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 360px;\n min-height: 223px;\n }\n .content {\n display: block;\n width: 100%;\n height: 100%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content"></a>\n `}function rs(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 360px;\n min-height: 388px;\n }\n .content {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n width: 100%;\n height: 100%;\n font-family: "Source Sans 3", sans-serif;\n background-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%), url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n padding: 3%;\n box-sizing: border-box;\n text-decoration: none;\n color: #FFF;\n }\n .text {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n height: fit-content;\n gap: 5px;\n }\n .header {\n font-size: 18px;\n font-style: normal;\n font-weight: 300;\n font-family: "Cormorant", serif;\n line-height: normal;\n margin: 0;\n }\n .description {\n font-size: 10px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n margin: 0;\n }\n .cta-button {\n font-size: 8px;\n border-radius: 5px;\n border: 0.5px solid #FFF;\n background: rgba(255, 255, 255, 0.2);\n backdrop-filter: blur(2px);\n display: inline-block;\n padding: 7px 20px;\n transition: background-color 0.3s, color 0.3s;\n }\n .content:hover .cta-button {\n background-color: #FFF;\n color: #000;\n }\n @media (min-width: 768px) {\n .primary-image {\n width: 66.66666%;\n height: 100%;\n }\n .main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n .secondary-image {\n width: 100%;\n height: 50%;\n }\n .header {\n font-size: 22px;\n }\n .description {\n font-size: 12px;\n }\n .cta-button {\n font-size: 12px;\n }\n }\n @media (min-width: 1024px) {\n .header {\n font-size: 24px;\n }\n .description {\n font-size: 13px;\n }\n .cta-button {\n font-size: 13px;\n }\n }\n @media (min-width: 1280px) {\n .header {\n font-size: 28px;\n }\n .description {\n font-size: 14px;\n }\n .cta-button {\n font-size: 14px;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </a>\n`}function os(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e,secondaryImage:t})=>`\n <style>\n :host {\n min-width: 360px;\n min-height: 388px;\n }\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column; \n background-color: #FFFFFF;\n gap: 5px;\n text-decoration: none;\n color: inherit;\n }\n .primary-image {\n width: 100%;\n height: 60%;\n background-image: url("${e}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .main {\n width: 100%;\n height: 40%;\n display: flex;\n flex-direction: row;\n gap: 5px;\n }\n .secondary-image {\n width: 50%;\n height: 100%;\n background-image: url("${t}");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n }\n .text {\n background: #E8E6DE;\n text-align: center;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 50%;\n height: 100%;\n gap: 5px;\n padding: 0 10px;\n box-sizing: border-box;\n font-family: "Source Sans 3", sans-serif;\n }\n .header {\n font-size: 18px;\n color: #212121;\n font-style: normal;\n font-weight: 400;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n .description {\n font-size: 10px;\n color: #212121;\n font-style: normal;\n font-weight: 400;\n margin: 0;\n }\n .cta-button {\n font-size: 8px;\n color: #212121;\n background-color: transparent;\n font-style: normal;\n font-weight: 700;\n text-decoration: underline;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: opacity 0.3s ease;\n }\n .content:hover .cta-button {\n opacity: 0.7;\n }\n @media (min-width: 768px) {\n .content {\n flex-direction: row;\n }\n .primary-image {\n width: 66.66666%;\n height: 100%;\n }\n .main {\n flex-direction: column;\n height: 100%;\n width: 33.33333%;\n }\n .secondary-image {\n width: 100%;\n height: 50%;\n }\n .text {\n width: 100%;\n height: 50%;\n }\n .header {\n font-size: 22px;\n }\n .description {\n font-size: 12px;\n }\n .cta-button {\n font-size: 12px;\n }\n }\n @media (min-width: 1024px) {\n .header {\n font-size: 24px;\n }\n .description {\n font-size: 13px;\n }\n .cta-button {\n font-size: 13px;\n }\n }\n @media (min-width: 1280px) {\n .header {\n font-size: 28px;\n }\n .description {\n font-size: 14px;\n }\n .cta-button {\n font-size: 14px;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="primary-image"></div>\n <div class="main">\n <div class="secondary-image"></div>\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </div>\n </a>\n `}function is(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 340px;\n min-height: 334px;\n }\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.6) 100%), url("${e}") center/cover no-repeat;\n border-radius: 5px;\n overflow: hidden;\n text-decoration: none;\n color: #FFF;\n }\n .text {\n padding: 20px;\n width: 70%;\n font-family: "Source Sans 3", sans-serif;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 10px;\n }\n .header {\n font-family: "Cormorant", serif;\n font-size: 20px;\n font-weight: 300;\n line-height: normal;\n margin: 0;\n }\n .description {\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n margin: 0;\n }\n .cta-button {\n width: fit-content;\n display: inline-block;\n padding: 7px 20px;\n border: 0.5px solid rgba(255, 255, 255, 0.5);\n border-radius: 5px;\n color: #fff;\n font-size: 8px;\n transition: background-color 0.3s ease;\n }\n .content:hover .cta-button {\n background: rgba(255, 255, 255, 0.15);\n }\n @media (min-width: 768px) {\n .text {\n padding: 25px;\n }\n .header {\n font-size: 24px;\n }\n .description {\n font-size: 13px;\n line-height: 18px;\n }\n .cta-button {\n font-size: 12px;\n }\n }\n @media (min-width: 1024px) {\n .text {\n padding: 30px;\n }\n .header {\n font-size: 28px;\n }\n .description {\n font-size: 14px;\n }\n .cta-button {\n font-size: 13px;\n }\n }\n @media (min-width: 1280px) {\n .cta-button {\n font-size: 14px;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n <span class="cta-button">${e.ctaText}</span>\n </div>\n </a>\n `}function ss(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 340px;\n min-height: 150px;\n }\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n border-radius: 5px;\n overflow: hidden;\n text-decoration: none;\n color: #FFF;\n background-image: url("${e}"), linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(128,128,128,0.7), rgba(0,0,0,0.7));\n background-size: cover;\n background-position: center;\n background-blend-mode: overlay;\n }\n .text {\n padding: 15px 10%;\n width: fit-content;\n }\n .header {\n font-size: 16px;\n font-weight: 400;\n color: #fff;\n line-height: 20px;\n font-family: "Cormorant", serif;\n margin: 0;\n }\n @media (min-width: 768px) {\n .header {\n font-size: 22px;\n }\n }\n @media (min-width: 1024px) {\n .header {\n font-size: 24px;\n }\n }\n @media (min-width: 1280px) {\n .header {\n font-size: 28px;\n }\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n </div>\n </a>\n `}function as(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 165px;\n min-height: 334px;\n }\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.6) 100%), url("${e}") center/cover no-repeat;\n border-radius: 5px;\n overflow: hidden;\n text-decoration: none;\n color: #FFF;\n }\n .text {\n padding: 10px;\n width: 70%;\n }\n .header {\n font-size: 12px;\n font-weight: 400;\n color: #000;\n line-height: 16px;\n font-family: "Cormorant", serif;\n }\n </style>\n`)(e)}\n <a href="${e.clickUrl}" class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n </div>\n </a>\n `}function cs(e){return`\n \n <link rel="preconnect" href="https://fonts.googleapis.com">\n <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n\n \n<link \nhref="https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" \nrel="stylesheet">\n\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 165px;\n min-height: 300px;\n }\n .content {\n width: 100%;\n height: 100%;\n background-color: transparent;\n text-decoration: none;\n display: flex;\n flex-direction: column;\n }\n .image {\n width: 100%;\n height: 85%;\n background-image: url("${e}");\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n }\n .text {\n text-align: left;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n width: 100%;\n height: 15%;\n position: relative;\n overflow: hidden;\n }\n .header {\n font-size: 12px;\n font-weight: 400;\n color: #000;\n padding-top: 5px;\n line-height: 16px;\n font-family: "Cormorant", serif;\n }\n </style>\n`)(e)}\n <a class="content" href="${e.clickUrl}">\n <div class="image"></div>\n <div class="text">\n <span class="header">${e.header}</span>\n </div>\n </a>\n `}var ls;!function(e){e.SPOT="spot",e.VARIANT="variant",e.WIDTH="width",e.HEIGHT="height",e.FLUID="fluid",e.PRE_HEADER="preHeader",e.HEADER="header",e.DESCRIPTION="description",e.PRIMARY_IMAGE="primaryImage",e.SECONDARY_IMAGE="secondaryImage",e.MOBILE_PRIMARY_IMAGE="mobilePrimaryImage",e.MOBILE_SECONDARY_IMAGE="mobileSecondaryImage",e.CTA_TEXT="ctaText",e.CLICK_URL="clickUrl"}(ls||(ls={}));let hs;if("undefined"!=typeof window&&void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(e,t,n){t!==n&&this.render()}render(){const t={spot:String(this.getAttribute(ls.SPOT)),variant:String(this.getAttribute(ls.VARIANT)),width:Number(this.getAttribute(ls.WIDTH)),height:Number(this.getAttribute(ls.HEIGHT)),fluid:String(this.getAttribute(ls.FLUID)),preHeader:this.getAttribute(ls.PRE_HEADER)||"",header:this.getAttribute(ls.HEADER)||"",description:this.getAttribute(ls.DESCRIPTION)||"",primaryImage:this.getAttribute(ls.PRIMARY_IMAGE)||"",secondaryImage:this.getAttribute(ls.SECONDARY_IMAGE)||"",mobilePrimaryImage:this.getAttribute(ls.MOBILE_PRIMARY_IMAGE)||"",mobileSecondaryImage:this.getAttribute(ls.MOBILE_SECONDARY_IMAGE)||"",ctaText:this.getAttribute(ls.CTA_TEXT)||"",clickUrl:this.getAttribute(ls.CLICK_URL)||""};if(this.shadowRoot){const n=((e,t)=>{const n=t/e*100,r=document.createElement("style");r.textContent=`\n :host {\n display: block;\n position: relative;\n container-type: inline-size;\n }\n :host([fluid="true"]) {\n width: 100%;\n height: auto;\n padding-top: ${n}%;\n }\n :host([fluid="false"]) {\n width: ${e}px;\n height: ${t}px;\n }\n .wrapper {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n`;const o=document.createElement("div");return o.className="wrapper",{style:r,wrapper:o}})(t.width,t.height);n.wrapper.innerHTML=(t=>{const n={[e.RB_HOMEPAGE_HERO_THREE_TILE]:{rbHomepageHeroThreeTile:os},[e.RB_HOMEPAGE_HERO_FULL_IMAGE]:{rbHomepageHeroFullImage:rs},[e.RB_LARGE_CATEGORY_IMAGE_TOUT]:{rbLargeCategoryImageTout:is},[e.RB_SMALL_DISCOVER_TOUT]:{rbSmallDiscoverTout:cs},[e.RB_SMALL_CATEGORY_IMAGE_TOUT]:{rbSmallCategoryImageTout:as},[e.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{rbCollectionBannerWithoutTextBlock:ns},[e.RB_NAVIGATION_BANNER]:{rbNavigationBanner:ss},[e.RB_PRODUCT_UPCS]:{rbProductUpcs:()=>""},[e.BILLBOARD]:{billboardV1:Wi,billboardV2:Ki,billboardV3:Ji},[e.LARGE_RECTANGLE]:{largeRectangleV1:Xi},[e.VERTICAL_RECTANGLE]:{verticalRectangleV1:es},[e.SQUARE]:{squareV1:Zi,squareV2:Qi},[e.LARGE_LEADERBOARD]:{largeLeaderboardV1:Vi,largeLeaderboardV2:Gi},[e.WIDE_SKYSCRAPER]:{wideSkyscraperV1:ts},[e.IN_TEXT]:{inTextV1:Yi}}[t.spot];if(!n)return"";const r=n[t.variant];return r?r(t):""})(t),this.shadowRoot.innerHTML="",this.shadowRoot.appendChild(n.style),this.shadowRoot.appendChild(n.wrapper)}}}t.observedAttributes=Object.values(ls),hs=t}class us{static getInstance(){return Mn.getInstance("SpotHtmlService",(()=>new us))}createSpotHtmlElement(e,t){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const n=document.createElement($i),r=this.onlySpotAttributes(e,t);for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&void 0!==r[e]&&""!==r[e]&&n.setAttribute(e,String(r[e]));return n}ensureBrowserEnvironmentAndDefineElement(){return"undefined"==typeof window||"undefined"==typeof document?(console.warn("LiquidCommerce Rmn Sdk: createSpotElement is only available in browser environments!!!"),!1):(customElements.get($i)||customElements.define($i,hs),!0)}onlySpotAttributes(e,t){const n=e,r=Object.values(ls);for(const e in n)r.includes(e)||delete n[e];return n.fluid=String(t),n}}class fs extends qi{constructor(e){super(e)}static getInstance(e){return Mn.getInstance("SpotSelectionService",(()=>new fs(e)))}async spotSelection(e){const{isOk:t,val:n,isErr:r}=await this.post("/spots/selection",e,{});if(r)throw new Error(`There was an error during spot selection: (${null==r?void 0:r.errorMessage})`);if(t&&n&&n.data&&(null==n?void 0:n.refresh.token))return this.authInfo.authenticated=!0,this.authInfo.token=n.refresh.token,n.data.spots;throw new Error("Spot selection response was not successful")}}class ds{constructor(e){this.spotSelectionService=fs.getInstance(e),this.spotHtmlService=us.getInstance()}async spotSelection(e){return this.spotSelectionService.spotSelection(e)}createSpotElement(e,t){return this.spotHtmlService.createSpotHtmlElement(e,null!=t&&t)}}async function ps(e,t){const n=ji.getInstance(e,t.env),r=await n.initialize();return new ds(r)}function gs(e,t){return us.getInstance().createSpotHtmlElement(e,null!=t&&t)}export{ds as LiquidCommerceRmnClient,n as RMN_ENV,t as RMN_FILTER_PROPERTIES,e as RMN_SPOT_TYPE,ps as RmnClient,gs as RmnCreateSpotElement};
|
19
19
|
//# sourceMappingURL=index.mjs.map
|