PageSourceSearch

https://j2cweb-prod.jobs2careers.com/client/assets/5028.8c2c6166b4711d40f807.js

js jobs2careers.com collected 2026-09-24 10:39:34 UTC 64,287 bytes, 2 lines download raw bytes

1/*! For license information please see 5028.8c2c6166b4711d40f807.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5028],{2194:(e,t,r)=>{r.d(t,{G:()=>s});var n=r(19525);function s(e){const t=[];for(let r of Object.keys(e).sort()){const s=e[r];if(r=(0,n.o)(r),Array.isArray(s))for(let e=0,a=s.length;e<a;e++)t.push(`${r}=${(0,n.o)(s[e])}`);else{let e=r;(s||"string"==typeof s)&&(e+=`=${(0,n.o)(s)}`),t.push(e)}}return t.join("&")}},19525:(e,t,r)=>{const n=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;r.d(t,["o",0,e=>encodeURIComponent(e).replace(/[!'()*]/g,n)])},57090:(e,t,r)=>{r.d(t,{K:()=>n});class n{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new n({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return n.clone(this)}}},84652:(e,t,r)=>{r.d(t,{c:()=>n});class n{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}},56785:(e,t,r)=>{r.d(t,{N:()=>l});var n=r(2194),s=r(84652);function a(e,t){return new Request(e,t)}function o(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}const i={supported:void 0};class l{config;configProvider;static create(e){return"function"==typeof e?.handle?e:new l(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===i.supported&&(i.supported=Boolean("undefined"!=typeof Request&&"keepalive"in a("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const l=r??this.config.requestTimeout,c=!0===this.config.keepAlive,h=this.config.credentials,f=this.config.customFetch??fetch;if(t?.aborted){const e=u(t);return Promise.reject(e)}let d=e.path;const p=(0,n.G)(e.query||{});p&&(d+=`?${p}`),e.fragment&&(d+=`#${e.fragment}`);let g="";null==e.username&&null==e.password||(g=`${e.username??""}:${e.password??""}@`);const{port:m,method:y}=e,w=`${e.protocol}//${g}${e.hostname}${m?`:${m}`:""}${d}`,b="GET"===y||"HEAD"===y?void 0:e.body,v={body:b,headers:new Headers(e.headers),method:y,credentials:h};this.config?.cache&&(v.cache=this.config.cache),b&&(v.duplex="half"),"undefined"!=typeof AbortController&&(v.signal=t),i.supported&&(v.keepalive=c),"function"==typeof this.config.requestInit&&Object.assign(v,this.config.requestInit(e));let x=()=>{};const E=[f(a(w,v)).then(e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new s.c({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then(t=>({response:new s.c({headers:r,reason:e.statusText,statusCode:e.status,body:t})}))}),o(l)];return t&&E.push(new Promise((e,r)=>{const n=()=>{const e=u(t);r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),x=()=>e.removeEventListener("abort",n)}else t.onabort=n})),Promise.race(E).finally(x)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}function u(e){const t=e&&"object"==typeof e&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){const e=new Error("Request aborted");return e.name="AbortError",e.cause=t,e}const e=new Error(String(t));return e.name="AbortError",e}const r=new Error("Request aborted");return r.name="AbortError",r}},41155:(e,t,r)=>{r.d(t,{B:()=>D});const n={},s={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),n[e]=t,s[t]=e}function a(e){let t="";for(let r=0;r<e.byteLength;r++)t+=n[e[r]];return t}const o=e=>(new TextEncoder).encode(e),i=e=>e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e);function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}class u{format(e){const t=[];for(const r in e){if(!l(e,r))continue;const n=o(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}
2const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(a.buffer);return i.set(e.value,3),i;case"string":const l=o(e.value),u=new DataView(new ArrayBuffer(3+l.byteLength));u.setUint8(0,7),u.setUint16(1,l.byteLength,!1);const c=new Uint8Array(u.buffer);return c.set(l,3),c;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(f.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!h.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const p=new Uint8Array(17);return p[0]=9,p.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in s))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=s[n]}return t}(e.value.replace(/-/g,"")),1),p}}}var c;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(c||(c={}));const h=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class f{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&d(t),new f(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&d(e),parseInt(a(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function d(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}const p=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t};var g=r(19525);const m="X-Amz-Date",y="X-Amz-Signature",w="X-Amz-Security-Token",b="authorization",v=m.toLowerCase(),x=[b,v,"date"],E=y.toLowerCase(),A="x-amz-content-sha256",$=w.toLowerCase(),T={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},R=/^proxy-/,S=/^sec-/,C="AWS4-HMAC-SHA256",M="AWS4-HMAC-SHA256-PAYLOAD",k="aws4_request";class H{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:a=!0}){this.service=n,this.sha256=s,this.uriEscapePath=a,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=p(r),this.credentialProvider=p(t)}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n in e){if(!l(e,n))continue;if(n.toLowerCase()===E)continue;const s=(0,g.o)(n);t.push(s);const a=e[n];"string"==typeof a?r[s]=`${s}=${(0,g.o)(a)}`:Array.isArray(a)&&(r[s]=a.slice(0).reduce((e,t)=>e.concat([`${s}=${(0,g.o)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>r[e]).filter(e=>e).join("&")})(e)}\n${n.map(e=>`${e}:${t[e]}`).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r,n){const s=new this.sha256;return s.update(i(r)),`${n}\n${e}\n${t}\n${a(await s.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,g.o)(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not val
2id")}formatDate(e){const t=(r=e,(e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e)(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}const q={},L=[],_=(e,t,r)=>`${e}/${t}/${r}/${k}`,j=(e,t,r)=>{const n=new e(t);return n.update(i(r)),n.digest()},O=({headers:e},t,r)=>{const n={};for(const s of Object.keys(e).sort()){if(null==e[s])continue;const a=s.toLowerCase();(a in T||t?.has(a)||R.test(a)||S.test(a))&&(!r||r&&!r.has(a))||(n[a]=e[s].trim().replace(/\s+/g," "))}return n},P=async({headers:e,body:t},r)=>{for(const t in e)if(l(e,t)&&t.toLowerCase()===A)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(i(t)),a(await e.digest())}var n;return"UNSIGNED-PAYLOAD"};var U=r(57090);const F=e=>{e=U.K.clone(e);for(const t in e.headers)l(e.headers,t)&&x.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};class D extends H{headerFormatter=new u;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:a})}async presign(e,t={}
2){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:i,signingRegion:u,signingService:c}=t,h=await this.credentialProvider();this.validateResolvedCredentials(h);const f=u??await this.regionProvider(),{longDate:d,shortDate:p}=this.formatDate(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=_(p,f,c??this.service),b=((e,t={})=>{const{headers:r,query:n={}}=U.K.clone(e);for(const e in r){if(!l(r,e))continue;const s=e.toLowerCase();("x-amz-"===s.slice(0,6)&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(F(e),{unhoistableHeaders:a,hoistableHeaders:i});h.sessionToken&&(b.query[w]=h.sessionToken),b.query["X-Amz-Algorithm"]=C,b.query["X-Amz-Credential"]=`${h.accessKeyId}/${g}`,b.query[m]=d,b.query["X-Amz-Expires"]=n.toString(10);const v=O(b,s,o);return b.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(v),b.query[y]=await this.get
2Signature(d,g,this.getSigningKey(h,f,p,c),this.createCanonicalRequest(b,v,await P(e,this.sha256))),b}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:i}){const l=s??await this.regionProvider(),{shortDate:u,longDate:c}=this.formatDate(r),h=_(u,l,o??this.service),f=await P({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const p=a(await d.digest()),g=[M,c,h,n,p,f].join("\n");return this.signString(g,{signingDate:r,signingRegion:l,signingService:o,eventStreamCredentials:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){const o=s??await this.credentialProvider();this.validateResolvedCredentials(o);const l=r??await this.regionProvider(),{shortDate:u}
2=this.formatDate(t),c=new this.sha256(await this.getSigningKey(o,l,u,n));return c.update(i(e)),a(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:a}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=s??await this.regionProvider(),u=F(e),{longDate:c,shortDate:h}=this.formatDate(t),f=_(h,i,a??this.service);u.headers[v]=c,o.sessionToken&&(u.headers[$]=o.sessionToken);const d=await P(u,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r in t)if(l(t,r)&&e===r.toLowerCase())return!0;return!1})(A,u.headers)&&this.applyChecksum&&(u.headers[A]=d);const p=O(u,n,r),g=await this.getSignature(c,f,this.getSigningKey(o,i,h,a),this.createCanonicalRequest(u,p,d));return u.headers[b]=`${C} Credential=${o.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(p)}, Signature=${g}`,u}async getSignature(e,t,r,n){const s=await this.createStringToSign(e,t,n,C),o=new this.sha256(await r);return o.update(i(s)),a(await o.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,s)=>{const o=`${r}:${n}:${s}:${a(await j(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(o in q)return q[o];for(L.push(o);L.length>50;)delete q[L.shift()];let i=`AWS4${t.secretAccessKey}`;for(const t of[r,n,s,k])i=await j(e,i,t);return q[o]=i}
2)(this.sha256,e,r,t,n||this.service)}}},68004:(e,t,r)=>{r.d(t,{n:()=>a});const n={},s={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),n[e]=t,s[t]=e}function a(e){let t="";for(let r=0;r<e.byteLength;r++)t+=n[e[r]];return t}},42637:(e,t,r)=>{r.d(t,["a",0,e=>(new TextEncoder).encode(e)])},81132:e=>{function t(e){return"function"==typeof e}var r=console.error.bind(console);function n(e,t,r){var n=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}function s(e){e&&e.logger&&(t(e.logger)?r=e.logger:r("new logger isn't a function, not replacing"))}function a(e,s,a){if(e&&e[s]){if(!a)return r("no wrapper function"),void r((new Error).stack);if(t(e[s])&&t(a)){var o=e[s],i=a(o,s);return n(i,"__original",o),n(i,"__unwrap",function(){e[s]===i&&n(e,s,o)}),n(i,"__wrapped",!0),n(e,s,i),i}r("original object and wrapper must be functions")}else r("no original function "+s+" to wrap")}function o(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void r("no original to unwrap to -- has "+t+" already been unwrapped?"):(r("no function to unwrap."),void r((new Error).stack))}s.wrap=a,s.massWrap=function(e,t,n){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){a(e,t,n)})}):r("must provide one or more functions to wrap on modules")},s.unwrap=o,s.massUnwrap=function(e,t){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach(function(e){t.forEach(function(t){o(e,t)})}):r("must provide one or more functions to unwrap on modules")},e.exports=s},85160:(e,t,r)=>{var n=r(96540),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,o=n.useRef,i=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var h=o(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;h=l(function(){function e(e){if(!i){if(i=!0,a=e,e=n(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return o=t}return o=e}if(t=o,s(a,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(a=e,t):(a=e,o=r)}var a,o,i=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]);var d=a(e,h[0],h[1]);return i(function(){f.hasValue=!0,f.value=d},[d]),u(d),d}},78418:(e,t,r)=>{e.exports=r(85160)},58243:(e,t,r)=>{r.d(t,{Em:()=>E,Xm:()=>k,vw:()=>M});var n=r(91070),s=(e,t)=>{let r=e;return r.cancel=t,r},a=class extends Error{constructor(e,t,r,n){super(e,n),this.options=t,this.status=r.status,this.context={headers:t.headers,method:t.method??"GET",requestBody:t.body,timestamp:new Date,url:r.url??"",...r},n&&"cause"in n&&(this.hasCause=!0),Object.setPrototypeOf(this,new.target.prototype)}getUserMessage(){return this.message}getDebugInfo(){let e=[`Error: ${this.name} (${this.code})`,`Message: ${this.message}`,`URL: ${this.context.method} ${this.context.url}`];if(this.status&&e.push(`Status: ${this.status} ${this.context.statusText??""}`),this.context.duration&&e.push(`Duration: ${this.context.duration}ms`),void 0!==this.context.retryAttempt&&e.push(`Retry: ${this.context.retryAttempt}/${this.context.maxRetries??0}`),void 0!==this.cause||this.hasCause){let t;if(this.cause instanceof Error)t=`${this.cause.name}: ${this.cause.message}`;else if("object"==typeof this.cause&&null!==this.cause)try{t=JSON.stringify(this.cause)}catch{t="[Object]"}else t="string"==typeof this.cause?this.cause:"number"==typeof this.cause||"boolean"==typeof this.cause?String(this.cause):"[Unknown]";e.push(`Cause: ${t}`)}return e.push(`Timestamp: ${this.context.timestamp.toISOString()}`),e.join("\n")}toJSON(){return{code:this.code,context:this.context,message:this.message,name:this.name,retryable:this.retryable,stack:this.stack,status:this.status}}},o=class extends a{constructor(e,t,r,n){super(e||"Request was aborted",t??{method:"GET"},r??{},n),this.code="ABORT_ERROR",this.name="AbortError",this.retryable=!1}getUserMessage(){return"The request was cancelled."}},i=class extends a{constructor(e,t,r,n){super(e||"Network request failed",t,r,n),this.code="NETWORK_E
2RROR",this.name="NetworkError",this.retryable=!0}getUserMessage(){return"Unable to connect to the server. Please check your internet connection and try again."}},l=class extends a{constructor(e,t,r,n){super(`Request timed out after ${e}ms`,t,r,n),this.code="TIMEOUT_ERROR",this.name="TimeoutError",this.retryable=!0,this.timeout=e}getUserMessage(){return"The request took too long to complete. Please try again."}},u=class extends a{constructor(e,t,r,n=[],s){super(e||"Validation failed",t,{...r,status:400},s),this.code="VALIDATION_ERROR",this.name="ValidationError",this.retryable=!1,this.status=400,this.fieldErrors=n}getUserMessage(){return this.fieldErrors.length>0?`Please correct the following errors:\n${this.fieldErrors.map(e=>`• ${e.field}: ${e.message}`).join("\n")}`:"The request contains invalid data. Please check your input and try again."}getFieldErrorMap(){return this.fieldErrors.reduce((e,t)=>(e[t.field]=t.message,e),{})}},c={400:"BadRequestError",401:"UnauthorizedError",403:"ForbiddenError",404:"NotFoundError",408:"RequestTimeoutError",409:"ConflictError",410:"GoneError",422:"UnprocessableEntityError",429:"RateLimitError",500:"InternalServerError",502:"BadGatewayError",503:"ServiceUnavailableError",504:"GatewayTimeoutError"},h=class e extends a{static{this.statusMessages={400:"The request was invali
2d. Please check your input.",401:"You are not authorized. Please log in and try again.",403:"You do not have permission to perform this action.",404:"The requested resource was not found.",408:"The request took too long and timed out.",409:"The request conflicts with the current state.",410:"The requested resource is no longer available.",422:"The request could not be processed due to invalid data.",429:"Too many requests. Please wait a moment and try again.",500:"An internal server error occurred. Please try again later.",502:"The server is temporarily unavailable. Please try again later.",503:"The service is temporarily unavailable. Please try again later.",504:"The server took too long to respond. Please try again."}}constructor(e,t,r,n,s,a){super(r||`HTTP ${e}: ${t}`,n,{...s,status:e,statusText:t},a),this.code=`HTTP_${e}`,this.name=c[e]||"HttpError",this.retryable=(e=>408===e||429===e||e>=500&&e<600)(e),this.retryAfter=s.retryAfter}getUserMessage(){return 429===this.status&&this.retryAfter?`Too many requests. Please wait ${this.retryAfter} seconds before trying again.`:e.statusMessages[this.status??0]??`An error occurred: ${this.message}`}},f=class extends a{constructor(e,t,r,n,s,a){super(e||`Failed to parse response as ${t}`,n,s,a),this.code="PARSE_ERROR",this.name="ParseError",this.retryable=!1,this.expectedType=t,this.rawResponse=r}getUserMessage(){return"The server returned an unexpected response format. Please try again or contact support."}},d=class{static fromFetchError(e,t,r){return e instanceof Error&&"AbortError"===e.name?new o(e.message,t,r,{cause:e}):e instanceof Error&&e.message.includes("timeout")?new l(t.timeout??0,t,r,{cause:e}):e instanceof TypeError&&e.message.includes("fetch")?new i(e.message,t,r,{cause:e}):new i(e instanceof Error?e.message:"Network request failed",t,r,{cause:e})}static async fromResponse(e,t,r){let n=await this.parseResponseBody(e),s=this.extractErrorMessage(n,e.statusText),a={...r,responseBody:n,responseHeaders:e.headers,status:e.status,statusText:e.statusText};if(400===e.status){let e=this.extractFieldErrors(n);if(e.length>0)return new u(s,t,a,e)}if(429===e.status){let r=this.parseRetryAfter(e.headers);return new h(e.status,e.statusText,s,t,{...a,retryAfter:r})}return 408===e.status||504===e.status?new l(t.timeout??0,t,a):new h(e.status,e.statusText,s,t,a)}static createParseError(e,t,r,n,s,a){return new f(e,t,s,r,n,{cause:a})}static async parseResponseBody(e){try{let t=await e.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}}catch{return null}}static extractErrorMessage(e,t){if(!e)return t;if("string"==typeof e)return e;if("object"==typeof e&&e){let t=e,r=["message","error","error_description","detail","details"].find(e=>"string"==typeof t[e]&&t[e]);if(r)return t[r];if("object"==typeof t.error&&null!==t.error){let e=t.error;if("string"==typeof e.message)return e.message}}return t}static extractFieldErrors(e){if(!e||"object"!=typeof e)return[];let t=e,r=[];return["errors","fieldErrors","validation_errors","fields"].forEach(e=>{let n=t[e];Array.isArray(n)&&n.forEach(e=>{if("object"==typeof e&&e){let t=e;"string"==typeof t.field&&"string"==typeof t.message&&r.push({code:"string"==typeof t.code?t.code:void 0,field:t.field,message:t.message})}}),n&&"object"==typeof n&&!Array.isArray(n)&&Object.entries(n).forEach(([e,t])=>{"string"==typeof t?r.push({field:e,message:t}):Array.isArray(t)&&t.length>0&&r.push({field:e,message:t[0]})})}),r}static parseRetryAfter(e){let t=e.get("Retry-After");if(!t)return;let r=parseInt(t,10);if(!Number.isNaN(r))return r;let n=new Date(t);if(!Number.isNaN(n.getTime())){let e=Math.ceil((n.getTime()-Date.now())/1e3);return e>0?e:void 0}}},p=e=>!0===e?"include":!1===e?"omit":e??"same-origin",g=async(e,t="json")=>{switch(t){case"json":{let t=await e.text();return t?JSON.parse(t):null}case"text":return await e.text();case"blob":return await e.blob();case"stream":return e.body;default:return e}},m=async(e,t,r="json")=>{let{headers:n,status:s,statusText:a}=e;try{return{data:await g(e,r),headers:n,status:s,statusText:a}}catch(n){let s="";try{s=await e.text()}catch{}throw d.createParseError(n instanceof Error?n.message:"Failed to parse response",r,t,{status:e.status,statusText:e.statusText,url:e.url},s,n)}},y=(e,t)=>{if(null!=e)return"object"!=typeof e||e instanceof FormData||e instanceof Blob?e:(t.has("content-type")||t.set("content-type","application/json"),JSON.stringify(e))},w=(e,t,r,n,s,a)=>{let o=d.fromFetchError(e,t,{duration:s??0,method:n,url:r});throw a?.onError&&a.onError({attempt:1,duration:s??0,error:o,method:n,url:r,willRetry:!1}),o},b=async(e,t,r,n,s,a)=>{let o=await d.fromResponse(e,t,{duration:s??0,method:n,url:r});throw a?.onResponse&&a.onResponse({body:o.context.responseBody,duration:s??0,headers:e.headers,method:n,status:e.status,statusText:e.statusText,url:r}),o},v=async(e,t,r,n,s)=>{let a,{interceptors:o}=t,{body:i,credentials:l,headers:u,method:c="GET",responseType:h}
2=o?.request?await Promise.resolve(o.request(t)):t,f=(e=>{let t=new Headers;return e&&(e instanceof Headers?e.forEach((e,r)=>{t.set(r,e)}):Object.entries(e).forEach(([e,r])=>{void 0!==r&&t.set(e,String(r))})),t})(u),d={body:y(i,f),credentials:p(l),headers:f,method:c,signal:r};((e,t,r,n,s)=>{if(!e?.onRequest)return;let a={};n instanceof Headers?n.forEach((e,t)=>{a[t]=e}):n&&Object.assign(a,n),e.onRequest({body:s,headers:a,method:r,url:t})})(n,e.toString(),c,u,i);try{a=await fetch(e.toString(),d)}catch(r){let a=s?performance.now()-s:void 0;return w(r,t,e.toString(),c,a,n)}let g=s?performance.now()-s:void 0;if(!a.ok)return b(a,t,e.toString(),c,g,n);let v=await m(a,t,h);return n?.onResponse&&n.onResponse({body:v.data,duration:g??0,headers:a.headers,method:c,status:a.status,statusText:a.statusText,url:e.toString()}),v},x=(e,t,r,n)=>{e instanceof a&&(e.context.retryAttempt=t,e.context.maxRetries=r,e.context.willRetry=n)},E=(e,t={})=>{let{baseUrl:r,logger:i,params:u,retries:c=0,retryCondition:h=e=>e instanceof a&&e.retryable,retryDelay:f=e=>Math.min(1e3*2**(e-1),3e4),timeout:d}=t,p=new AbortController,g=((e,t,r)=>{let s=r;!s&&!e.startsWith("http://")&&!e.startsWith("https://")&&(s="http://localhost"),s&&!s.endsWith("/")&&(s=`${s}/`);let a=s?new URL(e,s):new URL(e);return t&&(a.search=(0,n.dF)(t)),a})(e,u||t.query,r),m=performance.now(),{isTimeout:y,timeoutId:w}=((e,t)=>{let r,n=!1;return e&&e>0&&(r=setTimeout(()=>{n=!0,t.abort()},e)),{isTimeout:()=>n,timeoutId:r}})(d,p),b=async(e=0)=>{try{return await v(g,t,p.signal,i,m)}catch(r){let n=performance.now()-m,s=e<c&&h(r);if(x(r,e,c,s),i?.onError&&i.onError({attempt:e+1,duration:n,error:r,method:t.method??"GET",url:g.toString(),willRetry:s}),s)return await(e=>new Promise(t=>{setTimeout(t,e)}))("function"==typeof f?f(e+1):f),b(e+1);throw r}};return s(b().then(e=>(w&&clearTimeout(w),t.interceptors?.response?Promise.resolve(t.interceptors.response(e)):e)).catch(e=>{throw w&&clearTimeout(w),e instanceof Error&&"AbortError"===e.name?y()?new l(d??0,t,{method:t.method??"GET",url:g.toString()}):new o(e.message,t,{method:t.method??"GET",url:g.toString()}):t.interceptors?.error?t.interceptors.error(e):e}),()=>{p.abort(),w&&clearTimeout(w)})},A=e=>{let t=e.split("\n")[0];if(t.startsWith(": "))return{fieldType:"comment",isValid:!0};let r=["data","event","id","retry"];for(let e=0;e<r.length;e++){let n=r[e];if(t.startsWith(`${n}: `))return{fieldType:n,isValid:!0};if(t.startsWith(`${n}:`))return{fieldType:n,isValid:!1}}return t.trim(),{fieldType:"unknown",isValid:!0}},$=async(e,t,r,n)=>{let s=[],a=e,o=a.split("\\n\\n");for(let e=0;e<o.length;e++){let t=o[e];if(t.trim())if(e!==o.length-1||n){let{fieldType:e}=A(t);e&&s.push({fieldType:e,message:t}),a=""}else a=t}return await Promise.all(s.filter(({message:e})=>e.trim()&&!r.signal.aborted).map(async({fieldType:e,message:n})=>{try{let s=((e,t,r)=>{if("unknown"===r)return e.trim();let n,s=e.split("\n"),a=s[0];if("comment"!==r){let t=`${r}:`,n=`${r}: `;if(a.startsWith(t)&&!a.startsWith(n))return e.trim()}n="comment"===r?2:`${r}: `.length;let o,i=a.slice(n);if(o=s.length>1?`${i}\n${s.slice(1).join("\n")}`:i,!o.trim())return null;if("data"!==r)return o;if("json"===t){if(!o)return null;try{return JSON.parse(o)}catch{return o}}return o})(n,r.responseType,e);null!==s&&await(async(e,t,r)=>{if(!r.onChunk||null===e)return;let n={data:e,headers:t.headers,status:t.status,statusText:t.statusText},s=e;if(r.interceptors?.response){let e=await Promise.resolve(r.interceptors.response(n));if(null===e.data)return;s=e.data}await r.onChunk({type:r.fieldType,value:s})})(s,t,{fieldType:e,interceptors:r.interceptors,isComplete:!0,onChunk:r.onChunk})}catch(e){console.error("Failed to parse message:",n.trim(),e)}})),{processedMessages:s,remainingBuffer:a}},T=async(e,t,r,n,s,a)=>{if(s.signal.aborted)return t;if("json"===r){let{remainingBuffer:o}=await $(t+e,n,{...s,responseType:r},a);return o}let{remainingBuffer:o}=await $(t+e,n,{...s,responseType:r},a);return o},R=async(e,t,r,n,s="")=>{if(n.signal.aborted)return;let a=await e.read();if(a.done)s&&s.endsWith("\n\n")&&await T("",s,n.responseType,r,n,!0);else if(a.value){let o=a.value;if(!(o instanceof Uint8Array||o instanceof ArrayBuffer||ArrayBuffer.isView(o)))return void await R(e,t,r,n,s);await R(e,t,r,n,await T(t.decode(a.value,{stream:!0}),s,n.responseType,r,n,!1))}},S=class e{constructor(e,t){this.options={...t,baseUrl:e}}mergeOptions(e){let t=this.options,r=e??{},n={};
2t.headers instanceof Headers?t.headers.forEach((e,t)=>{n[t]=e}):t.headers&&Object.assign(n,t.headers);let s=r.headers||{},a={...n,...s};return{...t,...r,headers:a,interceptors:{...t.interceptors,...r.interceptors}}}withBaseUrl(e){return this.options.baseUrl=e,this}withHeaders(e){let t=new Headers(this.options.headers);return e instanceof Headers?e.forEach((e,r)=>{t.set(r,e)}):e&&"object"==typeof e&&Object.entries(e).forEach(([e,r])=>{"string"==typeof r&&t.set(e,r)}),this.options.headers=t,this}withHeader(e,t){if(this.options.headers instanceof Headers)this.options.headers.set(e,t);else{let r=new Headers(this.options.headers);r.set(e,t),this.options.headers=r}return this}withCredentials(e=!0){return this.options.credentials=e,this}withTimeout(e){return this.options.timeout=e,this}withBody(e){return this.options.body=e,this}withParams(e){return this.options.params=e,this}withInterceptors(e){return this.options.interceptors=e,this}withRetry(e){return this.options.retries=e,this}withRetryCondition(e){return this.options.retryCondition=e,this}withRetryDelay(e){return this.options.retryDelay=e,this}withResponseType(e){return this.options.responseType=e,this}withRequestInterceptor(e){return this.options.interceptors||(this.options.interceptors={}),this.options.interceptors.request=e,this}withResponseInterceptor(e){return this.options.interceptors||(this.options.interceptors={}),this.options.interceptors.response=e,this}withErrorInterceptor(e){return this.options.interceptors||(this.options.interceptors={}),this.options.interceptors.error=e,this}withLogger(e){return this.options.logger=e,this}fluent(t){return new e(t??this.options.baseUrl,this.mergeOptions())}request(e,t,r){let n=E(e,{...this.mergeOptions(r),method:t});return this.cancel=n.cancel,n.finally(()=>{this.cancel=void 0}),n}get(e,t){return this.request(e,"GET",{body:void 0,params:t??this.options.params})}post(e,t){return this.request(e,"POST",{body:t??this.options.body})}put(e,t){return this.request(e,"PUT",{body:t??this.options.body})}patch(e,t){return this.request(e,"PATCH",{body:t??this.options.body})}delete(e){return this.request(e,"DELETE",{body:void 0})}},C=class e{constructor(e,t){this.baseClient=new S(e,t)}onChunk(e){return this.onChunkCallback=e,this}delegate(e,...t){let r=this.baseClient[e];return"function"==typeof r&&r.apply(this.baseClient,t),this}withBaseUrl(e){return this.delegate("withBaseUrl",e)}withHeaders(e){return this.delegate("withHeaders",e)}withHeader(e,t){return this.delegate("withHeader",e,t)}withCredentials(e=!0){return this.delegate("withCredentials",e)}withTimeout(e){return this.delegate("withTimeout",e)}withBody(e){return this.delegate("withBody",e)}withParams(e){return this.delegate("withParams",e)}withInterceptors(e){return this.delegate("withInterceptors",e)}withRetry(e){return this.delegate("withRetry",e)}withRetryCondition(e){return this.delegate("withRetryCondition",e)}withRetryDelay(e){return this.delegate("withRetryDelay",e)}withResponseType(e){return this.delegate("withResponseType",e)}withRequestInterceptor(e){return this.delegate("withRequestInterceptor",e)}withResponseInterceptor(e){return this.delegate("withResponseInterceptor",e)}withErrorInterceptor(e){return this.delegate("withErrorInterceptor",e)}withLogger(e){return this.delegate("withLogger",e)}mergeOptions(e){return this.baseClient.mergeOptions(e)}stream(e,t,r){return((e,t)=>{let{interceptors:r,onChunk:n,responseType:a="json",...o}=t,i=new AbortController,l=E(e,{...o,interceptors:{error:void 0,request:r?.request,response:void 0},responseType:"stream",signal:i.signal});return s(l.then(async e=>{let t=e,s=!1;if(r?.response){let n=await Promise.resolve(r.response(e));n.data&&"getReader"in n.data&&"function"==typeof n.data.getReader&&(t=n,s=!0)}if(!t.data)return;let o=t.data;if(!o||"function"!=typeof o.getReader)throw Error("Response data is not a valid ReadableStream");let l=o.getReader(),u=new TextDecoder;try{let e=s?{...r,response:void 0}:r;await R(l,u,t,{interceptors:e,onChunk:n,responseType:a,signal:i.signal})}finally{try{l.releaseLock()}catch{}}}).catch(e=>{if(r?.error){let t=r.error(e);
2if(void 0!==t)throw t;return}if(!(e instanceof Error&&"AbortError"===e.name))throw e}),()=>{i.abort(),l.cancel()})})(e,{...this.mergeOptions(r),method:t,onChunk:this.onChunkCallback})}get(e,t){return this.stream(e,"GET",{params:t})}post(e,t){return this.stream(e,"POST",{body:t})}put(e,t){return this.stream(e,"PUT",{body:t})}patch(e,t){return this.stream(e,"PATCH",{body:t})}delete(e){return this.stream(e,"DELETE")}fluent(t){let r=this.mergeOptions();return new e(t??r.baseUrl??"",r)}},M=class e extends C{constructor(e,t){super(e,t),this.init()}init(){this.withRequestInterceptor(async e=>{let t=(0,n.uc)(e.body,{excludePaths:[/^message\.content\.values\./,/^message\.content\.fieldMetadata\./,/^message\.content\.stepEvents\.progress\.byGroup\./]}),r="";if(t){let e="string"==typeof t?t:JSON.stringify(t),n=(new TextEncoder).encode(e),s=await crypto.subtle.digest("SHA-256",n);r=Array.from(new Uint8Array(s)).map(e=>e.toString(16).padStart(2,"0")).join("")}let s=new Headers(e.headers);return s.set("x-amz-content-sha256",r),{...e,body:t,headers:s}}),this.withResponseInterceptor(e=>({...e,data:(0,n.Cb)(e.data,{excludePaths:[/^message\.content\.errors\./]})}))}streamGenerateResponse(e,t="generate-stream"){return this.post(t,e)}qqPreview(e,t="sandbox/qq-preview"){return this.baseClient.post(t,e)}qualifyingQuestionsAll(e,t="qualifying-questions/all"){return this.baseClient.post(t,e)}submitQualifyingAnswers(e,t="qualifying-questions/answers"){return this.baseClient.post(t,e)}reconcileProfileQualifications(e="qualifying-questions/reconcile-profile"){return this.baseClient.post(e,{})}fluent(t){let r=super.mergeOptions();return new e(t??r.baseUrl??"",r)}},k=function(e){return e[e.never=0]="never",e[e.missingRequired=1]="missingRequired",e[e.missingAny=2]="missingAny",e[e.always=3]="always",e}({})},91070:(e,t,r)=>{r.d(t,{Cb:()=>me,Cx:()=>R,Gv:()=>ae,Im:()=>se,Jk:()=>ue,LU:()=>ye,PV:()=>G,QZ:()=>ie,WG:()=>u,Z:()=>a,a3:()=>F,dF:()=>re,fw:()=>ee,j6:()=>N,jh:()=>H,jj:()=>de,lk:()=>ne,qE:()=>c,uc:()=>ve,v7:()=>V,xH:()=>he,yW:()=>L,yy:()=>fe});var n={".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".htm":"text/html",".html":"text/html",".pdf":"application/pdf",".rtf":"application/rtf",".txt":"text/plain"},s=e=>{let t=e.lastIndexOf(".");return-1===t?void 0:n[e.slice(t).toLowerCase()]},a=(e,t,r)=>{let n=r??s(t)??"application/octet-stream",a=(e=>{let t=e.includes(",")?e.split(",")[1]:e,r=atob(t),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n})(e),o=new Blob([a],{type:n});return new File([o],t,{type:n})},o={"bottom-center":"ellipse 120% 80% at 50% 100%","top-left":"ellipse 120% 90% at top left"},i={medium:["66","33","1a","00"],soft:["33","1a","0a","00"],strong:["80","4d","26","00"]},l={medium:["0%","25%","50%","85%"],soft:["0%","25%","55%","80%"],strong:["0%","25%","50%","85%"]},u=(e,t={})=>{let{anchor:r="top-left",intensity:n="strong"}=t,s=(e=>e?"#ffffff":"#000000")(e.isDark()),a=l[n];return`radial-gradient(${o[r]}, ${i[n].map((e,t)=>`${s}${e} ${a[t]}`).join(", ")})`},c=(e,t,r)=>Math.max(t,Math.min(r,e)),h=e=>{let t=parseInt(e,16);if(Number.isNaN(t))return"00";let r=Math.max(0,Math.min(255,t)).toString(16).toUpperCase();return 1===r.length?`0${r}`:r},f=(e,t,r)=>{let n=r;return n<0&&(n+=1),n>1&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},d=e=>{let[t,r,n]=e,s=t/255,a=r/255,o=n/255,i=Math.max(s,a,o),l=Math.min(s,a,o),u=i-l,c=0,h=0,f=(i+l)/2;if(0!==u)switch(h=f>.5?u/(2-i-l):u/(i+l),i){case s:c=((a-o)/u+(a<o?6:0))/6;break;case a:c=((o-s)/u+2)/6;break;case o:c=((s-a)/u+4)/6}return[Math.round(360*c),Math.round(100*h),Math.round(100*f)]},p=e=>e.map(e=>{let t=c(e,0,255).toString(16).toUpperCase();return 1===t.length?`0${t}`:t}),g={aqua:[0,255,255],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkred:[139,0,0],gold:[255,215,0],gray:[128,128,128],green:[0,128,0],grey:[128,128,128],hotpink:[255,105,180],indigo:[75,0,130],lightblue:[173,216,230],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],red:[255,0,0],silver:[192,192,192],teal:[0,128,128],transparent:[0,0,0],violet:[238,130,238],white:[255,255,255],yellow:[255,255,0]};function m(e){return g[e.toLowerCase().trim()]||null}var y=e=>Array.isArray(e)&&3===e.length&&e.every(e=>"number"==typeof e),w=e=>Array.isArray(e)&&3===e.length&&e.every(e=>"string"==typeof e),b={FULL:/^#?([A-Fa-f\d]{6})$/,HSL:/^hsl\(\s*(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/i,RGB:/^rgb\(\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/i,SHORT:/^#?([A-Fa-f\d]{3})$/},v=e=>{let t=[h(e[0]),h(e[1]),h(e[2])];return{channels:t,css:`#${t.join("")}`,toHSL:()=>{let e=t.map(e=>parseInt(e,16)),[r,n,s]=e,a=r/255,o=n/255,i=s/255,l=Math.max(a,o,i),u=Math.min(a,o,i),c=l-u,h=(l+u)/2,f=0;0!==c&&(f=h>.5?c/(2-l-u):c/(l+u));let d=0;0!==c&&(d=l===a?60*((o-i)/c+(o<i?6:0)):l===o?60*((i-a)/c+2):60*((a-o)/c+4));let p=Math.round(d),g=Math.round(100*f),m=Math.round(100*h),y={channels:[p,g,m],css:`hsl(${p}, ${g}%, ${m}%)`,toHex:()=>v(t),toRGB:()=>({channels:e,css:`rgb(${e[0]}, ${e[1]}, ${e[2]})`,toHex:()=>v(t),toHSL:()=>y})};return y},toRGB:()=>{let e=t.map(e=>parseInt(e,16)),r={channels:e,css:`rgb(${e[0]}, ${e[1]}, ${e[2]})`,toHex:()=>v(t),toHSL:()=>{let[n,s,a]=e,o=n/255,i=s/255,l=a/255,u=Math.max(o,i,l),c=Math.min(o,i,l),h=u-c,f=(u+c)/2,d=0;0!==h&&(d=f>.5?h/(2-u-c):h/(u+c));let p=0;0!==h&&(p=u===o?60*((i-l)/h+(i<l?6:0)):u===i?60*((l-o)/h+2):60*((o-i)/h+4));let g=Math.round(p),m=Math.round(100*d),y=Math.round(100*f);return{channels:[g,m,y],css:`hsl(${g}, ${m}%, ${y}%)`,toHex:()=>v(t),toRGB:()=>r}}};return r}}},x=e=>{if("string"==typeof e){let t=m(e);if(t)return v(p(t));let r=(e=>{let t=b.FULL.exec(e);if(t){let e=t[1].toUpperCase();return[e.slice(0,2),e.slice(2,4),e.slice(4,6)]}let r=b.SHORT.exec(e);if(r){let e=(e=>3===e.length?e.split("").map(e=>e+e).join(""):e)(r[1]).toUpperCase();return[e.slice(0,2),e.slice(2,4),e.slice(4,6)]}return null})(e);if(r)return v(r);let n=(e=>{let t=b.RGB.exec(e);if(!t)return null;let[,r,n,s]=t;return p([c(Number(r),0,255),c(Number(n),0,255),c(Number(s),0,255)])})(e);if(n)return v(n);let s=(e=>{let t=b.HSL.exec(e);if(!t)return null;let r,n,s,[,a,o,i]=t,l=Number(a)%360/360,u=Math.max(0,Math.min(100,Number(o)))/100,c=Math.max(0,Math.min(100,Number(i)))/100;if(0===u)r=c,n=c,s=c;else{let e=c<.5?c*(1+u):c+u-c*u,t=2*c-e;r=f(t,e,l+1/3),n=f(t,e,l),s=f(t,e,l-1/3)}let h=e=>{let t=Math.round(255*e).toString(16).toUpperCase();return 1===t.length?`0${t}`:t};return[h(r),h(n),h(s)]})(e);return s?v(s):null}if(Array.isArray(e)&&3===e.length){if(w(e))return v(e);
2if(y(e))return v(p(e))}return null},E={HEX_FULL:/^#?([A-Fa-f\d]{2})([A-Fa-f\d]{2})([A-Fa-f\d]{2})$/,HEX_SHORT:/^#?([A-Fa-f\d])([A-Fa-f\d])([A-Fa-f\d])$/,HSL:/^hsl\(\s*(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/i,RGB:/^rgb\(\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/i},A=e=>{let t=[c(e[0],0,255),c(e[1],0,255),c(e[2],0,255)];return{channels:t,css:`rgb(${t[0]}, ${t[1]}, ${t[2]})`,toHex:()=>{let e=x(t);if(!e)throw Error("Failed to convert RGB to hex");return e},toHSL:()=>{let[e,r,n]=t,s=e/255,a=r/255,o=n/255,i=Math.max(s,a,o),l=Math.min(s,a,o),u=i-l,c=(i+l)/2,h=0;0!==u&&(h=c>.5?u/(2-i-l):u/(i+l));let f=0;0!==u&&(f=i===s?60*((a-o)/u+(a<o?6:0)):i===a?60*((o-s)/u+2):60*((s-a)/u+4));let d=Math.round(f),p=Math.round(100*h),g=Math.round(100*c);return{channels:[d,p,g],css:`hsl(${d}, ${p}%, ${g}%)`,toHex:()=>{let e=x(t);if(!e)throw Error("Failed to convert HSL to hex");return e},toRGB:()=>A(t)}}}},$=e=>{if("string"==typeof e){let t=m(e);if(t)return A(t);let r=(e=>{let t=E.RGB.exec(e);if(!t)return null;let[,r,n,s]=t;return[Number(r),Number(n),Number(s)]})(e);if(r)return A(r);let n=(e=>{let t=E.HSL.exec(e);if(!t)return null;let r,n,s,[,a,o,i]=t,l=Number(a)%360/360,u=Math.max(0,Math.min(100,Number(o)))/100,c=Math.max(0,Math.min(100,Number(i)))/100;if(0===u)r=c,n=c,s=c;else{let e=c<.5?c*(1+u):c+u-c*u,t=2*c-e;r=f(t,e,l+1/3),n=f(t,e,l),s=f(t,e,l-1/3)}return[Math.round(255*r),Math.round(255*n),Math.round(255*s)]})(e);if(n)return A(n);let s=(e=>{let t=E.HEX_FULL.exec(e);if(t){let[,e,r,n]=t;return[parseInt(e,16),parseInt(r,16),parseInt(n,16)]}let r=E.HEX_SHORT.exec(e);if(r){let[,e,t,n]=r;return[parseInt(e+e,16),parseInt(t+t,16),parseInt(n+n,16)]}return null})(e);return s?A(s):null}if(Array.isArray(e)&&3===e.length){if(y(e))return A(e);if(w(e))return A((e=>e.map(e=>{let t=parseInt(e,16);return Number.isNaN(t)?0:c(t,0,255)}))(e))}return null},T=e=>{let[t,r,n]=e;return{channels:e,css:`hsl(${t}, ${r}%, ${n}%)`,toHex:()=>T(e).toRGB().toHex(),toRGB:()=>{let e,s,a,o=t/360,i=r/100,l=n/100;if(0===i)e=l,s=l,a=l;else{let t=l<.5?l*(1+i):l+i-l*i,r=2*l-t;e=f(r,t,o+1/3),s=f(r,t,o),a=f(r,t,o-1/3)}let u=$([Math.round(255*e),Math.round(255*s),Math.round(255*a)]);if(!u)throw Error("Failed to convert HSL to RGB");return u}}},R=e=>{if("string"==typeof e){let t=m(e);if(t)return T(d(t));let r=(e=>{let t=/hsla?\s*\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%/i.exec(e);if(!t)return null;let[,r,n,s]=t,a=(Number(r)%360+360)%360;return[Math.round(a),Math.round(Math.max(0,Math.min(100,Number(n)))),Math.round(Math.max(0,Math.min(100,Number(s))))]})(e);if(r)return T(r);let n=$(e);return n?(r=d(n.channels),T(r)):null}if(Array.isArray(e)&&3===e.length){if((e=>Array.isArray(e)&&3===e.length&&e.every(e=>"number"==typeof e)&&e[0]>=0&&e[0]<=360&&e[1]>=0&&e[1]<=100&&e[2]>=0&&e[2]<=100)(e))return T(e);let t=$(e);if(t)return T(d(t.channels))}return null},S=e=>{let t=$(e);if(!t)return null;let[r,n,s]=t.channels.map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*r+.7152*n+.0722*s},C=(e,t)=>{let r=S(e),n=S(t);return null===r||null===n?null:(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},M=e=>{if(e&&"object"==typeof e&&"channels"in e&&"css"in e&&("toRGB"in e||"toHex"in e||"toHSL"in e))return e;if(e&&"object"==typeof e&&"value"in e&&"object"==typeof e.value){let{value:t}=e;if(t&&"object"==typeof t&&"channels"in t&&"css"in t)return t}return("string"==typeof e||Array.isArray(e)&&3===e.length)&&($(e)||x(e)||R(e))||null},k=e=>{if(null==e)return!1;try{return null!==M(e)}catch{return!1}},H=(e,t,r={})=>{let{ratio:n=.5}=r,s=c(n,0,1),a=$(e),o=$(t);if(!a||!o)return null;let[i,l,u]=a.channels,[h,f,d]=o.channels;return $([Math.round(i*(1-s)+h*s),Math.round(l*(1-s)+f*s),Math.round(u*(1-s)+d*s)])},q=class e{constructor(e,t=1){this._alpha=1,this._color=e,this._alpha=Math.max(0,Math.min(1,t))}get value(){return this._color}get alpha(){return this._alpha}setAlpha(t){return new e(this._color,t)}toRGB(){if("toRGB"in this._color)return new e(this._color.toRGB(),this._alpha);let t=$(this._color.channels);if(!t)throw Error("Failed to convert to RGB");return new e(t,this._alpha)}toHex(){if("toHex"in this._color)return new e(this._color.toHex(),this._alpha);let t=x(this._color.channels);if(!t)throw Error("Failed to convert to Hex");return new e(t,this._alpha)}toHSL(){if("toHSL"in this._color)return new e(this._color.toHSL(),this._alpha);let t=R(this._color.channels);if(!t)throw Error("Failed to convert to HSL");return new e(t,this._alpha)}toString(){if(this._alpha<1){let e="toRGB"in this._color?this._color.toRGB():$(this._color.channels);if(e)return`rgba(${e.channels.join(", ")}, ${this._alpha})`}return this._color.css}darken(t){let r=((e,t)=>{let r=c(t,0,1),n=R(e);if(!n)return null;let[s,a,o]=n.channels;return R([s,a,o*(1-r)])})(this._color.css,t);if(!r)throw Error(`Failed to darken color by factor ${t}`);return new e(r,this._alpha)}lighten(t){let r=((e,t)=>{let r=c(t,0,1),n=R(e);if(!n)return null;let[s,a,o]=n.channels;return R([s,a,o+(100-o)*r])})(this._color.css,t);if(!r)throw Error(`Failed to lighten color by factor ${t}`);return new e(r,this._alpha)}saturate(t){let r=((e,t)=>{let r=c(t,0,1),n=R(e);if(!n)return null;let[s,a,o]=n.channels;return R([s,a+(100-a)*r,o])})(this._color.css,t);if(!r)throw Error(`Failed to saturate color by factor ${t}`);return new e(r,this._alpha)}desaturate(t){let r=((e,t)=>{let r=c(t,0,1),n=R(e);if(!n)return null;let[s,a,o]=n.channels;return R([s,a*(1-r),o])})(this._color.css,t);if(!r)throw Error(`Failed to desaturate color by factor ${t}`);return new e(r,this._alpha)}mix(t,r=.5){let n=M(t);if(!n)throw Error("Invalid color provided for mixing");let s=H(this._color.css,n.css,{ratio:r});if(!s)throw Error("Failed to mix colors");let a=t&&"object"==typeof t&&"alpha"in t?t.alpha:1,o=this._alpha*(1-r)+a*r;return new e(s,o)}luminance(){let e=S(this._color.css);if(null===e)throw Error("Failed to calculate luminance");return e}contrastRatio(t){let r=t instanceof e?t._color:M(t);
2if(!r)throw Error("Invalid color provided for contrast ratio");let n=C(this._color.css,r.css);if(null===n)throw Error("Failed to calculate contrast ratio");return n}distanceTo(t){let r=t instanceof e?t._color:M(t);if(!r)throw Error("Invalid color provided for distance calculation");let n=((e,t)=>{let r=$(e),n=$(t);if(!r||!n)return null;let[s,a,o]=r.channels,[i,l,u]=n.channels,c=(s+i)/2,h=2+c/256,f=2+(255-c)/256,d=s-i,p=a-l,g=o-u;return Math.sqrt(h*d*d+4*p*p+f*g*g)/3})(this._color.css,r.css);if(null===n)throw Error("Failed to calculate color distance");return n}makeAccessible(e){let t=U(this._color.css,e);if(!t)throw Error("Failed to make color accessible");return t.setAlpha(this._alpha)}isValid(){return k(this._color.css)}isDark(){return this.luminance()<.5}isLight(){return this.luminance()>=.5}complement(){let[t,r,n]=this.toHSL().channels;return new e(R([(t+180)%360,r,n]),this._alpha)}invert(){let[t,r,n]=this.toRGB().channels,s=$([255-t,255-r,255-n]);if(!s)throw Error("Failed to invert color");return new e(s,this._alpha)}grayscale(){let t=this.luminance(),r=Math.round(255*t),n=$([r,r,r]);if(!n)throw Error("Failed to create grayscale color");return new e(n,this._alpha)}clone(){return new e(this._color,this._alpha)}get channels(){return this._color.channels}get css(){return this.toString()}toJSON(){let e;return e="channels"in this._color&&Array.isArray(this._color.channels)?"string"==typeof this._color.channels[0]?"hex":this._color.css.startsWith("hsl")?"hsl":"rgb":"rgb",{alpha:this._alpha,channels:this._color.channels,css:this.toString(),format:e}}static fromJSON(e){return L(e.channels,e.alpha)}};function L(e,t){let r=M(e);if(!r){let t=`Invalid color input: ${"string"==typeof e?e:JSON.stringify(e)}`;throw"string"==typeof e?t+=function(e){return e.includes("rgb")&&!e.includes("(")?"\nDid you mean: rgb(r, g, b)?":e.includes("hsl")&&!e.includes("(")?"\nDid you mean: hsl(h, s%, l%)?":/^[0-9a-f]{3,6}$/i.exec(e)?`\nDid you mean: #${e}?`:e.includes(",")?'\nFor RGB arrays, use: [r, g, b] instead of "r, g, b"':""}(e):Array.isArray(e)&&(t+=function(e){return 3===e.length?e.some(e=>"string"==typeof e&&/^[0-9a-f]+$/i.exec(e))?'\nFor hex channels use: ["FF", "00", "00"] with quotes':"":`\nArrays must have exactly 3 values, got ${e.length}`}(e)),Error(t)}return new q(r,t)}L.safe=(e,t)=>{try{let r=M(e);return new q(r||M("#FFFFFF"),t)}catch{return new q(M("#FFFFFF"),t)}},L.isValid=k,L.rgb=(e,t,r,n)=>L([e,t,r],n),L.hsl=(e,t,r,n)=>L(`hsl(${e}, ${t}%, ${r}%)`,n),L.hex=(e,t)=>L(e,t),L.mix=(e,t,r=.5)=>L(e).mix(t,r),L.contrastRatio=(e,t)=>L(e).contrastRatio(t),L.distance=(e,t)=>L(e).distanceTo(t);var _={AA:{large:3,normal:4.5},AAA:{large:4.5,normal:7}};function j(e,t,r,n){return e>0?{canContinue:!0,l:Math.max(0,e-r),s:t}:t>0?{canContinue:!0,l:e,s:Math.max(0,t-n)}:{canContinue:!1,l:e,s:t}}function O(e,t,r,n){return e<100?{canContinue:!0,l:Math.min(100,e+r),s:t}:t>0?{canContinue:!0,l:e,s:Math.max(0,t-n)}:{canContinue:!1,l:e,s:t}}function P(e,t,r,n,s){return t>0?{canContinue:!0,l:e,s:Math.max(0,t-s)}:r&&e>0?{canContinue:!0,l:Math.max(0,e-n),s:t}:!r&&e<100?{canContinue:!0,l:Math.min(100,e+n),s:t}:{canContinue:!1,l:e,s:t}}var U=(e,t={})=>{let{backgroundColor:r="#FFFFFF",preferLightness:n=!0,textSize:s="normal",wcagLevel:a="AA"}=t,o=_[a][s],i=function(e,t){let r=R(e);if(!r)return null;let n=$(t);return n?{bgRgb:n,colorHsl:r}:null}(e,r);if(!i)return null;let{bgRgb:l,colorHsl:u}=i,c=function(e,t,r){let n=C(e.toRGB().channels,t.channels);return null===n?null:{contrastRatio:n,needsAdjustment:n<r}}(u,l,o);if(!c)return null;if(!c.needsAdjustment)return L.safe(u);let h=function(e){let t=S(e.channels);return null===t?null:t>.5}(l);if(null===h)return null;let[f,d,p]=u.channels,{adjustedL:g,adjustedS:m}=function(e,t,r,n,s,a,o){let i=t,l=r,u=0,c=0;for(;u<s&&c<100;){let t;if(c++,t=o?a?j(l,i,2,5):O(l,i,2,5):P(l,i,a,2,5),!t.canContinue)break;l=t.l,i=t.s;let r=R([e,i,l]);if(!r)break;let s=C(r.toRGB().channels,n.channels);if(null===s)break;u=s}return{adjustedL:l,adjustedS:i}}(f,d,p,l,o,h,n);return L.safe(R([f,m,g])??"")},F=(e,t={})=>{let{accessible:r=!0,bottomFraction:n=.25,colorGroupSize:s=20,maxLightness:a=.85,minAlpha:o=128,minSaturation:i=.2,region:l="full",sampleSize:u=50,timeout:c=3e3}=t,h=Math.min(Math.max(n,2**-52),1);return new Promise(t=>{let n=new Image;n.crossOrigin="anonymous";let f=()=>{t(null)},d=setTimeout(()=>{n.onload=null,n.onerror=null,f()},c);n.onload=()=>{clearTimeout(d),(()=>{try{let e=document.createElement("canvas"),c=e.getContext("2d");if(!c)return void t(null);e.width=u,e.height=u;
2let f=n.naturalWidth||u,d=n.naturalHeight||u,p="bottom"===l?Math.max(1,Math.round(d*h)):d,g="bottom"===l?d-p:0;c.drawImage(n,0,g,f,p,0,0,u,u);let m=c.getImageData(0,0,u,u),y={},w={};for(let e=0;e<m.data.length;e+=4){let t=m.data[e],r=m.data[e+1],n=m.data[e+2];if(m.data[e+3]<o)continue;let l=`${Math.floor(t/s)*s},${Math.floor(r/s)*s},${Math.floor(n/s)*s}`;if(w[l]=(w[l]||0)+1,(Math.max(t,r,n)+Math.min(t,r,n))/2/255>a)continue;let u=Math.max(t,r,n);(0===u?0:(u-Math.min(t,r,n))/u)<i||(y[l]=(y[l]||0)+1)}let b=e=>{let t=null,r=0;return Object.entries(e).forEach(([e,n])=>{n>r&&(r=n,t=e)}),t},v=`rgb(${b(y)??b(w)??"45,45,45"})`;t(r?U(v):L.safe(v))}catch(e){t(null),console.error(e)}})()},n.onerror=()=>{clearTimeout(d),f()},n.src=e})},D="#0a0d12",I="#ffffff",B=3,N=(e,t={})=>{let{dark:r=D,light:n=I,minContrast:s=B,prefer:a}=t,o=L.safe(e),i=L.safe(r),l=L.safe(n),u=C(o.css,i.css)??1,c=C(o.css,l.css)??1,h={color:l,contrastRatio:c,mode:"light"},f={color:i,contrastRatio:u,mode:"dark"};return"light"===a&&c>=s?h:"dark"===a&&u>=s?f:c>u?h:f},G=e=>N(e.css,{dark:e.clone().mix("#000000",.92).css,light:e.clone().mix("#ffffff",.92).css,prefer:"light"}).color,K=1048576,W=1024*K,V=(e,t=0)=>e>=W?`${(e/W).toFixed(t)} GB`:`${(e/K).toFixed(t)} MB`,z=6e4,X=60*z,Y=24*X,J=7*Y,Z=30*Y,Q=365*Y,ee=(e,t={})=>{let{dateFormatOptions:r={day:"numeric",month:"short",year:"numeric"},locale:n="en-US",maxRelativeDays:s=6}=t,a="string"==typeof e?new Date(e):e,o=(new Date).getTime()-a.getTime();if(o<0||Number.isNaN(o))return a.toLocaleDateString(n,r);let i=Math.floor(o/Y);if(i>s)return a.toLocaleDateString(n,r);if(o<z)return"Just Now";if(o<X){let e=Math.floor(o/z);return 1===e?"1 min ago":`${e} mins ago`}if(o<Y){let e=Math.floor(o/X);return 1===e?"1 hour ago":`${e} hours ago`}if(1===i)return"Yesterday";if(o<J)return`${i} days ago`;if(o<Z){let e=Math.floor(o/J);return 1===e?"1 week ago":`${e} weeks ago`}if(o<Q){let e=Math.floor(o/Z);return 1===e?"1 month ago":`${e} months ago`}let l=Math.floor(o/Q);return 1===l?"1 year ago":`${l} years ago`},te=e=>e.replace(/\+/g,"%20"),re=e=>{if(e instanceof URLSearchParams)return te(e.toString());let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{(Array.isArray(r)?r:[r]).forEach(r=>{null!=r&&t.append(e,String(r))})}),te(t.toString())},ne=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();let e=(new Date).getTime(),t=typeof performance<"u"&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{let n=16*Math.random();return e>0?(n=Math.floor((e+n)%16),e=Math.floor(e/16)):(n=Math.floor((t+n)%16),t=Math.floor(t/16)),("x"===r?n:n%4+8).toString(16)})},se=e=>null==e||"string"==typeof e&&""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,ae=e=>"object"==typeof e&&!!e&&!Array.isArray(e),oe=/<[^>]*>/g,ie=(e,t={})=>{let{allowedTags:r=[]}=t,n=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,"");if(0===r.length)return n.replace(oe,"").replace(/</g,"");let s=r.join("|"),a=[],o=0,i=RegExp(`<(/?)\\b(${s})\\b([^>]*)>`,"gi"),l=n.replace(i,e=>{let t=`__PLACEHOLDER_${o}__`;return a.push({original:e,placeholder:t}),o++,t}).replace(oe,"").replace(/</g,"");return a.forEach(({original:e,placeholder:t})=>{l=l.replace(t,e)}),l},le=/<li\b[^>]*>([\s\S]*?)<\/li>/gi,ue=(e,t={})=>{let{stripHtmlOptions:r={}}=t,n=Array.from(e.matchAll(le));if(0===n.length){let t=ie(e.trim(),r);return t?[t]:[]}return n.map(e=>ie((e[1]||"").trim(),r)).filter(e=>e.length>0)},ce=50,he=(e,t={})=>{if(!e||"string"!=typeof e)return"";let{lowercase:r=!0,maxLength:n=ce,normalizeSeparators:s=!0,removeEdgeHyphens:a=!0,removeSpecialCharacters:o=!0,trim:i=!0}=t,l=e;if(i&&(l=l.trim()),r&&(l=l.toLowerCase()),s&&(l=l.replace(/[\s\-_]+/g,"-")),o){let e=r?/[^a-z0-9\-.]/g:/[^a-zA-Z0-9\-.]/g;l=l.replace(e,"")}return a&&(l=l.replace(/^-+|-+$/g,"")),!1!==n&&(l=l.substring(0,n),a&&(l=l.replace(/-+$/,""))),l},fe=e=>new Promise(t=>{setTimeout(t,e)}),de=(e,t="_")=>e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(t,"")),pe=(e,t)=>!!t?.some(t=>"string"==typeof t?t===e:t.test(e)),ge=(e,t,r)=>{if(ae(e)){let n={};return Object.keys(e).forEach(s=>{let a=r?`${r}.${s}`:s,o=((e,t,r)=>pe(e,r.excludeKeys)||pe(t,r.excludePaths))(s,a,t)?s:de(s);n[o]=ge(e[s],t,a)}),n}return Array.isArray(e)?e.map(e=>ge(e,t,r)):e},me=(e,t={})=>ge(e,t,""),ye=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),we=(e,t)=>!!t?.some(t=>"string"==typeof t?t===e:t.test(e)),be=(e,t,r)=>{if(ae(e)){let n={};return Object.keys(e).forEach(s=>{let a=r?`${r}.${s}`:s,o=((e,t,r)=>we(e,r.excludeKeys)||we(t,r.excludePaths))(s,a,t)?s:ye(s);n[o]=be(e[s],t,a)}),n}return Array.isArray(e)?e.map(e=>be(e,t,r)):e},ve=(e,t={})=>be(e,t,"")},8409:(e,t,r)=>{function n(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const r=e.indexOf(t);return-1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}r.d(t,{A:()=>n})},24534:(e,t,r)=>{r.d(t,{IO:()=>h,LU:()=>l,MS:()=>n,Sv:()=>c,XZ:()=>i,YK:()=>o,j:()=>a,vd:()=>s,yE:()=>u});var n="-ms-",s="-moz-",a="-webkit-",o="comm",i="rule",l="decl",u="@import",c="@keyframes",h="@layer"},49503:(e,t,r)=>{r.d(t,{MY:()=>a,r1:()=>s});var n=r(19735);function s(e){var t=(0,n.FK)(e);return function(r,n,s,a){for(var o="",i=0;i<t;i++)o+=e[i](r,n,s,a)||"";return o}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},73716:(e,t,r)=>{r.d(t,{wE:()=>o});var n=r(24534),s=r(19735),a=r(40390);function o(e){return(0,a.VF)(i("",null,null,null,[""],e=(0,a.c4)(e),0,[0],e))}function i(e,t,r,n,o,h,f,d,p){for(var g=0,m=0,y=f,w=0,b=0,v=0,x=1,E=1,A=1,$=0,T="",R=o,S=h,C=n,M=T;E;)switch(v=$,$=(0,a.K2)()){case 40:if(108!=v&&58==(0,s.wN)(M,y-1)){-1!=(0,s.K5)(M+=(0,s.HC)((0,a.Tb)($),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:M+=(0,a.Tb)($);break;case 9:case 10:case 13:case 32:M+=(0,a.mw)(v);break;case 92:M+=(0,a.Nc)((0,a.OW)()-1,7);continue;case 47:switch((0,a.se)()){case 42:case 47:(0,s.BC)(u((0,a.nf)((0,a.K2)(),(0,a.OW)()),t,r),p);break;default:M+="/"}break;case 123*x:d[g++]=(0,s.b2)(M)*A;case 125*x:case 59:case 0:switch($){case 0:case 125:E=0;case 59+m:-1==A&&(M=(0,s.HC)(M,/\f/g,"")),b>0&&(0,s.b2)(M)-y&&(0,s.BC)(b>32?c(M+";",n,r,y-1):c((0,s.HC)(M," ","")+";",n,r,y-2),p);break;case 59:M+=";";default:if((0,s.BC)(C=l(M,t,r,g,m,o,d,T,R=[],S=[],y),h),123===$)if(0===m)i(M,t,C,C,R,h,y,d,S);else switch(99===w&&110===(0,s.wN)(M,3)?100:w){case 100:case 108:case 109:case 115:i(e,C,C,n&&(0,s.BC)(l(e,C,C,0,0,o,d,T,o,R=[],y),S),o,S,y,d,n?R:S);break;default:i(M,C,C,C,[""],S,0,d,S)}}g=m=b=0,x=A=1,T=M="",y=f;break;case 58:y=1+(0,s.b2)(M),b=v;default:if(x<1)if(123==$)--x;else if(125==$&&0==x++&&125==(0,a.YL)())continue;switch(M+=(0,s.HT)($),$*x){case 38:A=m>0?1:(M+="\f",-1);break;case 44:d[g++]=((0,s.b2)(M)-1)*A,A=1;break;case 64:45===(0,a.se)()&&(M+=(0,a.Tb)((0,a.K2)())),w=(0,a.se)(),m=y=(0,s.b2)(T=M+=(0,a.Cv)((0,a.OW)())),$++;break;case 45:45===v&&2==(0,s.b2)(M)&&(x=0)}}return h}function l(e,t,r,o,i,l,u,c,h,f,d){for(var p=i-1,g=0===i?l:[""],m=(0,s.FK)(g),y=0,w=0,b=0;y<o;++y)for(var v=0,x=(0,s.c1)(e,p+1,p=(0,s.tn)(w=u[y])),E=e;v<m;++v)(E=(0,s.Bq)(w>0?g[v]+" "+x:(0,s.HC)(x,/&\f/g,g[v])))&&(h[b++]=E);return(0,a.rH)(e,t,r,0===i?n.XZ:c,h,f,d)}function u(e,t,r){return(0,a.rH)(e,t,r,n.YK,(0,s.HT)((0,a.Tp)()),(0,s.c1)(e,2,-2),0)}function c(e,t,r,o){return(0,a.rH)(e,t,r,n.LU,(0,s.c1)(e,0,o),(0,s.c1)(e,o+1,-1),o)}},50483:(e,t,r)=>{r.d(t,{A:()=>
2o,l:()=>a});var n=r(24534),s=r(19735);function a(e,t){for(var r="",n=(0,s.FK)(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function o(e,t,r,o){switch(e.type){case n.IO:if(e.children.length)break;case n.yE:case n.LU:return e.return=e.return||e.value;case n.YK:return"";case n.Sv:return e.return=e.value+"{"+a(e.children,o)+"}";case n.XZ:e.value=e.props.join(",")}return(0,s.b2)(r=a(e.children,o))?e.return=e.value+"{"+r+"}":""}},40390:(e,t,r)=>{r.d(t,{C:()=>h,Cv:()=>R,G1:()=>i,K2:()=>p,Nc:()=>A,OW:()=>m,Sh:()=>w,Tb:()=>x,Tp:()=>f,VF:()=>v,YL:()=>d,c4:()=>b,di:()=>y,mw:()=>E,nf:()=>T,rH:()=>c,se:()=>g});var n=r(19735),s=1,a=1,o=0,i=0,l=0,u="";function c(e,t,r,n,o,i,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:s,column:a,length:l,return:""}}function h(e,t){return(0,n.kp)(c("",null,null,"",null,null,0),e,{length:-e.length},t)}function f(){return l}function d(){return l=i>0?(0,n.wN)(u,--i):0,a--,10===l&&(a=1,s--),l}function p(){return l=i<o?(0,n.wN)(u,i++):0,a++,10===l&&(a=1,s++),l}function g(){return(0,n.wN)(u,i)}function m(){return i}function y(e,t){return(0,n.c1)(u,e,t)}function w(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return s=a=1,o=(0,n.b2)(u=e),i=0,[]}function v(e){return u="",e}function x(e){return(0,n.Bq)(y(i-1,$(91===e?e+2:40===e?e+1:e)))}function E(e){for(;(l=g())&&l<33;)p();return w(e)>2||w(l)>3?"":" "}function A(e,t){for(;--t&&p()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return y(e,m()+(t<6&&32==g()&&32==p()))}function $(e){for(;p();)switch(l){case e:return i;case 34:case 39:34!==e&&39!==e&&$(l);break;case 40:41===e&&$(e);break;case 92:p()}return i}function T(e,t){for(;p()&&e+l!==57&&(e+l!==84||47!==g()););return"/*"+y(t,i-1)+"*"+(0,n.HT)(47===e?e:p())}function R(e){for(;!w(g());)p();return y(e,i)}},19735:(e,t,r)=>{r.d(t,{BC:()=>g,Bq:()=>i,FK:()=>p,HC:()=>u,HT:()=>s,K5:()=>c,YW:()=>l,b2:()=>d,c1:()=>f,kg:()=>m,kp:()=>a,tW:()=>o,tn:()=>n,wN:()=>h});var n=Math.abs,s=String.fromCharCode,a=Object.assign;function o(e,t){return 45^h(e,0)?(((t<<2^h(e,0))<<2^h(e,1))<<2^h(e,2))<<2^h(e,3):0}function i(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function u(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function h(e,t){return 0|e.charCodeAt(t)}function f(e,t,r){return e.slice(t,r)}function d(e){return e.length}function p(e){return e.length}function g(e,t){return t.push(e),e}function m(e,t){return e.map(t).join("")}},31635:(e,t,r)=>{function n(e,t,r,n){return new(r||(r=Promise))(function(s,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function i(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,i)}l((n=n.apply(e,t||[])).next())})}function s(e,t){var r,n,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=i(0),o.throw=i(1),o.return=i(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,i[0]&&(a=0)),a;)try{if(r=1,n&&(s=2&i[0]?n.return:i[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,i[1])).done)return s;switch(n=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((s=(s=a.trys).length>0&&s[s.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]<s[3])){a.label=i[1];break}if(6===i[0]&&a.label<s[1]){a.label=s[1],s=i;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(i);break}s[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}r.d(t,{YH:()=>s,sH:()=>n}),Object.create,Object.create},20784:(e,t,r)=>{r.d(t,{A:()=>u});const n=new Uint8Array(16);function s(){return crypto.getRandomValues(n)}const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));const o={};function i(e,t,r,n,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(s<0||s+16>n.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`)}else n=new Uint8Array(16),s=0;return t??=Date.now(),r??=l(e),n[s++]=t/1099511627776&255,n[s++]=t/4294967296&255,n[s++]=t/16777216&255,n[s++]=t/65536&255,n[s++]=t/256&255,n[s++]=255&t,n[s++]=112|r>>>28&15,n[s++]=r>>>20&255,n[s++]=128|r>>>14&63,n[s++]=r>>>6&255,n[s++]=r<<2&255|3&e[10],n[s++]=e[11],n[s++]=e[12],n[s++]=e[13],n[s++]=e[14],n[s++]=e[15],n}function l(e){return(127&e[6])<<24|e[7]<<16|e[8]<<8|e[9]}const u=function(e,t,r){let n;if(e)n=i(e.random??e.rng?.()??s(),e.msecs,e.seq,t,r);else{const e=Date.now(),a=s();!function(e,t,r){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=l(r),e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(o,e,a),n=i(a,o.msecs,o.seq,t,r)}
2return t??function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(n)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.