@liquidcommercedev/rmn-sdk 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
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.LOCAL="local",e.DEVELOPMENT="development",e.STAGING="staging",e.PRODUCTION="production"}(n||(n={}));const r="X-Liquid-Protected",o="X-Liquid-Timestamp",i="X-Liquid-Api-Env",s={url:{local:"http://localhost:8300",development:"https://rmn-services-development-948630220003.us-central1.run.app",staging:"https://rmn-services-staging-948630220003.us-central1.run.app",production:"https://rmn-services-staging-948630220003.us-central1.run.app"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{authenticated:!1,apiKey:"",token:"",env:n.DEVELOPMENT}};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&&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===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 b(e,t){this.fun=e,this.array=t}b.prototype.run=function(){this.fun.apply(null,this.array)};function _(){}var x=_,S=_,E=_,k=_,A=_,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:x,addListener:S,once:E,off:k,removeListener:A,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,z=(U=Object.create(null),e=>{const t=H.call(e);return U[t]||(U[t]=t.slice(8,-1).toLowerCase())});var U;const L=e=>(e=e.toLowerCase(),t=>z(t)===e),N=e=>t=>typeof t===e,{isArray:F}=Array,q=N("undefined");const j=L("ArrayBuffer");const M=N("string"),$=N("function"),W=N("number"),K=e=>null!==e&&"object"==typeof e,J=e=>{if("object"!==z(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=L("Date"),Y=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=>!q(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,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 xe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ie):P.nextTick||me;var Se={isArray:F,isArrayBuffer:j,isBuffer:function(e){return null!==e&&!q(e)&&null!==e.constructor&&!q(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=z(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&&j(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:q,isDate:V,isFile:Y,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:z,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);!q(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},Ee=[],ke=[],Ae="undefined"!=typeof Uint8Array?Uint8Array:Array,Re=!1;function Te(){Re=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Ee[t]=e[t],ke[e.charCodeAt(t)]=t;ke["-".charCodeAt(0)]=62,ke["_".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(Ee[(o=r)>>18&63]+Ee[o>>12&63]+Ee[o>>6&63]+Ee[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+=Ee[t>>2],o+=Ee[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Ee[t>>10],o+=Ee[t>>4&63],o+=Ee[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 Ue.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ze(e,t){if(De()<t)throw new RangeError("Invalid typed array length");return Ue.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Ue.prototype:(null===e&&(e=new Ue(t)),e.length=t),e}function Ue(e,t,n){if(!(Ue.TYPED_ARRAY_SUPPORT||this instanceof Ue))return new Ue(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);Ue.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Ue.prototype:e=qe(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Ue.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|$e(t,n);e=ze(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|je(t.length);return 0===(e=ze(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?ze(e,0):qe(e,t);if("Buffer"===t.type&&He(t.data))return qe(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=ze(e,t<0?0:0|je(t)),!Ue.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function qe(e,t){var n=t.length<0?0:0|je(t.length);e=ze(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function je(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=Ue.from(t,r)),Me(t))return 0===t.length?-1:Ve(e,t,n,r,o);if("number"==typeof t)return t&=255,Ue.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 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 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],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)}Ue.TYPED_ARRAY_SUPPORT=void 0===c.TYPED_ARRAY_SUPPORT||c.TYPED_ARRAY_SUPPORT,De(),Ue.poolSize=8192,Ue._augment=function(e){return e.__proto__=Ue.prototype,e},Ue.from=function(e,t,n){return Le(null,e,t,n)},Ue.TYPED_ARRAY_SUPPORT&&(Ue.prototype.__proto__=Uint8Array.prototype,Ue.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Ue[Symbol.species]),Ue.alloc=function(e,t,n){return function(e,t,n,r){return Ne(t),t<=0?ze(e,t):void 0!==n?"string"==typeof r?ze(e,t).fill(n,r):ze(e,t).fill(n):ze(e,t)}(null,e,t,n)},Ue.allocUnsafe=function(e){return Fe(null,e)},Ue.allocUnsafeSlow=function(e){return Fe(null,e)},Ue.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))},Ue.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},Ue.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}},Ue.concat=function(e,t){if(!He(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Ue.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Ue.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},Ue.byteLength=$e,Ue.prototype._isBuffer=!0,Ue.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},Ue.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},Ue.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},Ue.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?nt(this,0,e):We.apply(this,arguments)},Ue.prototype.equals=function(e){if(!Me(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Ue.compare(this,e)},Ue.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+">"},Ue.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),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},Ue.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Ue.prototype.indexOf=function(e,t,n){return Je(this,e,t,n,!0)},Ue.prototype.lastIndexOf=function(e,t,n){return Je(this,e,t,n,!1)},Ue.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}},Ue.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 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}Ue.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),Ue.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Ue.prototype;else{var o=t-e;n=new Ue(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Ue.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},Ue.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},Ue.prototype.readUInt8=function(e,t){return t||ct(e,1,this.length),this[e]},Ue.prototype.readUInt16LE=function(e,t){return t||ct(e,2,this.length),this[e]|this[e+1]<<8},Ue.prototype.readUInt16BE=function(e,t){return t||ct(e,2,this.length),this[e]<<8|this[e+1]},Ue.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]},Ue.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])},Ue.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},Ue.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},Ue.prototype.readInt8=function(e,t){return t||ct(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ue.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},Ue.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},Ue.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},Ue.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]},Ue.prototype.readFloatLE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!0,23,4)},Ue.prototype.readFloatBE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!1,23,4)},Ue.prototype.readDoubleLE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!0,52,8)},Ue.prototype.readDoubleBE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!1,52,8)},Ue.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},Ue.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},Ue.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,255,0),Ue.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ue.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),Ue.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ht(this,e,t,!0),t+2},Ue.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ht(this,e,t,!1),t+2},Ue.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),Ue.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},Ue.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),Ue.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},Ue.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},Ue.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},Ue.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,127,-128),Ue.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ue.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),Ue.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ht(this,e,t,!0),t+2},Ue.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ht(this,e,t,!1),t+2},Ue.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),Ue.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},Ue.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),Ue.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},Ue.prototype.writeFloatLE=function(e,t,n){return dt(this,e,t,!0,n)},Ue.prototype.writeFloatBE=function(e,t,n){return dt(this,e,t,!1,n)},Ue.prototype.writeDoubleLE=function(e,t,n){return pt(this,e,t,!0,n)},Ue.prototype.writeDoubleBE=function(e,t,n){return pt(this,e,t,!1,n)},Ue.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||!Ue.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},Ue.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&&!Ue.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 Ue(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 Ae(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=ke[e.charCodeAt(t)]<<18|ke[e.charCodeAt(t+1)]<<12|ke[e.charCodeAt(t+2)]<<6|ke[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===i?(o=ke[e.charCodeAt(t)]<<2|ke[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===i&&(o=ke[e.charCodeAt(t)]<<10|ke[e.charCodeAt(t+1)]<<4|ke[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)}Se.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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const xt=_t.prototype,St={};["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=>{St[e]={value:e}})),Object.defineProperties(_t,St),Object.defineProperty(xt,"isAxiosError",{value:!0}),_t.from=(e,t,n,r,o,i)=>{const s=Object.create(xt);return Se.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 Et(e){return Se.isPlainObject(e)||Se.isArray(e)}function kt(e){return Se.endsWith(e,"[]")?e.slice(0,-2):e}function At(e,t,n){return e?e.concat(t).map((function(e,t){return e=kt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Rt=Se.toFlatObject(Se,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Tt(e,t,n){if(!Se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Se.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Se.isDate(e))return e.toISOString();if(!a&&Se.isBlob(e))throw new _t("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(e)||Se.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Ue.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Se.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Se.isArray(e)&&function(e){return Se.isArray(e)&&!e.some(Et)}(e)||(Se.isFileList(e)||Se.endsWith(n,"[]"))&&(a=Se.toArray(e)))return n=kt(n),a.forEach((function(e,r){!Se.isUndefined(e)&&null!==e&&t.append(!0===s?At([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!Et(e)||(t.append(At(o,n,i),c(e)),!1)}const h=[],u=Object.assign(Rt,{defaultVisitor:l,convertValue:c,isVisitable:Et});if(!Se.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Se.isUndefined(n)){if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),Se.forEach(n,(function(n,i){!0===(!(Se.isUndefined(n)||null===n)&&o.call(t,n,Se.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):Se.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){Se.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zt={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 Ut="undefined"!=typeof window&&"undefined"!=typeof document,Lt="object"==typeof navigator&&navigator||void 0,Nt=Ut&&(!Lt||["ReactNative","NativeScript","NS"].indexOf(Lt.product)<0),Ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,qt=Ut&&window.location.href||"http://localhost";var jt={...Object.freeze({__proto__:null,hasBrowserEnv:Ut,hasStandardBrowserEnv:Nt,hasStandardBrowserWebWorkerEnv:Ft,navigator:Lt,origin:qt}),...zt};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&&Se.isArray(r)?r.length:i,a)return Se.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&Se.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Se.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(Se.isFormData(e)&&Se.isFunction(e.entries)){const n={};return Se.forEachEntry(e,((e,r)=>{t(function(e){return Se.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=Se.isObject(e);o&&Se.isHTMLForm(e)&&(e=new FormData(e));if(Se.isFormData(e))return r?JSON.stringify(Mt(e)):e;if(Se.isArrayBuffer(e)||Se.isBuffer(e)||Se.isStream(e)||Se.isFile(e)||Se.isBlob(e)||Se.isReadableStream(e))return e;if(Se.isArrayBufferView(e))return e.buffer;if(Se.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 jt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return jt.isNode&&Se.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Se.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){if(Se.isString(e))try{return(t||JSON.parse)(e),Se.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$t.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Se.isResponse(e)||Se.isReadableStream(e))return e;if(e&&Se.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:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],(e=>{$t.headers[e]={}}));const Wt=Se.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:Se.isArray(e)?e.map(Vt):String(e)}function Yt(e,t,n,r,o){return Se.isFunction(r)?r.call(this,t,n):(o&&(t=n),Se.isString(t)?Se.isString(r)?-1!==t.indexOf(r):Se.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=Se.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)=>Se.forEach(e,((e,n)=>o(e,n,t)));if(Se.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Se.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(Se.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=Se.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(Se.isFunction(t))return t.call(this,e,n);if(Se.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Jt(e)){const n=Se.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=Se.findKey(n,e);!o||t&&!Yt(0,n[o],o,t)||(delete n[o],r=!0)}}return Se.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 Se.forEach(this,((r,o)=>{const i=Se.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 Se.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Se.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=Se.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 Se.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 Se.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"]),Se.reduceDescriptors(Gt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Se.freezeMethods(Gt),Se.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)=>Se.asap((()=>e(...t)));var on=jt.hasStandardBrowserEnv?function(){const e=jt.navigator&&/(msie|trident)/i.test(jt.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=Se.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},sn=jt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&s.push("path="+r),Se.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 Se.isPlainObject(e)&&Se.isPlainObject(t)?Se.merge.call({caseless:n},e,t):Se.isPlainObject(t)?Se.merge({},t):Se.isArray(t)?t.slice():t}function o(e,t,n){return Se.isUndefined(t)?Se.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Se.isUndefined(t))return r(void 0,t)}function s(e,t){return Se.isUndefined(t)?Se.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 Se.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);Se.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)):""))),Se.isFormData(r))if(jt.hasStandardBrowserEnv||jt.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(jt.hasStandardBrowserEnv&&(o&&Se.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&&Se.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),Se.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===jt.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=()=>Se.asap(s),a}},dn=function*(e,t){let n=e.byteLength;if(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(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),_n=mn&&vn((()=>Se.isReadableStream(new Response("").body))),xn={stream:_n&&(e=>e.body)};var Sn;yn&&(Sn=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!xn[e]&&(xn[e]=Se.isFunction(Sn[e])?t=>t[e]():(t,n)=>{throw new _t(`Response type '${e}' is not supported`,_t.ERR_NOT_SUPPORT,n)})})));const En=async(e,t)=>{const n=Se.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Se.isBlob(e))return e.size;if(Se.isSpecCompliantForm(e)){const t=new Request(jt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Se.isArrayBufferView(e)||Se.isArrayBuffer(e)?e.byteLength:(Se.isURLSearchParams(e)&&(e+=""),Se.isString(e)?(await wn(e)).byteLength:void 0)})(t):n};var kn=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&&bn&&"get"!==n&&"head"!==n&&0!==(y=await En(h,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Se.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)}}Se.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=Se.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[Se.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 An={http:null,xhr:un,fetch:kn};Se.forEach(An,((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=>Se.isFunction(e)||null===e||!1===e;var Bn=e=>{e=Se.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=An[(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 zn=Dn.validators;class Un{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:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1),null!=r&&(Se.isFunction(r)?t.paramsSerializer={serialize:r}:Dn.assertOptions(r,{encode:zn.function,serialize:zn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Se.merge(o.common,o[t.method]);o&&Se.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)}}Se.forEach(["delete","get","head","options"],(function(e){Un.prototype[e]=function(t,n){return this.request(ln(n||{},{method:e,url:t,data:(n||{}).data}))}})),Se.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}))}}Un.prototype[e]=t(),Un.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 Un(t),r=I(Un.prototype.request,n);return Se.extend(r,Un.prototype,n,{allOwnKeys:!0}),Se.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ln(t,n))},r}($t);Fn.Axios=Un,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 Se.isObject(e)&&!0===e.isAxiosError},Fn.mergeConfig=ln,Fn.AxiosHeaders=Gt,Fn.formToJSON=e=>Mt(Se.isHTMLForm(e)?new FormData(e):e),Fn.getAdapter=Bn,Fn.HttpStatusCode=Nn,Fn.default=Fn;class qn{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}}qn.instances=new Map;class jn{static getInstance(){return qn.getInstance("ObjectHelper",(()=>new jn))}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||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?Xn.exports:(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));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?sr.exports:(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));var e}var cr,lr={exports:{}};function hr(){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 ur,fr={exports:{}};function dr(){return ur?fr.exports:(ur=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],x=e[t+11],S=e[t+12],E=e[t+13],k=e[t+14],A=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,x,22,a[11]),R=l(R,T,B,O,S,7,a[12]),O=l(O,R,T,B,E,12,a[13]),B=l(B,O,R,T,k,17,a[14]),R=h(R,T=l(T,B,O,R,A,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,A,14,a[22]),T=h(T,B,O,R,g,20,a[23]),R=h(R,T,B,O,b,5,a[24]),O=h(O,R,T,B,k,9,a[25]),B=h(B,O,R,T,p,14,a[26]),T=h(T,B,O,R,v,20,a[27]),R=h(R,T,B,O,E,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,S,20,a[31]),B,O,y,4,a[32]),O=u(O,R,T,B,v,11,a[33]),B=u(B,O,R,T,x,16,a[34]),T=u(T,B,O,R,k,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,E,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,b,4,a[44]),O=u(O,R,T,B,S,11,a[45]),B=u(B,O,R,T,A,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,k,15,a[50]),T=f(T,B,O,R,y,21,a[51]),R=f(R,T,B,O,S,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,A,10,a[57]),B=f(B,O,R,T,m,15,a[58]),T=f(T,B,O,R,E,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,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 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));var e}var pr,gr={exports:{}};function yr(){return pr?gr.exports:(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 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));var e,t,n,r,o,i,s,a}var mr,wr={exports:{}};function vr(){return mr?wr.exports:(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=[],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,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&h^~a&u)+c[d]+l[d];f=u,u=h,h=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]+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));var e}var br,_r={exports:{}};var xr,Sr={exports:{}};function Er(){return xr||(xr=1,Sr.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 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,v=s.high,b=s.low,_=a.high,x=a.low,S=h.high,E=h.low,k=u.high,A=u.low,R=f.high,T=f.low,B=d,O=p,C=g,P=y,I=m,H=w,D=v,z=b,U=_,L=x,N=S,F=E,q=k,j=A,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,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),V.high=J,V.low=K}var ue,fe=U&N^~U&q,de=L&F^~L&j,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=(U>>>14|L<<18)^(U>>>18|L<<14)^(U<<23|L>>>9),ve=(L>>>14|U<<18)^(L>>>18|U<<14)^(L<<23|U>>>9),be=c[W],_e=be.high,xe=be.low,Se=M+we+((ue=$+ve)>>>0<$>>>0?1:0),Ee=me+ge;M=q,$=j,q=N,j=F,N=U,F=L,U=D+(Se=(Se=(Se=Se+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=z+ue|0)>>>0<z>>>0?1:0)|0,D=I,z=H,I=C,H=P,C=B,P=O,B=Se+(ye+pe+(Ee>>>0<me>>>0?1:0))+((O=ue+Ee|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),b=s.low=b+z,s.high=v+D+(b>>>0<z>>>0?1:0),x=a.low=x+L,a.high=_+U+(x>>>0<L>>>0?1:0),E=h.low=E+F,h.high=S+N+(E>>>0<F>>>0?1:0),A=u.low=A+j,u.high=k+q+(A>>>0<j>>>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(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512)),Sr.exports;var e}var kr,Ar={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=[],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],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 x=(T=n[_]).high,S=T.low,E=c[_];E<32?(d=x<<E|S>>>32-E,p=S<<E|x>>>32-E):(d=S<<E-32|x>>>64-E,p=x<<E-32|S>>>64-E);var k=u[l[_]];k.high=d,k.low=p}var A=u[0],R=n[0];for(A.high=R.high,A.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?Ir.exports:(Pr=1,Ir.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))}}))));var e,t,n,r}var Dr,zr={exports:{}};var Ur,Lr={exports:{}};function Nr(){return Ur?Lr.exports:(Ur=1,Lr.exports=(a=Yn(),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));var e,t,n,r,o,i,s,a}var Fr,qr={exports:{}};function jr(){return Fr||(Fr=1,qr.exports=(e=Yn(),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?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=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})}},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)}})}()))),qr.exports;var e}var Mr,$r={exports:{}};function Wr(){return Mr?$r.exports:(Mr=1,$r.exports=(e=Yn(),jr(),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(),jr(),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(),jr(),
|
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",e.SECTION="section"}(t||(t={})),function(e){e.LOCAL="local",e.DEVELOPMENT="development",e.STAGING="staging",e.PRODUCTION="production"}(n||(n={}));const r="X-Liquid-Protected",o="X-Liquid-Timestamp",i="X-Liquid-Api-Env",s={url:{local:"http://localhost:8300",development:"https://rmn-services-development-948630220003.us-central1.run.app",staging:"https://rmn-services-staging-948630220003.us-central1.run.app",production:"https://rmn-services-staging-948630220003.us-central1.run.app"},apiHeader:"X-Liquid-Api-Key",accessHeader:"Authorization",credentials:{authenticated:!1,apiKey:"",token:"",env:n.DEVELOPMENT}};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&&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===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 b(e,t){this.fun=e,this.array=t}b.prototype.run=function(){this.fun.apply(null,this.array)};function _(){}var x=_,S=_,E=_,k=_,A=_,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:x,addListener:S,once:E,off:k,removeListener:A,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,z=(U=Object.create(null),e=>{const t=H.call(e);return U[t]||(U[t]=t.slice(8,-1).toLowerCase())});var U;const L=e=>(e=e.toLowerCase(),t=>z(t)===e),N=e=>t=>typeof t===e,{isArray:F}=Array,q=N("undefined");const j=L("ArrayBuffer");const M=N("string"),$=N("function"),W=N("number"),K=e=>null!==e&&"object"==typeof e,J=e=>{if("object"!==z(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=L("Date"),Y=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=>!q(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,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 xe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ie):P.nextTick||me;var Se={isArray:F,isArrayBuffer:j,isBuffer:function(e){return null!==e&&!q(e)&&null!==e.constructor&&!q(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=z(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&&j(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:q,isDate:V,isFile:Y,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:z,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);!q(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},Ee=[],ke=[],Ae="undefined"!=typeof Uint8Array?Uint8Array:Array,Re=!1;function Te(){Re=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Ee[t]=e[t],ke[e.charCodeAt(t)]=t;ke["-".charCodeAt(0)]=62,ke["_".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(Ee[(o=r)>>18&63]+Ee[o>>12&63]+Ee[o>>6&63]+Ee[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+=Ee[t>>2],o+=Ee[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Ee[t>>10],o+=Ee[t>>4&63],o+=Ee[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 Ue.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ze(e,t){if(De()<t)throw new RangeError("Invalid typed array length");return Ue.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Ue.prototype:(null===e&&(e=new Ue(t)),e.length=t),e}function Ue(e,t,n){if(!(Ue.TYPED_ARRAY_SUPPORT||this instanceof Ue))return new Ue(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);Ue.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Ue.prototype:e=qe(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!Ue.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|$e(t,n);e=ze(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|je(t.length);return 0===(e=ze(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?ze(e,0):qe(e,t);if("Buffer"===t.type&&He(t.data))return qe(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=ze(e,t<0?0:0|je(t)),!Ue.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function qe(e,t){var n=t.length<0?0:0|je(t.length);e=ze(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function je(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=Ue.from(t,r)),Me(t))return 0===t.length?-1:Ve(e,t,n,r,o);if("number"==typeof t)return t&=255,Ue.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 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 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],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)}Ue.TYPED_ARRAY_SUPPORT=void 0===c.TYPED_ARRAY_SUPPORT||c.TYPED_ARRAY_SUPPORT,De(),Ue.poolSize=8192,Ue._augment=function(e){return e.__proto__=Ue.prototype,e},Ue.from=function(e,t,n){return Le(null,e,t,n)},Ue.TYPED_ARRAY_SUPPORT&&(Ue.prototype.__proto__=Uint8Array.prototype,Ue.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Ue[Symbol.species]),Ue.alloc=function(e,t,n){return function(e,t,n,r){return Ne(t),t<=0?ze(e,t):void 0!==n?"string"==typeof r?ze(e,t).fill(n,r):ze(e,t).fill(n):ze(e,t)}(null,e,t,n)},Ue.allocUnsafe=function(e){return Fe(null,e)},Ue.allocUnsafeSlow=function(e){return Fe(null,e)},Ue.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))},Ue.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},Ue.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}},Ue.concat=function(e,t){if(!He(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Ue.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Ue.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},Ue.byteLength=$e,Ue.prototype._isBuffer=!0,Ue.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},Ue.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},Ue.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},Ue.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?nt(this,0,e):We.apply(this,arguments)},Ue.prototype.equals=function(e){if(!Me(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Ue.compare(this,e)},Ue.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+">"},Ue.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),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},Ue.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Ue.prototype.indexOf=function(e,t,n){return Je(this,e,t,n,!0)},Ue.prototype.lastIndexOf=function(e,t,n){return Je(this,e,t,n,!1)},Ue.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}},Ue.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 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}Ue.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),Ue.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Ue.prototype;else{var o=t-e;n=new Ue(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Ue.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},Ue.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},Ue.prototype.readUInt8=function(e,t){return t||ct(e,1,this.length),this[e]},Ue.prototype.readUInt16LE=function(e,t){return t||ct(e,2,this.length),this[e]|this[e+1]<<8},Ue.prototype.readUInt16BE=function(e,t){return t||ct(e,2,this.length),this[e]<<8|this[e+1]},Ue.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]},Ue.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])},Ue.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},Ue.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},Ue.prototype.readInt8=function(e,t){return t||ct(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ue.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},Ue.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},Ue.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},Ue.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]},Ue.prototype.readFloatLE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!0,23,4)},Ue.prototype.readFloatBE=function(e,t){return t||ct(e,4,this.length),Ce(this,e,!1,23,4)},Ue.prototype.readDoubleLE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!0,52,8)},Ue.prototype.readDoubleBE=function(e,t){return t||ct(e,8,this.length),Ce(this,e,!1,52,8)},Ue.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},Ue.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},Ue.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,255,0),Ue.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ue.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),Ue.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ht(this,e,t,!0),t+2},Ue.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,65535,0),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ht(this,e,t,!1),t+2},Ue.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),Ue.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},Ue.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,4294967295,0),Ue.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},Ue.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},Ue.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},Ue.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,1,127,-128),Ue.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ue.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),Ue.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ht(this,e,t,!0),t+2},Ue.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,2,32767,-32768),Ue.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ht(this,e,t,!1),t+2},Ue.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||lt(this,e,t,4,2147483647,-2147483648),Ue.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},Ue.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),Ue.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},Ue.prototype.writeFloatLE=function(e,t,n){return dt(this,e,t,!0,n)},Ue.prototype.writeFloatBE=function(e,t,n){return dt(this,e,t,!1,n)},Ue.prototype.writeDoubleLE=function(e,t,n){return pt(this,e,t,!0,n)},Ue.prototype.writeDoubleBE=function(e,t,n){return pt(this,e,t,!1,n)},Ue.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||!Ue.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},Ue.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&&!Ue.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 Ue(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 Ae(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=ke[e.charCodeAt(t)]<<18|ke[e.charCodeAt(t+1)]<<12|ke[e.charCodeAt(t+2)]<<6|ke[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===i?(o=ke[e.charCodeAt(t)]<<2|ke[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===i&&(o=ke[e.charCodeAt(t)]<<10|ke[e.charCodeAt(t+1)]<<4|ke[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)}Se.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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const xt=_t.prototype,St={};["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=>{St[e]={value:e}})),Object.defineProperties(_t,St),Object.defineProperty(xt,"isAxiosError",{value:!0}),_t.from=(e,t,n,r,o,i)=>{const s=Object.create(xt);return Se.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 Et(e){return Se.isPlainObject(e)||Se.isArray(e)}function kt(e){return Se.endsWith(e,"[]")?e.slice(0,-2):e}function At(e,t,n){return e?e.concat(t).map((function(e,t){return e=kt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Rt=Se.toFlatObject(Se,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Tt(e,t,n){if(!Se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Se.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Se.isDate(e))return e.toISOString();if(!a&&Se.isBlob(e))throw new _t("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(e)||Se.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Ue.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Se.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Se.isArray(e)&&function(e){return Se.isArray(e)&&!e.some(Et)}(e)||(Se.isFileList(e)||Se.endsWith(n,"[]"))&&(a=Se.toArray(e)))return n=kt(n),a.forEach((function(e,r){!Se.isUndefined(e)&&null!==e&&t.append(!0===s?At([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!Et(e)||(t.append(At(o,n,i),c(e)),!1)}const h=[],u=Object.assign(Rt,{defaultVisitor:l,convertValue:c,isVisitable:Et});if(!Se.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Se.isUndefined(n)){if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),Se.forEach(n,(function(n,i){!0===(!(Se.isUndefined(n)||null===n)&&o.call(t,n,Se.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):Se.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){Se.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zt={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 Ut="undefined"!=typeof window&&"undefined"!=typeof document,Lt="object"==typeof navigator&&navigator||void 0,Nt=Ut&&(!Lt||["ReactNative","NativeScript","NS"].indexOf(Lt.product)<0),Ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,qt=Ut&&window.location.href||"http://localhost";var jt={...Object.freeze({__proto__:null,hasBrowserEnv:Ut,hasStandardBrowserEnv:Nt,hasStandardBrowserWebWorkerEnv:Ft,navigator:Lt,origin:qt}),...zt};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&&Se.isArray(r)?r.length:i,a)return Se.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&Se.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Se.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(Se.isFormData(e)&&Se.isFunction(e.entries)){const n={};return Se.forEachEntry(e,((e,r)=>{t(function(e){return Se.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=Se.isObject(e);o&&Se.isHTMLForm(e)&&(e=new FormData(e));if(Se.isFormData(e))return r?JSON.stringify(Mt(e)):e;if(Se.isArrayBuffer(e)||Se.isBuffer(e)||Se.isStream(e)||Se.isFile(e)||Se.isBlob(e)||Se.isReadableStream(e))return e;if(Se.isArrayBufferView(e))return e.buffer;if(Se.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 jt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return jt.isNode&&Se.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Se.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){if(Se.isString(e))try{return(t||JSON.parse)(e),Se.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$t.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Se.isResponse(e)||Se.isReadableStream(e))return e;if(e&&Se.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:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],(e=>{$t.headers[e]={}}));const Wt=Se.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:Se.isArray(e)?e.map(Vt):String(e)}function Yt(e,t,n,r,o){return Se.isFunction(r)?r.call(this,t,n):(o&&(t=n),Se.isString(t)?Se.isString(r)?-1!==t.indexOf(r):Se.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=Se.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)=>Se.forEach(e,((e,n)=>o(e,n,t)));if(Se.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Se.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(Se.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=Se.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(Se.isFunction(t))return t.call(this,e,n);if(Se.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Jt(e)){const n=Se.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=Se.findKey(n,e);!o||t&&!Yt(0,n[o],o,t)||(delete n[o],r=!0)}}return Se.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 Se.forEach(this,((r,o)=>{const i=Se.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 Se.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Se.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=Se.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 Se.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 Se.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"]),Se.reduceDescriptors(Gt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Se.freezeMethods(Gt),Se.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)=>Se.asap((()=>e(...t)));var on=jt.hasStandardBrowserEnv?function(){const e=jt.navigator&&/(msie|trident)/i.test(jt.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=Se.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},sn=jt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&s.push("path="+r),Se.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 Se.isPlainObject(e)&&Se.isPlainObject(t)?Se.merge.call({caseless:n},e,t):Se.isPlainObject(t)?Se.merge({},t):Se.isArray(t)?t.slice():t}function o(e,t,n){return Se.isUndefined(t)?Se.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Se.isUndefined(t))return r(void 0,t)}function s(e,t){return Se.isUndefined(t)?Se.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 Se.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);Se.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)):""))),Se.isFormData(r))if(jt.hasStandardBrowserEnv||jt.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(jt.hasStandardBrowserEnv&&(o&&Se.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&&Se.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),Se.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===jt.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=()=>Se.asap(s),a}},dn=function*(e,t){let n=e.byteLength;if(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(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),_n=mn&&vn((()=>Se.isReadableStream(new Response("").body))),xn={stream:_n&&(e=>e.body)};var Sn;yn&&(Sn=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!xn[e]&&(xn[e]=Se.isFunction(Sn[e])?t=>t[e]():(t,n)=>{throw new _t(`Response type '${e}' is not supported`,_t.ERR_NOT_SUPPORT,n)})})));const En=async(e,t)=>{const n=Se.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Se.isBlob(e))return e.size;if(Se.isSpecCompliantForm(e)){const t=new Request(jt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Se.isArrayBufferView(e)||Se.isArrayBuffer(e)?e.byteLength:(Se.isURLSearchParams(e)&&(e+=""),Se.isString(e)?(await wn(e)).byteLength:void 0)})(t):n};var kn=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&&bn&&"get"!==n&&"head"!==n&&0!==(y=await En(h,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Se.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)}}Se.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=Se.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[Se.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 An={http:null,xhr:un,fetch:kn};Se.forEach(An,((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=>Se.isFunction(e)||null===e||!1===e;var Bn=e=>{e=Se.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=An[(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 zn=Dn.validators;class Un{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:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1),null!=r&&(Se.isFunction(r)?t.paramsSerializer={serialize:r}:Dn.assertOptions(r,{encode:zn.function,serialize:zn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Se.merge(o.common,o[t.method]);o&&Se.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)}}Se.forEach(["delete","get","head","options"],(function(e){Un.prototype[e]=function(t,n){return this.request(ln(n||{},{method:e,url:t,data:(n||{}).data}))}})),Se.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}))}}Un.prototype[e]=t(),Un.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 Un(t),r=I(Un.prototype.request,n);return Se.extend(r,Un.prototype,n,{allOwnKeys:!0}),Se.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ln(t,n))},r}($t);Fn.Axios=Un,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 Se.isObject(e)&&!0===e.isAxiosError},Fn.mergeConfig=ln,Fn.AxiosHeaders=Gt,Fn.formToJSON=e=>Mt(Se.isHTMLForm(e)?new FormData(e):e),Fn.getAdapter=Bn,Fn.HttpStatusCode=Nn,Fn.default=Fn;class qn{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}}qn.instances=new Map;class jn{static getInstance(){return qn.getInstance("ObjectHelper",(()=>new jn))}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||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?Xn.exports:(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));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?sr.exports:(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));var e}var cr,lr={exports:{}};function hr(){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 ur,fr={exports:{}};function dr(){return ur?fr.exports:(ur=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],x=e[t+11],S=e[t+12],E=e[t+13],k=e[t+14],A=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,x,22,a[11]),R=l(R,T,B,O,S,7,a[12]),O=l(O,R,T,B,E,12,a[13]),B=l(B,O,R,T,k,17,a[14]),R=h(R,T=l(T,B,O,R,A,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,A,14,a[22]),T=h(T,B,O,R,g,20,a[23]),R=h(R,T,B,O,b,5,a[24]),O=h(O,R,T,B,k,9,a[25]),B=h(B,O,R,T,p,14,a[26]),T=h(T,B,O,R,v,20,a[27]),R=h(R,T,B,O,E,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,S,20,a[31]),B,O,y,4,a[32]),O=u(O,R,T,B,v,11,a[33]),B=u(B,O,R,T,x,16,a[34]),T=u(T,B,O,R,k,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,E,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,b,4,a[44]),O=u(O,R,T,B,S,11,a[45]),B=u(B,O,R,T,A,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,k,15,a[50]),T=f(T,B,O,R,y,21,a[51]),R=f(R,T,B,O,S,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,A,10,a[57]),B=f(B,O,R,T,m,15,a[58]),T=f(T,B,O,R,E,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,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 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));var e}var pr,gr={exports:{}};function yr(){return pr?gr.exports:(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 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));var e,t,n,r,o,i,s,a}var mr,wr={exports:{}};function vr(){return mr?wr.exports:(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=[],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,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&h^~a&u)+c[d]+l[d];f=u,u=h,h=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]+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));var e}var br,_r={exports:{}};var xr,Sr={exports:{}};function Er(){return xr||(xr=1,Sr.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 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,v=s.high,b=s.low,_=a.high,x=a.low,S=h.high,E=h.low,k=u.high,A=u.low,R=f.high,T=f.low,B=d,O=p,C=g,P=y,I=m,H=w,D=v,z=b,U=_,L=x,N=S,F=E,q=k,j=A,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,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),V.high=J,V.low=K}var ue,fe=U&N^~U&q,de=L&F^~L&j,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=(U>>>14|L<<18)^(U>>>18|L<<14)^(U<<23|L>>>9),ve=(L>>>14|U<<18)^(L>>>18|U<<14)^(L<<23|U>>>9),be=c[W],_e=be.high,xe=be.low,Se=M+we+((ue=$+ve)>>>0<$>>>0?1:0),Ee=me+ge;M=q,$=j,q=N,j=F,N=U,F=L,U=D+(Se=(Se=(Se=Se+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=z+ue|0)>>>0<z>>>0?1:0)|0,D=I,z=H,I=C,H=P,C=B,P=O,B=Se+(ye+pe+(Ee>>>0<me>>>0?1:0))+((O=ue+Ee|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),b=s.low=b+z,s.high=v+D+(b>>>0<z>>>0?1:0),x=a.low=x+L,a.high=_+U+(x>>>0<L>>>0?1:0),E=h.low=E+F,h.high=S+N+(E>>>0<F>>>0?1:0),A=u.low=A+j,u.high=k+q+(A>>>0<j>>>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(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512)),Sr.exports;var e}var kr,Ar={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=[],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],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 x=(T=n[_]).high,S=T.low,E=c[_];E<32?(d=x<<E|S>>>32-E,p=S<<E|x>>>32-E):(d=S<<E-32|x>>>64-E,p=x<<E-32|S>>>64-E);var k=u[l[_]];k.high=d,k.low=p}var A=u[0],R=n[0];for(A.high=R.high,A.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?Ir.exports:(Pr=1,Ir.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))}}))));var e,t,n,r}var Dr,zr={exports:{}};var Ur,Lr={exports:{}};function Nr(){return Ur?Lr.exports:(Ur=1,Lr.exports=(a=Yn(),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));var e,t,n,r,o,i,s,a}var Fr,qr={exports:{}};function jr(){return Fr||(Fr=1,qr.exports=(e=Yn(),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?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=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})}},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)}})}()))),qr.exports;var e}var Mr,$r={exports:{}};function Wr(){return Mr?$r.exports:(Mr=1,$r.exports=(e=Yn(),jr(),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(),jr(),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(),jr(),
|
2
2
|
/** @preserve
|
3
3
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
4
4
|
* derived from CryptoJS.mode.CTR
|
@@ -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]),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,v,b,_,x,S,E,k,A,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],S=f=T[1],E=v=T[2],k=b=T[3],A=_=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,I[n]))+_|0,i=_,_=b,b=w(v,10),v=f,f=R,R=x+e[t+P[n]]|0,R+=n<16?m(S,E,k)+O[0]:n<32?y(S,E,k)+O[1]:n<48?g(S,E,k)+O[2]:n<64?p(S,E,k)+O[3]:d(S,E,k)+O[4],R=(R=w(R|=0,H[n]))+A|0,x=A,A=k,k=w(E,10),E=S,S=R;R=T[1]+v+k|0,T[1]=T[2]+b+A|0,T[2]=T[3]+_+x|0,T[3]=T[4]+i+S|0,T[4]=T[0]+f+E|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,zr.exports=(c=Yn(),vr(),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)),zr.exports;var e,t,n,r,o,i,s,a,c}(),Nr(),jr(),Wr(),Vr(),Xr(),eo(),function(){return to?no.exports:(to=1,no.exports=(t=Yn(),jr(),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(),jr(),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(),jr(),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(),jr(),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=Yn(),jr(),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=Yn(),jr(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return po?go.exports:(po=1,go.exports=(r=Yn(),jr(),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(),Nr(),jr(),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}(),bo(),function(){return _o?xo.exports:(_o=1,xo.exports=(e=Yn(),ar(),dr(),Nr(),jr(),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 So?Eo.exports:(So=1,Eo.exports=(e=Yn(),ar(),dr(),Nr(),jr(),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 ko?Ao.exports:(ko=1,Ao.exports=(e=Yn(),ar(),dr(),Nr(),jr(),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 zo=Wn.exports,Uo=crypto;const Lo=e=>e instanceof CryptoKey,No=new TextEncoder,Fo=new TextDecoder;function qo(...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 jo=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,"_"),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=>!!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,Uo.subtle.importKey("jwk",o,...r)},ui=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 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 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?ui(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 xi=_i.bind(void 0,!0);function Si(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 Ei(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 ki(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 Uo.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(ni(t,...ii,"Uint8Array","JSON Web Key"))}async function Ai(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(Si(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,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 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 hi({...e,alg:t});default:throw new Jo('Unsupported "kty" (Key Type) Parameter value')}}(t,s))):xi(s,t,"verify");const c=qo(No.encode(e.protected??""),No.encode("."),"string"==typeof e.payload?No.encode(e.payload):e.payload);let l;try{l=Mo(e.signature)}catch{throw new Vo("Failed to base64url decode the signature")}const h=await(async(e,t,n,r)=>{const o=await ki(e,t,"verify");ci(e,o);const i=Ei(e,o.algorithm);try{return await Uo.subtle.verify(i,o,n,r)}catch{return!1}})(s,t,l,c);if(!h)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?No.encode(e.payload):e.payload;const f={payload:u};return void 0!==e.protected&&(f.protectedHeader=r),void 0!==e.header&&(f.unprotectedHeader=e.header),a?{...f,key:t}:f}var Ri=e=>Math.floor(e.getTime()/1e3);const Ti=86400,Bi=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var Oi=e=>{const t=Bi.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*Ti);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 Ci=e=>e.toLowerCase().replace(/^application\//,"");var Pi=(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||Ci(e.typ)!==Ci(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=Oi(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=Ri(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:Oi(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 Ai({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:Pi(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...o,key:r.key}:o}class Hi{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(Si(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');xi(o,e,"sign");let i,s=this._payload;r&&(s=No.encode(jo(s))),i=this._protectedHeader?No.encode(jo(JSON.stringify(this._protectedHeader))):No.encode("");const a=qo(i,No.encode("."),s),c=await(async(e,t,n)=>{const r=await ki(e,t,"sign");ci(e,r);const o=await Uo.subtle.sign(Ei(e,r.algorithm),r,n);return new Uint8Array(o)})(o,e,a),l={signature:jo(c),payload:""};return r&&(l.payload=Fo.decode(s)),this._unprotectedHeader&&(l.header=this._unprotectedHeader),this._protectedHeader&&(l.protected=Fo.decode(i)),l}}class Di{constructor(e){this._flattened=new Hi(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 Ui{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",Ri(e))}:this._payload={...this._payload,nbf:Ri(new Date)+Oi(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",Ri(e))}:this._payload={...this._payload,exp:Ri(new Date)+Oi(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:Ri(new Date)}:e instanceof Date?this._payload={...this._payload,iat:zi("setIssuedAt",Ri(e))}:this._payload="string"==typeof e?{...this._payload,iat:zi("setIssuedAt",Ri(new Date)+Oi(e))}:{...this._payload,iat:zi("setIssuedAt",e)},this}}class Li extends Ui{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new Di(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 Yo("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class Ni{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 Fi{constructor(e){this.apiKey=e}static getInstance(e){return qn.getInstance("EncryptedApi",(()=>new Fi(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(zo.AES.decrypt(e,t).toString(zo.enc.Utf8),Ue.from(t))}async joseEncrypt(e,t,n){const r=new Date,o=new Li(e).setProtectedHeader({alg:"HS256"}).setIssuedAt(r.getTime()).setExpirationTime(n),i=await o.sign(Ue.from(t));return zo.AES.encrypt(i,t).toString()}handleError(e){throw new Ni(e)}}class qi extends a{constructor(e){var t;super(),this.authInfo=e,this.encryptedApi=Fi.getInstance(this.authInfo.apiKey),this.objectHelper=jn.getInstance(),this.baseUrl=null!==(t=s.url[this.authInfo.env])&&void 0!==t?t:s.url.development,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.DEVELOPMENT){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 Ni(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 qn.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 Mi="spot-element";function $i(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 cursor: pointer;\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 <div 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 </div>\n `}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})=>`\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 cursor: pointer;\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 <div 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 </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 ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-items: stretch;\n cursor: pointer;\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 <div 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 </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 \n <style>\n .content {\n display: inline-block;\n cursor: pointer;\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 <div class="content">\n <span class="header">${e.header}</span>\n <span class="description">${e.description}</span>\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 ${(({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 cursor: pointer;\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 <div 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 </div>\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 ${(({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 cursor: pointer;\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 <div 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 </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 ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n cursor: pointer;\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 <div class="content">\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 </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 ${(({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 cursor: pointer;\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 <div 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 </div>\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 background-color: #fff;\n cursor: pointer;\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 <div class="content">\n <span class="header">${e.header}</span>\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 ${(({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 cursor: pointer;\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 <div 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 </div>\n `}function es(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 <div class="content"></div>\n `}function ts(e){return`\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 320px;\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 cursor: pointer;\n }\n </style>\n`)(e)}\n <div class="content"></div>\n `}function ns(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: 320px;\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 color: #FFF;\n cursor: pointer;\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 display: inline-block;\n padding: 7px 20px;\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 .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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n ${e.ctaText?`<span class="cta-button">${e.ctaText}</span>`:""}\n </div>\n </div>\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,secondaryImage:t})=>`\n <style>\n :host {\n min-width: 320px;\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 color: inherit;\n cursor: pointer;\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 <div 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 ${e.ctaText?`<span class="cta-button">${e.ctaText}</span>`:""}\n </div>\n </div>\n </div>\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})=>`\n <style>\n :host {\n min-width: 320px;\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 cursor: pointer;\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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n ${e.ctaText?`<span class="cta-button">${e.ctaText}</span>`:""}\n </div>\n </div>\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=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: 320px;\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 cursor: pointer;\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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n </div>\n </div>\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: 165px;\n min-height: 300px;\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 cursor: pointer;\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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n </div>\n </div>\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: 250px;\n }\n .content {\n width: 100%;\n height: 100%;\n background-color: transparent;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n }\n .image {\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 .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: fit-content;\n position: relative;\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 <div class="content">\n <div class="image"></div>\n <div class="text">\n <span class="header">${e.header}</span>\n </div>\n </div>\n `}var cs;!function(e){e.WIDTH="width",e.HEIGHT="height",e.FLUID="fluid",e.DATA="data"}(cs||(cs={}));let ls;if("undefined"!=typeof window&&void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.spot=null,this.attachShadow({mode:"open"})}connectedCallback(){this.getData(),this.addEventListener("click",(()=>this.registerEvent("click"))),this.setupIntersectionObserver(),this.render()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}attributeChangedCallback(e,t,n){t!==n&&this.render()}getData(){const e=this.getAttribute(cs.DATA);if(e)try{this.spot=JSON.parse(atob(e))}catch(e){console.error("Error parsing spot data:",e)}}render(){if(!this.shadowRoot||!this.spot)return;const{style:t,wrapper:n}=((e,t)=>{const n=document.createElement("style");n.textContent=`\n :host {\n display: block;\n position: relative;\n container-type: inline-size;\n }\n :host([fluid="true"]) {\n width: 100%;\n height: 100%;\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 r=document.createElement("div");return r.className="wrapper",{style:n,wrapper:r}})(this.spot.width,this.spot.height);n.innerHTML=(t=>{const n={[e.RB_HOMEPAGE_HERO_THREE_TILE]:{rbHomepageHeroThreeTile:rs},[e.RB_HOMEPAGE_HERO_FULL_IMAGE]:{rbHomepageHeroFullImage:ns},[e.RB_LARGE_CATEGORY_IMAGE_TOUT]:{rbLargeCategoryImageTout:os},[e.RB_SMALL_DISCOVER_TOUT]:{rbSmallDiscoverTout:as},[e.RB_SMALL_CATEGORY_IMAGE_TOUT]:{rbSmallCategoryImageTout:ss},[e.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{rbCollectionBannerWithoutTextBlock:ts},[e.RB_NAVIGATION_BANNER]:{rbNavigationBanner:is},[e.RB_PRODUCT_UPCS]:{rbProductUpcs:()=>""},[e.BILLBOARD]:{billboardV1:$i,billboardV2:Wi,billboardV3:Ki},[e.LARGE_RECTANGLE]:{largeRectangleV1:Gi},[e.VERTICAL_RECTANGLE]:{verticalRectangleV1:Qi},[e.SQUARE]:{squareV1:Xi,squareV2:Zi},[e.LARGE_LEADERBOARD]:{largeLeaderboardV1:Vi,largeLeaderboardV2:Yi},[e.WIDE_SKYSCRAPER]:{wideSkyscraperV1:es},[e.IN_TEXT]:{inTextV1:Ji}}[t.spot];if(!n)return"";const r=n[t.variant];return r?r(t):""})(this.spot),this.shadowRoot.replaceChildren(t,n)}setupIntersectionObserver(){this.observer=new IntersectionObserver((e=>{var t;e[0].isIntersecting&&(this.registerEvent("impression"),null===(t=this.observer)||void 0===t||t.disconnect())}),{root:null,rootMargin:"0px",threshold:.5}),this.observer.observe(this)}async registerEvent(e){if(!this.spot)return;const t={impression:this.spot.impressionUrl,click:this.spot.clickUrl};try{const n={method:"POST",redirect:"manual"};"click"===e&&(n.redirect="follow");const r=this.normalizeUrl(t[e]);(await fetch(r,n)).ok&&"click"===e&&(window.location.href=this.redirectUrl(r))}catch(t){console.error(`Rmn error sending ${e} event:`,t)}}normalizeUrl(e){if(!this.spot)return e;const t=`${s.url[this.spot.env]}/api/events/ict`;return e.replace(/https?:\/\/[^/]+\/[^?]+/,`${t}`)}redirectUrl(e){var t;const n=null!==(t=new URL(e).searchParams.get("e"))&&void 0!==t?t:"";try{const e=JSON.parse(atob(n));return e.ur?e.ur:""}catch(e){return""}}}t.observedAttributes=[cs.WIDTH,cs.HEIGHT,cs.FLUID],ls=t}class hs{static getInstance(){return qn.getInstance("SpotHtmlService",(()=>new hs))}createSpotHtmlElement(e,t){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const n=document.createElement(Mi);return n.setAttribute(cs.WIDTH,e.width.toString()),n.setAttribute(cs.HEIGHT,e.height.toString()),n.setAttribute(cs.FLUID,t.toString()),n.setAttribute(cs.DATA,this.spotToBase64(e)),n}ensureBrowserEnvironmentAndDefineElement(){return"undefined"==typeof window||"undefined"==typeof document?(console.warn("LiquidCommerce Rmn Sdk: createSpotElement is only available in browser environments!!!"),!1):(customElements.get(Mi)||customElements.define(Mi,ls),!0)}spotToBase64(e){return btoa(JSON.stringify(e))}}class us extends qi{constructor(e){super(e)}static getInstance(e){return qn.getInstance("SpotSelectionService",(()=>new us(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)){this.authInfo.authenticated=!0,this.authInfo.token=n.refresh.token;let e=n.data.spots;return e=this.addEnvToSpotData(e,this.authInfo.env),e}throw new Error("Spot selection response was not successful")}addEnvToSpotData(e,t){for(const n in e)e[n]&&e[n].forEach((e=>{e.env=t}));return e}}class fs{constructor(e){this.spotSelectionService=us.getInstance(e),this.spotHtmlService=hs.getInstance()}async spotSelection(e){return this.spotSelectionService.spotSelection(e)}createSpotElement(e,t){return this.spotHtmlService.createSpotHtmlElement(e,null!=t&&t)}}async function ds(e,t){const n=ji.getInstance(e,t.env),r=await n.initialize();return new fs(r)}function ps(e,t){return hs.getInstance().createSpotHtmlElement(e,null!=t&&t)}export{fs as LiquidCommerceRmnClient,n as RMN_ENV,t as RMN_FILTER_PROPERTIES,e as RMN_SPOT_TYPE,ds as RmnClient,ps 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,v,b,_,x,S,E,k,A,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],S=f=T[1],E=v=T[2],k=b=T[3],A=_=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,I[n]))+_|0,i=_,_=b,b=w(v,10),v=f,f=R,R=x+e[t+P[n]]|0,R+=n<16?m(S,E,k)+O[0]:n<32?y(S,E,k)+O[1]:n<48?g(S,E,k)+O[2]:n<64?p(S,E,k)+O[3]:d(S,E,k)+O[4],R=(R=w(R|=0,H[n]))+A|0,x=A,A=k,k=w(E,10),E=S,S=R;R=T[1]+v+k|0,T[1]=T[2]+b+A|0,T[2]=T[3]+_+x|0,T[3]=T[4]+i+S|0,T[4]=T[0]+f+E|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,zr.exports=(c=Yn(),vr(),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)),zr.exports;var e,t,n,r,o,i,s,a,c}(),Nr(),jr(),Wr(),Vr(),Xr(),eo(),function(){return to?no.exports:(to=1,no.exports=(t=Yn(),jr(),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(),jr(),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(),jr(),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(),jr(),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=Yn(),jr(),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=Yn(),jr(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return po?go.exports:(po=1,go.exports=(r=Yn(),jr(),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(),Nr(),jr(),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}(),bo(),function(){return _o?xo.exports:(_o=1,xo.exports=(e=Yn(),ar(),dr(),Nr(),jr(),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 So?Eo.exports:(So=1,Eo.exports=(e=Yn(),ar(),dr(),Nr(),jr(),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 ko?Ao.exports:(ko=1,Ao.exports=(e=Yn(),ar(),dr(),Nr(),jr(),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 zo=Wn.exports,Uo=crypto;const Lo=e=>e instanceof CryptoKey,No=new TextEncoder,Fo=new TextDecoder;function qo(...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 jo=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,"_"),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=>!!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,Uo.subtle.importKey("jwk",o,...r)},ui=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 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 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?ui(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 xi=_i.bind(void 0,!0);function Si(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 Ei(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 ki(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 Uo.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}throw new TypeError(ni(t,...ii,"Uint8Array","JSON Web Key"))}async function Ai(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(Si(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,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 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 hi({...e,alg:t});default:throw new Jo('Unsupported "kty" (Key Type) Parameter value')}}(t,s))):xi(s,t,"verify");const c=qo(No.encode(e.protected??""),No.encode("."),"string"==typeof e.payload?No.encode(e.payload):e.payload);let l;try{l=Mo(e.signature)}catch{throw new Vo("Failed to base64url decode the signature")}const h=await(async(e,t,n,r)=>{const o=await ki(e,t,"verify");ci(e,o);const i=Ei(e,o.algorithm);try{return await Uo.subtle.verify(i,o,n,r)}catch{return!1}})(s,t,l,c);if(!h)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?No.encode(e.payload):e.payload;const f={payload:u};return void 0!==e.protected&&(f.protectedHeader=r),void 0!==e.header&&(f.unprotectedHeader=e.header),a?{...f,key:t}:f}var Ri=e=>Math.floor(e.getTime()/1e3);const Ti=86400,Bi=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var Oi=e=>{const t=Bi.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*Ti);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 Ci=e=>e.toLowerCase().replace(/^application\//,"");var Pi=(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||Ci(e.typ)!==Ci(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=Oi(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=Ri(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:Oi(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 Ai({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:Pi(r.protectedHeader,r.payload,n),protectedHeader:r.protectedHeader};return"function"==typeof t?{...o,key:r.key}:o}class Hi{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(Si(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');xi(o,e,"sign");let i,s=this._payload;r&&(s=No.encode(jo(s))),i=this._protectedHeader?No.encode(jo(JSON.stringify(this._protectedHeader))):No.encode("");const a=qo(i,No.encode("."),s),c=await(async(e,t,n)=>{const r=await ki(e,t,"sign");ci(e,r);const o=await Uo.subtle.sign(Ei(e,r.algorithm),r,n);return new Uint8Array(o)})(o,e,a),l={signature:jo(c),payload:""};return r&&(l.payload=Fo.decode(s)),this._unprotectedHeader&&(l.header=this._unprotectedHeader),this._protectedHeader&&(l.protected=Fo.decode(i)),l}}class Di{constructor(e){this._flattened=new Hi(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 Ui{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",Ri(e))}:this._payload={...this._payload,nbf:Ri(new Date)+Oi(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",Ri(e))}:this._payload={...this._payload,exp:Ri(new Date)+Oi(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:Ri(new Date)}:e instanceof Date?this._payload={...this._payload,iat:zi("setIssuedAt",Ri(e))}:this._payload="string"==typeof e?{...this._payload,iat:zi("setIssuedAt",Ri(new Date)+Oi(e))}:{...this._payload,iat:zi("setIssuedAt",e)},this}}class Li extends Ui{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){const n=new Di(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 Yo("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class Ni{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 Fi{constructor(e){this.apiKey=e}static getInstance(e){return qn.getInstance("EncryptedApi",(()=>new Fi(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(zo.AES.decrypt(e,t).toString(zo.enc.Utf8),Ue.from(t))}async joseEncrypt(e,t,n){const r=new Date,o=new Li(e).setProtectedHeader({alg:"HS256"}).setIssuedAt(r.getTime()).setExpirationTime(n),i=await o.sign(Ue.from(t));return zo.AES.encrypt(i,t).toString()}handleError(e){throw new Ni(e)}}class qi extends a{constructor(e){var t;super(),this.authInfo=e,this.encryptedApi=Fi.getInstance(this.authInfo.apiKey),this.objectHelper=jn.getInstance(),this.baseUrl=null!==(t=s.url[this.authInfo.env])&&void 0!==t?t:s.url.development,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.DEVELOPMENT){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 Ni(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 qn.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 Mi="spot-element";function $i(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 cursor: pointer;\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 <div 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 </div>\n `}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})=>`\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 cursor: pointer;\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 <div 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 </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 ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-items: stretch;\n cursor: pointer;\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 <div 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 </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 \n <style>\n .content {\n display: inline-block;\n cursor: pointer;\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 <div class="content">\n <span class="header">${e.header}</span>\n <span class="description">${e.description}</span>\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 ${(({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 cursor: pointer;\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 <div 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 </div>\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 ${(({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 cursor: pointer;\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 <div 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 </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 ${(({primaryImage:e})=>`\n <style>\n .content {\n width: 100%;\n height: 100%;\n background-color: #fff;\n cursor: pointer;\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 <div class="content">\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 </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 ${(({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 cursor: pointer;\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 <div 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 </div>\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 background-color: #fff;\n cursor: pointer;\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 <div class="content">\n <span class="header">${e.header}</span>\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 ${(({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 cursor: pointer;\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 <div 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 </div>\n `}function es(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 <div class="content"></div>\n `}function ts(e){return`\n ${(({primaryImage:e})=>`\n <style>\n :host {\n min-width: 320px;\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 cursor: pointer;\n }\n </style>\n`)(e)}\n <div class="content"></div>\n `}function ns(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: 320px;\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 color: #FFF;\n cursor: pointer;\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 display: inline-block;\n padding: 7px 20px;\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 .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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n ${e.ctaText?`<span class="cta-button">${e.ctaText}</span>`:""}\n </div>\n </div>\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,secondaryImage:t})=>`\n <style>\n :host {\n min-width: 320px;\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 color: inherit;\n cursor: pointer;\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 <div 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 ${e.ctaText?`<span class="cta-button">${e.ctaText}</span>`:""}\n </div>\n </div>\n </div>\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})=>`\n <style>\n :host {\n min-width: 320px;\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 cursor: pointer;\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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n <p class="description">${e.description}</p>\n ${e.ctaText?`<span class="cta-button">${e.ctaText}</span>`:""}\n </div>\n </div>\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=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: 320px;\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 cursor: pointer;\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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n </div>\n </div>\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: 165px;\n min-height: 300px;\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 cursor: pointer;\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 <div class="content">\n <div class="text">\n <h2 class="header">${e.header}</h2>\n </div>\n </div>\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: 250px;\n }\n .content {\n width: 100%;\n height: 100%;\n background-color: transparent;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n }\n .image {\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 border-radius: 5px;\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: fit-content;\n position: relative;\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 <div class="content">\n <div class="image"></div>\n <div class="text">\n <span class="header">${e.header}</span>\n </div>\n </div>\n `}var cs;!function(e){e.WIDTH="width",e.HEIGHT="height",e.FLUID="fluid",e.DATA="data"}(cs||(cs={}));let ls;if("undefined"!=typeof window&&void 0!==window.customElements){class t extends HTMLElement{constructor(){super(),this.spot=null,this.attachShadow({mode:"open"})}connectedCallback(){this.getData(),this.addEventListener("click",(()=>this.registerEvent("click"))),this.setupIntersectionObserver(),this.render()}disconnectedCallback(){var e;null===(e=this.observer)||void 0===e||e.disconnect()}attributeChangedCallback(e,t,n){t!==n&&this.render()}getData(){const e=this.getAttribute(cs.DATA);if(e)try{this.spot=JSON.parse(atob(e))}catch(e){console.error("Error parsing spot data:",e)}}render(){if(!this.shadowRoot||!this.spot)return;const{style:t,wrapper:n}=((e,t)=>{const n=document.createElement("style");n.textContent=`\n :host {\n display: block;\n position: relative;\n container-type: inline-size;\n }\n :host([fluid="true"]) {\n width: 100%;\n height: 100%;\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 r=document.createElement("div");return r.className="wrapper",{style:n,wrapper:r}})(this.spot.width,this.spot.height);n.innerHTML=(t=>{const n={[e.RB_HOMEPAGE_HERO_THREE_TILE]:{rbHomepageHeroThreeTile:rs},[e.RB_HOMEPAGE_HERO_FULL_IMAGE]:{rbHomepageHeroFullImage:ns},[e.RB_LARGE_CATEGORY_IMAGE_TOUT]:{rbLargeCategoryImageTout:os},[e.RB_SMALL_DISCOVER_TOUT]:{rbSmallDiscoverTout:as},[e.RB_SMALL_CATEGORY_IMAGE_TOUT]:{rbSmallCategoryImageTout:ss},[e.RB_COLLECTION_BANNER_WITHOUT_TEXT_BLOCK]:{rbCollectionBannerWithoutTextBlock:ts},[e.RB_NAVIGATION_BANNER]:{rbNavigationBanner:is},[e.RB_PRODUCT_UPCS]:{rbProductUpcs:()=>""},[e.BILLBOARD]:{billboardV1:$i,billboardV2:Wi,billboardV3:Ki},[e.LARGE_RECTANGLE]:{largeRectangleV1:Gi},[e.VERTICAL_RECTANGLE]:{verticalRectangleV1:Qi},[e.SQUARE]:{squareV1:Xi,squareV2:Zi},[e.LARGE_LEADERBOARD]:{largeLeaderboardV1:Vi,largeLeaderboardV2:Yi},[e.WIDE_SKYSCRAPER]:{wideSkyscraperV1:es},[e.IN_TEXT]:{inTextV1:Ji}}[t.spot];if(!n)return"";const r=n[t.variant];return r?r(t):""})(this.spot),this.shadowRoot.replaceChildren(t,n)}setupIntersectionObserver(){this.observer=new IntersectionObserver((e=>{var t;e[0].isIntersecting&&(this.registerEvent("impression"),null===(t=this.observer)||void 0===t||t.disconnect())}),{root:null,rootMargin:"0px",threshold:.5}),this.observer.observe(this)}async registerEvent(e){if(!this.spot)return;const t={impression:this.spot.impressionUrl,click:this.spot.clickUrl};try{const n={method:"POST",redirect:"manual"};"click"===e&&(n.redirect="follow");const r=this.normalizeUrl(t[e]);(await fetch(r,n)).ok&&"click"===e&&(window.location.href=this.redirectUrl(r))}catch(t){console.error(`Rmn error sending ${e} event:`,t)}}normalizeUrl(e){if(!this.spot)return e;const t=`${s.url[this.spot.env]}/api/events/ict`;return e.replace(/https?:\/\/[^/]+\/[^?]+/,`${t}`)}redirectUrl(e){var t;const n=null!==(t=new URL(e).searchParams.get("e"))&&void 0!==t?t:"";try{const e=JSON.parse(atob(n));return e.ur?e.ur:""}catch(e){return""}}}t.observedAttributes=[cs.WIDTH,cs.HEIGHT,cs.FLUID],ls=t}class hs{static getInstance(){return qn.getInstance("SpotHtmlService",(()=>new hs))}createSpotHtmlElement(e,t){if(!this.ensureBrowserEnvironmentAndDefineElement())return null;const n=document.createElement(Mi);return n.setAttribute(cs.WIDTH,e.width.toString()),n.setAttribute(cs.HEIGHT,e.height.toString()),n.setAttribute(cs.FLUID,t.toString()),n.setAttribute(cs.DATA,this.spotToBase64(e)),n}ensureBrowserEnvironmentAndDefineElement(){return"undefined"==typeof window||"undefined"==typeof document?(console.warn("LiquidCommerce Rmn Sdk: createSpotElement is only available in browser environments!!!"),!1):(customElements.get(Mi)||customElements.define(Mi,ls),!0)}spotToBase64(e){return btoa(JSON.stringify(e))}}class us extends qi{constructor(e){super(e)}static getInstance(e){return qn.getInstance("SpotSelectionService",(()=>new us(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)){this.authInfo.authenticated=!0,this.authInfo.token=n.refresh.token;let e=n.data.spots;return e=this.addEnvToSpotData(e,this.authInfo.env),e}throw new Error("Spot selection response was not successful")}addEnvToSpotData(e,t){for(const n in e)e[n]&&e[n].forEach((e=>{e.env=t}));return e}}class fs{constructor(e){this.spotSelectionService=us.getInstance(e),this.spotHtmlService=hs.getInstance()}async spotSelection(e){return this.spotSelectionService.spotSelection(e)}createSpotElement(e,t){return this.spotHtmlService.createSpotHtmlElement(e,null!=t&&t)}}async function ds(e,t){const n=ji.getInstance(e,t.env),r=await n.initialize();return new fs(r)}function ps(e,t){return hs.getInstance().createSpotHtmlElement(e,null!=t&&t)}export{fs as LiquidCommerceRmnClient,n as RMN_ENV,t as RMN_FILTER_PROPERTIES,e as RMN_SPOT_TYPE,ds as RmnClient,ps as RmnCreateSpotElement};
|
19
19
|
//# sourceMappingURL=index.mjs.map
|