PageSourceSearch

https://app.fyxer.com/assets/vendor-misc-DVk-0spb.js

js fyxer.com collected 2026-09-25 20:17:40 UTC 505,714 bytes, 389 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/auto-track-BMNvnF5C.js","assets/vendor-runtime-DG-GlVKR.js","assets/vendor-react-C5PewRsl.js","assets/index-DEtxknaP.js","assets/index-W_9Gj7hB.js","assets/is-plan-event-enabled-DFhgcWLu.js","assets/index-4Sla7jUi.js","assets/index-J8Kv4z-q.js","assets/index-2WYT59YR.js"])))=>i.map(i=>d[i]);
2var $p=Object.defineProperty;var ql=t=>{throw TypeError(t)};var Up=(t,e,n)=>e in t?$p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var _s=(t,e,n)=>Up(t,typeof e!="symbol"?e+"":e,n),Hu=(t,e,n)=>e.has(t)||ql("Cannot "+n);var N=(t,e,n)=>(Hu(t,e,"read from private field"),n?n.call(t):e.get(t)),ae=(t,e,n)=>e.has(t)?ql("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),X=(t,e,n,r)=>(Hu(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Te=(t,e,n)=>(Hu(t,e,"access private method"),n);var Ea=(t,e,n,r)=>({set _(i){X(t,e,i,n)},get _(){return N(t,e,r)}});import{g as _u,n as qp,_ as zn,a as ie,b as _n,c as ue,d as ce,e as Bp,f as ir,h as zp}from"./vendor-runtime-DG-GlVKR.js";import{r as lt,j as Hp,a as Wp}from"./vendor-react-C5PewRsl.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="eb01b5cb-61ac-4ee7-8f36-4c049545ea75",t._sentryDebugIdIdentifier="sentry-dbid-eb01b5cb-61ac-4ee7-8f36-4c049545ea75")}catch{}(function(){try{if(typeof window>"u"||typeof document>"u")return;var t=new URLSearchParams(window.location.search),e=t.get("birdie-recording");if(!e)return;try{var n=new URL(decodeURIComponent(e));if(n.protocol!=="https:"||n.searchParams.get("birdie-embed")!=="1")return}catch{return}if(!document.getElementById("birdie-recording-preload-style")){var r=document.createElement("style");r.id="birdie-recording-preload-style",r.textContent=`
3                html, body {
4                    overflow: hidden !important;
5                }
6                #birdie-recording-preload-overlay {
7                    position: fixed;
8                    inset: 0;
9                    background: #fff;
10                    z-index: 2147483647;
11                    pointer-events: auto;
12                }
13            `,(document.head||document.documentElement).appendChild(r)}if(!document.getElementById("birdie-recording-preload-overlay")){var i=document.createElement("div");i.id="birdie-recording-preload-overlay",document.documentElement&&document.documentElement.appendChild(i)}}catch{}})();let Sc=[];function Jd(){return typeof window>"u"?{}:(window.birdieSettings||(window.birdieSettings={}),window.birdieSettings)}function Vp(t,e={}){if(t&&typeof t=="object")return t;const n={};return typeof e.contact_id<"u"&&(n.id=e.contact_id),typeof e.contact_name<"u"&&(n.name=e.contact_name),typeof e.contact_email<"u"&&(n.email=e.contact_email),typeof e.contact_phone<"u"&&(n.phone=e.contact_phone),Object.keys(n).length?n:void 0}function Yp({metadata:t,contact:e}={}){if(typeof window>"u")return;const n=Jd();typeof t<"u"&&(n.metadata=t),typeof e<"u"&&(n.contact=e),window.birdie&&(typeof t<"u"&&(typeof window.birdie.setMetadata=="function"?window.birdie.setMetadata(t):window.birdie.metadata=t),typeof e<"u"&&(typeof window.birdie.setContact=="function"?window.birdie.setContact(e):window.birdie.contact=e))}function Zp(t){var u;const e=document.getElementById("birdie-snippet");if(e)return e;const r=`https://app.birdie.so/widget/embed/${t}`;if(document.head){if(!document.querySelector("link[data-birdie-preconnect]")){const a=document.createElement("link");a.rel="preconnect",a.href="https://app.birdie.so",a.crossOrigin="anonymous",a.setAttribute("data-birdie-preconnect","true"),document.head.appendChild(a)}if(!document.querySelector("link[data-birdie-preload]")){const a=document.createElement("link");a.rel="preload",a.as="script",a.href=r,a.setAttribute("data-birdie-preload","true"),document.head.appendChild(a)}}const i=document.createElement("script");i.src=r,i.async=!0,i.id="birdie-snippet",i.referrerPolicy="origin";const s=(u=document.scripts)==null?void 0:u[0];return s!=null&&s.parentNode?s.parentNode.insertBefore(i,s):document.head?document.head.appendChild(i):document.documentElement.appendChild(i),i}function __({clientId:t,metadata:e,contact:n,onReady:r,singleHandlerPerEvent:i=!0,...s}){if(typeof window>"u")return;const u=Jd(),a=Vp(n,s);
13u.metadata=e,typeof a<"u"&&(u.contact=a),Object.assign(window.birdieSettings,s),window.birdieSettings.onBirdieReady=()=>{try{Kp({singleHandlerPerEvent:i})}catch(c){console.error("[Birdie] guard install error",c)}Sc.forEach(c=>{try{c(window.birdie)}catch(l){console.error("[Birdie] onReady error",l)}}),Sc=[]},r&&Gp(r),Zp(t)}function Gp(t){typeof window>"u"||(window.birdie?t(window.birdie):Sc.push(t))}function S_({metadata:t,contact:e}={}){Yp({metadata:t,contact:e})}function Kp({singleHandlerPerEvent:t}){var s,u;const e=window.birdie;if(!e||e.__pkgGuardsInstalled)return;const n=(s=e.on)==null?void 0:s.bind(e),r=(u=e.off)==null?void 0:u.bind(e),i=new Map;e.onOnce=(a,c)=>{const l=d=>{var y;try{c(d)}finally{(y=e.off)==null||y.call(e,a,l)}};e.on(a,l)},t&&n&&r&&(e.on=(a,c)=>{const l=i.get(a);if(l)try{r(a,l)}catch{}return i.set(a,c),n(a,c)},e.off=(a,c)=>(i.get(a)===c&&i.delete(a),r(a,c))),e.__pkgGuardsInstalled=!0}var Ue={},Ta={},Bl;function eh(){if(Bl)return Ta;Bl=1,Object.defineProperty(Ta,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/[^A-Za-z0-9]+/g,"$").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"$"+i}).toLowerCase().replace(/(\$)(\w)/g,function(n,r,i){return i.toUpperCase()}):""}return Ta.default=t,Ta}
13var Oa={},zl;function th(){if(zl)return Oa;zl=1,Object.defineProperty(Oa,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"_"+i.toLowerCase()}).replace(/[^A-Za-z0-9]+|_+/g,"_").toLowerCase():""}return Oa.default=t,Oa}var Aa={},Hl;function nh(){if(Hl)return Aa;Hl=1,Object.defineProperty(Aa,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"$").replace(/[^A-Za-z0-9]+/g,"$").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"$"+i}).toLowerCase().replace(/(\$)(\w?)/g,function(n,r,i){return i.toUpperCase()}):""}return Aa.default=t,Aa}var Ca={},Wl;function Qp(){if(Wl)return Ca;Wl=1,Object.defineProperty(Ca,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"_"+i.toLowerCase()}).replace(/[^A-Za-z0-9]+|_+/g,".").toLowerCase():""}return Ca.default=t,Ca}var ka={},Vl;function Xp(){if(Vl)return ka;Vl=1,Object.defineProperty(ka,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"_"+i.toLowerCase()}).replace(/[^A-Za-z0-9]+|_+/g,"/").toLowerCase():""}return ka.default=t,ka}var Ia={},Yl;function Jp(){if(Yl)return Ia;Yl=1,Object.defineProperty(Ia,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"_"+i.toLowerCase()}).replace(/[^A-Za-z0-9]+|_+/g," ").toLowerCase():""}return Ia.default=t,Ia}var Ra={},Zl;function e0(){if(Zl)return Ra;Zl=1,Object.defineProperty(Ra,"__esModule",{value:!0});function t(e){if(e===void 0&&(e=""),!e)return"";var n=String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(r,i,s){return i+"_"+s.toLowerCase()}).replace(/[^A-Za-z0-9]+|_+/g," ").toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}return Ra.default=t,Ra}var Pa={},Gl;function t0(){if(Gl)return Pa;Gl=1,Object.defineProperty(Pa,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"_"+i.toLowerCase()}).replace(/[^A-Za-z0-9]+|_+/g," ").toLowerCase().replace(/( ?)(\w+)( ?)/g,function(n,r,i,s){return r+i.charAt(0).toUpperCase()+i.slice(1)+s}):""}return Pa.default=t,Pa}var Da={},Kl;function rh(){if(Kl)return Da;Kl=1,Object.defineProperty(Da,"__esModule",{value:!0});function t(e){return e===void 0&&(e=""),e?String(e).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,function(n,r,i){return r+"_"+i.toLowerCase()}).replace(/[^A-Za-z0-9]+|_+/g,"-").toLowerCase():""}return Da.default=t,Da}var Ss={},Wu={},Ql;function po(){return Ql||(Ql=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.belongToTypes=t.isValidObject=t.isArrayObject=t.validateOptions=t.DefaultOption=void 0,t.DefaultOption={recursive:!1,recursiveInArray:!1,keepTypesOnRecursion:[]},t.validateOptions=function(e){return e===void 0&&(e=t.DefaultOption),e.recursive==null?e=t.DefaultOption:e.recursiveInArray==null&&(e.recursiveInArray=!1),e},t.isArrayObject=function(e){return e!=null&&Array.isArray(e)},t.isValidObject=function(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)},t.belongToTypes=function(e,n){return(n||[]).some(function(r){return e instanceof r})}}(Wu)),Wu}var Xl;function n0(){if(Xl)return Ss;Xl=1;var t=Ss&&Ss.__spreadArrays||function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var u=Array(r),a=0,i=0;i<s;i++)for(var c=arguments[i],l=0,d=c.length;l<d;l++,a++)u[a]=c[l];return u};Object.defineProperty(Ss,"__esModule",{value:!0});var e=po();function n(r,i){if(i===void 0&&(i=e.DefaultOption),!e.isValidObject(r))return null;i=e.validateOptions(i);var s={};return Object.keys(r).forEach(function(u){var a=r[u],c=u.toLowerCase();i.recursive&&(e.isValidObject(a)?e.belongToTypes(a,i.keepTypesOnRecursion)||(a=n(a,i)):i.recursiveInArray&&e.isArrayObject(a)&&(a=t(a).map(function(l){var d=l;if(e.isValidObject(l))e.belongToTypes(d,i.keepTypesOnRecursion)||(d=n(l,i));else if(e.isArrayObject(l)){var y=n({key:l},i);d=y.key}return d}))),s[c]=a}),s}return Ss.default=n,Ss}var Es={},Jl;function r0(){if(Jl)return Es;Jl=1;var t=Es&&Es.__spreadArrays||function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var u=Array(r),a=0,i=0;i<s;i++)for(var c=arguments[i],l=0,d=c.length;l<d;l++,a++)u[a]=c[l];return u};Object.defineProperty(Es,"__esModule",{value:!0});var e=po();function n(r,i){if(i===void 0&&(i=e.DefaultOption),!e.isValidObject(r))return null;i=e.validateOptions(i);var s={};return Object.keys(r).forEach(function(u){var a=r[u],c=u.toUpperCase();i.recursive&&(e.isValidObject(a)?e.belongToTypes(a,i.keepTypesOnRecursion)||(a=n(a,i)):i.recursiveInArray&&e.isArrayObject(a)&&(a=t(a).map(function(l){var d=l;if(e.isValidObject(l))e.belongToTypes(d,i.keepTypesOnRecursion)||(d=n(l,i));else if(e.isArrayObject(l)){var y=n({key:l},i);d=y.key}return d}))),s[c]=a}),s}return Es.default=n,Es}var Ts={},ef;function i0(){if(ef)return Ts;ef=1;var t=Ts&&Ts.__spreadArrays||function(){for(var i=0,s=0,u=arguments.length;s<u;s++)i+=arguments[s].length;for(var a=Array(i),c=0,s=0;s<u;s++)for(var l=arguments[s],d=0,y=l.length;d<y;d++,c++)a[c]=l[d];return a};Object.defineProperty(Ts,"__esModule",{value:!0});var e=po(),n=eh();
13function r(i,s){if(s===void 0&&(s=e.DefaultOption),!e.isValidObject(i))return null;s=e.validateOptions(s);var u={};return Object.keys(i).forEach(function(a){var c=i[a],l=n.default(a);s.recursive&&(e.isValidObject(c)?e.belongToTypes(c,s.keepTypesOnRecursion)||(c=r(c,s)):s.recursiveInArray&&e.isArrayObject(c)&&(c=t(c).map(function(d){var y=d;if(e.isValidObject(d))e.belongToTypes(y,s.keepTypesOnRecursion)||(y=r(d,s));else if(e.isArrayObject(d)){var p=r({key:d},s);y=p.key}return y}))),u[l]=c}),u}return Ts.default=r,Ts}var Os={},tf;function s0(){if(tf)return Os;tf=1;var t=Os&&Os.__spreadArrays||function(){for(var i=0,s=0,u=arguments.length;s<u;s++)i+=arguments[s].length;for(var a=Array(i),c=0,s=0;s<u;s++)for(var l=arguments[s],d=0,y=l.length;d<y;d++,c++)a[c]=l[d];return a};Object.defineProperty(Os,"__esModule",{value:!0});var e=po(),n=th();function r(i,s){if(s===void 0&&(s=e.DefaultOption),!e.isValidObject(i))return null;s=e.validateOptions(s);var u={};return Object.keys(i).forEach(function(a){var c=i[a],l=n.default(a);s.recursive&&(e.isValidObject(c)?e.belongToTypes(c,s.keepTypesOnRecursion)||(c=r(c,s)):s.recursiveInArray&&e.isArrayObject(c)&&(c=t(c).map(function(d){var y=d;if(e.isValidObject(d))e.belongToTypes(y,s.keepTypesOnRecursion)||(y=r(d,s));else if(e.isArrayObject(d)){var p=r({key:d},s);y=p.key}return y}))),u[l]=c}),u}return Os.default=r,Os}var As={},nf;function o0(){if(nf)return As;nf=1;var t=As&&As.__spreadArrays||function(){for(var i=0,s=0,u=arguments.length;s<u;s++)i+=arguments[s].length;for(var a=Array(i),c=0,s=0;s<u;s++)for(var l=arguments[s],d=0,y=l.length;d<y;d++,c++)a[c]=l[d];return a};Object.defineProperty(As,"__esModule",{value:!0});var e=po(),n=nh();function r(i,s){if(s===void 0&&(s=e.DefaultOption),!e.isValidObject(i))return null;s=e.validateOptions(s);var u={};
vendor: 9,967 bytes, lines 13-14
13return Object.keys(i).forEach(function(a){var c=i[a],l=n.default(a);s.recursive&&(e.isValidObject(c)?e.belongToTypes(c,s.keepTypesOnRecursion)||(c=r(c,s)):s.recursiveInArray&&e.isArrayObject(c)&&(c=t(c).map(function(d){var y=d;if(e.isValidObject(d))e.belongToTypes(y,s.keepTypesOnRecursion)||(y=r(d,s));else if(e.isArrayObject(d)){var p=r({key:d},s);y=p.key}return y}))),u[l]=c}),u}return As.default=r,As}var Cs={},rf;function a0(){if(rf)return Cs;rf=1;var t=Cs&&Cs.__spreadArrays||function(){for(var i=0,s=0,u=arguments.length;s<u;s++)i+=arguments[s].length;for(var a=Array(i),c=0,s=0;s<u;s++)for(var l=arguments[s],d=0,y=l.length;d<y;d++,c++)a[c]=l[d];return a};Object.defineProperty(Cs,"__esModule",{value:!0});var e=po(),n=rh();function r(i,s){if(s===void 0&&(s=e.DefaultOption),!e.isValidObject(i))return null;s=e.validateOptions(s);var u={};return Object.keys(i).forEach(function(a){var c=i[a],l=n.default(a);s.recursive&&(e.isValidObject(c)?e.belongToTypes(c,s.keepTypesOnRecursion)||(c=r(c,s)):s.recursiveInArray&&e.isArrayObject(c)&&(c=t(c).map(function(d){var y=d;if(e.isValidObject(d))e.belongToTypes(y,s.keepTypesOnRecursion)||(y=r(d,s));else if(e.isArrayObject(d)){var p=r({key:d},s);y=p.key}return y}))),u[l]=c}),u}return Cs.default=r,Cs}var sf;function u0(){if(sf)return Ue;sf=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.kebabKeys=Ue.pascalKeys=Ue.snakeKeys=Ue.camelKeys=Ue.upperKeys=Ue.lowerKeys=Ue.toLowerCase=Ue.toUpperCase=Ue.toKebabCase=Ue.toHeaderCase=Ue.toSentenceCase=Ue.toTextCase=Ue.toPathCase=Ue.toDotCase=Ue.toPascalCase=Ue.toSnakeCase=Ue.toCamelCase=void 0;var t=eh();Ue.toCamelCase=t.default;var e=th();Ue.toSnakeCase=e.default;var n=nh();Ue.toPascalCase=n.default;var r=Qp();Ue.toDotCase=r.default;var i=Xp();Ue.toPathCase=i.default;var s=Jp();Ue.toTextCase=s.default;var u=e0();Ue.toSentenceCase=u.default;var a=t0();Ue.toHeaderCase=a.default;var c=rh();Ue.toKebabCase=c.default;var l=n0();Ue.lowerKeys=l.default;var d=r0();Ue.upperKeys=d.default;var y=i0();Ue.camelKeys=y.default;var p=s0();Ue.snakeKeys=p.default;var x=o0();Ue.pascalKeys=x.default;var b=a0();Ue.kebabKeys=b.default;var g=function(k){return String(k||"").toLowerCase()};Ue.toLowerCase=g;var S=function(k){return String(k||"").toUpperCase()};Ue.toUpperCase=S;var O={toCamelCase:t.default,toSnakeCase:e.default,toPascalCase:n.default,toDotCase:r.default,toPathCase:i.default,toTextCase:s.default,toSentenceCase:u.default,toHeaderCase:a.default,toKebabCase:c.default,toUpperCase:S,toLowerCase:g,lowerKeys:l.default,upperKeys:d.default,camelKeys:y.default,snakeKeys:p.default,pascalKeys:x.default,kebabKeys:b.default};return Ue.default=O,Ue}var Vu,of;function c0(){return of||(of=1,Vu=u0()),Vu}var E_=c0();/*! @license DOMPurify 3.4.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.8/LICENSE */function af(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l0(t){if(Array.isArray(t))return t}function f0(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,u,a=[],c=!0,l=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw i}}return a}}function d0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h0(t,e){return l0(t)||f0(t,e)||p0(t,e)||d0()}function p0(t,e){if(t){if(typeof t=="string")return af(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?af(t,e):void 0}}const ih=Object.entries,uf=Object.setPrototypeOf,m0=Object.isFrozen,g0=Object.getPrototypeOf,y0=Object.getOwnPropertyDescriptor;let En=Object.freeze,sr=Object.seal,$s=Object.create,sh=typeof Reflect<"u"&&Reflect,Ec=sh.apply,Tc=sh.construct;En||(En=function(e){return e});sr||(sr=function(e){return e});Ec||(Ec=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return e.apply(n,i)});Tc||(Tc=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const Di=qt(Array.prototype.forEach),v0=qt(Array.prototype.lastIndexOf),cf=qt(Array.prototype.pop),ks=qt(Array.prototype.push),b0=qt(Array.prototype.splice),bn=Array.isArray,$o=qt(String.prototype.toLowerCase),Yu=qt(String.prototype.toString),lf=qt(String.prototype.match),Is=qt(String.prototype.replace),ff=qt(String.prototype.indexOf),x0=qt(String.prototype.trim),w0=qt(Number.prototype.toString),_0=qt(Boolean.prototype.toString),df=typeof BigInt>"u"?null:qt(BigInt.prototype.toString),hf=typeof Symbol>"u"?null:qt(Symbol.prototype.toString),It=qt(Object.prototype.hasOwnProperty),Co=qt(Object.prototype.toString),rn=qt(RegExp.prototype.test),Rs=S0(TypeError);function qt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Ec(t,e,r)}}function S0(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Tc(t,n)}}function Le(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$o;if(uf&&uf(t,null),!bn(e))return t;let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const s=n(i);s!==i&&(m0(e)||(e[r]=s),i=s)}t[i]=!0}return t}function E0(t){for(let e=0;e<t.length;e++)It(t,e)||(t[e]=null);return t}function ln(t){const e=$s(null);for(const r of ih(t)){var n=h0(r,2);const i=n[0],s=n[1];It(t,i)&&(bn(s)?e[i]=E0(s):s&&typeof s=="object"&&s.constructor===Object?e[i]=ln(s):e[i]=s)}return e}function T0(t){switch(typeof t){case"string":return t;case"number":return w0(t);case"boolean":return _0(t);case"bigint":return df?df(t):"0";case"symbol":return hf?hf(t):"Symbol()";case"undefined":return Co(t);case"function":case"object":{if(t===null)return Co(t);const e=t,n=kr(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:Co(r)}return Co(t)}default:return Co(t)}}function kr(t,e){for(;t!==null;){const r=y0(t,e);if(r){if(r.get)return qt(r.get);if(typeof r.value=="function")return qt(r.value)}t=g0(t)}function n(){return null}return n}function O0(t){try{return rn(t,""),!0}catch{return!1}}const pf=En(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Zu=En(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Gu=En(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),A0=En(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ku=En(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),C0=En(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mf=En(["#text"]),gf=En(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
vendor: 3,833 bytes, line 14
14spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Qu=En(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yf=En(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ma=En(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),k0=sr(/{{[\w\W]*|^[\w\W]*}}/g),I0=sr(/<%[\w\W]*|^[\w\W]*%>/g),R0=sr(/\${[\w\W]*/g),P0=sr(/^data-[\-\w.\u00B7-\uFFFF]+$/),D0=sr(/^aria-[\-\w]+$/),vf=sr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),M0=sr(/^(?:\w+script|data):/i),N0=sr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),L0=sr(/^html$/i),j0=sr(/^[a-z][.\w]*(-[.\w]+)+$/i),Ar={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},F0=function(){return typeof window>"u"?null:window},$0=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;
vendor: 5,115 bytes, line 14
14const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},bf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function oh(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F0();const e=ne=>oh(ne);if(e.version="3.4.8",e.removed=[],!t||!t.document||t.document.nodeType!==Ar.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,i=r.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,u=t.Node,a=t.Element,c=t.NodeFilter,l=t.NamedNodeMap;l===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,y=t.trustedTypes,p=a.prototype,x=kr(p,"cloneNode"),b=kr(p,"remove"),g=kr(p,"nextSibling"),S=kr(p,"childNodes"),O=kr(p,"parentNode"),k=kr(p,"shadowRoot"),v=kr(p,"attributes"),w=u&&u.prototype?kr(u.prototype,"nodeType"):null,D=u&&u.prototype?kr(u.prototype,"nodeName"):null;if(typeof s=="function"){const ne=n.createElement("template");ne.content&&ne.content.ownerDocument&&(n=ne.content.ownerDocument)}let I,j="",C=0;const E=function(R){if(C>0)throw Rs('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');C++;try{return I.createHTML(R)}finally{C--}},P=n,L=P.implementation,$=P.createNodeIterator,M=P.createDocumentFragment,qe=P.getElementsByTagName,rt=r.importNode;let Me=bf();e.isSupported=typeof ih=="function"&&typeof O=="function"&&L&&L.createHTMLDocument!==void 0;const ut=k0,zt=I0,vt=R0,ft=P0,Yt=D0,Tt=M0,Ie=N0,wt=j0;let ct=vf,$e=null;const pt=Le({},[...pf,...Zu,...Gu,...Ku,...mf]);let be=null;const Zt=Le({},[...gf,...Qu,...yf,...Ma]);let _e=Object.seal($s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),bt=null,gn=null;const Ge=Object.seal($s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pt=!0,Kt=!0,jn=!1,Hn=!0,Ht=!1,an=!0,Wt=!1,Wn=!1,On=!1,Qe=!1,Lt=!1,un=!1,me=!0,xe=!1;const we="user-content-";let Be=!0,Ot=!1,At={},Ee=null;const ge=Le({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Vt=null;const An=Le({},["audio","video","img","source","image","track"]);let Vn=null;const ms=Le({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yn="http://www.w3.org/1998/Math/MathML",Sr="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1999/xhtml";let xt=Qt,or=!1,Xt=null;const ar=Le({},[Yn,Sr,Qt],Yu);let ur=Le({},["mi","mo","mn","ms","mtext"]),jt=Le({},["annotation-xml"]);const Si=Le({},["title","style","font","a","script"]);let Cn=null;const Ei=["application/xhtml+xml","text/html"],Ct="text/html";let at=null,Jt=null;const Er=n.createElement("form"),Qr=function(R){return R instanceof RegExp||R instanceof Function},Tr=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jt&&Jt===R)return;(!R||typeof R!="object")&&(R={}),R=ln(R),Cn=Ei.indexOf(R.PARSER_MEDIA_TYPE)===-1?Ct:R.PARSER_MEDIA_TYPE,at=Cn==="application/xhtml+xml"?Yu:$o,$e=It(R,"ALLOWED_TAGS")&&bn(R.ALLOWED_TAGS)?Le({},R.ALLOWED_TAGS,at):pt,be=It(R,"ALLOWED_ATTR")&&bn(R.ALLOWED_ATTR)?Le({},R.ALLOWED_ATTR,at):Zt,Xt=It(R,"ALLOWED_NAMESPACES")&&bn(R.ALLOWED_NAMESPACES)?Le({},R.ALLOWED_NAMESPACES,Yu):ar,Vn=It(R,"ADD_URI_SAFE_ATTR")&&bn(R.ADD_URI_SAFE_ATTR)?Le(ln(ms),R.ADD_URI_SAFE_ATTR,at):ms,Vt=It(R,"ADD_DATA_URI_TAGS")&&bn(R.ADD_DATA_URI_TAGS)?Le(ln(An),R.ADD_DATA_URI_TAGS,at):An,Ee=It(R,"FORBID_CONTENTS")&&bn(R.FORBID_CONTENTS)?Le({},R.FORBID_CONTENTS,at):ge,bt=It(R,"FORBID_TAGS")&&bn(R.FORBID_TAGS)?Le({},R.FORBID_TAGS,at):ln({}),gn=It(R,"FORBID_ATTR")&&bn(R.FORBID_ATTR)?Le({},R.FORBID_ATTR,at):ln({}),At=It(R,"USE_PROFILES")?R.USE_PROFILES&&typeof R.USE_PROFILES=="object"?ln(R.USE_PROFILES):R.USE_PROFILES:!1,Pt=R.ALLOW_ARIA_ATTR!==!1,Kt=R.ALLOW_DATA_ATTR!==!1,jn=R.ALLOW_UNKNOWN_PROTOCOLS||!1,Hn=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ht=R.SAFE_FOR_TEMPLATES||!1,an=R.SAFE_FOR_XML!==!1,Wt=R.WHOLE_DOCUMENT||!1,Qe=R.RETURN_DOM||!1,Lt=R.RETURN_DOM_FRAGMENT||!1,un=R.RETURN_TRUSTED_TYPE||!1,On=R.FORCE_BODY||!1,me=R.SANITIZE_DOM!==!1,xe=R.SANITIZE_NAMED_PROPS||!1,Be=R.KEEP_CONTENT!==!1,Ot=R.IN_PLACE||!1,ct=O0(R.ALLOWED_URI_REGEXP)?R.ALLOWED_URI_REGEXP:vf,xt=typeof R.NAMESPACE=="str
14ing"?R.NAMESPACE:Qt,ur=It(R,"MATHML_TEXT_INTEGRATION_POINTS")&&R.MATHML_TEXT_INTEGRATION_POINTS&&typeof R.MATHML_TEXT_INTEGRATION_POINTS=="object"?ln(R.MATHML_TEXT_INTEGRATION_POINTS):Le({},["mi","mo","mn","ms","mtext"]),jt=It(R,"HTML_INTEGRATION_POINTS")&&R.HTML_INTEGRATION_POINTS&&typeof R.HTML_INTEGRATION_POINTS=="object"?ln(R.HTML_INTEGRATION_POINTS):Le({},["annotation-xml"]);const H=It(R,"CUSTOM_ELEMENT_HANDLING")&&R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING=="object"?ln(R.CUSTOM_ELEMENT_HANDLING):$s(null);if(_e=$s(null),It(H,"tagNameCheck")&&Qr(H.tagNameCheck)&&(_e.tagNameCheck=H.tagNameCheck),It(H,"attributeNameCheck")&&Qr(H.attributeNameCheck)&&(_e.attributeNameCheck=H.attributeNameCheck),It(H,"allowCustomizedBuiltInElements")&&typeof H.allowCustomizedBuiltInElements=="boolean"&&(_e.allowCustomizedBuiltInElements=H.allowCustomizedBuiltInElements),Ht&&(Kt=!1),Lt&&(Qe=!0),At&&($e=Le({},mf),be=$s(null),At.html===!0&&(Le($e,pf),Le(be,gf)),At.svg===!0&&(Le($e,Zu),Le(be,Qu),Le(be,Ma)),At.svgFilters===!0&&(Le($e,Gu),Le(be,Qu),Le(be,Ma)),At.mathMl===!0&&(Le($e,Ku),Le(be,yf),Le(be,Ma))),Ge.tagCheck=null,Ge.attributeCheck=null,It(R,"ADD_TAGS")&&(typeof R.ADD_TAGS=="function"?Ge.tagCheck=R.ADD_TAGS:bn(R.ADD_TAGS)&&($e===pt&&($e=ln($e)),Le($e,R.ADD_TAGS,at))),It(R,"ADD_ATTR")&&(typeof R.ADD_ATTR=="function"?Ge.attributeCheck=R.ADD_ATTR:bn(R.ADD_ATTR)&&(be===Zt&&(be=ln(be)),Le(be,R.ADD_ATTR,at))),It(R,"ADD_URI_SAFE_ATTR")&&bn(R.ADD_URI_SAFE_ATTR)&&Le(Vn,R.ADD_URI_SAFE_ATTR,at),It(R,"FORBID_CONTENTS")&&bn(R.FORBID_CONTENTS)&&(Ee===ge&&(Ee=ln(Ee)),Le(Ee,R.FORBID_CONTENTS,at)),It(R,"ADD_FORBID_CONTENTS")&&bn(R.ADD_FORBID_CONTENTS)&&(Ee===ge&&(Ee=ln(Ee)),Le(Ee,R.ADD_FORBID_CONTENTS,at)),Be&&($e["#text"]=!0),Wt&&Le($e,["html","head","body"]),$e.table&&(Le($e,["tbody"]),delete bt.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Rs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Rs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const J=I;I=R.TRUSTED_TYPES_POLICY;try{j=E("")}catch(je){throw I=J,je}}else I===void 0&&R.TRUSTED_TYPES_POLICY!==null&&(I=$0(y,i)),I&&typeof j=="string"&&(j=E(""));(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&$e===pt&&($e=ln($e)),Me.uponSanitizeAttribute.length>0&&be===Zt&&(be=ln(be)),En&&En(R),Jt=R},Zn=Le({},[...Zu,...Gu,...A0]),Ti=Le({},[...Ku,...C0]),gs=function(R){let H=O(R);(!H||!H.tagName)&&(H={namespaceURI:xt,tagName:"template"});const J=$o(R.tagName),je=$o(H.tagName);return Xt[R.namespaceURI]?R.namespaceURI===Sr?H.namespaceURI===Qt?J==="svg":H.namespaceURI===Yn?J==="svg"&&(je==="annotation-xml"||ur[je]):!!Zn[J]:R.namespaceURI===Yn?H.namespaceURI===Qt?J==="math":H.namespaceURI===Sr?J==="math"&&jt[je]:!!Ti[J]:R.namespaceURI===Qt?H.namespaceURI===Sr&&!jt[je]||H.namespaceURI===Yn&&!ur[je]?!1:!Ti[J]&&(Si[J]||!Zn[J]):!!(Cn==="application/xhtml+xml"&&Xt[R.namespaceURI]):!1},Ft=function(R){ks(e.removed,{element:R});try{O(R).removeChild(R)}catch{b(R)}},kn=function(R,H){try{ks(e.removed,{attribute:H.getAttributeNode(R),from:H})}catch{ks(e.removed,{attribute:null,from:H})}if(H.removeAttribute(R),R==="is")if(Qe||Lt)try{Ft(H)}catch{}else try{H.setAttribute(R,"")}catch{}},$r=function(R){let H=null,J=null;if(On)R="<remove></remove>"+R;else{const He=lf(R,/^[\r\n\t ]+/);J=He&&He[0]}Cn==="application/xhtml+xml"&&xt===Qt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const je=I?E(R):R;if(xt===Qt)try{H=new d().parseFromString(je,Cn)}catch{}if(!H||!H.documentElement){H=L.createDocument(xt,"template",null);try{H.documentElement.innerHTML=or?j:je}catch{}}const ke=H.body||H.documentElement;return R&&J&&ke.insertBefore(n.createTextNode(J),ke.childNodes[0]||null),xt===Qt?qe.call(H,Wt?"html":"body")[0]:Wt?H.documentElement:ke},Or=function(R){return $.call(R.ownerDocument||R,R,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},In=function(R){var H,J;R.normalize();const je=$.call(R.ownerDocument||R,R,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ke=je.nextNode();for(;ke;){let st=ke.data;Di([ut,zt,vt],Dt=>{st=Is(st,Dt," ")}),ke.data=st,ke=je.nextNode()}const He=(H=(J=R.querySelectorAll)===null||J===void 0?void 0:J.call(R,"template"))!==null&&H!==void 0?H:[];Di(Array.from(He),st=>{Kn(st.content)&&In(st.content)})},Gn=function(R){const H=D?D(R):null;return typeof H!="string"||at(H)!=="form"?!1:typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||R.attributes!==v(R)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function"||R.nodeType!==w(R)||R.childNodes!==S(R)},Kn=function(R){if(!w||typeof R!="object"||R===null)return!1;try{return w(R)===Ar.documentFragment}catch{return!1}},cr=function(R){if(!w||typeof R!="object"||R===null)return!1;try{return typeof w(R)=="number"}catch{return!1}};function en(ne,R,H){Di(ne,J=>{J.call(e,R,H,Jt)})}const Fn=function(R){let H=null;if(en(Me.beforeSanitizeElements,R,null),Gn(R))return Ft(R),!0;const J=at(D?D(R):R.nodeName);if(en(Me.uponSanitizeElement,R,{tagName:J,allowedTags:$e}),an&&R.hasChildNodes()&&!cr(R.firstElementChild)&&rn(/<[/\w!]/g,R.innerHTML)&&rn(/<[/\w!]/g,R.textContent)||an&&R.namespaceURI===Qt&&J==="style"&&cr(R.firstElementChild)||R.nodeType===Ar.progressingInstruction||an&&R.nodeType===Ar.comment&&rn(/<[/\w]/g,R.data))return Ft(R),!0;if(bt[J]||!(Ge.tagCheck instanceof Function&&Ge.tagCheck(J))&&!$e[J]){if(!bt[J]&&dt(J)&&(_e.tagNameCheck instanceof RegExp&&rn(_e.tagNameCheck,J)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(J)))return!1;if(Be&&!Ee[J]){const ke=O(R),He=S(R);if(He&&ke){const st=He.length;for(let Dt=st-1;Dt>=0;--Dt){const $t=x(He[Dt],!0);ke.insertBefore($t,g(R))}}}return Ft(R),!0}return(w?w(R):R.nodeType)===Ar.element&&!gs(R)||(J==="noscript"||J==="noembed"||J==="noframes")&&rn(/<\/no(script|embed|frames)/i,R.innerHTML)?(Ft(R),!0):(Ht&&R.nodeType===Ar.text&&(H=R.textContent,Di([ut,zt,vt],ke=>{H=Is(H,ke," ")}),R.textContent!==H&&(ks(e.removed,{element:R.cloneNode()}),R.textContent=H)),en(Me.afterSanitizeElements,R,null),!1)}
vendor: 4,534 bytes, lines 14-15
14,Oi=function(R,H,J){if(gn[H]||me&&(H==="id"||H==="name")&&(J in n||J in Er))return!1;const je=be[H]||Ge.attributeCheck instanceof Function&&Ge.attributeCheck(H,R);if(!(Kt&&!gn[H]&&rn(ft,H))){if(!(Pt&&rn(Yt,H))){if(!je||gn[H]){if(!(dt(R)&&(_e.tagNameCheck instanceof RegExp&&rn(_e.tagNameCheck,R)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(R))&&(_e.attributeNameCheck instanceof RegExp&&rn(_e.attributeNameCheck,H)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(H,R))||H==="is"&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&rn(_e.tagNameCheck,J)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(J))))return!1}else if(!Vn[H]){if(!rn(ct,Is(J,Ie,""))){if(!((H==="src"||H==="xlink:href"||H==="href")&&R!=="script"&&ff(J,"data:")===0&&Vt[R])){if(!(jn&&!rn(Tt,Is(J,Ie,"")))){if(J)return!1}}}}}}return!0},Gt=Le({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dt=function(R){return!Gt[$o(R)]&&rn(wt,R)},Ce=function(R){en(Me.beforeSanitizeAttributes,R,null);const H=R.attributes;if(!H||Gn(R))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0};let je=H.length;for(;je--;){const ke=H[je],He=ke.name,st=ke.namespaceURI,Dt=ke.value,$t=at(He),Ze=Dt;let Xe=He==="value"?Ze:x0(Ze);if(J.attrName=$t,J.attrValue=Xe,J.keepAttr=!0,J.forceKeepAttr=void 0,en(Me.uponSanitizeAttribute,R,J),Xe=J.attrValue,xe&&($t==="id"||$t==="name")&&ff(Xe,we)!==0&&(kn(He,R),Xe=we+Xe),an&&rn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xe)){kn(He,R);continue}if($t==="attributename"&&lf(Xe,"href")){kn(He,R);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){kn(He,R);continue}if(!Hn&&rn(/\/>/i,Xe)){kn(He,R);continue}Ht&&Di([ut,zt,vt],Ur=>{Xe=Is(Xe,Ur," ")});const lr=at(R.nodeName);if(!Oi(lr,$t,Xe)){kn(He,R);continue}if(I&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!st)switch(y.getAttributeType(lr,$t)){case"TrustedHTML":{Xe=E(Xe);break}case"TrustedScriptURL":{Xe=I.createScriptURL(Xe);break}}if(Xe!==Ze)try{st?R.setAttributeNS(st,He,Xe):R.setAttribute(He,Xe),Gn(R)?Ft(R):cf(e.removed)}catch{kn(He,R)}}en(Me.afterSanitizeAttributes,R,null)},mt=function(R){let H=null;const J=Or(R);for(en(Me.beforeSanitizeShadowDOM,R,null);H=J.nextNode();)if(en(Me.uponSanitizeShadowNode,H,null),Fn(H),Ce(H),Kn(H.content)&&mt(H.content),(w?w(H):H.nodeType)===Ar.element){const ke=k?k(H):H.shadowRoot;Kn(ke)&&(kt(ke),mt(ke))}en(Me.afterSanitizeShadowDOM,R,null)},kt=function(R){const H=w?w(R):R.nodeType;if(H===Ar.element){const ke=k?k(R):R.shadowRoot;Kn(ke)&&(kt(ke),mt(ke))}const J=S?S(R):R.childNodes;if(!J)return;const je=[];Di(J,ke=>{ks(je,ke)});for(const ke of je)kt(ke);if(H===Ar.element){const ke=D?D(R):null;if(typeof ke=="string"&&at(ke)==="template"){const He=R.content;Kn(He)&&kt(He)}}};return e.sanitize=function(ne){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,J=null,je=null,ke=null;if(or=!ne,or&&(ne="<!-->"),typeof ne!="string"&&!cr(ne)&&(ne=T0(ne),typeof ne!="string"))throw Rs("dirty is not a string, aborting");if(!e.isSupported)return ne;if(Wn||Tr(R),e.removed=[],typeof ne=="string"&&(Ot=!1),Ot){const Dt=D?D(ne):ne.nodeName;if(typeof Dt=="string"){const $t=at(Dt);if(!$e[$t]||bt[$t])throw Rs("root node is forbidden and cannot be sanitized in-place")}if(Gn(ne))throw Rs("root node is clobbered and cannot be sanitized in-place");kt(ne)}else if(cr(ne))H=$r("<!---->"),J=H.ownerDocument.importNode(ne,!0),J.nodeType===Ar.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?H=J:H.appendChild(J),kt(J);else{if(!Qe&&!Ht&&!Wt&&ne.indexOf("<")===-1)return I&&un?E(ne):ne;if(H=$r(ne),!H)return Qe?null:un?j:""}H&&On&&Ft(H.firstChild);const He=Or(Ot?ne:H);for(;je=He.nextNode();)Fn(je),Ce(je),Kn(je.content)&&mt(je.content);if(Ot)return Ht&&In(ne),ne;if(Qe){if(Ht&&In(H),Lt)for(ke=M.call(H.ownerDocument);H.firstChild;)ke.appendChild(H.firstChild);else ke=H;return(be.shadowroot||be.shadowrootmode)&&(ke=rt.call(r,ke,!0)),ke}let st=Wt?H.outerHTML:H.innerHTML;return Wt&&$e["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&rn(L0,H.ownerDocument.doctype.name)&&(st="<!DOCTYPE "+H.ownerDocument.doctype.name+`>
15`+st),Ht&&Di([ut,zt,vt],Dt=>{st=Is(st,Dt," ")}),I&&un?E(st):st},e.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tr(ne),Wn=!0},e.clearConfig=function(){Jt=null,Wn=!1},e.isValidAttribute=function(ne,R,H){Jt||Tr({});
vendor: 6,814 bytes, line 15
15const J=at(ne),je=at(R);return Oi(J,je,H)},e.addHook=function(ne,R){typeof R=="function"&&ks(Me[ne],R)},e.removeHook=function(ne,R){if(R!==void 0){const H=v0(Me[ne],R);return H===-1?void 0:b0(Me[ne],H,1)[0]}return cf(Me[ne])},e.removeHooks=function(ne){Me[ne]=[]},e.removeAllHooks=function(){Me=bf()},e}var T_=oh(),Ye;(function(t){t.assertEqual=i=>{};function e(i){}t.assertIs=e;function n(i){throw new Error}t.assertNever=n,t.arrayToEnum=i=>{const s={};for(const u of i)s[u]=u;return s},t.getValidEnumValues=i=>{const s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),u={};for(const a of s)u[a]=i[a];return t.objectValues(u)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&s.push(u);return s},t.find=(i,s)=>{for(const u of i)if(s(u))return u},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,s=" | "){return i.map(u=>typeof u=="string"?`'${u}'`:u).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(Ye||(Ye={}));var Oc;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Oc||(Oc={}));const oe=Ye.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vr=t=>{switch(typeof t){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return Number.isNaN(t)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(t)?oe.array:t===null?oe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?oe.promise:typeof Map<"u"&&t instanceof Map?oe.map:typeof Set<"u"&&t instanceof Set?oe.set:typeof Date<"u"&&t instanceof Date?oe.date:oe.object;default:return oe.unknown}},Z=Ye.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),U0=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class Bn extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(s){return s.message},r={_errors:[]},i=s=>{for(const u of s.issues)if(u.code==="invalid_union")u.unionErrors.map(i);else if(u.code==="invalid_return_type")i(u.returnTypeError);else if(u.code==="invalid_arguments")i(u.argumentsError);else if(u.path.length===0)r._errors.push(n(u));else{let a=r,c=0;for(;c<u.path.length;){const l=u.path[c];c===u.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(u))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return i(this),r}static assert(e){if(!(e instanceof Bn))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const s=i.path[0];n[s]=n[s]||[],n[s].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Bn.create=t=>new Bn(t);const ao=(t,e)=>{let n;switch(t.code){case Z.invalid_type:t.received===oe.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case Z.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ye.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ye.joinValues(t.keys,", ")}`;break;case Z.invalid_union:n="Invalid input";break;case Z.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ye.joinValues(t.options)}`;break;case Z.invalid_enum_value:n=`Invalid enum value. Expected ${Ye.joinValues(t.options)}, received '${t.received}'`;break;case Z.invalid_arguments:n="Invalid function arguments";break;case Z.invalid_return_type:n="Invalid function return type";break;case Z.invalid_date:n="Invalid date";break;case Z.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ye.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case Z.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case Z.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case Z.custom:n="Invalid input";break;case Z.invalid_intersection_types:n="Intersection results could not be merged";break;case Z.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Z.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ye.assertNever(t)}return{message:n}};let ah=ao;function q0(t){ah=t}function ou(){return ah}const au=t=>
vendor: 29,205 bytes, line 15
15{const{data:e,path:n,errorMaps:r,issueData:i}=t,s=[...n,...i.path||[]],u={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let a="";const c=r.filter(l=>!!l).slice().reverse();for(const l of c)a=l(u,{data:e,defaultError:a}).message;return{...i,path:s,message:a}},B0=[];function se(t,e){const n=ou(),r=au({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===ao?void 0:ao].filter(i=>!!i)});t.common.issues.push(r)}class pn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const i of n){if(i.status==="aborted")return Oe;i.status==="dirty"&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const i of n){const s=await i.key,u=await i.value;r.push({key:s,value:u})}return pn.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const i of n){const{key:s,value:u}=i;if(s.status==="aborted"||u.status==="aborted")return Oe;s.status==="dirty"&&e.dirty(),u.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof u.value<"u"||i.alwaysSet)&&(r[s.value]=u.value)}return{status:e.value,value:r}}}const Oe=Object.freeze({status:"aborted"}),Bs=t=>({status:"dirty",value:t}),Tn=t=>({status:"valid",value:t}),Ac=t=>t.status==="aborted",Cc=t=>t.status==="dirty",rs=t=>t.status==="valid",Wo=t=>typeof Promise<"u"&&t instanceof Promise;var pe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(pe||(pe={}));class jr{constructor(e,n,r,i){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const xf=(t,e)=>{if(rs(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Bn(t.common.issues);return this._error=n,this._error}}};function De(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:i}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(u,a)=>{const{message:c}=t;return u.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:c??r??a.defaultError}:u.code!=="invalid_type"?{message:a.defaultError}:{message:c??n??a.defaultError}},description:i}}class Fe{get description(){return this._def.description}_getType(e){return Vr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Vr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new pn,ctx:{common:e.parent.common,data:e.data,parsedType:Vr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Wo(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vr(e)},i=this._parseSync({data:e,path:r.path,parent:r});return xf(r,i)}"~validate"(e){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vr(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:n});return rs(s)?{value:s.value}:{issues:n.common.issues}}catch(s){(i=(r=s==null?void 0:s.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(s=>rs(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vr(e)},i=this._parse({data:e,path:r.path,parent:r}),s=await(Wo(i)?i:Promise.resolve(i));return xf(r,s)}refine(e,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,s)=>{const u=e(i),a=()=>s.addIssue({code:Z.custom,...r(i)});return typeof Promise<"u"&&u instanceof Promise?u.then(c=>c?!0:(a(),!1)):u?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,i)=>e(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(e){return new wr({schema:this,typeName:Ae.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Nr.create(this,this._def)}nullable(){return _i.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xr.create(this)}promise(){return co.create(this,this._def)}or(e){return Go.create([this,e],this._def)}and(e){return Ko.create(this,e,this._def)}transform(e){return new wr({...De(this._def),schema:this,typeName:Ae.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new ta({...De(this._def),innerType:this,defaultValue:n,typeName:Ae.ZodDefault})}brand(){return new cl({typeName:Ae.ZodBranded,type:this,...De(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new na({...De(this._def),innerType:this,catchValue:n,typeName:Ae.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return ma.create(this,e)}readonly(){return ra.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const z0=/^c[^\s-]{8,}$/i,H0=/^[0-9a-z]+$/,W0=/^[0-9A-HJKMNP-TV-Z]{26}$/i,V0=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Y0=/^[a-z0-9_-]{21}$/i,Z0=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,G0=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,K0=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Q0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Xu;const X0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,em=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tm=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nm=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rm=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,uh="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",im=new RegExp(`^${uh}$`);function ch(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function sm(t){return new RegExp(`^${ch(t)}$`)}function lh(t){let e=`${uh}T${ch(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function om(t,e){return!!((e==="v4"||!e)&&X0.test(t)||(e==="v6"||!e)&&em.test(t))}function am(t,e){if(!Z0.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||e&&i.alg!==e)}catch{return!1}}function um(t,e){return!!((e==="v4"||!e)&&J0.test(t)||(e==="v6"||!e)&&tm.test(t))}class br extends Fe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==oe.string){const s=this._getOrReturnCtx(e);return se(s,{code:Z.invalid_type,expected:oe.string,received:s.parsedType}),Oe}const r=new pn;let i;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),se(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),se(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const u=e.data.length>s.value,a=e.data.length<s.value;(u||a)&&(i=this._getOrReturnCtx(e,i),u?se(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&se(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")K0.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"email",code:Z.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Xu||(Xu=new RegExp(Q0,"u")),Xu.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")V0.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")Y0.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")z0.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")H0.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")W0.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),se(i,{validation:"url",code:Z.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"regex",code:Z.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),se(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),se(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),se(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?lh(s).test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?im.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{code:Z.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?sm(s).test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{code:Z.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?G0.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"duration",code:Z.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?om(e.data,s.version)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"ip",code:Z.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?am(e.data,s.alg)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"jwt",code:Z.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?um(e.data,s.version)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"cidr",code:Z.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?nm.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"base64",code:Z.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?rm.test(e.data)||(i=this._getOrReturnCtx(e,i),se(i,{validation:"base64url",code:Z.invalid_string,message:s.message}),r.dirty()):Ye.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(i=>e.test(i),{validation:n,code:Z.invalid_string,...pe.errToObj(r)})}_addCheck(e){return new br({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...pe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...pe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...pe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...pe.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...pe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...pe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...pe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...pe.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...pe.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...pe.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...pe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...pe.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...pe.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...pe.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...pe.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...pe.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...pe.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...pe.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...pe.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...pe.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...pe.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...pe.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...pe.errToObj(n)})}nonempty(e){return this.min(1,pe.errToObj(e))}trim(){return new br({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new br({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new br({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}br.create=t=>new br({checks:[],typeName:Ae.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...De(t)});function cm(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,i=n>r?n:r,s=Number.parseInt(t.toFixed(i).replace(".","")),u=Number.parseInt(e.toFixed(i).replace(".",""));return s%u/10**i}class bi extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==oe.number){const s=this._getOrReturnCtx(e);return se(s,{code:Z.invalid_type,expected:oe.number,received:s.parsedType}),Oe}let r;const i=new pn;for(const s of this._def.checks)s.kind==="int"?Ye.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),se(r,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),se(r,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),se(r,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?cm(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),se(r,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),se(r,{code:Z.not_finite,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,r,i){return new bi({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:pe.toString(i)}]})}_addCheck(e){return new bi({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:pe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:pe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ye.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}bi.create=t=>new bi({checks:[],typeName:Ae.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...De(t)});class xi extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==oe.bigint)return this._getInvalidInput(e);let r;const i=new pn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),se(r,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),se(r,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),se(r,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Ye.assertNever(s);return{status:i.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return se(n,{code:Z.invalid_type,expected:oe.bigint,received:n.parsedType}),Oe}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,r,i){return new xi({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:pe.toString(i)}]})}_addCheck(e){return new xi({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}xi.create=t=>new xi({checks:[],typeName:Ae.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...De(t)});class Vo extends Fe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==oe.boolean){const r=this._getOrReturnCtx(e);return se(r,{code:Z.invalid_type,expected:oe.boolean,received:r.parsedType}),Oe}return Tn(e.data)}}Vo.create=t=>new Vo({typeName:Ae.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...De(t)});class is extends Fe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==oe.date){const s=this._getOrReturnCtx(e);return se(s,{code:Z.invalid_type,expected:oe.date,received:s.parsedType}),Oe}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return se(s,{code:Z.invalid_date}),Oe}const r=new pn;let i;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),se(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),se(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Ye.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new is({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:pe.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:pe.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}is.create=t=>new is({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:Ae.ZodDate,...De(t)});class uu extends Fe{_parse(e){if(this._getType(e)!==oe.symbol){const r=this._getOrReturnCtx(e);return se(r,{code:Z.invalid_type,expected:oe.symbol,received:r.parsedType}),Oe}return Tn(e.data)}}uu.create=t=>new uu({typeName:Ae.ZodSymbol,...De(t)});class Yo extends Fe{_parse(e){if(this._getType(e)!==oe.undefined){const r=this._getOrReturnCtx(e);return se(r,{code:Z.invalid_type,expected:oe.undefined,received:r.parsedType}),Oe}return Tn(e.data)}}Yo.create=t=>new Yo({typeName:Ae.ZodUndefined,...De(t)});class Zo extends Fe{_parse(e){if(this._getType(e)!==oe.null){const r=this._getOrReturnCtx(e);return se(r,{code:Z.invalid_type,expected:oe.null,received:r.parsedType}),Oe}return Tn(e.data)}}Zo.create=t=>new Zo({typeName:Ae.ZodNull,...De(t)});class uo extends Fe{constructor(){super(...arguments),this._any=!0}_parse(e){return Tn(e.data)}}uo.create=t=>new uo({typeName:Ae.ZodAny,...De(t)});class ts extends Fe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Tn(e.data)}}ts.create=t=>new ts({typeName:Ae.ZodUnknown,...De(t)});class Kr extends Fe{_parse(e){const n=this._getOrReturnCtx(e);return se(n,{code:Z.invalid_type,expected:oe.never,received:n.parsedType}),Oe}}Kr.create=t=>new Kr({typeName:Ae.ZodNever,...De(t)});class cu extends Fe{_parse(e){if(this._getType(e)!==oe.undefined){const r=this._getOrReturnCtx(e);return se(r,{code:Z.invalid_type,expected:oe.void,received:r.parsedType}),Oe}return Tn(e.data)}}cu.create=t=>new cu({typeName:Ae.ZodVoid,...De(t)});class xr extends Fe{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),i=this._def;if(n.parsedType!==oe.array)return se(n,{code:Z.invalid_type,expected:oe.array,received:n.parsedType}),Oe;if(i.exactLength!==null){const u=n.data.length>i.exactLength.value,a=n.data.length<i.exactLength.value;(u||a)&&(se(n,{code:u?Z.too_big:Z.too_small,minimum:a?i.exactLength.value:void 0,maximum:u?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(se(n,{code:Z.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(se(n,{code:Z.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((u,a)=>i.type._parseAsync(new jr(n,u,n.path,a)))).then(u=>pn.mergeArray(r,u));const s=[...n.data].map((u,a)=>i.type._parseSync(new jr(n,u,n.path,a)));return pn.mergeArray(r,s)}
vendor: 6,763 bytes, line 15
15get element(){return this._def.type}min(e,n){return new xr({...this._def,minLength:{value:e,message:pe.toString(n)}})}max(e,n){return new xr({...this._def,maxLength:{value:e,message:pe.toString(n)}})}length(e,n){return new xr({...this._def,exactLength:{value:e,message:pe.toString(n)}})}nonempty(e){return this.min(1,e)}}xr.create=(t,e)=>new xr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Ae.ZodArray,...De(e)});function Us(t){if(t instanceof St){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Nr.create(Us(r))}return new St({...t._def,shape:()=>e})}else return t instanceof xr?new xr({...t._def,type:Us(t.element)}):t instanceof Nr?Nr.create(Us(t.unwrap())):t instanceof _i?_i.create(Us(t.unwrap())):t instanceof Fr?Fr.create(t.items.map(e=>Us(e))):t}class St extends Fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Ye.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==oe.object){const l=this._getOrReturnCtx(e);return se(l,{code:Z.invalid_type,expected:oe.object,received:l.parsedType}),Oe}const{status:r,ctx:i}=this._processInputParams(e),{shape:s,keys:u}=this._getCached(),a=[];if(!(this._def.catchall instanceof Kr&&this._def.unknownKeys==="strip"))for(const l in i.data)u.includes(l)||a.push(l);const c=[];for(const l of u){const d=s[l],y=i.data[l];c.push({key:{status:"valid",value:l},value:d._parse(new jr(i,y,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Kr){const l=this._def.unknownKeys;if(l==="passthrough")for(const d of a)c.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(l==="strict")a.length>0&&(se(i,{code:Z.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const d of a){const y=i.data[d];c.push({key:{status:"valid",value:d},value:l._parse(new jr(i,y,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const d of c){const y=await d.key,p=await d.value;l.push({key:y,value:p,alwaysSet:d.alwaysSet})}return l}).then(l=>pn.mergeObjectSync(r,l)):pn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return pe.errToObj,new St({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,u;const i=((u=(s=this._def).errorMap)==null?void 0:u.call(s,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:pe.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new St({...this._def,unknownKeys:"strip"})}passthrough(){return new St({...this._def,unknownKeys:"passthrough"})}extend(e){return new St({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new St({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ae.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new St({...this._def,catchall:e})}pick(e){const n={};for(const r of Ye.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new St({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Ye.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new St({...this._def,shape:()=>n})}deepPartial(){return Us(this)}partial(e){const n={};for(const r of Ye.objectKeys(this.shape)){const i=this.shape[r];e&&!e[r]?n[r]=i:n[r]=i.optional()}return new St({...this._def,shape:()=>n})}required(e){const n={};for(const r of Ye.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Nr;)s=s._def.innerType;n[r]=s}return new St({...this._def,shape:()=>n})}keyof(){return fh(Ye.objectKeys(this.shape))}}St.create=(t,e)=>new St({shape:()=>t,unknownKeys:"strip",catchall:Kr.create(),typeName:Ae.ZodObject,...De(e)});St.strictCreate=(t,e)=>new St({shape:()=>t,unknownKeys:"strict",catchall:Kr.create(),typeName:Ae.ZodObject,...De(e)});St.lazycreate=(t,e)=>new St({shape:t,unknownKeys:"strip",catchall:Kr.create(),typeName:Ae.ZodObject,...De(e)});class Go extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function i(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const u=s.map(a=>new Bn(a.ctx.common.issues));return se(n,{code:Z.invalid_union,unionErrors:u}),Oe}if(n.common.async)return Promise.all(r.map(async s=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(i);{let s;const u=[];for(const c of r){const l={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:l}),l.common.issues.length&&u.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=u.map(c=>new Bn(c));return se(n,{code:Z.invalid_union,unionErrors:a}),Oe}}get options(){return this._def.options}}Go.create=(t,e)=>new Go({options:t,typeName:Ae.ZodUnion,...De(e)});const Hr=t=>t instanceof Xo?Hr(t.schema):t instanceof wr?Hr(t.innerType()):t instanceof Jo?[t.value]:t instanceof wi?t.options:t instanceof ea?Ye.objectValues(t.enum):t instanceof ta?Hr(t._def.innerType):t instanceof Yo?[void 0]:t instanceof Zo?[null]:t instanceof Nr?[void 0,...Hr(t.unwrap())]:t instanceof _i?[null,...Hr(t.unwrap())]:t instanceof cl||t instanceof ra?Hr(t.unwrap()):t instanceof na?Hr(t._def.innerType):[];class Su extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==oe.object)return se(n,{code:Z.invalid_type,expected:oe.object,received:n.parsedType}),Oe;const r=this.discriminator,i=n.data[r],s=this.optionsMap.get(i);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(se(n,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const i=new Map;for(const s of n){const u=Hr(s.shape[e]);if(!u.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of u){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new Su({typeName:Ae.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i,...De(r)})}}function kc(t,e){const n=Vr(t),r=Vr(e);
vendor: 4,803 bytes, line 15
15if(t===e)return{valid:!0,data:t};if(n===oe.object&&r===oe.object){const i=Ye.objectKeys(e),s=Ye.objectKeys(t).filter(a=>i.indexOf(a)!==-1),u={...t,...e};for(const a of s){const c=kc(t[a],e[a]);if(!c.valid)return{valid:!1};u[a]=c.data}return{valid:!0,data:u}}else if(n===oe.array&&r===oe.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let s=0;s<t.length;s++){const u=t[s],a=e[s],c=kc(u,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===oe.date&&r===oe.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Ko extends Fe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),i=(s,u)=>{if(Ac(s)||Ac(u))return Oe;const a=kc(s.value,u.value);return a.valid?((Cc(s)||Cc(u))&&n.dirty(),{status:n.value,value:a.data}):(se(r,{code:Z.invalid_intersection_types}),Oe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,u])=>i(s,u)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ko.create=(t,e,n)=>new Ko({left:t,right:e,typeName:Ae.ZodIntersection,...De(n)});class Fr extends Fe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.array)return se(r,{code:Z.invalid_type,expected:oe.array,received:r.parsedType}),Oe;if(r.data.length<this._def.items.length)return se(r,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Oe;!this._def.rest&&r.data.length>this._def.items.length&&(se(r,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((u,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new jr(r,u,r.path,a)):null}).filter(u=>!!u);return r.common.async?Promise.all(s).then(u=>pn.mergeArray(n,u)):pn.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new Fr({...this._def,rest:e})}}Fr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Fr({items:t,typeName:Ae.ZodTuple,rest:null,...De(e)})};class Qo extends Fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.object)return se(r,{code:Z.invalid_type,expected:oe.object,received:r.parsedType}),Oe;const i=[],s=this._def.keyType,u=this._def.valueType;for(const a in r.data)i.push({key:s._parse(new jr(r,a,r.path,a)),value:u._parse(new jr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?pn.mergeObjectAsync(n,i):pn.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof Fe?new Qo({keyType:e,valueType:n,typeName:Ae.ZodRecord,...De(r)}):new Qo({keyType:br.create(),valueType:e,typeName:Ae.ZodRecord,...De(n)})}}class lu extends Fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.map)return se(r,{code:Z.invalid_type,expected:oe.map,received:r.parsedType}),Oe;const i=this._def.keyType,s=this._def.valueType,u=[...r.data.entries()].map(([a,c],l)=>({key:i._parse(new jr(r,a,r.path,[l,"key"])),value:s._parse(new jr(r,c,r.path,[l,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of u){const l=await c.key,d=await c.value;if(l.status==="aborted"||d.status==="aborted")return Oe;(l.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(l.value,d.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of u){const l=c.key,d=c.value;if(l.status==="aborted"||d.status==="aborted")return Oe;(l.status==="dirty"||d.status==="dirty")&&n.dirty(),a.set(l.value,d.value)}return{status:n.value,value:a}}}}lu.create=(t,e,n)=>new lu({valueType:e,keyType:t,typeName:Ae.ZodMap,...De(n)});class ss extends Fe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.set)return se(r,{code:Z.invalid_type,expected:oe.set,received:r.parsedType}),Oe;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(se(r,{code:Z.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(se(r,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function u(c){const l=new Set;for(const d of c){if(d.status==="aborted")return Oe;d.status==="dirty"&&n.dirty(),l.add(d.value)}return{status:n.value,value:l}}const a=[...r.data.values()].map((c,l)=>s._parse(new jr(r,c,r.path,l)));return r.common.async?Promise.all(a).then(c=>
vendor: 4,270 bytes, line 15
15u(c)):u(a)}min(e,n){return new ss({...this._def,minSize:{value:e,message:pe.toString(n)}})}max(e,n){return new ss({...this._def,maxSize:{value:e,message:pe.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}ss.create=(t,e)=>new ss({valueType:t,minSize:null,maxSize:null,typeName:Ae.ZodSet,...De(e)});class zs extends Fe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==oe.function)return se(n,{code:Z.invalid_type,expected:oe.function,received:n.parsedType}),Oe;function r(a,c){return au({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ou(),ao].filter(l=>!!l),issueData:{code:Z.invalid_arguments,argumentsError:c}})}function i(a,c){return au({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ou(),ao].filter(l=>!!l),issueData:{code:Z.invalid_return_type,returnTypeError:c}})}const s={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof co){const a=this;return Tn(async function(...c){const l=new Bn([]),d=await a._def.args.parseAsync(c,s).catch(x=>{throw l.addIssue(r(c,x)),l}),y=await Reflect.apply(u,this,d);return await a._def.returns._def.type.parseAsync(y,s).catch(x=>{throw l.addIssue(i(y,x)),l})})}else{const a=this;return Tn(function(...c){const l=a._def.args.safeParse(c,s);if(!l.success)throw new Bn([r(c,l.error)]);const d=Reflect.apply(u,this,l.data),y=a._def.returns.safeParse(d,s);if(!y.success)throw new Bn([i(d,y.error)]);return y.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new zs({...this._def,args:Fr.create(e).rest(ts.create())})}returns(e){return new zs({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new zs({args:e||Fr.create([]).rest(ts.create()),returns:n||ts.create(),typeName:Ae.ZodFunction,...De(r)})}}class Xo extends Fe{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Xo.create=(t,e)=>new Xo({getter:t,typeName:Ae.ZodLazy,...De(e)});class Jo extends Fe{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return se(n,{received:n.data,code:Z.invalid_literal,expected:this._def.value}),Oe}return{status:"valid",value:e.data}}get value(){return this._def.value}}Jo.create=(t,e)=>new Jo({value:t,typeName:Ae.ZodLiteral,...De(e)});function fh(t,e){return new wi({values:t,typeName:Ae.ZodEnum,...De(e)})}class wi extends Fe{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return se(n,{expected:Ye.joinValues(r),received:n.parsedType,code:Z.invalid_type}),Oe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return se(n,{received:n.data,code:Z.invalid_enum_value,options:r}),Oe}return Tn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return wi.create(e,{...this._def,...n})}exclude(e,n=this._def){return wi.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}wi.create=fh;class ea extends Fe{_parse(e){const n=Ye.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==oe.string&&r.parsedType!==oe.number){const i=Ye.objectValues(n);return se(r,{expected:Ye.joinValues(i),received:r.parsedType,code:Z.invalid_type}),Oe}if(this._cache||(this._cache=new Set(Ye.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const i=Ye.objectValues(n);return se(r,{received:r.data,code:Z.invalid_enum_value,options:i}),Oe}return Tn(e.data)}get enum(){return this._def.values}}ea.create=(t,e)=>new ea({values:t,typeName:Ae.ZodNativeEnum,...De(e)});class co extends Fe{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==oe.promise&&n.common.async===!1)return se(n,{code:Z.invalid_type,expected:oe.promise,received:n.parsedType}),Oe;
vendor: 8,780 bytes, line 15
15const r=n.parsedType===oe.promise?n.data:Promise.resolve(n.data);return Tn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}co.create=(t,e)=>new co({type:t,typeName:Ae.ZodPromise,...De(e)});class wr extends Fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ae.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:u=>{se(r,u),u.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const u=i.transform(r.data,s);if(r.common.async)return Promise.resolve(u).then(async a=>{if(n.value==="aborted")return Oe;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?Oe:c.status==="dirty"||n.value==="dirty"?Bs(c.value):c});{if(n.value==="aborted")return Oe;const a=this._def.schema._parseSync({data:u,path:r.path,parent:r});return a.status==="aborted"?Oe:a.status==="dirty"||n.value==="dirty"?Bs(a.value):a}}if(i.type==="refinement"){const u=a=>{const c=i.refinement(a,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Oe:(a.status==="dirty"&&n.dirty(),u(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Oe:(a.status==="dirty"&&n.dirty(),u(a.value).then(()=>({status:n.value,value:a.value}))))}if(i.type==="transform")if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!rs(u))return Oe;const a=i.transform(u.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>rs(u)?Promise.resolve(i.transform(u.value,s)).then(a=>({status:n.value,value:a})):Oe);Ye.assertNever(i)}}wr.create=(t,e,n)=>new wr({schema:t,typeName:Ae.ZodEffects,effect:e,...De(n)});wr.createWithPreprocess=(t,e,n)=>new wr({schema:e,effect:{type:"preprocess",transform:t},typeName:Ae.ZodEffects,...De(n)});class Nr extends Fe{_parse(e){return this._getType(e)===oe.undefined?Tn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Nr.create=(t,e)=>new Nr({innerType:t,typeName:Ae.ZodOptional,...De(e)});class _i extends Fe{_parse(e){return this._getType(e)===oe.null?Tn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}_i.create=(t,e)=>new _i({innerType:t,typeName:Ae.ZodNullable,...De(e)});class ta extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===oe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ta.create=(t,e)=>new ta({innerType:t,typeName:Ae.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...De(e)});class na extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Wo(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Bn(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}na.create=(t,e)=>new na({innerType:t,typeName:Ae.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...De(e)});class fu extends Fe{_parse(e){if(this._getType(e)!==oe.nan){const r=this._getOrReturnCtx(e);return se(r,{code:Z.invalid_type,expected:oe.nan,received:r.parsedType}),Oe}return{status:"valid",value:e.data}}}fu.create=t=>new fu({typeName:Ae.ZodNaN,...De(t)});const lm=Symbol("zod_brand");class cl extends Fe{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ma extends Fe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Oe:s.status==="dirty"?(n.dirty(),Bs(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Oe:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,n){return new ma({in:e,out:n,typeName:Ae.ZodPipeline})}}class ra extends Fe{_parse(e){const n=this._def.innerType._parse(e),r=i=>(rs(i)&&(i.value=Object.freeze(i.value)),i);return Wo(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}ra.create=(t,e)=>new ra({innerType:t,typeName:Ae.ZodReadonly,...De(e)});function wf(t,e){const n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function dh(t,e={},n){return t?uo.create().superRefine((r,i)=>{const s=t(r);if(s instanceof Promise)return s.then(u=>{if(!u){const a=wf(e,r),c=a.fatal??n??!0;i.addIssue({code:"custom",...a,fatal:c})}});if(!s){const u=wf(e,r),a=u.fatal??n??!0;i.addIssue({code:"custom",...u,fatal:a})}}):uo.create()}const fm={object:St.lazycreate};var Ae;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Ae||(Ae={}));const dm=(t,e={message:`Input not instance of ${t.name}`})=>dh(n=>n instanceof t,e),hh=br.create,ph=bi.create,hm=fu.create,pm=xi.create,mh=Vo.create,mm=is.create,gm=uu.create,ym=Yo.create,vm=Zo.create,bm=uo.create,xm=ts.create,wm=Kr.create,_m=cu.create,Sm=xr.create,Em=St.create,Tm=St.strictCreate,Om=Go.create,Am=Su.create,Cm=Ko.create,km=Fr.create,Im=Qo.create,Rm=lu.create,Pm=ss.create,Dm=zs.create,Mm=Xo.create,Nm=Jo.create,Lm=wi.create,jm=ea.create,Fm=co.create,_f=wr.create,$m=Nr.create,Um=_i.create,qm=wr.createWithPreprocess,Bm=ma.create,zm=()=>hh().optional(),Hm=()=>ph().optional(),Wm=()=>mh().optional(),Vm={string:t=>br.create({...t,coerce:!0}),number:t=>bi.create({...t,coerce:!0}),boolean:t=>Vo.create({...t,coerce:!0}),bigint:t=>xi.create({...t,coerce:!0}),date:t=>is.create({...t,coerce:!0})},Ym=Oe,O_=Object.freeze(Object.defineProperty({__proto__:null,BRAND:lm,DIRTY:Bs,EMPTY_PATH:B0,INVALID:Oe,NEVER:Ym,OK:Tn,ParseStatus:pn,Schema:Fe,ZodAny:uo,ZodArray:xr,ZodBigInt:xi,ZodBoolean:Vo,ZodBranded:cl,ZodCatch:na,ZodDate:is,ZodDefault:ta,ZodDiscriminatedUnion:Su,ZodEffects:wr,ZodEnum:wi,ZodError:Bn,get ZodFirstPartyTypeKind(){return Ae},ZodFunction:zs,ZodIntersection:Ko,ZodIssueCode:Z,ZodLazy:Xo,ZodLiteral:Jo,ZodMap:lu,ZodNaN:fu,ZodNativeEnum:ea,ZodNever:Kr,ZodNull:Zo,ZodNullable:_i,ZodNumber:bi,ZodObject:St,ZodOptional:Nr,ZodParsedType:oe,ZodPipeline:ma,ZodPromise:co,ZodReadonly:ra,ZodRecord:Qo,ZodSchema:Fe,ZodSet:ss,ZodString:br,ZodSymbol:uu,ZodTransformer:wr,ZodTuple:Fr,ZodType:Fe,ZodUndefined:Yo,ZodUnion:Go,ZodUnknown:ts,ZodVoid:cu,addIssueToContext:se,any:bm,array:Sm,bigint:pm,boolean:mh,coerce:Vm,custom:dh,date:mm,datetimeRegex:lh,defaultErrorMap:ao,discriminatedUnion:Am,effect:_f,enum:Lm,function:Dm,getErrorMap:ou,getParsedType:Vr,instanceof:dm,intersection:Cm,isAborted:Ac,isAsync:Wo,isDirty:Cc,isValid:rs,late:fm,lazy:Mm,literal:Nm,makeIssue:au,map:Rm,nan:hm,nativeEnum:jm,never:wm,null:vm,nullable:Um,number:ph,object:Em,get objectUtil(){return Oc},oboolean:Wm,onumber:Hm,optional:$m,ostring:zm,pipeline:Bm,preprocess:qm,promise:Fm,quotelessJson:U0,record:Im,set:Pm,setErrorMap:q0,str
vendor: 6,843 bytes, line 15
15ictObject:Tm,string:hh,symbol:gm,transformer:_f,tuple:km,undefined:ym,union:Om,unknown:xm,get util(){return Ye},void:_m},Symbol.toStringTag,{value:"Module"})),Zm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function A_(t){return typeof t=="string"&&Zm.test(t)}const sn=[];for(let t=0;t<256;++t)sn.push((t+256).toString(16).slice(1));function Gm(t,e=0){return(sn[t[e+0]]+sn[t[e+1]]+sn[t[e+2]]+sn[t[e+3]]+"-"+sn[t[e+4]]+sn[t[e+5]]+"-"+sn[t[e+6]]+sn[t[e+7]]+"-"+sn[t[e+8]]+sn[t[e+9]]+"-"+sn[t[e+10]]+sn[t[e+11]]+sn[t[e+12]]+sn[t[e+13]]+sn[t[e+14]]+sn[t[e+15]]).toLowerCase()}let Ju;const Km=new Uint8Array(16);function Qm(){if(!Ju){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ju=crypto.getRandomValues.bind(crypto)}return Ju(Km)}const Xm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Sf={randomUUID:Xm};function C_(t,e,n){var i;if(Sf.randomUUID&&!t)return Sf.randomUUID();t=t||{};const r=t.random??((i=t.rng)==null?void 0:i.call(t))??Qm();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Gm(r)}var Uo={exports:{}},Jm=Uo.exports,Ef;function eg(){return Ef||(Ef=1,function(t,e){(function(n,r){var i="1.0.40",s="",u="?",a="function",c="undefined",l="object",d="string",y="major",p="model",x="name",b="type",g="vendor",S="version",O="architecture",k="console",v="mobile",w="tablet",D="smarttv",I="wearable",j="embedded",C=500,E="Amazon",P="Apple",L="ASUS",$="BlackBerry",M="Browser",qe="Chrome",rt="Edge",Me="Firefox",ut="Google",zt="Huawei",vt="LG",ft="Microsoft",Yt="Motorola",Tt="Opera",Ie="Samsung",wt="Sharp",ct="Sony",$e="Xiaomi",pt="Zebra",be="Facebook",Zt="Chromium OS",_e="Mac OS",bt=" Browser",gn=function(me,xe){var we={};for(var Be in me)xe[Be]&&xe[Be].length%2===0?we[Be]=xe[Be].concat(me[Be]):we[Be]=me[Be];return we},Ge=function(me){for(var xe={},we=0;we<me.length;we++)xe[me[we].toUpperCase()]=me[we];return xe},Pt=function(me,xe){return typeof me===d?Kt(xe).indexOf(Kt(me))!==-1:!1},Kt=function(me){return me.toLowerCase()},jn=function(me){return typeof me===d?me.replace(/[^\d\.]/g,s).split(".")[0]:r},Hn=function(me,xe){if(typeof me===d)return me=me.replace(/^\s\s*/,s),typeof xe===c?me:me.substring(0,C)},Ht=function(me,xe){for(var we=0,Be,Ot,At,Ee,ge,Vt;we<xe.length&&!ge;){var An=xe[we],Vn=xe[we+1];for(Be=Ot=0;Be<An.length&&!ge&&An[Be];)if(ge=An[Be++].exec(me),ge)for(At=0;At<Vn.length;At++)Vt=ge[++Ot],Ee=Vn[At],typeof Ee===l&&Ee.length>0?Ee.length===2?typeof Ee[1]==a?this[Ee[0]]=Ee[1].call(this,Vt):this[Ee[0]]=Ee[1]:Ee.length===3?typeof Ee[1]===a&&!(Ee[1].exec&&Ee[1].test)?this[Ee[0]]=Vt?Ee[1].call(this,Vt,Ee[2]):r:this[Ee[0]]=Vt?Vt.replace(Ee[1],Ee[2]):r:Ee.length===4&&(this[Ee[0]]=Vt?Ee[3].call(this,Vt.replace(Ee[1],Ee[2])):r):this[Ee]=Vt||r;we+=2}},an=function(me,xe){for(var we in xe)if(typeof xe[we]===l&&xe[we].length>0){for(var Be=0;Be<xe[we].length;Be++)if(Pt(xe[we][Be],me))return we===u?r:we}else if(Pt(xe[we],me))return we===u?r:we;return xe.hasOwnProperty("*")?xe["*"]:me},Wt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Wn={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},On={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[S,[x,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[S,[x,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[x,S],[/opios[\/ ]+([\w\.]+)/i],[S,[x,Tt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[S,[x,Tt+" GX"]],[/\bopr\/([\w\.]+)/i],[S,[x,Tt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[S,[x,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[S,[x,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[x,S],[/quark(?:pc)?\/([-\w\.]+)/i],[S,[x,"Quark"]],[/\bddg\/([\w\.]+)/i],[S,[x,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[S,[x,"UC"+M]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[S,[x,"WeChat"]],[/konqueror\/([\w\.]+)/i],[S,[x,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[S,[x,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[S,[x,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[S,[x,"Smart Lenovo "+M]],[/(avast|avg)\/([\w\.]+)/i],[[x,/(.+)/,"$1 Secure "+M],S],[/\bfocus\/([\w\.]+)/i],[S,[x,Me+" Focus"]],[/\bopt\/([\w\.]+)/i],[S,[x,Tt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[S,[x,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[S,[x,"Dolphin"]],[/coast\/([\w\.]+)/i],[S,[x,Tt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[S,[x,"MIUI"+bt]],[/fxios\/([\w\.-]+)/i],[S,[x,Me]],[/\bqihoobrowser\/?([\w\.]*)/i],[S,[x,"360"]],[/\b(qq)\/([\w\.]+)/i],[[x,/(.+)/,"$1Browser"],S],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[x,/(.+)/,"$1"+bt],S],[/samsungbrowser\/([\w\.]+)/i],[S,[x,Ie+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[S,[x,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[x,"Sogou Mobile"],S],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[x,S],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[x],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[S,x],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[x,be],S],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[x,S],[/\bgsa\/([\w\.]+) .*safari\//i],[S,[x,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[S,[x,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[S,[x,qe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[x,qe+" WebView"],S],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[S,[x,"Android "+M]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[x,S],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[S,[x,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[S,x],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[x,[
vendor: 9,519 bytes, line 15
15S,an,Wt]],[/(webkit|khtml)\/([\w\.]+)/i],[x,S],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[x,"Netscape"],S],[/(wolvic|librewolf)\/([\w\.]+)/i],[x,S],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[S,[x,Me+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[x,[S,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[x,[S,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,Kt]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[O,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[O,"armhf"]],[/windows (ce|mobile); ppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[O,/ower/,s,Kt]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[O,Kt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[g,Ie],[b,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[p,[g,Ie],[b,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[g,P],[b,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[g,P],[b,w]],[/(macintosh);/i],[p,[g,P]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[g,wt],[b,v]],[/(?:honor)([-\w ]+)[;\)]/i],[p,[g,"Honor"],[b,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[g,zt],[b,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[g,zt],[b,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[p,/_/g," "],[g,$e],[b,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[g,$e],[b,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[g,"OPPO"],[b,v]],[/\b(opd2\d{3}a?) bui/i],[p,[g,"OPPO"],[b,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[g,"Vivo"],[b,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[g,"Realme"],[b,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[g,Yt],[b,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[g,Yt],[b,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[g,vt],[b,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[g,vt],[b,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[g,"Lenovo"],[b,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[g,"Nokia"],[b,v]],[/(pixel c)\b/i],[p,[g,ut],[b,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[g,ut],[b,v]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[g,ct],[b,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[g,ct],[b,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[g,"OnePlus"],[b,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[g,E],[b,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[g,E],[b,v]],[/(playbook);[-\w\),; ]+(rim)/i],[p,g,[b,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[g,$],[b,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[g,L],[b,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[g,L],[b,v]],[/(nexus 9)/i],[p,[g,"HTC"],[b,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[p,/_/g," "],[b,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[p,[g,"TCL"],[b,w]],[/(itel) ((\w+))/i],[[g,Kt],p,[b,an,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[g,"Acer"],[b,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[g,"Meizu"],[b,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[g,"Ulefone"],[b,v]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[p,[g,"Energizer"],[b,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[p,[g,"Cat"],[b,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[p,[g,"Smartfren"],[b,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[p,[g,"Nothing"],[b,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,p,[b,v]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,p,[b,w]],[/(surface duo)/i],[p,[g,ft],[b,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[g,"Fairphone"],[b,v]],[/(u304aa)/i],[p,[g,"AT&T"],[b,v]],[/\bsie-(\w*)/i],[p,[g,"Siemens"],[b,v]],[/\b(rct\w+) b/i],[p,[g,"RCA"],[b,w]],[/\b(venue[\d ]{2,7}) b/i],[p,[g,"Dell"],[b,w]],[/\b(q(?:mv|ta)\w+) b/i],[p,[g,"Verizon"],[b,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[g,"Barnes & Noble"],[b,w]],[/\b(tm\d{3}\w+) b/i],[p,[g,"NuVision"],[b,w]],[/\b(k88) b/i],[p,[g,"ZTE"],[b,w]],[/\b(nx\d{3}j) b/i],[p,[g,"ZTE"],[b,v]],[/\b(gen\d{3}) b.+49h/i],[p,[g,"Swiss"],[b,v]],[/\b(zur\d{3}) b/i],[p,[g,"Swiss"],[b,w]],[/\b((zeki)?tb.*\b) b/i],[p,[g,"Zeki"],[b,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],p,[b,w]],[/\b(ns-?\w{0,9}) b/i],[p,[g,"Insignia"],[b,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[g,"NextBook"],[b,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],p,[b,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],p,[b,v]],[/\b(ph-1) /i],[p,[g,"Essential"],[b,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[g,"Envizen"],[b,w]],[/\b(trio[-\w\. ]+) b/i],[p,[g,"MachSpeed"],[b,w]],[/\btu_(1491) b/i],[p,[g,"Rotor"],[b,w]],[/(shield[\w ]+) b/i],[p,[g,"Nvidia"],[b,w]],[/(sprint) (\w+)/i],[g,p,[b,v]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[g,ft],[b,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[g,pt],[b,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[g,pt],[b,v]],[/smart-tv.+(samsung)/i],[g,[b,D]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[g,Ie],[b,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,vt],[b,D]],[/(apple) ?tv/i],[g,[p,P+" TV"],[b,D]],[/crkey/i],[[p,qe+"cast"],[g,ut],[b,D]],[/droid.+aft(\w+)( bui|\))/i],[p,[g,E],[b,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[g,wt],[b,D]],[/(bravia[\w ]+)( bui|\))/i],[p,[g,ct],[b,D]],[/(mitv-\w{5}) bui/i],[p,[g,$e],[b,D]],[/Hbbtv.*(technisat) (.*);/i],[g,p,[b,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Hn],[p,Hn],[b,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,D]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,p,[b,k]],[/droid.+; (shield) bui/i],[p,[g,"Nvidia"],[b,k]],[/(playstation [345portablevi]+)/i],[p,[g,ct],[b,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[g,ft],[b,k]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[p,[g,Ie],[b,I]],[/((pebble))app/i],[g,p,[b,I]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[g,P],[b,I]],[/droid.+; (glass) \d/i],[p,[g,ut],[b,I]],[/droid.+; (wt63?0{2,3})\)/i],[p,[g,pt],[b,I]],[/droid.+; (glass) \d/i],[p,[g,ut],[b,I]],[/(pico) (4|neo3(?: link|pro)?)/i],[g,p,[b,I]],[/; (quest( \d| pro)?)/i],[p,[g,be],[b,I]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[b,j]],[/(aeobc)\b/i],[p,[g,E],[b,j]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[b,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[b,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,v]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[S,[x,rt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[x,S],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[S,[x,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[x,S],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[S,x]],os:[[/microsoft (windows) (vista|xp)/i],[x,S],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[x,[
vendor: 4,720 bytes, lines 15-22
15S,an,Wn]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[S,an,Wn],[x,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[S,/_/g,"."],[x,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[x,_e],[S,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[S,x],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[x,S],[/\(bb(10);/i],[S,[x,$]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[S,[x,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[S,[x,Me+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[S,[x,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[S,[x,"watchOS"]],[/crkey\/([\d\.]+)/i],[S,[x,qe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[x,Zt],S],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[x,S],[/(sunos) ?([\w\.\d]*)/i],[[x,"Solaris"],S],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[x,S]]},Qe=function(me,xe){if(typeof me===l&&(xe=me,me=r),!(this instanceof Qe))return new Qe(me,xe).getResult();var we=typeof n!==c&&n.navigator?n.navigator:r,Be=me||(we&&we.userAgent?we.userAgent:s),Ot=we&&we.userAgentData?we.userAgentData:r,At=xe?gn(On,xe):On,Ee=we&&we.userAgent==Be;return this.getBrowser=function(){var ge={};return ge[x]=r,ge[S]=r,Ht.call(ge,Be,At.browser),ge[y]=jn(ge[S]),Ee&&we&&we.brave&&typeof we.brave.isBrave==a&&(ge[x]="Brave"),ge},this.getCPU=function(){var ge={};return ge[O]=r,Ht.call(ge,Be,At.cpu),ge},this.getDevice=function(){var ge={};return ge[g]=r,ge[p]=r,ge[b]=r,Ht.call(ge,Be,At.device),Ee&&!ge[b]&&Ot&&Ot.mobile&&(ge[b]=v),Ee&&ge[p]=="Macintosh"&&we&&typeof we.standalone!==c&&we.maxTouchPoints&&we.maxTouchPoints>2&&(ge[p]="iPad",ge[b]=w),ge},this.getEngine=function(){var ge={};return ge[x]=r,ge[S]=r,Ht.call(ge,Be,At.engine),ge},this.getOS=function(){var ge={};return ge[x]=r,ge[S]=r,Ht.call(ge,Be,At.os),Ee&&!ge[x]&&Ot&&Ot.platform&&Ot.platform!="Unknown"&&(ge[x]=Ot.platform.replace(/chrome os/i,Zt).replace(/macos/i,_e)),ge},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Be},this.setUA=function(ge){return Be=typeof ge===d&&ge.length>C?Hn(ge,C):ge,this},this.setUA(Be),this};Qe.VERSION=i,Qe.BROWSER=Ge([x,S,y]),Qe.CPU=Ge([O]),Qe.DEVICE=Ge([p,g,b,k,v,D,w,I,j]),Qe.ENGINE=Qe.OS=Ge([x,S]),t.exports&&(e=t.exports=Qe),e.UAParser=Qe;var Lt=typeof n!==c&&(n.jQuery||n.Zepto);if(Lt&&!Lt.ua){var un=new Qe;Lt.ua=un.getResult(),Lt.ua.get=function(){return un.getUA()},Lt.ua.set=function(me){un.setUA(me);var xe=un.getResult();for(var we in xe)Lt.ua[we]=xe[we]}}})(typeof window=="object"?window:Jm)}(Uo,Uo.exports)),Uo.exports}var tg=eg();const k_=_u(tg);var Tf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license
16Copyright The Closure Library Authors.
17SPDX-License-Identifier: Apache-2.0
18*/var ng,rg;(function(){var t;/** @license
19
20 Copyright The Closure Library Authors.
21 SPDX-License-Identifier: Apache-2.0
22*/function e(j,C){function E(){}E.prototype=C.prototype,j.D=C.prototype,j.prototype=new E,j.prototype.constructor=j,j.C=function(P,L,$){for(var M=Array(arguments.length-2),qe=2;qe<arguments.length;qe++)M[qe-2]=arguments[qe];return C.prototype[L].apply(P,M)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(r,n),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function i(j,C,E){E||(E=0);var P=Array(16);if(typeof C=="string")for(var L=0;16>L;
vendor: 52,886 bytes, lines 22-37
22++L)P[L]=C.charCodeAt(E++)|C.charCodeAt(E++)<<8|C.charCodeAt(E++)<<16|C.charCodeAt(E++)<<24;else for(L=0;16>L;++L)P[L]=C[E++]|C[E++]<<8|C[E++]<<16|C[E++]<<24;C=j.g[0],E=j.g[1],L=j.g[2];var $=j.g[3],M=C+($^E&(L^$))+P[0]+3614090360&4294967295;C=E+(M<<7&4294967295|M>>>25),M=$+(L^C&(E^L))+P[1]+3905402710&4294967295,$=C+(M<<12&4294967295|M>>>20),M=L+(E^$&(C^E))+P[2]+606105819&4294967295,L=$+(M<<17&4294967295|M>>>15),M=E+(C^L&($^C))+P[3]+3250441966&4294967295,E=L+(M<<22&4294967295|M>>>10),M=C+($^E&(L^$))+P[4]+4118548399&4294967295,C=E+(M<<7&4294967295|M>>>25),M=$+(L^C&(E^L))+P[5]+1200080426&4294967295,$=C+(M<<12&4294967295|M>>>20),M=L+(E^$&(C^E))+P[6]+2821735955&4294967295,L=$+(M<<17&4294967295|M>>>15),M=E+(C^L&($^C))+P[7]+4249261313&4294967295,E=L+(M<<22&4294967295|M>>>10),M=C+($^E&(L^$))+P[8]+1770035416&4294967295,C=E+(M<<7&4294967295|M>>>25),M=$+(L^C&(E^L))+P[9]+2336552879&4294967295,$=C+(M<<12&4294967295|M>>>20),M=L+(E^$&(C^E))+P[10]+4294925233&4294967295,L=$+(M<<17&4294967295|M>>>15),M=E+(C^L&($^C))+P[11]+2304563134&4294967295,E=L+(M<<22&4294967295|M>>>10),M=C+($^E&(L^$))+P[12]+1804603682&4294967295,C=E+(M<<7&4294967295|M>>>25),M=$+(L^C&(E^L))+P[13]+4254626195&4294967295,$=C+(M<<12&4294967295|M>>>20),M=L+(E^$&(C^E))+P[14]+2792965006&4294967295,L=$+(M<<17&4294967295|M>>>15),M=E+(C^L&($^C))+P[15]+1236535329&4294967295,E=L+(M<<22&4294967295|M>>>10),M=C+(L^$&(E^L))+P[1]+4129170786&4294967295,C=E+(M<<5&4294967295|M>>>27),M=$+(E^L&(C^E))+P[6]+3225465664&4294967295,$=C+(M<<9&4294967295|M>>>23),M=L+(C^E&($^C))+P[11]+643717713&4294967295,L=$+(M<<14&4294967295|M>>>18),M=E+($^C&(L^$))+P[0]+3921069994&4294967295,E=L+(M<<20&4294967295|M>>>12),M=C+(L^$&(E^L))+P[5]+3593408605&4294967295,C=E+(M<<5&4294967295|M>>>27),M=$+(E^L&(C^E))+P[10]+38016083&4294967295,$=C+(M<<9&4294967295|M>>>23),M=L+(C^E&($^C))+P[15]+3634488961&4294967295,L=$+(M<<14&4294967295|M>>>18),M=E+($^C&(L^$))+P[4]+3889429448&4294967295,E=L+(M<<20&4294967295|M>>>12),M=C+(L^$&(E^L))+P[9]+568446438&4294967295,C=E+(M<<5&4294967295|M>>>27),M=$+(E^L&(C^E))+P[14]+3275163606&4294967295,$=C+(M<<9&4294967295|M>>>23),M=L+(C^E&($^C))+P[3]+4107603335&4294967295,L=$+(M<<14&4294967295|M>>>18),M=E+($^C&(L^$))+P[8]+1163531501&4294967295,E=L+(M<<20&4294967295|M>>>12),M=C+(L^$&(E^L))+P[13]+2850285829&4294967295,C=E+(M<<5&4294967295|M>>>27),M=$+(E^L&(C^E))+P[2]+4243563512&4294967295,$=C+(M<<9&4294967295|M>>>23),M=L+(C^E&($^C))+P[7]+1735328473&4294967295,L=$+(M<<14&4294967295|M>>>18),M=E+($^C&(L^$))+P[12]+2368359562&4294967295,E=L+(M<<20&4294967295|M>>>12),M=C+(E^L^$)+P[5]+4294588738&4294967295,C=E+(M<<4&4294967295|M>>>28),M=$+(C^E^L)+P[8]+2272392833&4294967295,$=C+(M<<11&4294967295|M>>>21),M=L+($^C^E)+P[11]+1839030562&4294967295,L=$+(M<<16&4294967295|M>>>16),M=E+(L^$^C)+P[14]+4259657740&4294967295,E=L+(M<<23&4294967295|M>>>9),M=C+(E^L^$)+P[1]+2763975236&4294967295,C=E+(M<<4&4294967295|M>>>28),M=$+(C^E^L)+P[4]+1272893353&4294967295,$=C+(M<<11&4294967295|M>>>21),M=L+($^C^E)+P[7]+4139469664&4294967295,L=$+(M<<16&4294967295|M>>>16),M=E+(L^$^C)+P[10]+3200236656&4294967295,E=L+(M<<23&4294967295|M>>>9),M=C+(E^L^$)+P[13]+681279174&4294967295,C=E+(M<<4&4294967295|M>>>28),M=$+(C^E^L)+P[0]+3936430074&4294967295,$=C+(M<<11&4294967295|M>>>21),M=L+($^C^E)+P[3]+3572445317&4294967295,L=$+(M<<16&4294967295|M>>>16),M=E+(L^$^C)+P[6]+76029189&4294967295,E=L+(M<<23&4294967295|M>>>9),M=C+(E^L^$)+P[9]+3654602809&4294967295,C=E+(M<<4&4294967295|M>>>28),M=$+(C^E^L)+P[12]+3873151461&4294967295,$=C+(M<<11&4294967295|M>>>21),M=L+($^C^E)+P[15]+530742520&4294967295,L=$+(M<<16&4294967295|M>>>16),M=E+(L^$^C)+P[2]+3299628645&4294967295,E=L+(M<<23&4294967295|M>>>9),M=C+(L^(E|~$))+P[0]+4096336452&4294967295,C=E+(M<<6&4294967295|M>>>26),M=$+(E^(C|~L))+P[7]+1126891415&4294967295,$=C+(M<<10&4294967295|M>>>22),M=L+(C^($|~E))+P[14]+2878612391&4294967295,L=$+(M<<15&4294967295|M>>>17),M=E+($^(L|~C))+P[5]+4237533241&4294967295,E=L+(M<<21&4294967295|M>>>11),M=C+(L^(E|~$))+P[12]+1700485571&4294967295,C=E+(M<<6&4294967295|M>>>26),M=$+(E^(C|~L))+P[3]+2399980690&4294967295,$=C+(M<<10&4294967295|M>>>22),M=L+(C^($|~E))+P[10]+4293915773&4294967295,L=$+(M<<15&4294967295|M>>>17),M=E+($^(L|~C))+P[1]+2240044497&4294967295,E=L+(M<<21&4294967295|M>>>11),M=C+(L^(E|~$))+P[8]+1873313359&4294967295,C=E+(M<<6&4294967295|M>>>26),M=$+(E^(C|~L))+P[15]+4264355552&4294967295,$=C+(M<<10&4294967295|M>>>22),M=L+(C^($|~E))+P[6]+2734768916&4294967295,L=$+(M<<15&4294967295|M>>>17),M=E+($^(L|~C))+P[13]+1309151649&4294967295,E=L+(M<<21&4294967295|M>>>11),M=C+(L^(E|~$))+P[4]+4149444226&4294967295,C=E+(M<<6&4294967295|M>>>26),M=$+(E^(C|~L))+P[11]+3174756917&4294967295,$=C+(M<<10&4294967295|M>>>22),M=L+(C^($|~E))+P[2]+718787259&4294967295,L=$+(M<<15&4294967295|M>>>17),M=E+($^(L|~C))+P[9]+3951481745&4294967295,j.g[0]=j.g[0]+C&4294967295,j.g[1]=j.g[1]+(L+(M<<21&4294967295|M>>>11))&4294967295,j.g[2]=j.g[2]+L&4294967295,j.g[3]=j.g[3]+$&4294967295}r.prototype.u=function(j,C){C===void 0&&(C=j.length);for(var E=C-this.blockSize,P=this.B,L=this.h,$=0;$<C;){if(L==0)for(;$<=E;)i(this,j,$),$+=this.blockSize;if(typeof j=="string"){for(;$<C;)if(P[L++]=j.charCodeAt($++),L==this.blockSize){i(this,P),L=0;break}}else for(;$<C;)if(P[L++]=j[$++],L==this.blockSize){i(this,P),L=0;break}}this.h=L,this.o+=C},r.prototype.v=function(){var j=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);j[0]=128;for(var C=1;C<j.length-8;++C)j[C]=0;var E=8*this.o;for(C=j.length-8;C<j.length;++C)j[C]=E&255,E/=256;for(this.u(j),j=Array(16),C=E=0;4>C;++C)for(var P=0;32>P;P+=8)j[E++]=this.g[C]>>>P&255;return j};function s(j,C){var E=a;return Object.prototype.hasOwnProperty.call(E,j)?E[j]:E[j]=C(j)}function u(j,C){this.h=C;for(var E=[],P=!0,L=j.length-1;0<=L;L--){var $=j[L]|0;P&&$==C||(E[L]=$,P=!1)}this.g=E}var a={};function c(j){return-128<=j&&128>j?s(j,function(C){return new u([C|0],0>C?-1:0)}):new u([j|0],0>j?-1:0)}function l(j){if(isNaN(j)||!isFinite(j))return y;if(0>j)return S(l(-j));for(var C=[],E=1,P=0;j>=E;P++)C[P]=j/E|0,E*=4294967296;return new u(C,0)}function d(j,C){if(j.length==0)throw Error("number format error: empty string");if(C=C||10,2>C||36<C)throw Error("radix out of range: "+C);if(j.charAt(0)=="-")return S(d(j.substring(1),C));if(0<=j.indexOf("-"))throw Error('number format error: interior "-" character');for(var E=l(Math.pow(C,8)),P=y,L=0;L<j.length;L+=8){var $=Math.min(8,j.length-L),M=parseInt(j.substring(L,L+$),C);8>$?($=l(Math.pow(C,$)),P=P.j($).add(l(M))):(P=P.j(E),P=P.add(l(M)))}return P}var y=c(0),p=c(1),x=c(16777216);t=u.prototype,t.m=function(){if(g(this))return-S(this).m();for(var j=0,C=1,E=0;E<this.g.length;E++){var P=this.i(E);j+=(0<=P?P:4294967296+P)*C,C*=4294967296}return j},t.toString=function(j){if(j=j||10,2>j||36<j)throw Error("radix out of range: "+j);if(b(this))return"0";if(g(this))return"-"+S(this).toString(j);for(var C=l(Math.pow(j,6)),E=this,P="";;){var L=w(E,C).g;E=O(E,L.j(C));var $=((0<E.g.length?E.g[0]:E.h)>>>0).toString(j);if(E=L,b(E))return $+P;for(;6>$.length;)$="0"+$;P=$+P}},t.i=function(j){return 0>j?0:j<this.g.length?this.g[j]:this.h};function b(j){if(j.h!=0)return!1;for(var C=0;C<j.g.length;C++)if(j.g[C]!=0)return!1;return!0}function g(j){return j.h==-1}t.l=function(j){return j=O(this,j),g(j)?-1:b(j)?0:1};function S(j){for(var C=j.g.length,E=[],P=0;P<C;P++)E[P]=~j.g[P];return new u(E,~j.h).add(p)}t.abs=function(){return g(this)?S(this):this},t.add=function(j){for(var C=Math.max(this.g.length,j.g.length),E=[],P=0,L=0;L<=C;L++){var $=P+(this.i(L)&65535)+(j.i(L)&65535),M=($>>>16)+(this.i(L)>>>16)+(j.i(L)>>>16);P=M>>>16,$&=65535,M&=65535,E[L]=M<<16|$}return new u(E,E[E.length-1]&-2147483648?-1:0)};function O(j,C){return j.add(S(C))}t.j=function(j){if(b(this)||b(j))return y;if(g(this))return g(j)?S(this).j(S(j)):S(S(this).j(j));if(g(j))return S(this.j(S(j)));if(0>this.l(x)&&0>j.l(x))return l(this.m()*j.m());for(var C=this.g.length+j.g.length,E=[],P=0;P<2*C;P++)E[P]=0;for(P=0;P<this.g.length;P++)for(var L=0;L<j.g.length;L++){var $=this.i(P)>>>16,M=this.i(P)&65535,qe=j.i(L)>>>16,rt=j.i(L)&65535;E[2*P+2*L]+=M*rt,k(E,2*P+2*L),E[2*P+2*L+1]+=$*rt,k(E,2*P+2*L+1),E[2*P+2*L+1]+=M*qe,k(E,2*P+2*L+1),E[2*P+2*L+2]+=$*qe,k(E,2*P+2*L+2)}for(P=0;P<C;P++)E[P]=E[2*P+1]<<16|E[2*P];for(P=C;P<2*C;P++)E[P]=0;return new u(E,0)};function k(j,C){for(;(j[C]&65535)!=j[C];)j[C+1]+=j[C]>>>16,j[C]&=65535,C++}function v(j,C){this.g=j,this.h=C}function w(j,C){if(b(C))throw Error("division by zero");if(b(j))return new v(y,y);if(g(j))return C=w(S(j),C),new v(S(C.g),S(C.h));if(g(C))return C=w(j,S(C)),new v(S(C.g),C.h);if(30<j.g.length){if(g(j)||g(C))throw Error("slowDivide_ only works with positive integers.");for(var E=p,P=C;0>=P.l(j);)E=D(E),P=D(P);var L=I(E,1),$=I(P,1);for(P=I(P,2),E=I(E,2);!b(P);){var M=$.add(P);0>=M.l(j)&&(L=L.add(E),$=M),P=I(P,1),E=I(E,1)}return C=O(j,L.j(C)),new v(L,C)}for(L=y;0<=j.l(C);){for(E=Math.max(1,Math.floor(j.m()/C.m())),P=Math.ceil(Math.log(E)/Math.LN2),P=48>=P?1:Math.pow(2,P-48),$=l(E),M=$.j(C);g(M)||0<M.l(j);)E-=P,$=l(E),M=$.j(C);b($)&&($=p),L=L.add($),j=O(j,M)}return new v(L,j)}t.A=function(j){return w(this,j).h},t.and=function(j){for(var C=Math.max(this.g.length,j.g.length),E=[],P=0;P<C;P++)E[P]=this.i(P)&j.i(P);return new u(E,this.h&j.h)},t.or=function(j){for(var C=Math.max(this.g.length,j.g.length),E=[],P=0;P<C;P++)E[P]=this.i(P)|j.i(P);return new u(E,this.h|j.h)},t.xor=function(j){for(var C=Math.max(this.g.length,j.g.length),E=[],P=0;P<C;P++)E[P]=this.i(P)^j.i(P);return new u(E,this.h^j.h)};function D(j){for(var C=j.g.length+1,E=[],P=0;P<C;P++)E[P]=j.i(P)<<1|j.i(P-1)>>>31;return new u(E,j.h)}function I(j,C){var E=C>>5;C%=32;for(var P=j.g.length-E,L=[],$=0;$<P;$++)L[$]=0<C?j.i($+E)>>>C|j.i($+E+1)<<32-C:j.i($+E);return new u(L,j.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,rg=r,u.prototype.add=u.prototype.add,u.prototype.multiply=u.prototype.j,u.prototype.modulo=u.prototype.A,u.prototype.compare=u.prototype.l,u.prototype.toNumber=u.prototype.m,u.prototype.toString=u.prototype.toString,u.prototype.getBits=u.prototype.i,u.fromNumber=l,u.fromString=d,ng=u}).apply(typeof Tf<"u"?Tf:typeof self<"u"?self:typeof window<"u"?window:{});var Na=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license
23Copyright The Closure Library Authors.
24SPDX-License-Identifier: Apache-2.0
25*/var ig,sg,og,ag,ug,cg,lg,fg;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(o,f,m){return o==Array.prototype||o==Object.prototype||(o[f]=m.value),o};function n(o){o=[typeof globalThis=="object"&&globalThis,o,typeof window=="object"&&window,typeof self=="object"&&self,typeof Na=="object"&&Na];for(var f=0;f<o.length;++f){var m=o[f];if(m&&m.Math==Math)return m}throw Error("Cannot find global object")}var r=n(this);function i(o,f){if(f)e:{var m=r;o=o.split(".");for(var T=0;T<o.length-1;T++){var q=o[T];if(!(q in m))break e;m=m[q]}o=o[o.length-1],T=m[o],f=f(T),f!=T&&f!=null&&e(m,o,{configurable:!0,writable:!0,value:f})}}function s(o,f){o instanceof String&&(o+="");var m=0,T=!1,q={next:function(){if(!T&&m<o.length){var z=m++;return{value:f(z,o[z]),done:!1}}return T=!0,{done:!0,value:void 0}}};return q[Symbol.iterator]=function(){return q},q}i("Array.prototype.values",function(o){return o||function(){return s(this,function(f,m){return m})}});/** @license
26
27 Copyright The Closure Library Authors.
28 SPDX-License-Identifier: Apache-2.0
29*/var u=u||{},a=this||self;function c(o){var f=typeof o;return f=f!="object"?f:o?Array.isArray(o)?"array":f:"null",f=="array"||f=="object"&&typeof o.length=="number"}function l(o){var f=typeof o;return f=="object"&&o!=null||f=="function"}function d(o,f,m){return o.call.apply(o.bind,arguments)}function y(o,f,m){if(!o)throw Error();if(2<arguments.length){var T=Array.prototype.slice.call(arguments,2);return function(){var q=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(q,T),o.apply(f,q)}}return function(){return o.apply(f,arguments)}}function p(o,f,m){return p=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?d:y,p.apply(null,arguments)}function x(o,f){var m=Array.prototype.slice.call(arguments,1);return function(){var T=m.slice();return T.push.apply(T,arguments),o.apply(this,T)}}function b(o,f){function m(){}m.prototype=f.prototype,o.aa=f.prototype,o.prototype=new m,o.prototype.constructor=o,o.Qb=function(T,q,z){for(var K=Array(arguments.length-2),tt=2;tt<arguments.length;tt++)K[tt-2]=arguments[tt];return f.prototype[q].apply(T,K)}}function g(o){const f=o.length;if(0<f){const m=Array(f);for(let T=0;T<f;T++)m[T]=o[T];return m}return[]}function S(o,f){for(let m=1;m<arguments.length;m++){const T=arguments[m];if(c(T)){const q=o.length||0,z=T.length||0;o.length=q+z;for(let K=0;K<z;K++)o[q+K]=T[K]}else o.push(T)}}class O{constructor(f,m){this.i=f,this.j=m,this.h=0,this.g=null}get(){let f;return 0<this.h?(this.h--,f=this.g,this.g=f.next,f.next=null):f=this.i(),f}}function k(o){return/^[\s\xa0]*$/.test(o)}function v(){var o=a.navigator;return o&&(o=o.userAgent)?o:""}function w(o){return w[" "](o),o}w[" "]=function(){};var D=v().indexOf("Gecko")!=-1&&!(v().toLowerCase().indexOf("webkit")!=-1&&v().indexOf("Edge")==-1)&&!(v().indexOf("Trident")!=-1||v().indexOf("MSIE")!=-1)&&v().indexOf("Edge")==-1;function I(o,f,m){for(const T in o)f.call(m,o[T],T,o)}function j(o,f){for(const m in o)f.call(void 0,o[m],m,o)}function C(o){const f={};for(const m in o)f[m]=o[m];return f}const E="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function P(o,f){let m,T;for(let q=1;q<arguments.length;q++){T=arguments[q];for(m in T)o[m]=T[m];for(let z=0;z<E.length;z++)m=E[z],Object.prototype.hasOwnProperty.call(T,m)&&(o[m]=T[m])}}function L(o){var f=1;o=o.split(":");const m=[];for(;0<f&&o.length;)m.push(o.shift()),f--;return o.length&&m.push(o.join(":")),m}function $(o){a.setTimeout(()=>{throw o},0)}function M(){var o=vt;let f=null;return o.g&&(f=o.g,o.g=o.g.next,o.g||(o.h=null),f.next=null),f}class qe{constructor(){this.h=this.g=null}add(f,m){const T=rt.get();T.set(f,m),this.h?this.h.next=T:this.g=T,this.h=T}}var rt=new O(()=>new Me,o=>o.reset());class Me{constructor(){this.next=this.g=this.h=null}set(f,m){this.h=f,this.g=m,this.next=null}reset(){this.next=this.g=this.h=null}}let ut,zt=!1,vt=new qe,ft=()=>{const o=a.Promise.resolve(void 0);ut=()=>{o.then(Yt)}};var Yt=()=>{for(var o;o=M();){try{o.h.call(o.g)}catch(m){$(m)}var f=rt;f.j(o),100>f.h&&(f.h++,o.next=f.g,f.g=o)}zt=!1};function Tt(){this.s=this.s,this.C=this.C}Tt.prototype.s=!1,Tt.prototype.ma=function(){this.s||(this.s=!0,this.N())},Tt.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function Ie(o,f){this.type=o,this.g=this.target=f,this.defaultPrevented=!1}Ie.prototype.h=function(){this.defaultPrevented=!0};var wt=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var o=!1,f=Object.defineProperty({},"passive",{get:function(){o=!0}});try{const m=()=>{};a.addEventListener("test",m,f),a.removeEventListener("test",m,f)}catch{}return o}();function ct(o,f){if(Ie.call(this,o?o.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,o){var m=this.type=o.type,T=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:null;if(this.target=o.target||o.srcElement,this.g=f,f=o.relatedTarget){if(D){e:{try{w(f.nodeName);var q=!0;break e}catch{}q=!1}q||(f=null)}}else m=="mouseover"?f=o.fromElement:m=="mouseout"&&(f=o.toElement);this.relatedTarget=f,T?(this.clientX=T.clientX!==void 0?T.clientX:T.pageX,this.clientY=T.clientY!==void 0?T.clientY:T.pageY,this.screenX=T.screenX||0,this.screenY=T.screenY||0):(this.clientX=o.clientX!==void 0?o.clientX:o.pageX,this.clientY=o.clientY!==void 0?o.clientY:o.pageY,this.screenX=o.screenX||0,this.screenY=o.screenY||0),this.button=o.button,this.key=o.key||"",this.ctrlKey=o.ctrlKey,this.altKey=o.altKey,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.pointerId=o.pointerId||0,this.pointerType=typeof o.pointerType=="string"?o.pointerType:$e[o.pointerType]||"",this.state=o.state,this.i=o,o.defaultPrevented&&ct.aa.h.call(this)}}b(ct,Ie);var $e={2:"touch",3:"pen",4:"mouse"};ct.prototype.h=function(){ct.aa.h.call(this);var o=this.i;o.preventDefault?o.preventDefault():o.returnValue=!1};var pt="closure_listenable_"+(1e6*Math.random()|0),be=0;function Zt(o,f,m,T,q){this.listener=o,this.proxy=null,this.src=f,this.type=m,this.capture=!!T,this.ha=q,this.key=++be,this.da=this.fa=!1}function _e(o){o.da=!0,o.listener=null,o.proxy=null,o.src=null,o.ha=null}function bt(o){this.src=o,this.g={},this.h=0}bt.prototype.add=function(o,f,m,T,q){var z=o.toString();o=this.g[z],o||(o=this.g[z]=[],this.h++);var K=Ge(o,f,T,q);return-1<K?(f=o[K],m||(f.fa=!1)):(f=new Zt(f,this.src,z,!!T,q),f.fa=m,o.push(f)),f};function gn(o,f){var m=f.type;if(m in o.g){var T=o.g[m],q=Array.prototype.indexOf.call(T,f,void 0),z;(z=0<=q)&&Array.prototype.splice.call(T,q,1),z&&(_e(f),o.g[m].length==0&&(delete o.g[m],o.h--))}}function Ge(o,f,m,T){for(var q=0;q<o.length;++q){var z=o[q];if(!z.da&&z.listener==f&&z.capture==!!m&&z.ha==T)return q}return-1}var Pt="closure_lm_"+(1e6*Math.random()|0),Kt={};function jn(o,f,m,T,q){if(Array.isArray(f)){for(var z=0;z<f.length;z++)jn(o,f[z],m,T,q);return null}return m=un(m),o&&o[pt]?o.K(f,m,l(T)?!!T.capture:!1,q):Hn(o,f,m,!1,T,q)}function Hn(o,f,m,T,q,z){if(!f)throw Error("Invalid event type");var K=l(q)?!!q.capture:!!q,tt=Qe(o);if(tt||(o[Pt]=tt=new bt(o)),m=tt.add(f,m,T,K,z),m.proxy)return m;if(T=Ht(),m.proxy=T,T.src=o,T.listener=m,o.addEventListener)wt||(q=K),q===void 0&&(q=!1),o.addEventListener(f.toString(),T,q);else if(o.attachEvent)o.attachEvent(Wn(f.toString()),T);else if(o.addListener&&o.removeListener)o.addListener(T);else throw Error("addEventListener and attachEvent are unavailable.");return m}function Ht(){function o(m){return f.call(o.src,o.listener,m)}const f=On;return o}function an(o,f,m,T,q){if(Array.isArray(f))for(var z=0;z<f.length;z++)an(o,f[z],m,T,q);else T=l(T)?!!T.capture:!!T,m=un(m),o&&o[pt]?(o=o.i,f=String(f).toString(),f in o.g&&(z=o.g[f],m=Ge(z,m,T,q),-1<m&&(_e(z[m]),Array.prototype.splice.call(z,m,1),z.length==0&&(delete o.g[f],o.h--)))):o&&(o=Qe(o))&&(f=o.g[f.toString()],o=-1,f&&(o=Ge(f,m,T,q)),(m=-1<o?f[o]:null)&&Wt(m))}function Wt(o){if(typeof o!="number"&&o&&!o.da){var f=o.src;if(f&&f[pt])gn(f.i,o);else{var m=o.type,T=o.proxy;f.removeEventListener?f.removeEventListener(m,T,o.capture):f.detachEvent?f.detachEvent(Wn(m),T):f.addListener&&f.removeListener&&f.removeListener(T),(m=Qe(f))?(gn(m,o),m.h==0&&(m.src=null,f[Pt]=null)):_e(o)}}}function Wn(o){return o in Kt?Kt[o]:Kt[o]="on"+o}function On(o,f){if(o.da)o=!0;else{f=new ct(f,this);var m=o.listener,T=o.ha||o.src;o.fa&&Wt(o),o=m.call(T,f)}return o}function Qe(o){return o=o[Pt],o instanceof bt?o:null}var Lt="__closure_events_fn_"+(1e9*Math.random()>>>0);function un(o){return typeof o=="function"?o:(o[Lt]||(o[Lt]=function(f){return o.handleEvent(f)}),o[Lt])}function me(){Tt.call(this),this.i=new bt(this),this.M=this,this.F=null}b(me,Tt),me.prototype[pt]=!0,me.prototype.removeEventListener=function(o,f,m,T){an(this,o,f,m,T)};function xe(o,f){var m,T=o.F;if(T)for(m=[];T;T=T.F)m.push(T);if(o=o.M,T=f.type||f,typeof f=="string")f=new Ie(f,o);else if(f instanceof Ie)f.target=f.target||o;else{var q=f;f=new Ie(T,o),P(f,q)}if(q=!0,m)for(var z=m.length-1;0<=z;z--){var K=f.g=m[z];q=we(K,T,!0,f)&&q}if(K=f.g=o,q=we(K,T,!0,f)&&q,q=we(K,T,!1,f)&&q,m)for(z=0;z<m.length;z++)K=f.g=m[z],q=we(K,T,!1,f)&&q}me.prototype.N=function(){if(me.aa.N.call(this),this.i){var o=this.i,f;for(f in o.g){for(var m=o.g[f],T=0;T<m.length;T++)_e(m[T]);delete o.g[f],o.h--}}this.F=null},me.prototype.K=function(o,f,m,T){return this.i.add(String(o),f,!1,m,T)},me.prototype.L=function(o,f,m,T){return this.i.add(String(o),f,!0,m,T)};function we(o,f,m,T){if(f=o.i.g[String(f)],!f)return!0;f=f.concat();for(var q=!0,z=0;z<f.length;++z){var K=f[z];if(K&&!K.da&&K.capture==m){var tt=K.listener,nt=K.ha||K.src;K.fa&&gn(o.i,K),q=tt.call(nt,T)!==!1&&q}}return q&&!T.defaultPrevented}function Be(o,f,m){if(typeof o=="function")m&&(o=p(o,m));else if(o&&typeof o.handleEvent=="function")o=p(o.handleEvent,o);else throw Error("Invalid listener argument");return 2147483647<Number(f)?-1:a.setTimeout(o,f||0)}function Ot(o){o.g=Be(()=>{o.g=null,o.i&&(o.i=!1,Ot(o))},o.l);const f=o.h;o.h=null,o.m.apply(null,f)}class At extends Tt{constructor(f,m){super(),this.m=f,this.l=m,this.h=null,this.i=!1,this.g=null}j(f){this.h=arguments,this.g?this.i=!0:Ot(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Ee(o){Tt.call(this),this.h=o,this.g={}}b(Ee,Tt);var ge=[];function Vt(o){I(o.g,function(f,m){this.g.hasOwnProperty(m)&&Wt(f)},o),o.g={}}Ee.prototype.N=function(){Ee.aa.N.call(this),Vt(this)},Ee.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var An=a.JSON.stringify,Vn=a.JSON.parse,ms=class{stringify(o){return a.JSON.stringify(o,void 0)}parse(o){return a.JSON.parse(o,void 0)}};function Yn(){}Yn.prototype.h=null;function Sr(o){return o.h||(o.h=o.i())}function Qt(){}var xt={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function or(){Ie.call(this,"d")}b(or,Ie);function Xt(){Ie.call(this,"c")}b(Xt,Ie);var ar={},ur=null;function jt(){return ur=ur||new me}ar.La="serverreachability";function Si(o){Ie.call(this,ar.La,o)}b(Si,Ie);function Cn(o){const f=jt();xe(f,new Si(f))}ar.STAT_EVENT="statevent";function Ei(o,f){Ie.call(this,ar.STAT_EVENT,o),this.stat=f}b(Ei,Ie);function Ct(o){const f=jt();xe(f,new Ei(f,o))}ar.Ma="timingevent";function at(o,f){Ie.call(this,ar.Ma,o),this.size=f}b(at,Ie);function Jt(o,f){if(typeof o!="function")throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){o()},f)}function Er(){this.g=!0}Er.prototype.xa=function(){this.g=!1};function Qr(o,f,m,T,q,z){o.info(function(){if(o.g)if(z)for(var K="",tt=z.split("&"),nt=0;nt<tt.length;nt++){var Pe=tt[nt].split("=");if(1<Pe.length){var yt=Pe[0];Pe=Pe[1];var ht=yt.split("_");K=2<=ht.length&&ht[1]=="type"?K+(yt+"="+Pe+"&"):K+(yt+"=redacted&")}}else K=null;else K=z;return"XMLHTTP REQ ("+T+") [attempt "+q+"]: "+f+`
30`+m+`
31`+K})}function Tr(o,f,m,T,q,z,K){o.info(function(){return"XMLHTTP RESP ("+T+") [ attempt "+q+"]: "+f+`
32`+m+`
33`+z+" "+K})}function Zn(o,f,m,T){o.info(function(){return"XMLHTTP TEXT ("+f+"): "+gs(o,m)+(T?" "+T:"")})}function Ti(o,f){o.info(function(){return"TIMEOUT: "+f})}Er.prototype.info=function(){};function gs(o,f){if(!o.g)return f;if(!f)return null;try{var m=JSON.parse(f);if(m){for(o=0;o<m.length;o++)if(Array.isArray(m[o])){var T=m[o];if(!(2>T.length)){var q=T[1];if(Array.isArray(q)&&!(1>q.length)){var z=q[0];if(z!="noop"&&z!="stop"&&z!="close")for(var K=1;K<q.length;K++)q[K]=""}}}}return An(m)}catch{return f}}var Ft={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},kn={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},$r;function Or(){}b(Or,Yn),Or.prototype.g=function(){return new XMLHttpRequest},Or.prototype.i=function(){return{}},$r=new Or;function In(o,f,m,T){this.j=o,this.i=f,this.l=m,this.R=T||1,this.U=new Ee(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Gn}function Gn(){this.i=null,this.g="",this.h=!1}var Kn={},cr={};function en(o,f,m){o.L=1,o.v=ki(Mt(f)),o.m=m,o.P=!0,Fn(o,null)}function Fn(o,f){o.F=Date.now(),dt(o),o.A=Mt(o.v);var m=o.A,T=o.R;Array.isArray(T)||(T=[String(T)]),xo(m.i,"t",T),o.C=0,m=o.j.J,o.h=new Gn,o.g=he(o.j,m?f:null,!o.m),0<o.O&&(o.M=new At(p(o.Y,o,o.g),o.O)),f=o.U,m=o.g,T=o.ca;var q="readystatechange";Array.isArray(q)||(q&&(ge[0]=q.toString()),q=ge);for(var z=0;z<q.length;z++){var K=jn(m,q[z],T||f.handleEvent,!1,f.h||f);if(!K)break;f.g[K.key]=K}f=o.H?C(o.H):{},o.m?(o.u||(o.u="POST"),f["Content-Type"]="application/x-www-form-urlencoded",o.g.ea(o.A,o.u,o.m,f)):(o.u="GET",o.g.ea(o.A,o.u,null,f)),Cn(),Qr(o.i,o.u,o.A,o.l,o.R,o.m)}In.prototype.ca=function(o){o=o.target;const f=this.M;f&&hr(o)==3?f.j():this.Y(o)},In.prototype.Y=function(o){try{if(o==this.g)e:{const ht=hr(this.g);var f=this.g.Ba();const nn=this.g.Z();if(!(3>ht)&&(ht!=3||this.g&&(this.h.h||this.g.oa()||xs(this.g)))){this.J||ht!=4||f==7||(f==8||0>=nn?Cn(3):Cn(2)),mt(this);var m=this.g.Z();this.X=m;t:if(Oi(this)){var T=xs(this.g);o="";var q=T.length,z=hr(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){ne(this),kt(this);var K="";break t}this.h.i=new a.TextDecoder}for(f=0;f<q;f++)this.h.h=!0,o+=this.h.i.decode(T[f],{stream:!(z&&f==q-1)});T.length=0,this.h.g+=o,this.C=0,K=this.h.g}else K=this.g.oa();if(this.o=m==200,Tr(this.i,this.u,this.A,this.l,this.R,ht,m),this.o){if(this.T&&!this.K){t:{if(this.g){var tt,nt=this.g;if((tt=nt.g?nt.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!k(tt)){var Pe=tt;break t}}Pe=null}if(m=Pe)Zn(this.i,this.l,m,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,R(this,m);else{this.o=!1,this.s=3,Ct(12),ne(this),kt(this);break e}}if(this.P){m=!0;let Ut;for(;!this.J&&this.C<K.length;)if(Ut=Gt(this,K),Ut==cr){ht==4&&(this.s=4,Ct(14),m=!1),Zn(this.i,this.l,null,"[Incomplete Response]");break}else if(Ut==Kn){this.s=4,Ct(15),Zn(this.i,this.l,K,"[Invalid Chunk]"),m=!1;break}else Zn(this.i,this.l,Ut,null),R(this,Ut);if(Oi(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),ht!=4||K.length!=0||this.h.h||(this.s=1,Ct(16),m=!1),this.o=this.o&&m,!m)Zn(this.i,this.l,K,"[Invalid Chunked Response]"),ne(this),kt(this);else if(0<K.length&&!this.W){this.W=!0;var yt=this.j;yt.g==this&&yt.ba&&!yt.M&&(yt.j.info("Great, no buffering proxy detected. Bytes received: "+K.length),V(yt),yt.M=!0,Ct(11))}}else Zn(this.i,this.l,K,null),R(this,K);ht==4&&ne(this),this.o&&!this.J&&(ht==4?G(this.j,this):(this.o=!1,dt(this)))}else zr(this.g),m==400&&0<K.indexOf("Unknown SID")?(this.s=3,Ct(12)):(this.s=0,Ct(13)),ne(this),kt(this)}}}catch{}finally{}};function Oi(o){return o.g?o.u=="GET"&&o.L!=2&&o.j.Ca:!1}function Gt(o,f){var m=o.C,T=f.indexOf(`
34`,m);return T==-1?cr:(m=Number(f.substring(m,T)),isNaN(m)?Kn:(T+=1,T+m>f.length?cr:(f=f.slice(T,T+m),o.C=T+m,f)))}In.prototype.cancel=function(){this.J=!0,ne(this)};function dt(o){o.S=Date.now()+o.I,Ce(o,o.I)}function Ce(o,f){if(o.B!=null)throw Error("WatchDog timer not null");o.B=Jt(p(o.ba,o),f)}function mt(o){o.B&&(a.clearTimeout(o.B),o.B=null)}In.prototype.ba=function(){this.B=null;const o=Date.now();0<=o-this.S?(Ti(this.i,this.A),this.L!=2&&(Cn(),Ct(17)),ne(this),this.s=2,kt(this)):Ce(this,this.S-o)};function kt(o){o.j.G==0||o.J||G(o.j,o)}function ne(o){mt(o);var f=o.M;f&&typeof f.ma=="function"&&f.ma(),o.M=null,Vt(o.U),o.g&&(f=o.g,o.g=null,f.abort(),f.ma())}function R(o,f){try{var m=o.j;if(m.G!=0&&(m.g==o||He(m.h,o))){if(!o.K&&He(m.h,o)&&m.G==3){try{var T=m.Da.g.parse(f)}catch{T=null}if(Array.isArray(T)&&T.length==3){var q=T;if(q[0]==0){e:if(!m.u){if(m.g)if(m.g.F+3e3<o.F)ze(m),A(m);else break e;Q(m),Ct(18)}}else m.za=q[1],0<m.za-m.T&&37500>q[2]&&m.F&&m.v==0&&!m.C&&(m.C=Jt(p(m.Za,m),6e3));if(1>=ke(m.h)&&m.ca){try{m.ca()}catch{}m.ca=void 0}}else Re(m,11)}else if((o.K||m.g==o)&&ze(m),!k(f))for(q=m.Da.g.parse(f),f=0;f<q.length;f++){let Pe=q[f];if(m.T=Pe[0],Pe=Pe[1],m.G==2)if(Pe[0]=="c"){m.K=Pe[1],m.ia=Pe[2];const yt=Pe[3];yt!=null&&(m.la=yt,m.j.info("VER="+m.la));const ht=Pe[4];ht!=null&&(m.Aa=ht,m.j.info("SVER="+m.Aa));const nn=Pe[5];nn!=null&&typeof nn=="number"&&0<nn&&(T=1.5*nn,m.L=T,m.j.info("backChannelRequestTimeoutMs_="+T)),T=m;const Ut=o.g;if(Ut){const cn=Ut.g?Ut.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(cn){var z=T.h;z.g||cn.indexOf("spdy")==-1&&cn.indexOf("quic")==-1&&cn.indexOf("h2")==-1||(z.j=z.l,z.g=new Set,z.h&&(st(z,z.h),z.h=null))}if(T.D){const yn=Ut.g?Ut.g.getResponseHeader("X-HTTP-Session-Id"):null;yn&&(T.ya=yn,Je(T.I,T.D,yn))}}m.G=3,m.l&&m.l.ua(),m.ba&&(m.R=Date.now()-o.F,m.j.info("Handshake RTT: "+m.R+"ms")),T=m;var K=o;if(T.qa=de(T,T.J?T.ia:null,T.W),K.K){Dt(T.h,K);var tt=K,nt=T.L;nt&&(tt.I=nt),tt.B&&(mt(tt),dt(tt)),T.g=K}else fe(T);0<m.i.length&&U(m)}else Pe[0]!="stop"&&Pe[0]!="close"||Re(m,7);else m.G==3&&(Pe[0]=="stop"||Pe[0]=="close"?Pe[0]=="stop"?Re(m,7):_(m):Pe[0]!="noop"&&m.l&&m.l.ta(Pe),m.v=0)}}Cn(4)}catch{}}var H=class{constructor(o,f){this.g=o,this.map=f}};function J(o){this.l=o||10,a.PerformanceNavigationTiming?(o=a.performance.getEntriesByType("navigation"),o=0<o.length&&(o[0].nextHopProtocol=="hq"||o[0].nextHopProtocol=="h2")):o=!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=o?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function je(o){return o.h?!0:o.g?o.g.size>=o.j:!1}function ke(o){return o.h?1:o.g?o.g.size:0}function He(o,f){return o.h?o.h==f:o.g?o.g.has(f):!1}function st(o,f){o.g?o.g.add(f):o.h=f}function Dt(o,f){o.h&&o.h==f?o.h=null:o.g&&o.g.has(f)&&o.g.delete(f)}J.prototype.cancel=function(){if(this.i=$t(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const o of this.g.values())o.cancel();this.g.clear()}};function $t(o){if(o.h!=null)return o.i.concat(o.h.D);if(o.g!=null&&o.g.size!==0){let f=o.i;for(const m of o.g.values())f=f.concat(m.D);return f}return g(o.i)}function Ze(o){if(o.V&&typeof o.V=="function")return o.V();if(typeof Map<"u"&&o instanceof Map||typeof Set<"u"&&o instanceof Set)return Array.from(o.values());if(typeof o=="string")return o.split("");if(c(o)){for(var f=[],m=o.length,T=0;T<m;T++)f.push(o[T]);return f}f=[],m=0;for(T in o)f[m++]=o[T];return f}function Xe(o){if(o.na&&typeof o.na=="function")return o.na();if(!o.V||typeof o.V!="function"){if(typeof Map<"u"&&o instanceof Map)return Array.from(o.keys());if(!(typeof Set<"u"&&o instanceof Set)){if(c(o)||typeof o=="string"){var f=[];o=o.length;for(var m=0;m<o;m++)f.push(m);return f}f=[],m=0;for(const T in o)f[m++]=T;return f}}}function lr(o,f){if(o.forEach&&typeof o.forEach=="function")o.forEach(f,void 0);else if(c(o)||typeof o=="string")Array.prototype.forEach.call(o,f,void 0);else for(var m=Xe(o),T=Ze(o),q=T.length,z=0;z<q;z++)f.call(void 0,T[z],m&&m[z],o)}var Ur=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function $u(o,f){if(o){o=o.split("&");for(var m=0;m<o.length;m++){var T=o[m].indexOf("="),q=null;if(0<=T){var z=o[m].substring(0,T);q=o[m].substring(T+1)}else z=o[m];f(z,q?decodeURIComponent(q.replace(/\+/g," ")):"")}}}function $n(o){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,o instanceof $n){this.h=o.h,Ai(this,o.j),this.o=o.o,this.g=o.g,Ci(this,o.s),this.l=o.l;var f=o.i,m=new qr;m.i=f.i,f.g&&(m.g=new Map(f.g),m.h=f.h),go(this,m),this.m=o.m}else o&&(f=String(o).match(Ur))?(this.h=!1,Ai(this,f[1]||"",!0),this.o=Xr(f[2]||""),this.g=Xr(f[3]||"",!0),Ci(this,f[4]),this.l=Xr(f[5]||"",!0),go(this,f[6]||"",!0),this.m=Xr(f[7]||"")):(this.h=!1,this.i=new qr(null,this.h))}$n.prototype.toString=function(){var o=[],f=this.j;f&&o.push(Nt(f,yo,!0),":");var m=this.g;return(m||f=="file")&&(o.push("//"),(f=this.o)&&o.push(Nt(f,yo,!0),"@"),o.push(encodeURIComponent(String(m)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m=this.s,m!=null&&o.push(":",String(m))),(m=this.l)&&(this.g&&m.charAt(0)!="/"&&o.push("/"),o.push(Nt(m,m.charAt(0)=="/"?Bu:qu,!0))),(m=this.i.toString())&&o.push("?",m),(m=this.m)&&o.push("#",Nt(m,vo)),o.join("")};function Mt(o){return new $n(o)}function Ai(o,f,m){o.j=m?Xr(f,!0):f,o.j&&(o.j=o.j.replace(/:$/,""))}function Ci(o,f){if(f){if(f=Number(f),isNaN(f)||0>f)throw Error("Bad port number "+f);o.s=f}else o.s=null}function go(o,f,m){f instanceof qr?(o.i=f,ys(o.i,o.h)):(m||(f=Nt(f,zu)),o.i=new qr(f,o.h))}function Je(o,f,m){o.i.set(f,m)}function ki(o){return Je(o,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),o}function Xr(o,f){return o?f?decodeURI(o.replace(/%25/g,"%2525")):decodeURIComponent(o):""}function Nt(o,f,m){return typeof o=="string"?(o=encodeURI(o).replace(f,Uu),m&&(o=o.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),o):null}function Uu(o){return o=o.charCodeAt(0),"%"+(o>>4&15).toString(16)+(o&15).toString(16)}var yo=/[#\/\?@]/g,qu=/[#\?:]/g,Bu=/[#\?]/g,zu=/[#\?@]/g,vo=/#/g;function qr(o,f){this.h=this.g=null,this.i=o||null,this.j=!!f}function fr(o){o.g||(o.g=new Map,o.h=0,o.i&&$u(o.i,function(f,m){o.add(decodeURIComponent(f.replace(/\+/g," ")),m)}))}t=qr.prototype,t.add=function(o,f){fr(this),this.i=null,o=Br(this,o);var m=this.g.get(o);return m||this.g.set(o,m=[]),m.push(f),this.h+=1,this};function Ii(o,f){fr(o),f=Br(o,f),o.g.has(f)&&(o.i=null,o.h-=o.g.get(f).length,o.g.delete(f))}function bo(o,f){return fr(o),f=Br(o,f),o.g.has(f)}t.forEach=function(o,f){fr(this),this.g.forEach(function(m,T){m.forEach(function(q){o.call(f,q,T,this)},this)},this)},t.na=function(){fr(this);const o=Array.from(this.g.values()),f=Array.from(this.g.keys()),m=[];for(let T=0;T<f.length;T++){const q=o[T];for(let z=0;z<q.length;z++)m.push(f[T])}return m},t.V=function(o){fr(this);let f=[];if(typeof o=="string")bo(this,o)&&(f=f.concat(this.g.get(Br(this,o))));else{o=Array.from(this.g.values());for(let m=0;m<o.length;m++)f=f.concat(o[m])}return f},t.set=function(o,f){return fr(this),this.i=null,o=Br(this,o),bo(this,o)&&(this.h-=this.g.get(o).length),this.g.set(o,[f]),this.h+=1,this},t.get=function(o,f){return o?(o=this.V(o),0<o.length?String(o[0]):f):f};function xo(o,f,m){Ii(o,f),0<m.length&&(o.i=null,o.g.set(Br(o,f),g(m)),o.h+=m.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const o=[],f=Array.from(this.g.keys());for(var m=0;m<f.length;m++){var T=f[m];const z=encodeURIComponent(String(T)),K=this.V(T);for(T=0;T<K.length;T++){var q=z;K[T]!==""&&(q+="="+encodeURIComponent(String(K[T]))),o.push(q)}}return this.i=o.join("&")};function Br(o,f){return f=String(f),o.j&&(f=f.toLowerCase()),f}function ys(o,f){f&&!o.j&&(fr(o),o.i=null,o.g.forEach(function(m,T){var q=T.toLowerCase();T!=q&&(Ii(this,T),xo(this,q,m))},o)),o.j=f}function _a(o,f){const m=new Er;if(a.Image){const T=new Image;T.onload=x(Rn,m,"TestLoadImage: loaded",!0,f,T),T.onerror=x(Rn,m,"TestLoadImage: error",!1,f,T),T.onabort=x(Rn,m,"TestLoadImage: abort",!1,f,T),T.ontimeout=x(Rn,m,"TestLoadImage: timeout",!1,f,T),a.setTimeout(function(){T.ontimeout&&T.ontimeout()},1e4),T.src=o}else f(!1)}function wo(o,f){const m=new Er,T=new AbortController,q=setTimeout(()=>{T.abort(),Rn(m,"TestPingServer: timeout",!1,f)},1e4);fetch(o,{signal:T.signal}).then(z=>{clearTimeout(q),z.ok?Rn(m,"TestPingServer: ok",!0,f):Rn(m,"TestPingServer: server error",!1,f)}).catch(()=>{clearTimeout(q),Rn(m,"TestPingServer: error",!1,f)})}function Rn(o,f,m,T,q){try{q&&(q.onload=null,q.onerror=null,q.onabort=null,q.ontimeout=null),T(m)}catch{}}function Sa(){this.g=new ms}function _o(o,f,m){const T=m||"";try{lr(o,function(q,z){let K=q;l(q)&&(K=An(q)),f.push(T+z+"="+encodeURIComponent(K))})}catch(q){throw f.push(T+"type="+encodeURIComponent("_badmap")),q}}function Jr(o){this.l=o.Ub||null,this.j=o.eb||!1}b(Jr,Yn),Jr.prototype.g=function(){return new Ri(this.l,this.j)},Jr.prototype.i=function(o){return function(){return o}}({});function Ri(o,f){me.call(this),this.D=o,this.o=f,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}b(Ri,me),t=Ri.prototype,t.open=function(o,f){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=o,this.A=f,this.readyState=1,ei(this)},t.send=function(o){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const f={headers:this.u,method:this.B,credentials:this.m,cache:void 0};o&&(f.body=o),(this.D||a).fetch(new Request(this.A,f)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,dr(this)),this.readyState=0},t.Sa=function(o){if(this.g&&(this.l=o,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=o.headers,this.readyState=2,ei(this)),this.g&&(this.readyState=3,ei(this),this.g)))if(this.responseType==="arraybuffer")o.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in o){if(this.j=o.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;vs(this)}else o.text().then(this.Ra.bind(this),this.ga.bind(this))};function vs(o){o.j.read().then(o.Pa.bind(o)).catch(o.ga.bind(o))}t.Pa=function(o){if(this.g){if(this.o&&o.value)this.response.push(o.value);else if(!this.o){var f=o.value?o.value:new Uint8Array(0);(f=this.v.decode(f,{stream:!o.done}))&&(this.response=this.responseText+=f)}o.done?dr(this):ei(this),this.readyState==3&&vs(this)}},t.Ra=function(o){this.g&&(this.response=this.responseText=o,dr(this))},t.Qa=function(o){this.g&&(this.response=o,dr(this))},t.ga=function(){this.g&&dr(this)};function dr(o){o.readyState=4,o.l=null,o.j=null,o.v=null,ei(o)}t.setRequestHeader=function(o,f){this.u.append(o,f)},t.getResponseHeader=function(o){return this.h&&this.h.get(o.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const o=[],f=this.h.entries();for(var m=f.next();!m.done;)m=m.value,o.push(m[0]+": "+m[1]),m=f.next();return o.join(`\r
35`)};function ei(o){o.onreadystatechange&&o.onreadystatechange.call(o)}Object.defineProperty(Ri.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(o){this.m=o?"include":"same-origin"}});function So(o){let f="";return I(o,function(m,T){f+=T,f+=":",f+=m,f+=`\r
36`}),f}function Pi(o,f,m){e:{for(T in m){var T=!1;break e}T=!0}T||(m=So(m),typeof o=="string"?m!=null&&encodeURIComponent(String(m)):Je(o,f,m))}function gt(o){me.call(this),this.headers=new Map,this.o=o||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}b(gt,me);var ti=/^https?$/i,bs=["POST","PUT"];t=gt.prototype,t.Ha=function(o){this.J=o},t.ea=function(o,f,m,T){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+o);f=f?f.toUpperCase():"GET",this.D=o,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():$r.g(),this.v=this.o?Sr(this.o):Sr($r),this.g.onreadystatechange=p(this.Ea,this);try{this.B=!0,this.g.open(f,String(o),!0),this.B=!1}catch(z){Eo(this,z);return}if(o=m||"",m=new Map(this.headers),T)if(Object.getPrototypeOf(T)===Object.prototype)for(var q in T)m.set(q,T[q]);else if(typeof T.keys=="function"&&typeof T.get=="function")for(const z of T.keys())m.set(z,T.get(z));else throw Error("Unknown input type for opt_headers: "+String(T));T=Array.from(m.keys()).find(z=>z.toLowerCase()=="content-type"),q=a.FormData&&o instanceof a.FormData,!(0<=Array.prototype.indexOf.call(bs,f,void 0))||T||q||m.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[z,K]of m)this.g.setRequestHeader(z,K);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{Qn(this),this.u=!0,this.g.send(o),this.u=!1}catch(z){Eo(this,z)}};function Eo(o,f){o.h=!1,o.g&&(o.j=!0,o.g.abort(),o.j=!1),o.l=f,o.m=5,To(o),ni(o)}function To(o){o.A||(o.A=!0,xe(o,"complete"),xe(o,"error"))}t.abort=function(o){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=o||7,xe(this,"complete"),xe(this,"abort"),ni(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),ni(this,!0)),gt.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?Pn(this):this.bb())},t.bb=function(){Pn(this)};function Pn(o){if(o.h&&typeof u<"u"&&(!o.v[1]||hr(o)!=4||o.Z()!=2)){if(o.u&&hr(o)==4)Be(o.Ea,0,o);else if(xe(o,"readystatechange"),hr(o)==4){o.h=!1;try{const K=o.Z();e:switch(K){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var f=!0;break e;default:f=!1}var m;if(!(m=f)){var T;if(T=K===0){var q=String(o.D).match(Ur)[1]||null;!q&&a.self&&a.self.location&&(q=a.self.location.protocol.slice(0,-1)),T=!ti.test(q?q.toLowerCase():"")}m=T}if(m)xe(o,"complete"),xe(o,"success");else{o.m=6;try{var z=2<hr(o)?o.g.statusText:""}catch{z=""}o.l=z+" ["+o.Z()+"]",To(o)}}finally{ni(o)}}}}function ni(o,f){if(o.g){Qn(o);const m=o.g,T=o.v[0]?()=>{}:null;o.g=null,o.v=null,f||xe(o,"ready");try{m.onreadystatechange=T}catch{}}}function Qn(o){o.I&&(a.clearTimeout(o.I),o.I=null)}t.isActive=function(){return!!this.g};function hr(o){return o.g?o.g.readyState:0}t.Z=function(){try{return 2<hr(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(o){if(this.g){var f=this.g.responseText;return o&&f.indexOf(o)==0&&(f=f.substring(o.length)),Vn(f)}};function xs(o){try{if(!o.g)return null;if("response"in o.g)return o.g.response;switch(o.H){case"":case"text":return o.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in o.g)return o.g.mozResponseArrayBuffer}return null}catch{return null}}function zr(o){const f={};o=(o.g&&2<=hr(o)&&o.g.getAllResponseHeaders()||"").split(`\r
37`);for(let T=0;T<o.length;T++){if(k(o[T]))continue;var m=L(o[T]);const q=m[0];if(m=m[1],typeof m!="string")continue;m=m.trim();const z=f[q]||[];f[q]=z,z.push(m)}j(f,function(T){return T.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function te(o,f,m){return m&&m.internalChannelParams&&m.internalChannelParams[o]||f}function h(o){this.Aa=0,this.i=[],this.j=new Er,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=te("failFast",!1,o),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=te("baseRetryDelayMs",5e3,o),this.cb=te("retryDelaySeedMs",1e4,o),this.Wa=te("forwardChannelMaxRetries",2,o),this.wa=te("forwardChannelRequestTimeoutMs",2e4,o),this.pa=o&&o.xmlHttpFactory||void 0,this.Xa=o&&o.Tb||void 0,this.Ca=o&&o.useFetchStreams||!1,this.L=void 0,this.J=o&&o.supportsCrossDomainXhr||!1,this.K="",this.h=new J(o&&o.concurrentRequestLimit),this.Da=new Sa,this.P=o&&o.fastHandshake||!1,this.O=o&&o.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=o&&o.Rb||!1,o&&o.xa&&this.j.xa(),o&&o.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&o&&o.detectBufferingProxy||!1,this.ja=void 0,o&&o.longPollingTimeout&&0<o.longPollingTimeout&&(this.ja=o.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=h.prototype,t.la=8,t.G=1,t.connect=function(o,f,m,T){Ct(0),this.W=o,this.H=f||{},m&&T!==void 0&&(this.H.OSID=m,this.H.OAID=T),this.F=this.X,this.I=de(this,null,this.W),U(this)};function _(o){if(F(o),o.G==3){var f=o.U++,m=Mt(o.I);if(Je(m,"SID",o.K),Je(m,"RID",f),Je(m,"TYPE","terminate"),re(o,m),f=new In(o,o.j,f),f.L=2,f.v=ki(Mt(m)),m=!1,a.navigator&&a.navigator.sendBeacon)try{m=a.navigator.sendBeacon(f.v.toString(),"")}catch{}!m&&a.Image&&(new Image().src=f.v,m=!0),m||(f.g=he(f.j,null),f.g.ea(f.v)),f.F=Date.now(),dt(f)}ye(o)}function A(o){o.g&&(V(o),o.g.cancel(),o.g=null)}function F(o){A(o),o.u&&(a.clearTimeout(o.u),o.u=null),ze(o),o.h.cancel(),o.s&&(typeof o.s=="number"&&a.clearTimeout(o.s),o.s=null)}function U(o){if(!je(o.h)&&!o.s){o.s=!0;var f=o.Ga;ut||ft(),zt||(ut(),zt=!0),vt.add(f,o),o.B=0}}function W(o,f){return ke(o.h)>=o.h.j-(o.s?1:0)?!1:o.s?(o.i=f.D.concat(o.i),!0):o.G==1||o.G==2||o.B>=(o.Va?0:o.Wa)?!1:(o.s=Jt(p(o.Ga,o,f),_t(o,o.B)),o.B++,!0)}t.Ga=function(o){if(this.s)if(this.s=null,this.G==1){if(!o){this.U=Math.floor(1e5*Math.random()),o=this.U++;const q=new In(this,this.j,o);let z=this.o;if(this.S&&(z?(z=C(z),P(z,this.S)):z=this.S),this.m!==null||this.O||(q.H=z,z=null),this.P)e:{for(var f=0,m=0;m<this.i.length;m++){t:{var T=this.i[m];if("__data__"in T.map&&(T=T.map.__data__,typeof T=="string")){T=T.length;break t}T=void 0}if(T===void 0)break;if(f+=T,4096<f){f=m;break e}if(f===4096||m===this.i.length-1){f=m+1;break e}}f=1e3}else f=1e3;f=ee(this,q,f),m=Mt(this.I),Je(m,"RID",o),Je(m,"CVER",22),this.D&&Je(m,"X-HTTP-Session-Id",this.D),re(this,m),z&&(this.O?f="headers="+encodeURIComponent(String(So(z)))+"&"+f:this.m&&Pi(m,this.m,z)),st(this.h,q),this.Ua&&Je(m,"TYPE","init"),this.P?(Je(m,"$req",f),Je(m,"SID","null"),q.T=!0,en(q,m,null)):en(q,m,f),this.G=2}}else this.G==3&&(o?Y(this,o):this.i.length==0||je(this.h)||Y(this))};function Y(o,f){var m;f?m=f.l:m=o.U++;const T=Mt(o.I);Je(T,"SID",o.K),Je(T,"RID",m),Je(T,"AID",o.T),re(o,T),o.m&&o.o&&Pi(T,o.m,o.o),m=new In(o,o.j,m,o.B+1),o.m===null&&(m.H=o.o),f&&(o.i=f.D.concat(o.i)),f=ee(o,m,1e3),m.I=Math.round(.5*o.wa)+Math.round(.5*o.wa*Math.random()),st(o.h,m),en(m,T,f)}function re(o,f){o.H&&I(o.H,function(m,T){Je(f,T,m)}),o.l&&lr({},function(m,T){Je(f,T,m)})}function ee(o,f,m){m=Math.min(o.i.length,m);var T=o.l?p(o.l.Na,o.l,o):null;e:{var q=o.i;let z=-1;for(;;){const K=["count="+m];z==-1?0<m?(z=q[0].g,K.push("ofs="+z)):z=0:K.push("ofs="+z);let tt=!0;for(let nt=0;nt<m;nt++){let Pe=q[nt].g;const yt=q[nt].map;if(Pe-=z,0>Pe)z=Math.max(0,q[nt].g-100),tt=!1;else try{_o(yt,K,"req"+Pe+"_")}catch{T&&T(yt)}}if(tt){T=K.join("&");break e}}}return o=o.i.splice(0,m),f.D=o,T}function fe(o){if(!o.g&&!o.u){o.Y=1;var f=o.Fa;ut||ft(),zt||(ut(),zt=!0),vt.add(f,o),o.v=0}}function Q(o){return o.g||o.u||3<=o.v?!1:(o.Y++,o.u=Jt(p(o.Fa,o),_t(o,o.v)),o.v++,!0)}t.Fa=function(){if(this.u=null,Ve(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var o=2*this.R;this.j.info("BP detection timer enabled: "+o),this.A=Jt(p(this.ab,this),o)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Ct(10),A(this),Ve(this))};function V(o){o.A!=null&&(a.clearTimeout(o.A),o.A=null)}function Ve(o){o.g=new In(o,o.j,"rpc",o.Y),o.m===null&&(o.g.H=o.o),o.g.O=0;var f=Mt(o.qa);Je(f,"RID","rpc"),Je(f,"SID",o.K),Je(f,"AID",o.T),Je(f,"CI",o.F?"0":"1"),!o.F&&o.ja&&Je(f,"TO",o.ja),Je(f,"TYPE","xmlhttp"),re(o,f),o.m&&o.o&&Pi(f,o.m,o.o),o.L&&(o.g.I=o.L);var m=o.g;o=o.ia,m.L=1,m.v=ki(Mt(f)),m.m=null,m.P=!0,Fn(m,o)}t.Za=function(){this.C!=null&&(this.C=null,A(this),Q(this),Ct(19))};function ze(o){o.C!=null&&(a.clearTimeout(o.C),o.C=null)}function G(o,f){var m=null;if(o.g==f){ze(o),V(o),o.g=null;var T=2}else if(He(o.h,f))m=f.D,Dt(o.h,f),T=1;else return;if(o.G!=0){if(f.o)if(T==1){m=f.m?f.m.length:0,f=Date.now()-f.F;var q=o.B;T=jt(),xe(T,new at(T,m)),U(o)}else fe(o);else if(q=f.s,q==3||q==0&&0<f.X||!(T==1&&W(o,f)||T==2&&Q(o)))switch(m&&0<m.length&&(f=o.h,f.i=f.i.concat(m)),q){case 1:Re(o,5);break;case 4:Re(o,10);break;case 3:Re(o,6);break;default:Re(o,2)}}}function _t(o,f){let m=o.Ta+Math.floor(Math.random()*o.cb);return o.isActive()||(m*=2),m*f}function Re(o,f){if(o.j.info("Error code "+f),f==2){var m=p(o.fb,o),T=o.Xa;const q=!T;T=new $n(T||"//www.google.com/images/cleardot.gif"),a.location&&a.location.protocol=="http"||Ai(T,"https"),ki(T),q?_a(T.toString(),m):wo(T.toString(),m)}else Ct(2);o.G=0,o.l&&o.l.sa(f),ye(o),F(o)}t.fb=function(o){o?(this.j.info("Successfully pinged google.com"),Ct(2)):(this.j.info("Failed to ping google.com"),Ct(1))};function ye(o){if(o.G=0,o.ka=[],o.l){const f=$t(o.h);(f.length!=0||o.i.length!=0)&&(S(o.ka,f),S(o.ka,o.i),o.h.i.length=0,g(o.i),o.i.length=0),o.l.ra()}}function de(o,f,m){var T=m instanceof $n?Mt(m):new $n(m);if(T.g!="")f&&(T.g=f+"."+T.g),Ci(T,T.s);else{var q=a.location;T=q.protocol,f=f?f+"."+q.hostname:q.hostname,q=+q.port;var z=new $n(null);T&&Ai(z,T),f&&(z.g=f),q&&Ci(z,q),m&&(z.l=m),T=z}return m=o.D,f=o.ya,m&&f&&Je(T,m,f),Je(T,"VER",o.la),re(o,T),T}function he(o,f,m){if(f&&!o.J)throw Error("Can't create secondary domain capable XhrIo object.");return f=o.Ca&&!o.pa?new gt(new Jr({eb:m})):new gt(o.pa),f.Ha(o.J),f}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function Se(){}t=Se.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function Ne(){}Ne.prototype.g=function(o,f){return new Ke(o,f)};function Ke(o,f){me.call(this),this.g=new h(f),this.l=o,this.h=f&&f.messageUrlParams||null,o=f&&f.messageHeaders||null,f&&f.clientProtocolHeaderRequired&&(o?o["X-Client-Protocol"]="webchannel":o={"X-Client-Protocol":"webchannel"}),this.g.o=o,o=f&&f.initMessageHeaders||null,f&&f.messageContentType&&(o?o["X-WebChannel-Content-Type"]=f.messageContentType:o={"X-WebChannel-Content-Type":f.messageContentType}),f&&f.va&&(o?o["X-WebChannel-Client-Profile"]=f.va:o={"X-WebChannel-Client-Profile":f.va}),this.g.S=o,(o=f&&f.Sb)&&!k(o)&&(this.g.m=o),this.v=f&&f.supportsCrossDomainXhr||!1,this.u=f&&f.sendRawJson||!1,(f=f&&f.httpSessionIdParam)&&!k(f)&&(this.g.D=f,o=this.h,o!==null&&f in o&&(o=this.h,f in o&&delete o[f])),this.j=new Un(this)}b(Ke,me),Ke.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Ke.prototype.close=function(){_(this.g)},Ke.prototype.o=function(o){var f=this.g;if(typeof o=="string"){var m={};m.__data__=o,o=m}else this.u&&(m={},m.__data__=An(o),o=m);f.i.push(new H(f.Ya++,o)),f.G==3&&U(f)},Ke.prototype.N=function(){this.g.l=null,delete this.j,_(this.g),delete this.g,Ke.aa.N.call(this)};function et(o){or.call(this),o.__headers__&&(this.headers=o.__headers__,this.statusCode=o.__status__,delete o.__headers__,delete o.__status__);var f=o.__sm__;if(f){e:{for(const m in f){o=m;break e}o=void 0}(this.i=o)&&(o=this.i,f=f!==null&&o in f?f[o]:void 0),this.data=f}else this.data=o}b(et,or);function tn(){Xt.call(this),this.status=1}b(tn,Xt);function Un(o){this.g=o}b(Un,Se),Un.prototype.ua=function(){xe(this.g,"a")},Un.prototype.ta=function(o){xe(this.g,new et(o))},Un.prototype.sa=function(o){xe(this.g,new tn)},Un.prototype.ra=function(){xe(this.g,"b")},Ne.prototype.createWebChannel=Ne.prototype.g,Ke.prototype.send=Ke.prototype.o,Ke.prototype.open=Ke.prototype.m,Ke.prototype.close=Ke.prototype.close,fg=function(){return new Ne},lg=function(){return jt()},cg=ar,ug={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},Ft.NO_ERROR=0,Ft.TIMEOUT=8,Ft.HTTP_ERROR=6,ag=Ft,kn.COMPLETE="complete",og=kn,Qt.EventType=xt,xt.OPEN="a",xt.CLOSE="b",xt.ERROR="c",xt.MESSAGE="d",me.prototype.listen=me.prototype.K,sg=Qt,gt.prototype.listenOnce=gt.prototype.L,gt.prototype.getLastError=gt.prototype.Ka,gt.prototype.getLastErrorCode=gt.prototype.Ba,gt.prototype.getStatus=gt.prototype.Z,gt.prototype.getResponseJson=gt.prototype.Oa,gt.prototype.getResponseText=gt.prototype.oa,gt.prototype.send=gt.prototype.ea,gt.prototype.setWithCredentials=gt.prototype.Ha,ig=gt}).apply(typeof Na<"u"?Na:typeof self<"u"?self:typeof window<"u"?window:{});function ve(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function mn(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function gh(t,e){const n=+ve(t);return mn(t,n+e)}const ll=6048e5,dg=864e5,Eu=6e4,Tu=36e5,La=43200,Of=1440;function hg(t,e){return gh(t,e*Eu)}function fl(t){return e=>{const n=Math.trunc,r=n(e);return r===0?0:r}}function dl(t,e){return+ve(t)-+ve(e)}function pg(t,e,n){const r=dl(t,e)/1e3;return fl()(r)}function yh(t,e){return function(){return t.apply(e,arguments)}}const{toString:mg}=Object.prototype,{getPrototypeOf:Ou}=Object,{iterator:Au,toStringTag:vh}=Symbol,Cu=(t=>e=>{const n=mg.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_r=t=>(t=t.toLowerCase(),e=>Cu(e)===t),ku=t=>e=>typeof e===t,{isArray:mo}=Array,lo=ku("undefined");function ga(t){return t!==null&&!lo(t)&&t.constructor!==null&&!lo(t.constructor)&&Ln(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const bh=_r("ArrayBuffer");function gg(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&bh(t.buffer),e}const yg=ku("string"),Ln=ku("function"),xh=ku("number"),ya=t=>t!==null&&typeof t=="object",vg=t=>t===!0||t===!1,Qa=t=>{if(Cu(t)!=="object")return!1;const e=Ou(t);
vendor: 3,085 bytes, line 37
37return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(vh in t)&&!(Au in t)},bg=t=>{if(!ya(t)||ga(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},xg=_r("Date"),wg=_r("File"),_g=t=>!!(t&&typeof t.uri<"u"),Sg=t=>t&&typeof t.getParts<"u",Eg=_r("Blob"),Tg=_r("FileList"),Og=t=>ya(t)&&Ln(t.pipe);function Ag(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Af=Ag(),Cf=typeof Af.FormData<"u"?Af.FormData:void 0,Cg=t=>{if(!t)return!1;if(Cf&&t instanceof Cf)return!0;const e=Ou(t);if(!e||e===Object.prototype||!Ln(t.append))return!1;const n=Cu(t);return n==="formdata"||n==="object"&&Ln(t.toString)&&t.toString()==="[object FormData]"},kg=_r("URLSearchParams"),[Ig,Rg,Pg,Dg]=["ReadableStream","Request","Response","Headers"].map(_r),Mg=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function va(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),mo(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(ga(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),u=s.length;let a;for(r=0;r<u;r++)a=s[r],e.call(null,t[a],a,t)}}function wh(t,e){if(ga(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Hi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_h=t=>!lo(t)&&t!==Hi;function Ic(...t){const{caseless:e,skipUndefined:n}=_h(this)&&this||{},r={},i=(s,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const a=e&&wh(r,u)||u,c=Rc(r,a)?r[a]:void 0;Qa(c)&&Qa(s)?r[a]=Ic(c,s):Qa(s)?r[a]=Ic({},s):mo(s)?r[a]=s.slice():(!n||!lo(s))&&(r[a]=s)};for(let s=0,u=t.length;s<u;s++)t[s]&&va(t[s],i);return r}const Ng=(t,e,n,{allOwnKeys:r}={})=>(va(e,(i,s)=>{n&&Ln(i)?Object.defineProperty(t,s,{__proto__:null,value:yh(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Lg=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),jg=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},Fg=(t,e,n,r)=>{let i,s,u;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)u=i[s],(!r||r(u,t,e))&&!a[u]&&(e[u]=t[u],a[u]=!0);t=n!==!1&&Ou(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},$g=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ug=t=>{if(!t)return null;if(mo(t))return t;let e=t.length;if(!xh(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},qg=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ou(Uint8Array)),Bg=(t,e)=>{const r=(t&&t[Au]).call(t);let i;for(;
vendor: 4,592 bytes, lines 37-38
37(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},zg=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Hg=_r("HTMLFormElement"),Wg=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Rc=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Vg=_r("RegExp"),Sh=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};va(n,(i,s)=>{let u;(u=e(i,s,t))!==!1&&(r[s]=u||i)}),Object.defineProperties(t,r)},Yg=t=>{Sh(t,(e,n)=>{if(Ln(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(Ln(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Zg=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return mo(t)?r(t):r(String(t).split(e)),n},Gg=()=>{},Kg=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Qg(t){return!!(t&&Ln(t.append)&&t[vh]==="FormData"&&t[Au])}const Xg=t=>{const e=new WeakSet,n=r=>{if(ya(r)){if(e.has(r))return;if(ga(r))return r;if(!("toJSON"in r)){e.add(r);const i=mo(r)?[]:{};return va(r,(s,u)=>{const a=n(s);!lo(a)&&(i[u]=a)}),e.delete(r),i}}return r};return n(t)},Jg=_r("AsyncFunction"),ey=t=>t&&(ya(t)||Ln(t))&&Ln(t.then)&&Ln(t.catch),Eh=((t,e)=>t?setImmediate:e?((n,r)=>(Hi.addEventListener("message",({source:i,data:s})=>{i===Hi&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Hi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ln(Hi.postMessage)),ty=typeof queueMicrotask<"u"?queueMicrotask.bind(Hi):typeof process<"u"&&process.nextTick||Eh,ny=t=>t!=null&&Ln(t[Au]),B={isArray:mo,isArrayBuffer:bh,isBuffer:ga,isFormData:Cg,isArrayBufferView:gg,isString:yg,isNumber:xh,isBoolean:vg,isObject:ya,isPlainObject:Qa,isEmptyObject:bg,isReadableStream:Ig,isRequest:Rg,isResponse:Pg,isHeaders:Dg,isUndefined:lo,isDate:xg,isFile:wg,isReactNativeBlob:_g,isReactNative:Sg,isBlob:Eg,isRegExp:Vg,isFunction:Ln,isStream:Og,isURLSearchParams:kg,isTypedArray:qg,isFileList:Tg,forEach:va,merge:Ic,extend:Ng,trim:Mg,stripBOM:Lg,inherits:jg,toFlatObject:Fg,kindOf:Cu,kindOfTest:_r,endsWith:$g,toArray:Ug,forEachEntry:Bg,matchAll:zg,isHTMLForm:Hg,hasOwnProperty:Rc,hasOwnProp:Rc,reduceDescriptors:Sh,freezeMethods:Yg,toObjectSet:Zg,toCamelCase:Wg,noop:Gg,toFiniteNumber:Kg,findKey:wh,global:Hi,isContextDefined:_h,isSpecCompliantForm:Qg,toJSONObject:Xg,isAsyncFn:Jg,isThenable:ey,setImmediate:Eh,asap:ty,isIterable:ny},ry=B.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"]),iy=t=>{const e={};let n,r,i;return t&&t.split(`
38`).forEach(function(u){i=u.indexOf(":"),n=u.substring(0,i).trim().toLowerCase(),r=u.substring(i+1).trim(),!(!n||e[n]&&ry[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};function sy(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const oy=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ay=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function hl(t,e){return B.isArray(t)?t.map(n=>hl(n,e)):sy(String(t).replace(e,""))}const uy=t=>hl(t,oy),cy=t=>hl(t,ay);function Th(t){const e=Object.create(null);return B.forEach(t.toJSON(),(n,r)=>{e[r]=cy(n)}),e}const kf=Symbol("internals");function ko(t){return t&&String(t).trim().toLowerCase()}function Xa(t){return t===!1||t==null?t:B.isArray(t)?t.map(Xa):uy(String(t))}function ly(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const fy=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ec(t,e,n,r,i){if(B.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!B.isString(e)){if(B.isString(r))return e.indexOf(r)!==-1;if(B.isRegExp(r))return r.test(e)}}function dy(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function hy(t,e){const n=B.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{__proto__:null,value:function(i,s,u){return this[r].call(this,e,i,s,u)},configurable:!0})})}let Sn=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(a,c,l){const d=ko(c);if(!d)throw new Error("header name must be a non-empty string");const y=B.findKey(i,d);(!y||i[y]===void 0||l===!0||l===void 0&&i[y]!==!1)&&(i[y||c]=Xa(a))}const u=(a,c)=>
vendor: 32,137 bytes, lines 38-45
38B.forEach(a,(l,d)=>s(l,d,c));if(B.isPlainObject(e)||e instanceof this.constructor)u(e,n);else if(B.isString(e)&&(e=e.trim())&&!fy(e))u(iy(e),n);else if(B.isObject(e)&&B.isIterable(e)){let a={},c,l;for(const d of e){if(!B.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[l=d[0]]=(c=a[l])?B.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}u(a,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=ko(e),e){const r=B.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return ly(i);if(B.isFunction(n))return n.call(this,i,r);if(B.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ko(e),e){const r=B.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ec(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(u){if(u=ko(u),u){const a=B.findKey(r,u);a&&(!n||ec(r,r[a],a,n))&&(delete r[a],i=!0)}}return B.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||ec(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return B.forEach(this,(i,s)=>{const u=B.findKey(r,s);if(u){n[u]=Xa(i),delete n[s];return}const a=e?dy(s):String(s).trim();a!==s&&delete n[s],n[a]=Xa(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return B.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&B.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
39`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[kf]=this[kf]={accessors:{}}).accessors,i=this.prototype;function s(u){const a=ko(u);r[a]||(hy(i,u),r[a]=!0)}return B.isArray(e)?e.forEach(s):s(e),this}};Sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(Sn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});B.freezeMethods(Sn);const py="[REDACTED ****]";function my(t){if(B.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(B.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function gy(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||B.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Sn&&(s=s.toJSON()),r.push(s);let u;if(B.isArray(s))u=[],s.forEach((a,c)=>{const l=i(a);B.isUndefined(l)||(u[c]=l)});else{if(!B.isPlainObject(s)&&my(s))return r.pop(),s;u=Object.create(null);for(const[a,c]of Object.entries(s)){const l=n.has(a.toLowerCase())?py:i(c);B.isUndefined(l)||(u[a]=l)}}return r.pop(),u};return i(t)}let le=class Oh extends Error{static from(e,n,r,i,s,u){const a=new Oh(e.message,n||e.code,r,i,s);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),u&&Object.assign(a,u),a}constructor(e,n,r,i,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&B.hasOwnProp(e,"redact")?e.redact:void 0,r=B.isArray(n)&&n.length>0?gy(e,n):B.toJSONObject(e);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:r,code:this.code,status:this.status}}};le.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";le.ERR_BAD_OPTION="ERR_BAD_OPTION";le.ECONNABORTED="ECONNABORTED";le.ETIMEDOUT="ETIMEDOUT";le.ECONNREFUSED="ECONNREFUSED";le.ERR_NETWORK="ERR_NETWORK";le.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";le.ERR_DEPRECATED="ERR_DEPRECATED";le.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";le.ERR_BAD_REQUEST="ERR_BAD_REQUEST";le.ERR_CANCELED="ERR_CANCELED";le.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";le.ERR_INVALID_URL="ERR_INVALID_URL";le.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const yy=null;function Pc(t){return B.isPlainObject(t)||B.isArray(t)}function Ah(t){return B.endsWith(t,"[]")?t.slice(0,-2):t}function tc(t,e,n){return t?t.concat(e).map(function(i,s){return i=Ah(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function vy(t){return B.isArray(t)&&!t.some(Pc)}const by=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function Iu(t,e,n){if(!B.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,O){return!B.isUndefined(O[S])});const r=n.metaTokens,i=n.visitor||y,s=n.dots,u=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=a&&B.isSpecCompliantForm(e);if(!B.isFunction(i))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(B.isDate(g))return g.toISOString();if(B.isBoolean(g))return g.toString();if(!l&&B.isBlob(g))throw new le("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(g)||B.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function y(g,S,O){let k=g;if(B.isReactNative(e)&&B.isReactNativeBlob(g))return e.append(tc(O,S,s),d(g)),!1;if(g&&!O&&typeof g=="object"){if(B.endsWith(S,"{}"))S=r?S:S.slice(0,-2),g=JSON.stringify(g);else if(B.isArray(g)&&vy(g)||(B.isFileList(g)||B.endsWith(S,"[]"))&&(k=B.toArray(g)))return S=Ah(S),k.forEach(function(w,D){!(B.isUndefined(w)||w===null)&&e.append(u===!0?tc([S],D,s):u===null?S:S+"[]",d(w))}),!1}return Pc(g)?!0:(e.append(tc(O,S,s),d(g)),!1)}const p=[],x=Object.assign(by,{defaultVisitor:y,convertValue:d,isVisitable:Pc});function b(g,S,O=0){if(!B.isUndefined(g)){if(O>c)throw new le("Object is too deeply nested ("+O+" levels). Max depth: "+c,le.ERR_FORM_DATA_DEPTH_EXCEEDED);if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(g),B.forEach(g,function(v,w){(!(B.isUndefined(v)||v===null)&&i.call(e,v,B.isString(w)?w.trim():w,S,x))===!0&&b(v,S?S.concat(w):[w],O+1)}),p.pop()}}if(!B.isObject(t))throw new TypeError("data must be an object");return b(t),e}function If(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function pl(t,e){this._pairs=[],t&&Iu(t,this,e)}const Ch=pl.prototype;Ch.append=function(e,n){this._pairs.push([e,n])};Ch.toString=function(e){const n=e?function(r){return e.call(this,r,If)}:If;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function xy(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function kh(t,e,n){if(!e)return t;const r=n&&n.encode||xy,i=B.isFunction(n)?{serialize:n}:n,s=i&&i.serialize;let u;if(s?u=s(e,i):u=B.isURLSearchParams(e)?e.toString():new pl(e,i).toString(r),u){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class Rf{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ml={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},wy=typeof URLSearchParams<"u"?URLSearchParams:pl,_y=typeof FormData<"u"?FormData:null,Sy=typeof Blob<"u"?Blob:null,Ey={isBrowser:!0,classes:{URLSearchParams:wy,FormData:_y,Blob:Sy},protocols:["http","https","file","blob","url","data"]},gl=typeof window<"u"&&typeof document<"u",Dc=typeof navigator=="object"&&navigator||void 0,Ty=gl&&(!Dc||["ReactNative","NativeScript","NS"].indexOf(Dc.product)<0),Oy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ay=gl&&window.location.href||"http://localhost",Cy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gl,hasStandardBrowserEnv:Ty,hasStandardBrowserWebWorkerEnv:Oy,navigator:Dc,origin:Ay},Symbol.toStringTag,{value:"Module"})),hn={...Cy,...Ey};function ky(t,e){return Iu(t,new hn.classes.URLSearchParams,{visitor:function(n,r,i,s){return hn.isNode&&B.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Iy(t){return B.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ry(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function Ih(t){function e(n,r,i,s){let u=n[s++];if(u==="__proto__")return!0;const a=Number.isFinite(+u),c=s>=n.length;return u=!u&&B.isArray(i)?i.length:u,c?(B.hasOwnProp(i,u)?i[u]=B.isArray(i[u])?i[u].concat(r):[i[u],r]:i[u]=r,!a):((!B.hasOwnProp(i,u)||!B.isObject(i[u]))&&(i[u]=[]),e(n,r,i[u],s)&&B.isArray(i[u])&&(i[u]=Ry(i[u])),!a)}if(B.isFormData(t)&&B.isFunction(t.entries)){const n={};return B.forEachEntry(t,(r,i)=>{e(Iy(r),i,n,0)}),n}return null}const Ps=(t,e)=>t!=null&&B.hasOwnProp(t,e)?t[e]:void 0;function Py(t,e,n){if(B.isString(t))try{return(e||JSON.parse)(t),B.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const ba={transitional:ml,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=B.isObject(e);if(s&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return i?JSON.stringify(Ih(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e)||B.isReadableStream(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){const c=Ps(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ky(e,c).toString();if((a=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=Ps(this,"env"),d=l&&l.FormData;return Iu(a?{"files[]":e}:e,d&&new d,c)}}return s||i?(n.setContentType("application/json",!1),Py(e)):e}],transformResponse:[function(e){const n=Ps(this,"transitional")||ba.transitional,r=n&&n.forcedJSONParsing,i=Ps(this,"responseType"),s=i==="json";if(B.isResponse(e)||B.isReadableStream(e))return e;if(e&&B.isString(e)&&(r&&!i||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,Ps(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?le.from(c,le.ERR_BAD_RESPONSE,this,null,Ps(this,"response")):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hn.classes.FormData,Blob:hn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch","query"],t=>{ba.headers[t]={}});function nc(t,e){const n=this||ba,r=e||n,i=Sn.from(r.headers);let s=r.data;return B.forEach(t,function(a){s=a.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Rh(t){return!!(t&&t.__CANCEL__)}let xa=class extends le{constructor(e,n,r){super(e??"canceled",le.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Ph(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new le("Request failed with status code "+n.status,n.status>=400&&n.status<500?le.ERR_BAD_REQUEST:le.ERR_BAD_RESPONSE,n.config,n.request,n))}function Dy(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function My(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,u;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=r[s];u||(u=l),n[i]=c,r[i]=l;let y=s,p=0;for(;y!==i;)p+=n[y++],y=y%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-u<e)return;const x=d&&l-d;return x?Math.round(p*1e3/x):void 0}}function Ny(t,e){let n=0,r=1e3/e,i,s;const u=(l,d=Date.now())=>{n=d,i=null,s&&(clearTimeout(s),s=null),t(...l)};return[(...l)=>{const d=Date.now(),y=d-n;y>=r?u(l,d):(i=l,s||(s=setTimeout(()=>{s=null,u(i)},r-y)))},()=>i&&u(i)]}const du=(t,e,n=3)=>{let r=0;const i=My(50,250);return Ny(s=>{if(!s||typeof s.loaded!="number")return;const u=s.loaded,a=s.lengthComputable?s.total:void 0,c=a!=null?Math.min(u,a):u,l=Math.max(0,c-r),d=i(l);r=Math.max(r,c);const y={loaded:c,total:a,progress:a?c/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a?(a-c)/d:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(y)},n)},Pf=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Df=t=>(...e)=>B.asap(()=>t(...e)),Ly=hn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,hn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(hn.origin),hn.navigator&&/(msie|trident)/i.test(hn.navigator.userAgent)):()=>!0,jy=hn.hasStandardBrowserEnv?{write(t,e,n,r,i,s,u){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];B.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),B.isString(r)&&a.push(`path=${r}`),B.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),B.isString(u)&&a.push(`SameSite=${u}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===t)return decodeURIComponent(r.slice(i+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Fy(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function $y(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Dh(t,e,n){let r=!Fy(e);return t&&(r||n===!1)?$y(t,e):e}const Mf=t=>t instanceof Sn?{...t}:t;function os(t,e){e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(l,d,y,p){return B.isPlainObject(l)&&B.isPlainObject(d)?B.merge.call({caseless:p},l,d):B.isPlainObject(d)?B.merge({},d):B.isArray(d)?d.slice():d}function i(l,d,y,p){if(B.isUndefined(d)){if(!B.isUndefined(l))return r(void 0,l,y,p)}else return r(l,d,y,p)}function s(l,d){if(!B.isUndefined(d))return r(void 0,d)}function u(l,d){if(B.isUndefined(d)){if(!B.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function a(l,d,y){if(B.hasOwnProp(e,y))return r(l,d);if(B.hasOwnProp(t,y))return r(void 0,l)}const c={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:a,headers:(l,d,y)=>i(Mf(l),Mf(d),y,!0)};return B.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const y=B.hasOwnProp(c,d)?c[d]:i,p=B.hasOwnProp(t,d)?t[d]:void 0,x=B.hasOwnProp(e,d)?e[d]:void 0,b=y(p,x,d);B.isUndefined(b)&&y!==a||(n[d]=b)}),n}const Uy=["content-type","content-length"];function qy(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e).forEach(([r,i])=>{Uy.includes(r.toLowerCase())&&t.set(r,i)})}const By=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Mh=t=>{const e=os({},t),n=p=>B.hasOwnProp(e,p)?e[p]:void 0,r=n("data");let i=n("withXSRFToken");const s=n("xsrfHeaderName"),u=n("xsrfCookieName");let a=n("headers");const c=n("auth"),l=n("baseURL"),d=n("allowAbsoluteUrls"),y=n("url");if(e.headers=a=Sn.from(a),e.url=kh(Dh(l,y,d),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?By(c.password):""))),B.isFormData(r)&&(hn.hasStandardBrowserEnv||hn.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):B.isFunction(r.getHeaders)&&qy(a,r.getHeaders(),n("formDataHeaderPolicy"))),hn.hasStandardBrowserEnv&&(B.isFunction(i)&&(i=i(e)),i===!0||i==null&&Ly(e.url))){const x=s&&u&&jy.read(u);x&&a.set(s,x)}return e},zy=typeof XMLHttpRequest<"u",Hy=zy&&function(t){return new Promise(function(n,r){const i=Mh(t);let s=i.data;const u=Sn.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=i,d,y,p,x,b;function g(){x&&x(),b&&b(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function O(){if(!S)return;const v=Sn.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),D={data:!a||a==="text"||a==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:v,config:t,request:S};Ph(function(j){n(j),g()},function(j){r(j),g()},D),S=null}"onloadend"in S?S.onloadend=O:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(O)},S.onabort=function(){S&&(r(new le("Request aborted",le.ECONNABORTED,t,S)),g(),S=null)},S.onerror=function(w){const D=w&&w.message?w.message:"Network Error",I=new le(D,le.ERR_NETWORK,t,S);I.event=w||null,r(I),g(),S=null},S.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||ml;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),r(new le(w,D.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,t,S)),g(),S=null},s===void 0&&u.setContentType(null),"setRequestHeader"in S&&B.forEach(Th(u),function(w,D){S.setRequestHeader(D,w)}),B.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),a&&a!=="json"&&(S.responseType=i.responseType),l&&([p,b]=du(l,!0),S.addEventListener("progress",p)),c&&S.upload&&([y,x]=du(c),S.upload.addEventListener("progress",y),S.upload.addEventListener("loadend",x)),(i.cancelToken||i.signal)&&(d=v=>{S&&(r(!v||v.type?new xa(null,t,S):v),S.abort(),g(),S=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const k=Dy(i.url);if(k&&!hn.protocols.includes(k)){r(new le("Unsupported protocol "+k+":",le.ERR_BAD_REQUEST,t));return}S.send(s||null)})},Wy=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let r=!1;const i=function(c){if(!r){r=!0,u();const l=c instanceof Error?c:this.reason;n.abort(l instanceof le?l:new xa(l instanceof Error?l.message:l))}};let s=e&&setTimeout(()=>{s=null,i(new le(`timeout of ${e}ms exceeded`,le.ETIMEDOUT))},e);const u=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=()=>B.asap(u),a},Vy=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},Yy=async function*(t,e){for await(const n of Zy(t))yield*Vy(n,e)},Zy=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Nf=(t,e,n,r)=>{const i=Yy(t,e);let s=0,u,a=c=>{u||(u=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:d}=await i.next();if(l){a(),c.close();return}let y=d.byteLength;if(n){let p=s+=y;n(p)}c.enqueue(new Uint8Array(d))}catch(l){throw a(l),l}},cancel(c){return a(c),i.return()}},{highWaterMark:2})};function Gy(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(n)){let u=r.length;const a=r.length;for(let x=0;x<a;x++)if(r.charCodeAt(x)===37&&x+2<a){const b=r.charCodeAt(x+1),g=r.charCodeAt(x+2);(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(u-=2,x+=2)}let c=0,l=a-1;const d=x=>x>=2&&r.charCodeAt(x-2)===37&&r.charCodeAt(x-1)===51&&(r.charCodeAt(x)===68||r.charCodeAt(x)===100);l>=0&&(r.charCodeAt(l)===61?(c++,l--):d(l)&&(c++,l-=3)),c===1&&l>=0&&(r.charCodeAt(l)===61||d(l))&&c++;const p=Math.floor(u/4)*3-(c||0);return p>0?p:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let u=0,a=r.length;u<a;u++){const c=r.charCodeAt(u);if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&u+1<a){const l=r.charCodeAt(u+1);l>=56320&&l<=57343?(s+=4,u++):s+=3}else s+=3}return s}const yl="1.16.1",Lf=64*1024,{isFunction:ja}=B,jf=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Ky=t=>{const e=B.global!==void 0&&B.global!==null?B.global:globalThis,{ReadableStream:n,TextEncoder:r}=e;t=B.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:s,Response:u}=t,a=i?ja(i):typeof fetch=="function",c=ja(s),l=ja(u);if(!a)return!1;const d=a&&ja(n),y=a&&(typeof r=="function"?(O=>k=>O.encode(k))(new r):async O=>new Uint8Array(await new s(O).arrayBuffer())),p=c&&d&&jf(()=>{let O=!1;const k=new s(hn.origin,{body:new n,method:"POST",get duplex(){return O=!0,"half"}}),v=k.headers.has("Content-Type");return k.body!=null&&k.body.cancel(),O&&!v}),x=l&&d&&jf(()=>B.isReadableStream(new u("").body)),b={stream:x&&(O=>O.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(O=>{!b[O]&&(b[O]=(k,v)=>{let w=k&&k[O];if(w)return w.call(k);throw new le(`Response type '${O}' is not supported`,le.ERR_NOT_SUPPORT,v)})});const g=async O=>{if(O==null)return 0;if(B.isBlob(O))return O.size;if(B.isSpecCompliantForm(O))return(await new s(hn.origin,{method:"POST",body:O}).arrayBuffer()).byteLength;if(B.isArrayBufferView(O)||B.isArrayBuffer(O))return O.byteLength;if(B.isURLSearchParams(O)&&(O=O+""),B.isString(O))return(await y(O)).byteLength},S=async(O,k)=>{const v=B.toFiniteNumber(O.getContentLength());return v??g(k)};return async O=>{let{url:k,method:v,data:w,signal:D,cancelToken:I,timeout:j,onDownloadProgress:C,onUploadProgress:E,responseType:P,headers:L,withCredentials:$="same-origin",fetchOptions:M,maxContentLength:qe,maxBodyLength:rt}=Mh(O);const Me=B.isNumber(qe)&&qe>-1,ut=B.isNumber(rt)&&rt>-1;let zt=i||fetch;P=P?(P+"").toLowerCase():"text";let vt=Wy([D,I&&I.toAbortSignal()],j),ft=null;const Yt=vt&&vt.unsubscribe&&(()=>{vt.unsubscribe()});let Tt;try{if(Me&&typeof k=="string"&&k.startsWith("data:")&&Gy(k)>qe)throw new le("maxContentLength size of "+qe+" exceeded",le.ERR_BAD_RESPONSE,O,ft);if(ut&&v!=="get"&&v!=="head"){const be=await S(L,w);if(typeof be=="number"&&isFinite(be)&&be>rt)throw new le("Request body larger than maxBodyLength limit",le.ERR_BAD_REQUEST,O,ft)}if(E&&p&&v!=="get"&&v!=="head"&&(Tt=await S(L,w))!==0){let be=new s(k,{method:"POST",body:w,duplex:"half"}),Zt;if(B.isFormData(w)&&(Zt=be.headers.get("content-type"))&&L.setContentType(Zt),be.body){const[_e,bt]=Pf(Tt,du(Df(E)));w=Nf(be.body,Lf,_e,bt)}}B.isString($)||($=$?"include":"omit");const Ie=c&&"credentials"in s.prototype;if(B.isFormData(w)){const be=L.getContentType();be&&/^multipart\/form-data/i.test(be)&&!/boundary=/i.test(be)&&L.delete("content-type")}L.set("User-Agent","axios/"+yl,!1);const wt={...M,signal:vt,method:v.toUpperCase(),headers:Th(L.normalize()),body:w,duplex:"half",credentials:Ie?$:void 0};ft=c&&new s(k,wt);let ct=await(c?zt(ft,M):zt(k,wt));if(Me){const be=B.toFiniteNumber(ct.headers.get("content-length"));if(be!=null&&be>qe)throw new le("maxContentLength size of "+qe+" exceeded",le.ERR_BAD_RESPONSE,O,ft)}const $e=x&&(P==="stream"||P==="response");if(x&&ct.body&&(C||Me||$e&&Yt)){const be={};["status","statusText","headers"].forEach(Pt=>{be[Pt]=ct[Pt]});const Zt=B.toFiniteNumber(ct.headers.get("content-length")),[_e,bt]=C&&Pf(Zt,du(Df(C),!0))||[];let gn=0;const Ge=Pt=>{if(Me&&(gn=Pt,gn>qe))throw new le("maxContentLength size of "+qe+" exceeded",le.ERR_BAD_RESPONSE,O,ft);_e&&_e(Pt)};ct=new u(Nf(ct.body,Lf,Ge,()=>{bt&&bt(),Yt&&Yt()}),be)}P=P||"text";let pt=await b[B.findKey(b,P)||"text"](ct,O);if(Me&&!x&&!$e){let be;if(pt!=null&&(typeof pt.byteLength=="number"?be=pt.byteLength:typeof pt.size=="number"?be=pt.size:typeof pt=="string"&&(be=typeof r=="function"?new r().encode(pt).byteLength:pt.length)),typeof be=="number"&&be>qe)throw new le("maxContentLength size of "+qe+" exceeded",le.ERR_BAD_RESPONSE,O,ft)}return!$e&&Yt&&Yt(),await new Promise((be,Zt)=>{Ph(be,Zt,{data:pt,headers:Sn.from(ct.headers),status:ct.status,statusText:ct.statusText,config:O,request:ft})})}catch(Ie){if(Yt&&Yt(),vt&&vt.aborted&&vt.reason instanceof le){const wt=vt.reason;throw wt.config=O,ft&&(wt.request=ft),Ie!==wt&&(wt.cause=Ie),wt}throw Ie&&Ie.name==="TypeError"&&/Load failed|fetch/i.test(Ie.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,O,ft,Ie&&Ie.response),{cause:Ie.cause||Ie}):le.from(Ie,Ie&&Ie.code,O,ft,Ie&&Ie.response)}}},Qy=new Map,Nh=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,s=[r,i,n];let u=s.length,a=u,c,l,d=Qy;for(;a--;)c=s[a],l=d.get(c),l===void 0&&d.set(c,l=a?new Map:Ky(e)),d=l;return l};Nh();const vl={http:yy,xhr:Hy,fetch:{get:Nh}};B.forEach(vl,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ff=t=>`- ${t}`,Xy=t=>B.isFunction(t)||t===null||t===!1;function Jy(t,e){t=B.isArray(t)?t:[t];const{length:n}=t;let r,i;const s={};for(let u=0;u<n;u++){r=t[u];let a;if(i=r,!Xy(r)&&(i=vl[(a=String(r)).toLowerCase()],i===void 0))throw new le(`Unknown adapter '${a}'`);if(i&&(B.isFunction(i)||(i=i.get(e))))break;s[a||"#"+u]=i}if(!i){const u=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=n?u.length>1?`since :
40`+u.map(Ff).join(`
41`):" "+Ff(u[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const Lh={getAdapter:Jy,adapters:vl};function rc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xa(null,t)}function $f(t){return rc(t),t.headers=Sn.from(t.headers),t.data=nc.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Lh.getAdapter(t.adapter||ba.adapter,t)(t).then(function(r){rc(t),t.response=r;try{r.data=nc.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=Sn.from(r.headers),r},function(r){if(!Rh(r)&&(rc(t),r&&r.response)){t.response=r.response;try{r.response.data=nc.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=Sn.from(r.response.headers)}return Promise.reject(r)})}const Ru={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ru[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Uf={};Ru.transitional=function(e,n,r){function i(s,u){return"[Axios v"+yl+"] Transitional option '"+s+"'"+u+(r?". "+r:"")}return(s,u,a)=>{if(e===!1)throw new le(i(u," has been removed"+(n?" in "+n:"")),le.ERR_DEPRECATED);return n&&!Uf[u]&&(Uf[u]=!0,console.warn(i(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,u,a):!0}};Ru.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function ev(t,e,n){if(typeof t!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],u=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(u){const a=t[s],c=a===void 0||u(a,s,t);if(c!==!0)throw new le("option "+s+" must be "+c,le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new le("Unknown option "+s,le.ERR_BAD_OPTION)}}const Ja={assertOptions:ev,validators:Ru},Jn=Ja.validators;let ns=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Rf,response:new Rf}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>{if(!i.stack)return"";const u=i.stack.indexOf(`
42`);return u===-1?"":i.stack.slice(u+1)})();try{if(!r.stack)r.stack=s;else if(s){const u=s.indexOf(`
43`),a=u===-1?-1:s.indexOf(`
44`,u+1),c=a===-1?"":s.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=`
45`+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=os(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Ja.assertOptions(r,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean),legacyInterceptorReqResOrdering:Jn.transitional(Jn.boolean)},!1),i!=null&&(B.isFunction(i)?n.paramsSerializer={serialize:i}:Ja.assertOptions(i,{encode:Jn.function,serialize:Jn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ja.assertOptions(n,{baseUrl:Jn.spelling("baseURL"),withXsrfToken:Jn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&B.merge(s.common,s[n.method]);s&&B.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete s[b]}),n.headers=Sn.concat(u,s);const a=[];let c=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;c=c&&g.synchronous;const S=n.transitional||ml;S&&S.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let d,y=0,p;if(!c){const b=[$f.bind(this),void 0];for(b.unshift(...a),b.push(...l),p=b.length,d=Promise.resolve(n);y<p;)d=d.then(b[y++],b[y++]);return d}p=a.length;let x=n;for(;y<p;){const b=a[y++],g=a[y++];try{x=b(x)}catch(S){g.call(this,S);break}}try{d=$f.call(this,x)}catch(b){return Promise.reject(b)}for(y=0,p=l.length;y<p;)d=d.then(l[y++],l[y++]);return d}getUri(e){e=os(this.defaults,e);const n=Dh(e.baseURL,e.url,e.allowAbsoluteUrls);return kh(n,e.params,e.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(e){ns.prototype[e]=function(n,r){return this.request(os(r||{},{method:e,url:n,data:(r||{}).data}))}});B.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,u,a){return this.request(os(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}ns.prototype[e]=n(),e!=="query"&&(ns.prototype[e+"Form"]=n(!0))});let tv=class jh{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const u=new Promise(a=>{r.subscribe(a),s=a}).then(i);return u.cancel=function(){r.unsubscribe(s)},u},e(function(s,u,a){r.reason||(r.reason=new xa(s,u,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new jh(function(i){e=i}),cancel:e}}};function nv(t){return function(n){return t.apply(null,n)}}function rv(t){return B.isObject(t)&&t.isAxiosError===!0}const Mc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
45alContent: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};
vendor: 4,330 bytes, line 45
45Object.entries(Mc).forEach(([t,e])=>{Mc[e]=t});function Fh(t){const e=new ns(t),n=yh(ns.prototype.request,e);return B.extend(n,ns.prototype,e,{allOwnKeys:!0}),B.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Fh(os(t,i))},n}const Bt=Fh(ba);Bt.Axios=ns;Bt.CanceledError=xa;Bt.CancelToken=tv;Bt.isCancel=Rh;Bt.VERSION=yl;Bt.toFormData=Iu;Bt.AxiosError=le;Bt.Cancel=Bt.CanceledError;Bt.all=function(e){return Promise.all(e)};Bt.spread=nv;Bt.isAxiosError=rv;Bt.mergeConfig=os;Bt.AxiosHeaders=Sn;Bt.formToJSON=t=>Ih(B.isHTMLForm(t)?new FormData(t):t);Bt.getAdapter=Lh.getAdapter;Bt.HttpStatusCode=Mc;Bt.default=Bt;const{Axios:D_,AxiosError:M_,CanceledError:N_,isCancel:L_,CancelToken:j_,VERSION:F_,all:$_,Cancel:U_,isAxiosError:q_,spread:B_,toFormData:z_,AxiosHeaders:H_,HttpStatusCode:W_,formToJSON:V_,getAdapter:Y_,mergeConfig:Z_,create:G_}=Bt;function K_(t,e){const r=av(t);let i;if(r.date){const c=uv(r.date,2);i=cv(c.restDateString,c.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const s=i.getTime();let u=0,a;if(r.time&&(u=lv(r.time),isNaN(u)))return new Date(NaN);if(r.timezone){if(a=fv(r.timezone),isNaN(a))return new Date(NaN)}else{const c=new Date(s+u),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(s+u+a)}const Fa={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},iv=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sv=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ov=/^([+-])(\d{2})(?::?(\d{2}))?$/;function av(t){const e={},n=t.split(Fa.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Fa.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Fa.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const i=Fa.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function uv(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function cv(t,e){if(e===null)return new Date(NaN);const n=t.match(iv);if(!n)return new Date(NaN);const r=!!n[4],i=Io(n[1]),s=Io(n[2])-1,u=Io(n[3]),a=Io(n[4]),c=Io(n[5])-1;if(r)return gv(e,a,c)?dv(e,a,c):new Date(NaN);{const l=new Date(0);return!pv(e,s,u)||!mv(e,i)?new Date(NaN):(l.setUTCFullYear(e,s,Math.max(i,u)),l)}}function Io(t){return t?parseInt(t):1}function lv(t){const e=t.match(sv);if(!e)return NaN;const n=ic(e[1]),r=ic(e[2]),i=ic(e[3]);return yv(n,r,i)?n*Tu+r*Eu+i*1e3:NaN}function ic(t){return t&&parseFloat(t.replace(",","."))||0}function fv(t){if(t==="Z")return 0;const e=t.match(ov);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return vv(r,i)?n*(r*Tu+i*Eu):NaN}function dv(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,s=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const hv=[31,null,31,30,31,30,31,31,30,31,30,31];function $h(t){return t%400===0||t%4===0&&t%100!==0}function pv(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(hv[e]||($h(t)?29:28))}function mv(t,e){return e>=1&&e<=($h(t)?366:365)}function gv(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function yv(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function vv(t,e){return e>=0&&e<=59}const Uh=6e4,qh=36e5,qf=Symbol.for("constructDateFrom");function bl(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&qf in t?t[qf](e):t instanceof Date?new t.constructor(e):new Date(e)}function Nc(t,e){return bl(t,t)}function Q_(t,e,n){const r=Nc(t);return isNaN(e)?bl(t,NaN):(r.setDate(r.getDate()+e),r)}function X_(t,e){const n=()=>bl(e==null?void 0:e.in,NaN),i=_v(t);let s;if(i.date){const l=Sv(i.date,2);s=Ev(l.restDateString,l.year)}if(!s||isNaN(+s))return n();const u=+s;let a=0,c;if(i.time&&(a=Tv(i.time),isNaN(a)))return n();if(i.timezone){if(c=Ov(i.timezone),isNaN(c))return n()}else{const l=new Date(u+a),d=Nc(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return Nc(u+a+c)}
45const $a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bv=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,xv=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,wv=/^([+-])(\d{2})(?::?(\d{2}))?$/;function _v(t){const e={},n=t.split($a.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],$a.timeZoneDelimiter.test(e.date)&&(e.date=t.split($a.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const i=$a.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function Sv(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function Ev(t,e){if(e===null)return new Date(NaN);const n=t.match(bv);if(!n)return new Date(NaN);const r=!!n[4],i=Ro(n[1]),s=Ro(n[2])-1,u=Ro(n[3]),a=Ro(n[4]),c=Ro(n[5])-1;if(r)return Rv(e,a,c)?Av(e,a,c):new Date(NaN);{const l=new Date(0);return!kv(e,s,u)||!Iv(e,i)?new Date(NaN):(l.setUTCFullYear(e,s,Math.max(i,u)),l)}}function Ro(t){return t?parseInt(t):1}function Tv(t){const e=t.match(xv);if(!e)return NaN;const n=sc(e[1]),r=sc(e[2]),i=sc(e[3]);return Pv(n,r,i)?n*qh+r*Uh+i*1e3:NaN}function sc(t){return t&&parseFloat(t.replace(",","."))||0}function Ov(t){if(t==="Z")return 0;const e=t.match(wv);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return Dv(r,i)?n*(r*qh+i*Uh):NaN}function Av(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,s=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const Cv=[31,null,31,30,31,30,31,31,30,31,30,31];function Bh(t){return t%400===0||t%4===0&&t%100!==0}function kv(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Cv[e]||(Bh(t)?29:28))}function Iv(t,e){return e>=1&&e<=(Bh(t)?366:365)}function Rv(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function Pv(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Dv(t,e){return e>=0&&e<=59}var fs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},as=typeof window>"u"||"Deno"in globalThis;function dn(){}function Mv(t,e){return typeof t=="function"?t(e):t}function Lc(t){return typeof t=="number"&&t>=0&&t!==1/0}function zh(t,e){return Math.max(t+(e||0)-Date.now(),0)}function vi(t,e){return typeof t=="function"?t(e):t}function rr(t,e){return typeof t=="function"?t(e):t}function Bf(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:u,stale:a}=t;if(u){if(r){if(e.queryHash!==xl(u,e.options))return!1}else if(!ia(e.queryKey,u))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||i&&i!==e.state.fetchStatus||s&&!s(e))}function zf(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(us(e.options.mutationKey)!==us(s))return!1}else if(!ia(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function xl(t,e){return((e==null?void 0:e.queryKeyHashFn)||us)(t)}function us(t){return JSON.stringify(t,(e,n)=>jc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ia(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>ia(t[n],e[n])):!1}function Pu(t,e){if(t===e)return t;const n=Hf(t)&&Hf(e);if(n||jc(t)&&jc(e)){const r=n?t:Object.keys(t),i=r.length,s=n?e:Object.keys(e),u=s.length,a=n?[]:{},c=new Set(r);let l=0;for(let d=0;d<u;d++){const y=n?d:s[d];(!n&&c.has(y)||n)&&t[y]===void 0&&e[y]===void 0?(a[y]=void 0,l++):(a[y]=Pu(t[y],e[y]),a[y]===t[y]&&t[y]!==void 0&&l++)}return i===u&&l===i?t:a}return e}function hu(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Hf(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function jc(t){if(!Wf(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Wf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Wf(t){return Object.prototype.toString.call(t)==="[object Object]"}function Nv(t){return new Promise(e=>{setTimeout(e,t)})}function Fc(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Pu(t,e):e}function J_(t){return t}function Lv(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function jv(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var wl=Symbol();function Hh(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===wl?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Wh(t,e){return typeof t=="function"?t(...e):!!t}var Vi,ai,Vs,Bd,Fv=(Bd=class extends fs{constructor(){super();ae(this,Vi);ae(this,ai);ae(this,Vs);X(this,Vs,e=>{if(!as&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,ai)||this.setEventListener(N(this,Vs))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,ai))==null||e.call(this),X(this,ai,void 0))}setEventListener(e){var n;X(this,Vs,e),(n=N(this,ai))==null||n.call(this),X(this,ai,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){N(this,Vi)!==e&&(X(this,Vi,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 31,208 bytes, line 45
45this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof N(this,Vi)=="boolean"?N(this,Vi):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Vi=new WeakMap,ai=new WeakMap,Vs=new WeakMap,Bd),_l=new Fv,Ys,ui,Zs,zd,$v=(zd=class extends fs{constructor(){super();ae(this,Ys,!0);ae(this,ui);ae(this,Zs);X(this,Zs,e=>{if(!as&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,ui)||this.setEventListener(N(this,Zs))}onUnsubscribe(){var e;this.hasListeners()||((e=N(this,ui))==null||e.call(this),X(this,ui,void 0))}setEventListener(e){var n;X(this,Zs,e),(n=N(this,ui))==null||n.call(this),X(this,ui,e(this.setOnline.bind(this)))}setOnline(e){N(this,Ys)!==e&&(X(this,Ys,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return N(this,Ys)}},Ys=new WeakMap,ui=new WeakMap,Zs=new WeakMap,zd),pu=new $v;function $c(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}function Uv(t){return Math.min(1e3*2**t,3e4)}function Vh(t){return(t??"online")==="online"?pu.isOnline():!0}var Yh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function oc(t){return t instanceof Yh}function Zh(t){let e=!1,n=0,r=!1,i;const s=$c(),u=g=>{var S;r||(p(new Yh(g)),(S=t.abort)==null||S.call(t))},a=()=>{e=!0},c=()=>{e=!1},l=()=>_l.isFocused()&&(t.networkMode==="always"||pu.isOnline())&&t.canRun(),d=()=>Vh(t.networkMode)&&t.canRun(),y=g=>{var S;r||(r=!0,(S=t.onSuccess)==null||S.call(t,g),i==null||i(),s.resolve(g))},p=g=>{var S;r||(r=!0,(S=t.onError)==null||S.call(t,g),i==null||i(),s.reject(g))},x=()=>new Promise(g=>{var S;i=O=>{(r||l())&&g(O)},(S=t.onPause)==null||S.call(t)}).then(()=>{var g;i=void 0,r||(g=t.onContinue)==null||g.call(t)}),b=()=>{if(r)return;let g;const S=n===0?t.initialPromise:void 0;try{g=S??t.fn()}catch(O){g=Promise.reject(O)}Promise.resolve(g).then(y).catch(O=>{var I;if(r)return;const k=t.retry??(as?0:3),v=t.retryDelay??Uv,w=typeof v=="function"?v(n,O):v,D=k===!0||typeof k=="number"&&n<k||typeof k=="function"&&k(n,O);if(e||!D){p(O);return}n++,(I=t.onFail)==null||I.call(t,n,O),Nv(w).then(()=>l()?void 0:x()).then(()=>{e?p(O):b()})})};return{promise:s,cancel:u,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?b():x().then(b),s)}}var qv=t=>setTimeout(t,0);function Bv(){let t=[],e=0,n=a=>{a()},r=a=>{a()},i=qv;const s=a=>{e?t.push(a):i(()=>{n(a)})},u=()=>{const a=t;t=[],a.length&&i(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||u()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var Et=Bv(),Yi,Hd,Gh=(Hd=class{constructor(){ae(this,Yi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Lc(this.gcTime)&&X(this,Yi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(as?1/0:300*1e3))}clearGcTimeout(){N(this,Yi)&&(clearTimeout(N(this,Yi)),X(this,Yi,void 0))}},Yi=new WeakMap,Hd),Gs,Zi,er,Gi,fn,ua,Ki,gr,Wr,Wd,zv=(Wd=class extends Gh{constructor(e){super();ae(this,gr);ae(this,Gs);ae(this,Zi);ae(this,er);ae(this,Gi);ae(this,fn);ae(this,ua);ae(this,Ki);X(this,Ki,!1),X(this,ua,e.defaultOptions),this.setOptions(e.options),this.observers=[],X(this,Gi,e.client),X(this,er,N(this,Gi).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,X(this,Gs,Hv(this.options)),this.state=e.state??N(this,Gs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=N(this,fn))==null?void 0:e.promise}setOptions(e){this.options={...N(this,ua),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,er).remove(this)}setData(e,n){const r=Fc(this.state.data,e,this.options);return Te(this,gr,Wr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Te(this,gr,Wr).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r,i;const n=(r=N(this,fn))==null?void 0:r.promise;return(i=N(this,fn))==null||i.cancel(e),n?n.then(dn).catch(dn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,Gs))}isActive(){return this.observers.some(e=>rr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wl||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>vi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!zh(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,fn))==null||n.continue()}onOnline(){var n;const e=this.observers.find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=N(this,fn))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),N(this,er).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(N(this,fn)&&(N(this,Ki)?N(this,fn).cancel({revert:!0}):N(this,fn).cancelRetry()),this.scheduleGc()),N(this,er).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,gr,Wr).call(this,{type:"invalidate"})}fetch(e,n){var l,d,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,fn))return N(this,fn).continueRetry(),N(this,fn).promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(x=>x.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(X(this,Ki,!0),r.signal)})},s=()=>{const p=Hh(this.options,n),b=(()=>{const g={client:N(this,Gi),queryKey:this.queryKey,meta:this.meta};return i(g),g})();return X(this,Ki,!1),this.options.persister?this.options.persister(p,b,this):p(b)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,Gi),state:this.state,fetchFn:s};return i(p),p})();(l=this.options.behavior)==null||l.onFetch(a,this),X(this,Zi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Te(this,gr,Wr).call(this,{type:"fetch",meta:(y=a.fetchOptions)==null?void 0:y.meta});const c=p=>{var x,b,g,S;oc(p)&&p.silent||Te(this,gr,Wr).call(this,{type:"error",error:p}),oc(p)||((b=(x=N(this,er).config).onError)==null||b.call(x,p,this),(S=(g=N(this,er).config).onSettled)==null||S.call(g,this.state.data,p,this)),this.scheduleGc()};return X(this,fn,Zh({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var x,b,g,S;if(p===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(O){c(O);return}(b=(x=N(this,er).config).onSuccess)==null||b.call(x,p,this),(S=(g=N(this,er).config).onSettled)==null||S.call(g,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,x)=>{Te(this,gr,Wr).call(this,{type:"failed",failureCount:p,error:x})},onPause:()=>{Te(this,gr,Wr).call(this,{type:"pause"})},onContinue:()=>{Te(this,gr,Wr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),N(this,fn).start()}},Gs=new WeakMap,Zi=new WeakMap,er=new WeakMap,Gi=new WeakMap,fn=new WeakMap,ua=new WeakMap,Ki=new WeakMap,gr=new WeakSet,Wr=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Kh(r.data,this.options),fetchMeta:e.meta??null};case"success":return X(this,Zi,void 0),{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return oc(i)&&i.revert&&N(this,Zi)?{...N(this,Zi),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,er).notify({query:this,type:"updated",action:e})})},Wd);function Kh(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vh(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Hv(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ir,Vd,Wv=(Vd=class extends fs{constructor(e={}){super();ae(this,Ir);this.config=e,X(this,Ir,new Map)}build(e,n,r){const i=n.queryKey,s=n.queryHash??xl(i,n);let u=this.get(s);return u||(u=new zv({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(u)),u}add(e){N(this,Ir).has(e.queryHash)||(N(this,Ir).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=N(this,Ir).get(e.queryHash);n&&(e.destroy(),n===e&&N(this,Ir).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Et.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return N(this,Ir).get(e)}getAll(){return[...N(this,Ir).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Bf(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Bf(e,r)):n}notify(e){Et.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ir=new WeakMap,Vd),Rr,xn,Qi,Pr,si,Yd,Vv=(Yd=class extends Gh{constructor(e){super();ae(this,Pr);ae(this,Rr);ae(this,xn);ae(this,Qi);this.mutationId=e.mutationId,X(this,xn,e.mutationCache),X(this,Rr,[]),this.state=e.state||Qh(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){N(this,Rr).includes(e)||(N(this,Rr).push(e),this.clearGcTimeout(),N(this,xn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){X(this,Rr,N(this,Rr).filter(n=>n!==e)),this.scheduleGc(),N(this,xn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){N(this,Rr).length||(this.state.status==="pending"?this.scheduleGc():N(this,xn).remove(this))}continue(){var e;return((e=N(this,Qi))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var s,u,a,c,l,d,y,p,x,b,g,S,O,k,v,w,D,I,j,C;const n=()=>{Te(this,Pr,si).call(this,{type:"continue"})};X(this,Qi,Zh({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(E,P)=>{Te(this,Pr,si).call(this,{type:"failed",failureCount:E,error:P})},onPause:()=>{Te(this,Pr,si).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,xn).canRun(this)}));const r=this.state.status==="pending",i=!N(this,Qi).canStart();try{if(r)n();else{Te(this,Pr,si).call(this,{type:"pending",variables:e,isPaused:i}),await((u=(s=N(this,xn).config).onMutate)==null?void 0:u.call(s,e,this));const P=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,e));P!==this.state.context&&Te(this,Pr,si).call(this,{type:"pending",context:P,variables:e,isPaused:i})}const E=await N(this,Qi).start();return await((d=(l=N(this,xn).config).onSuccess)==null?void 0:d.call(l,E,e,this.state.context,this)),await((p=(y=this.options).onSuccess)==null?void 0:p.call(y,E,e,this.state.context)),await((b=(x=N(this,xn).config).onSettled)==null?void 0:b.call(x,E,null,this.state.variables,this.state.context,this)),await((S=(g=this.options).onSettled)==null?void 0:S.call(g,E,null,e,this.state.context)),Te(this,Pr,si).call(this,{type:"success",data:E}),E}catch(E){try{throw await((k=(O=N(this,xn).config).onError)==null?void 0:k.call(O,E,e,this.state.context,this)),await((w=(v=this.options).onError)==null?void 0:w.call(v,E,e,this.state.context)),await((I=(D=N(this,xn).config).onSettled)==null?void 0:I.call(D,void 0,E,this.state.variables,this.state.context,this)),await((C=(j=this.options).onSettled)==null?void 0:C.call(j,void 0,E,e,this.state.context)),E}finally{Te(this,Pr,si).call(this,{type:"error",error:E})}}finally{N(this,xn).runNext(this)}}},Rr=new WeakMap,xn=new WeakMap,Qi=new WeakMap,Pr=new WeakSet,si=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Et.batch(()=>{N(this,Rr).forEach(r=>{r.onMutationUpdate(e)}),N(this,xn).notify({mutation:this,type:"updated",action:e})})},Yd);function Qh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yr,yr,ca,Zd,Yv=(Zd=class extends fs{constructor(e={}){super();ae(this,Yr);ae(this,yr);ae(this,ca);this.config=e,X(this,Yr,new Set),X(this,yr,new Map),X(this,ca,0)}build(e,n,r){const i=new Vv({mutationCache:this,mutationId:++Ea(this,ca)._,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){N(this,Yr).add(e);const n=Ua(e);if(typeof n=="string"){const r=N(this,yr).get(n);r?r.push(e):N(this,yr).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(N(this,Yr).delete(e)){const n=Ua(e);if(typeof n=="string"){const r=N(this,yr).get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&N(this,yr).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Ua(e);if(typeof n=="string"){const r=N(this,yr).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){var r;const n=Ua(e);if(typeof n=="string"){const i=(r=N(this,yr).get(n))==null?void 0:r.find(s=>s!==e&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Et.batch(()=>{N(this,Yr).forEach(e=>{this.notify({type:"removed",mutation:e})}),N(this,Yr).clear(),N(this,yr).clear()})}getAll(){return Array.from(N(this,Yr))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>zf(n,r))}findAll(e={}){return this.getAll().filter(n=>zf(e,n))}notify(e){Et.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Et.batch(()=>Promise.all(e.map(n=>n.continue().catch(dn))))}},Yr=new WeakMap,yr=new WeakMap,ca=new WeakMap,Zd);function Ua(t){var e;return(e=t.options.scope)==null?void 0:e.id}function mu(t){return{onFetch:(e,n)=>{var d,y,p,x,b;const r=e.options,i=(p=(y=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:y.fetchMore)==null?void 0:p.direction,s=((x=e.state.data)==null?void 0:x.pages)||[],u=((b=e.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let g=!1;const S=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},O=Hh(e.options,e.fetchOptions),k=async(v,w,D)=>{if(g)return Promise.reject();if(w==null&&v.pages.length)return Promise.resolve(v);const j=(()=>{const L={client:e.client,queryKey:e.queryKey,pageParam:w,direction:D?"backward":"forward",meta:e.options.meta};return S(L),L})(),C=await O(j),{maxPages:E}=e.options,P=D?jv:Lv;return{pages:P(v.pages,C,E),pageParams:P(v.pageParams,w,E)}};if(i&&s.length){const v=i==="backward",w=v?Xh:Uc,D={pages:s,pageParams:u},I=w(r,D);a=await k(D,I,v)}else{const v=t??s.length;do{const w=c===0?u[0]??r.initialPageParam:Uc(r,a);if(c>0&&w==null)break;a=await k(a,w),c++}while(c<v)}return a};e.options.persister?e.fetchFn=()=>{var g,S;return(S=(g=e.options).persister)==null?void 0:S.call(g,l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=l}}}function Uc(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function Xh(t,{pages:e,pageParams:n}){var r;return e.length>0?(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n):void 0}function Zv(t,e){return e?Uc(t,e)!=null:!1}function Gv(t,e){return!e||!t.getPreviousPageParam?!1:Xh(t,e)!=null}var Rt,ci,li,Ks,Qs,fi,Xs,Js,Gd,e2=(Gd=class{constructor(t={}){ae(this,Rt);ae(this,ci);ae(this,li);ae(this,Ks);ae(this,Qs);ae(this,fi);ae(this,Xs);ae(this,Js);X(this,Rt,t.queryCache||new Wv),X(this,ci,t.mutationCache||new Yv),X(this,li,t.defaultOptions||{}),X(this,Ks,new Map),X(this,Qs,new Map),X(this,fi,0)}mount(){Ea(this,fi)._++,N(this,fi)===1&&(X(this,Xs,_l.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,Rt).onFocus())})),X(this,Js,pu.subscribe(async t=>{t&&(await this.resumePausedMutations(),N(this,Rt).onOnline())})))}unmount(){var t,e;Ea(this,fi)._--,N(this,fi)===0&&((t=N(this,Xs))==null||t.call(this),X(this,Xs,void 0),(e=N(this,Js))==null||e.call(this),X(this,Js,void 0))}isFetching(t){return N(this,Rt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return N(this,ci).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,Rt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=N(this,Rt).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(vi(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return N(this,Rt).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=N(this,Rt).get(r.queryHash),s=i==null?void 0:i.state.data,u=Mv(e,s);if(u!==void 0)return N(this,Rt).build(this,r).setData(u,{...n,manual:!0})}setQueriesData(t,e,n){return Et.batch(()=>N(this,Rt).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=N(this,Rt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=N(this,Rt);Et.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=N(this,Rt);return Et.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Et.batch(()=>N(this,Rt).findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(dn).catch(dn)}invalidateQueries(t,e={}){return Et.batch(()=>(N(this,Rt).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Et.batch(()=>N(this,Rt).findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(dn)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(dn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=N(this,Rt).build(this,e);return n.isStaleByTime(vi(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(dn).catch(dn)}fetchInfiniteQuery(t){return t.behavior=mu(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(dn).catch(dn)}ensureInfiniteQueryData(t){return t.behavior=mu(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return pu.isOnline()?N(this,ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Rt)}getMutationCache(){return N(this,ci)}getDefaultOptions(){return N(this,li)}setDefaultOptions(t){X(this,li,t)}setQueryDefaults(t,e){N(this,Ks).set(us(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...N(this,Ks).values()],n={};return e.forEach(r=>{ia(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){N(this,Qs).set(us(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...N(this,Qs).values()],n={};return e.forEach(r=>{ia(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...N(this,li).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=xl(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===wl&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...N(this,li).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){N(this,Rt).clear(),N(this,ci).clear()}},Rt=new WeakMap,ci=new WeakMap,li=new WeakMap,Ks=new WeakMap,Qs=new WeakMap,fi=new WeakMap,Xs=new WeakMap,Js=new WeakMap,Gd),Dn,We,la,wn,Xi,eo,di,hi,fa,to,no,Ji,es,pi,ro,it,qo,qc,Bc,zc,Hc,Wc,Vc,Yc,Jh,Kd,Du=(Kd=class extends fs{constructor(e,n){super();ae(this,it);ae(this,Dn);ae(this,We);ae(this,la);ae(this,wn);ae(this,Xi);ae(this,eo);ae(this,di);ae(this,hi);ae(this,fa);ae(this,to);ae(this,no);ae(this,Ji);ae(this,es);ae(this,pi);ae(this,ro,new Set);this.options=n,X(this,Dn,e),X(this,hi,null),X(this,di,$c()),this.options.experimental_prefetchInRender||N(this,di).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,We).addObserver(this),Vf(N(this,We),this.options)?Te(this,it,qo).call(this):this.updateResult(),Te(this,it,Hc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zc(N(this,We),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zc(N(this,We),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,it,Wc).call(this),Te(this,it,Vc).call(this),N(this,We).removeObserver(this)}setOptions(e){const n=this.options,r=N(this,We);if(this.options=N(this,Dn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof rr(this.options.enabled,N(this,We))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,it,Yc).call(this),N(this,We).setOptions(this.options),n._defaulted&&!hu(this.options,n)&&N(this,Dn).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,We),observer:this});const i=this.hasListeners();i&&Yf(N(this,We),r,this.options,n)&&Te(this,it,qo).call(this),this.updateResult(),i&&(N(this,We)!==r||rr(this.options.enabled,N(this,We))!==rr(n.enabled,N(this,We))||vi(this.options.staleTime,N(this,We))!==vi(n.staleTime,N(this,We)))&&Te(this,it,qc).call(this);const s=Te(this,it,Bc).call(this);i&&(N(this,We)!==r||rr(this.options.enabled,N(this,We))!==rr(n.enabled,N(this,We))||s!==N(this,pi))&&Te(this,it,zc).call(this,s)}getOptimisticResult(e){const n=N(this,Dn).getQueryCache().build(N(this,Dn),e),r=this.createResult(n,e);return Qv(this,r)&&(X(this,wn,r),X(this,eo,this.options),X(this,Xi,N(this,We).state)),r}getCurrentResult(){return N(this,wn)}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n==null||n(i),Reflect.get(r,i))})}trackProp(e){N(this,ro).add(e)}getCurrentQuery(){return N(this,We)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=N(this,Dn).defaultQueryOptions(e),r=N(this,Dn).getQueryCache().build(N(this,Dn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return Te(this,it,qo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,wn)))}createResult(e,n){var E;const r=N(this,We),i=this.options,s=N(this,wn),u=N(this,Xi),a=N(this,eo),l=e!==r?e.state:N(this,la),{state:d}=e;let y={...d},p=!1,x;if(n._optimisticResults){const P=this.hasListeners(),L=!P&&Vf(e,n),$=P&&Yf(e,r,n,i);(L||$)&&(y={...y,...Kh(d.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:S}=y;x=y.data;let O=!1;if(n.placeholderData!==void 0&&x===void 0&&S==="pending"){let P;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(P=s.data,O=!0):P=typeof n.placeholderData=="function"?n.placeholderData((E=N(this,no))==null?void 0:E.state.data,N(this,no)):n.placeholderData,P!==void 0&&(S="success",x=Fc(s==null?void 0:s.data,P,n),p=!0)}if(n.select&&x!==void 0&&!O)if(s&&x===(u==null?void 0:u.data)&&n.select===N(this,fa))x=N(this,to);else try{X(this,fa,n.select),x=n.select(x),x=Fc(s==null?void 0:s.data,x,n),X(this,to,x),X(this,hi,null)}catch(P){X(this,hi,P)}N(this,hi)&&(b=N(this,hi),x=N(this,to),g=Date.now(),S="error");const k=y.fetchStatus==="fetching",v=S==="pending",w=S==="error",D=v&&k,I=x!==void 0,C={status:S,fetchStatus:y.fetchStatus,isPending:v,isSuccess:S==="success",isError:w,isInitialLoading:D,isLoading:D,data:x,dataUpdatedAt:y.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>l.dataUpdateCount||y.errorUpdateCount>l.errorUpdateCount,isFetching:k,isRefetching:k&&!v,isLoadingError:w&&!I,isPaused:y.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:w&&I,isStale:Sl(e,n),refetch:this.refetch,promise:N(this,di),isEnabled:rr(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=M=>{C.status==="error"?M.reject(C.error):C.data!==void 0&&M.resolve(C.data)},L=()=>{const M=X(this,di,C.promise=$c());P(M)},$=N(this,di);switch($.status){case"pending":e.queryHash===r.queryHash&&P($);break;case"fulfilled":(C.status==="error"||C.data!==$.value)&&L();break;case"rejected":(C.status!=="error"||C.error!==$.reason)&&L();break}}return C}updateResult(){const e=N(this,wn),n=this.createResult(N(this,We),this.options);if(X(this,Xi,N(this,We).state),X(this,eo,this.options),N(this,Xi).data!==void 0&&X(this,no,N(this,We)),hu(n,e))return;X(this,wn,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!N(this,ro).size)return!0;const u=new Set(s??N(this,ro));return this.options.throwOnError&&u.add("error"),Object.keys(N(this,wn)).some(a=>{const c=a;return N(this,wn)[c]!==e[c]&&u.has(c)})};Te(this,it,Jh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,it,Hc).call(this)}},Dn=new WeakMap,We=new WeakMap,la=new WeakMap,wn=new WeakMap,Xi=new WeakMap,eo=new WeakMap,di=new WeakMap,hi=new WeakMap,fa=new WeakMap,to=new WeakMap,no=new WeakMap,Ji=new WeakMap,es=new WeakMap,pi=new WeakMap,ro=new WeakMap,it=new WeakSet,qo=function(e){Te(this,it,Yc).call(this);let n=N(this,We).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(dn)),n},qc=function(){Te(this,it,Wc).call(this);const e=vi(this.options.staleTime,N(this,We));if(as||N(this,wn).isStale||!Lc(e))return;const r=zh(N(this,wn).dataUpdatedAt,e)+1;X(this,Ji,setTimeout(()=>{N(this,wn).isStale||this.updateResult()},r))},Bc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,We)):this.options.refetchInterval)??!1},zc=function(e){Te(this,it,Vc).call(this),X(this,pi,e),!(as||rr(this.options.enabled,N(this,We))===!1||!Lc(N(this,pi))||N(this,pi)===0)&&X(this,es,setInterval(()=>{(this.options.refetchIntervalInBackground||_l.isFocused())&&Te(this,it,qo).call(this)},N(this,pi)))},Hc=function(){Te(this,it,qc).call(this),Te(this,it,zc).call(this,Te(this,it,Bc).call(this))},Wc=function(){N(this,Ji)&&(clearTimeout(N(this,Ji)),X(this,Ji,void 0))},Vc=function(){N(this,es)&&(clearInterval(N(this,es)),X(this,es,void 0))},Yc=function(){const e=N(this,Dn).getQueryCache().build(N(this,Dn),this.options);if(e===N(this,We))return;const n=N(this,We);X(this,We,e),X(this,la,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Jh=function(e){Et.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(N(this,wn))}),N(this,Dn).getQueryCache().notify({query:N(this,We),type:"observerResultsUpdated"})})},Kd);function Kv(t,e){return rr(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Vf(t,e){return Kv(t,e)||t.state.data!==void 0&&Zc(t,e,e.refetchOnMount)}function Zc(t,e,n){if(rr(e.enabled,t)!==!1&&vi(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Sl(t,e)}return!1}function Yf(t,e,n,r){return(t!==e||rr(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Sl(t,n)}function Sl(t,e){return rr(e.enabled,t)!==!1&&t.isStaleByTime(vi(e.staleTime,t))}function Qv(t,e){return!hu(t.getCurrentResult(),e)}function Zf(t,e){const n=new Set(e);return t.filter(r=>!n.has(r))}function Xv(t,e,n){const r=t.slice(0);return r[e]=n,r}var io,tr,so,oo,nr,mi,da,ha,pa,on,Gc,Kc,Qc,Xc,Jc,Qd,Jv=(Qd=class extends fs{constructor(e,n,r){super();ae(this,on);ae(this,io);ae(this,tr);ae(this,so);ae(this,oo);ae(this,nr);ae(this,mi);ae(this,da);ae(this,ha);ae(this,pa,[]);X(this,io,e),X(this,oo,r),X(this,so,[]),X(this,nr,[]),X(this,tr,[]),this.setQueries(n)}
45onSubscribe(){this.listeners.size===1&&N(this,nr).forEach(e=>{e.subscribe(n=>{Te(this,on,Xc).call(this,e,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,N(this,nr).forEach(e=>{e.destroy()})}setQueries(e,n){X(this,so,e),X(this,oo,n),Et.batch(()=>{const r=N(this,nr),i=Te(this,on,Qc).call(this,N(this,so));X(this,pa,i),i.forEach(c=>c.observer.setOptions(c.defaultedQueryOptions));const s=i.map(c=>c.observer),u=s.map(c=>c.getCurrentResult()),a=s.some((c,l)=>c!==r[l]);r.length===s.length&&!a||(X(this,nr,s),X(this,tr,u),this.hasListeners()&&(Zf(r,s).forEach(c=>{c.destroy()}),Zf(s,r).forEach(c=>{c.subscribe(l=>{Te(this,on,Xc).call(this,c,l)})}),Te(this,on,Jc).call(this)))})}getCurrentResult(){return N(this,tr)}getQueries(){return N(this,nr).map(e=>e.getCurrentQuery())}getObservers(){return N(this,nr)}getOptimisticResult(e,n){const r=Te(this,on,Qc).call(this,e),i=r.map(s=>s.observer.getOptimisticResult(s.defaultedQueryOptions));return[i,s=>Te(this,on,Kc).call(this,s??i,n),()=>Te(this,on,Gc).call(this,i,r)]}},io=new WeakMap,tr=new WeakMap,so=new WeakMap,oo=new WeakMap,nr=new WeakMap,mi=new WeakMap,da=new WeakMap,ha=new WeakMap,pa=new WeakMap,on=new WeakSet,Gc=function(e,n){return n.map((r,i)=>{const s=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?s:r.observer.trackResult(s,u=>{n.forEach(a=>{a.observer.trackProp(u)})})})},Kc=function(e,n){return n?((!N(this,mi)||N(this,tr)!==N(this,ha)||n!==N(this,da))&&(X(this,da,n),X(this,ha,N(this,tr)),X(this,mi,Pu(N(this,mi),n(e)))),N(this,mi)):e},Qc=function(e){const n=new Map(N(this,nr).map(i=>[i.options.queryHash,i])),r=[];return e.forEach(i=>{const s=N(this,io).defaultQueryOptions(i),u=n.get(s.queryHash);u?r.push({defaultedQueryOptions:s,observer:u}):r.push({defaultedQueryOptions:s,observer:new Du(N(this,io),s)})}),r},Xc=function(e,n){const r=N(this,nr).indexOf(e);r!==-1&&(X(this,tr,Xv(N(this,tr),r,n)),Te(this,on,Jc).call(this))},Jc=function(){var e;if(this.hasListeners()){const n=N(this,mi),r=Te(this,on,Gc).call(this,N(this,tr),N(this,pa)),i=Te(this,on,Kc).call(this,r,(e=N(this,oo))==null?void 0:e.combine);n!==i&&Et.batch(()=>{this.listeners.forEach(s=>{s(N(this,tr))})})}},Qd),eb=class extends Du{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:mu()})}getOptimisticResult(t){return t.behavior=mu(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var b,g;const{state:n}=t,r=super.createResult(t,e),{isFetching:i,isRefetching:s,isError:u,isRefetchError:a}=r,c=(g=(b=n.fetchMeta)==null?void 0:b.fetchMore)==null?void 0:g.direction,l=u&&c==="forward",d=i&&c==="forward",y=u&&c==="backward",p=i&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Zv(e,n.data),hasPreviousPage:Gv(e,n.data),isFetchNextPageError:l,isFetchingNextPage:d,isFetchPreviousPageError:y,isFetchingPreviousPage:p,isRefetchError:a&&!l&&!y,isRefetching:s&&!d&&!p}}},gi,yi,Mn,Zr,Gr,eu,el,Xd,tb=(Xd=class extends fs{constructor(n,r){super();ae(this,Gr);ae(this,gi);ae(this,yi);ae(this,Mn);ae(this,Zr);X(this,gi,n),this.setOptions(r),this.bindMethods(),Te(this,Gr,eu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=N(this,gi).defaultMutationOptions(n),hu(this.options,r)||N(this,gi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,Mn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&us(r.mutationKey)!==us(this.options.mutationKey)?this.reset():((i=N(this,Mn))==null?void 0:i.state.status)==="pending"&&N(this,Mn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=N(this,Mn))==null||n.removeObserver(this)}onMutationUpdate(n){Te(this,Gr,eu).call(this),Te(this,Gr,el).call(this,n)}getCurrentResult(){return N(this,yi)}reset(){var n;(n=N(this,Mn))==null||n.removeObserver(this),X(this,Mn,void 0),Te(this,Gr,eu).call(this),Te(this,Gr,el).call(this)}mutate(n,r){var i;return X(this,Zr,r),(i=N(this,Mn))==null||i.removeObserver(this),X(this,Mn,N(this,gi).getMutationCache().build(N(this,gi),this.options)),N(this,Mn).addObserver(this),N(this,Mn).execute(n)}}
45,gi=new WeakMap,yi=new WeakMap,Mn=new WeakMap,Zr=new WeakMap,Gr=new WeakSet,eu=function(){var r;const n=((r=N(this,Mn))==null?void 0:r.state)??Qh();X(this,yi,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},el=function(n){Et.batch(()=>{var r,i,s,u,a,c,l,d;if(N(this,Zr)&&this.hasListeners()){const y=N(this,yi).variables,p=N(this,yi).context;(n==null?void 0:n.type)==="success"?((i=(r=N(this,Zr)).onSuccess)==null||i.call(r,n.data,y,p),(u=(s=N(this,Zr)).onSettled)==null||u.call(s,n.data,null,y,p)):(n==null?void 0:n.type)==="error"&&((c=(a=N(this,Zr)).onError)==null||c.call(a,n.error,y,p),(d=(l=N(this,Zr)).onSettled)==null||d.call(l,void 0,n.error,y,p))}this.listeners.forEach(y=>{y(N(this,yi))})})},Xd),ep=lt.createContext(void 0),wa=t=>{const e=lt.useContext(ep);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},n2=({client:t,children:e})=>(lt.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),Hp.jsx(ep.Provider,{value:t,children:e})),tp=lt.createContext(!1),np=()=>lt.useContext(tp);tp.Provider;function nb(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var rb=lt.createContext(nb()),rp=()=>lt.useContext(rb),ip=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},sp=t=>{lt.useEffect(()=>{t.clearReset()},[t])},op=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||Wh(n,[t.error,r])),ap=t=>{if(t.suspense){const e=r=>r==="static"?r:Math.max(r??1e3,1e3),n=t.staleTime;t.staleTime=typeof n=="function"?(...r)=>e(n(...r)):e(n),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},up=(t,e)=>t.isLoading&&t.isFetching&&!e,tl=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,gu=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function r2({queries:t,...e},n){const r=wa(n),i=np(),s=rp(),u=lt.useMemo(()=>t.map(g=>{const S=r.defaultQueryOptions(g);return S._optimisticResults=i?"isRestoring":"optimistic",S}),[t,r,i]);u.forEach(g=>{ap(g),ip(g,s)}),sp(s);const[a]=lt.useState(()=>new Jv(r,u,e)),[c,l,d]=a.getOptimisticResult(u,e.combine),y=!i&&e.subscribed!==!1;lt.useSyncExternalStore(lt.useCallback(g=>y?a.subscribe(Et.batchCalls(g)):dn,[a,y]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),lt.useEffect(()=>{a.setQueries(u,e)},[u,e,a]);const x=c.some((g,S)=>tl(u[S],g))?c.flatMap((g,S)=>{const O=u[S];if(O){const k=new Du(r,O);if(tl(O,g))return gu(O,k,s);up(g,i)&&gu(O,k,s)}return[]}):[];if(x.length>0)throw Promise.all(x);const b=c.find((g,S)=>{const O=u[S];return O&&op({result:g,errorResetBoundary:s,throwOnError:O.throwOnError,query:r.getQueryCache().get(O.queryHash),suspense:O.suspense})});if(b!=null&&b.error)throw b.error;return l(d())}function cp(t,e,n){var y,p,x,b,g;const r=np(),i=rp(),s=wa(n),u=s.defaultQueryOptions(t);(p=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||p.call(y,u),u._optimisticResults=r?"isRestoring":"optimistic",ap(u),ip(u,i),sp(i);const a=!s.getQueryCache().get(u.queryHash),[c]=lt.useState(()=>new e(s,u)),l=c.getOptimisticResult(u),d=!r&&t.subscribed!==!1;if(lt.useSyncExternalStore(lt.useCallback(S=>{const O=d?c.subscribe(Et.batchCalls(S)):dn;return c.updateResult(),O},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),lt.useEffect(()=>{c.setOptions(u)},[u,c]),tl(u,l))throw gu(u,c,i);if(op({result:l,errorResetBoundary:i,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw l.error;if((b=(x=s.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||b.call(x,u,l),u.experimental_prefetchInRender&&!as&&up(l,r)){const S=a?gu(u,c,i):(g=s.getQueryCache().get(u.queryHash))==null?void 0:g.promise;S==null||S.catch(dn).finally(()=>{c.updateResult()})}return u.notifyOnChangeProps?l:c.trackResult(l)}function i2(t,e){return cp(t,Du,e)}function s2(t){return t}function o2(t){return t}function a2(t,e){const n=wa(e);return ib({filters:{...t,status:"pending"}},n).length}function Gf(t,e){return t.findAll(e.filters).map(n=>e.select?e.select(n):n.state)}function ib(t={},e){const n=wa(e).getMutationCache(),r=lt.useRef(t),i=lt.useRef(null);return i.current||(i.current=Gf(n,t)),lt.useEffect(()=>{r.current=t}),lt.useSyncExternalStore(lt.useCallback(s=>n.subscribe(()=>{const u=Pu(i.current,Gf(n,r.current));i.current!==u&&(i.current=u,Et.schedule(s))}),[n]),()=>i.current,()=>i.current)}function u2(t,e){const n=wa(e),[r]=lt.useState(()=>new tb(n,t));lt.useEffect(()=>{r.setOptions(t)},[r,t]);const i=lt.useSyncExternalStore(lt.useCallback(u=>r.subscribe(Et.batchCalls(u)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=lt.useCallback((u,a)=>{r.mutate(u,a).catch(dn)},[r]);if(i.error&&Wh(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function c2(t,e){return cp(t,eb,e)}
45function sb(t){try{return crypto.getRandomValues(new Uint8Array(t))}catch{}try{return qp.randomBytes(t)}catch{}throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative")}function ob(t,e){if(t=t||lp,typeof t!="number")throw Error("Illegal arguments: "+typeof t+", "+typeof e);t<4?t=4:t>31&&(t=31);var n=[];return n.push("$2b$"),t<10&&n.push("0"),n.push(t.toString()),n.push("$"),n.push(nl(sb(sa),sa)),n.join("")}function ab(t,e){if(typeof e>"u"&&(e=lp),typeof e=="number"&&(e=ob(e)),typeof t!="string"||typeof e!="string")throw Error("Illegal arguments: "+typeof t+", "+typeof e);return gb(t,e)}function ub(t,e){for(var n=t.length^e.length,r=0;r<t.length;++r)n|=t.charCodeAt(r)^e.charCodeAt(r);return n===0}function l2(t,e){if(typeof t!="string"||typeof e!="string")throw Error("Illegal arguments: "+typeof t+", "+typeof e);return e.length!==60?!1:ub(ab(t,e.substring(0,e.length-31)),e)}typeof setImmediate=="function"?setImmediate:typeof scheduler=="object"&&typeof scheduler.postTask=="function"&&scheduler.postTask.bind(scheduler);function cb(t){for(var e=0,n=0,r=0;r<t.length;++r)n=t.charCodeAt(r),n<128?e+=1:n<2048?e+=2:(n&64512)===55296&&(t.charCodeAt(r+1)&64512)===56320?(++r,e+=4):e+=3;return e}function lb(t){for(var e=0,n,r,i=new Array(cb(t)),s=0,u=t.length;s<u;++s)n=t.charCodeAt(s),n<128?i[e++]=n:n<2048?(i[e++]=n>>6|192,i[e++]=n&63|128):(n&64512)===55296&&((r=t.charCodeAt(s+1))&64512)===56320?(n=65536+((n&1023)<<10)+(r&1023),++s,i[e++]=n>>18|240,i[e++]=n>>12&63|128,i[e++]=n>>6&63|128,i[e++]=n&63|128):(i[e++]=n>>12|224,i[e++]=n>>6&63|128,i[e++]=n&63|128);return i}var Ds="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),ri=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,54,55,56,57,58,59,60,61,62,63,-1,-1,-1,-1,-1,-1,-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,-1,-1,-1,-1,-1,-1,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,-1,-1,-1,-1,-1];function nl(t,e){var n=0,r=[],i,s;if(e<=0||e>t.length)throw Error("Illegal len: "+e);for(;n<e;){if(i=t[n++]&255,r.push(Ds[i>>2&63]),i=(i&3)<<4,n>=e){r.push(Ds[i&63]);break}if(s=t[n++]&255,i|=s>>4&15,r.push(Ds[i&63]),i=(s&15)<<2,n>=e){r.push(Ds[i&63]);break}s=t[n++]&255,i|=s>>6&3,r.push(Ds[i&63]),r.push(Ds[s&63])}return r.join("")}function fb(t,e){for(var n=0,r=t.length,i=0,s=[],u,a,c,l,d,y;n<r-1&&i<e&&(y=t.charCodeAt(n++),u=y<ri.length?ri[y]:-1,y=t.charCodeAt(n++),a=y<ri.length?ri[y]:-1,!(u==-1||a==-1||(d=u<<2>>>0,d|=(a&48)>>4,s.push(String.fromCharCode(d)),++i>=e||n>=r)||(y=t.charCodeAt(n++),c=y<ri.length?ri[y]:-1,c==-1)||(d=(a&15)<<4>>>0,d|=(c&60)>>2,s.push(String.fromCharCode(d)),++i>=e||n>=r)));)y=t.charCodeAt(n++),l=y<ri.length?ri[y]:-1,d=(c&3)<<6>>>0,d|=l,s.push(String.fromCharCode(d)),++i;var p=[];for(n=0;n<i;n++)p.push(s[n].charCodeAt(0));return p}var sa=16,lp=10,db=16,hb=100,Kf=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],Qf=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,
45122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,
451797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],fp=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892];function oa(t,e,n,r){var i,s=t[e],u=t[e+1];return s^=n[0],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>
458&255],i+=r[768|s&255],u^=i^n[1],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[2],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>8&255],i+=r[768|s&255],u^=i^n[3],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[4],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>8&255],i+=r[768|s&255],u^=i^n[5],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[6],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>8&255],i+=r[768|s&255],u^=i^n[7],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[8],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>8&255],i+=r[768|s&255],u^=i^n[9],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[10],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>8&255],i+=r[768|s&255],u^=i^n[11],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[12],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>8&255],i+=r[768|s&255],u^=i^n[13],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[14],i=r[s>>>24],i+=r[256|s>>16&255],i^=r[512|s>>8&255],i+=r[768|s&255],u^=i^n[15],i=r[u>>>24],i+=r[256|u>>16&255],i^=r[512|u>>8&255],i+=r[768|u&255],s^=i^n[16],t[e]=u^n[db+1],t[e+1]=s,t}function qs(t,e){for(var n=0,r=0;n<4;++n)r=r<<8|t[e]&255,e=(e+1)%t.length;return{key:r,offp:e}}function Xf(t,e,n){for(var r=0,i=[0,0],s=e.length,u=n.length,a,c=0;c<s;c++)a=qs(t,r),r=a.offp,e[c]=e[c]^a.key;for(c=0;c<s;c+=2)i=oa(i,0,e,n),e[c]=i[0],e[c+1]=i[1];for(c=0;c<u;c+=2)i=oa(i,0,e,n),n[c]=i[0],n[c+1]=i[1]}function pb(t,e,n,r){for(var i=0,s=[0,0],u=n.length,a=r.length,c,l=0;l<u;l++)c=qs(e,i),i=c.offp,n[l]=n[l]^c.key;for(i=0,l=0;l<u;l+=2)c=qs(t,i),i=c.offp,s[0]^=c.key,c=qs(t,i),i=c.offp,s[1]^=c.key,s=oa(s,0,n,r),n[l]=s[0],n[l+1]=s[1];for(l=0;l<a;l+=2)c=qs(t,i),i=c.offp,s[0]^=c.key,c=qs(t,i),i=c.offp,s[1]^=c.key,s=oa(s,0,n,r),r[l]=s[0],r[l+1]=s[1]}function mb(t,e,n,r,i){var s=fp.slice(),u=s.length,a;if(n<4||n>31)throw a=Error("Illegal number of rounds (4-31): "+n),a;if(e.length!==sa)throw a=Error("Illegal salt length: "+e.length+" != "+sa),a;n=1<<n>>>0;var c,l,d=0,y;typeof Int32Array=="function"?(c=new Int32Array(Kf),l=new Int32Array(Qf)):(c=Kf.slice(),l=Qf.slice()),pb(e,t,c,l);function p(){if(d<n)for(var b=Date.now();d<n&&(d=d+1,Xf(t,c,l),Xf(e,c,l),!(Date.now()-b>hb)););else{for(d=0;d<64;d++)for(y=0;y<u>>1;y++)oa(s,y<<1,c,l);var g=[];for(d=0;d<u;d++)g.push((s[d]>>24&255)>>>0),g.push((s[d]>>16&255)>>>0),g.push((s[d]>>8&255)>>>0),g.push((s[d]&255)>>>0);return g}}for(var x;;)if(typeof(x=p())<"u")return x||[]}function gb(t,e,n,r){var i;if(typeof t!="string"||typeof e!="string")throw i=Error("Invalid string / salt: Not a string"),i;var s,u;if(e.charAt(0)!=="$"||e.charAt(1)!=="2")throw i=Error("Invalid salt version: "+e.substring(0,2)),i;if(e.charAt(2)==="$")s="\0",u=3;else{if(s=e.charAt(2),s!=="a"&&s!=="b"&&s!=="y"||e.charAt(3)!=="$")throw i=Error("Invalid salt revision: "+e.substring(2,4)),i;u=4}if(e.charAt(u+2)>"$")throw i=Error("Missing salt rounds"),i;var a=parseInt(e.substring(u,u+1),10)*10,c=parseInt(e.substring(u+1,u+2),10),l=a+c,d=e.substring(u+3,u+25);t+=s>="a"?"\0":"";var y=lb(t),p=fb(d,sa);function x(b){var g=[];return g.push("$2"),s>="a"&&g.push(s),g.push("$"),l<10&&g.push("0"),g.push(l.toString()),g.push("$"),g.push(nl(p,p.length)),g.push(nl(b,fp.length*4-1)),g.join("")}return x(mb(y,p,l))}function Mu(t,e){const n=ve(t);return isNaN(e)?mn(t,NaN):(e&&n.setDate(n.getDate()+e),n)}function yb(t,e){const n=e*7;return Mu(t,n)}function yu(t){const e=ve(t);return e.setHours(0,0,0,0),e}function vb(t,e){const n=ve(t);if(isNaN(e))return mn(t,NaN);if(!e)return n;const r=n.getDate(),i=mn(t,n.getTime());i.setMonth(n.getMonth()+e+1,0);const s=i.getDate();return r>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function bb(t,e){return gh(t,e*Tu)}let xb={};function ds(){return xb}function cs(t,e){var a,c,l,d;const n=ds(),r=(e==null?void 0:e.weekStartsOn)??((c=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(l=n.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??0,i=ve(t),s=i.getDay(),u=(s<r?7:0)+s-r;return i.setDate(i.getDate()-u),i.setHours(0,0,0,0),i}function vu(t){return cs(t,{weekStartsOn:1}
vendor: 6,002 bytes, line 45
45)}function dp(t){const e=ve(t),n=e.getFullYear(),r=mn(t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=vu(r),s=mn(t,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const u=vu(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=u.getTime()?n:n-1}function fo(t){const e=ve(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function hp(t,e){const n=yu(t),r=yu(e),i=+n-fo(n),s=+r-fo(r);return Math.round((i-s)/dg)}function wb(t){const e=dp(t),n=mn(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),vu(n)}function f2(t,e){return vb(t,e*12)}function d2(t){let e;return t.forEach(function(n){const r=ve(n);(e===void 0||e<r||isNaN(Number(r)))&&(e=r)}),e||new Date(NaN)}function h2(t){let e;return t.forEach(n=>{const r=ve(n);(!e||e>r||isNaN(+r))&&(e=r)}),e||new Date(NaN)}function tu(t,e){const n=ve(t),r=ve(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Nu(t){return mn(t,Date.now())}function El(t,e){const n=yu(t),r=yu(e);return+n==+r}function _b(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Sb(t){if(!_b(t)&&typeof t!="number")return!1;const e=ve(t);return!isNaN(Number(e))}function Eb(t,e){const n=ve(t),r=ve(e),i=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return i*12+s}function Tb(t,e,n){const r=cs(t,n),i=cs(e,n),s=+r-fo(r),u=+i-fo(i);return Math.round((s-u)/ll)}function p2(t,e){const n=ve(t),r=ve(e),i=Jf(n,r),s=Math.abs(hp(n,r));n.setDate(n.getDate()-i*s);const u=+(Jf(n,r)===-i),a=i*(s-u);return a===0?0:a}function Jf(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function m2(t,e,n){const r=dl(t,e)/Tu;return fl()(r)}function g2(t,e,n){const r=dl(t,e)/Eu;return fl()(r)}function Ob(t){const e=ve(t);return e.setHours(23,59,59,999),e}function Ab(t){const e=ve(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function Cb(t){const e=ve(t);return+Ob(e)==+Ab(e)}function kb(t,e){const n=ve(t),r=ve(e),i=tu(n,r),s=Math.abs(Eb(n,r));let u;if(s<1)u=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*s);let a=tu(n,r)===-i;Cb(ve(t))&&s===1&&tu(t,r)===1&&(a=!1),u=i*(s-Number(a))}return u===0?0:u}function Ib(t){const e=ve(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Rb(t){const e=ve(t),n=mn(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Pb(t,e){var a,c,l,d;const n=ds(),r=(e==null?void 0:e.weekStartsOn)??((c=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(l=n.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??0,i=ve(t),s=i.getDay(),u=(s<r?-7:0)+6-(s-r);return i.setDate(i.getDate()+u),i.setHours(23,59,59,999),i}function y2(t){return Pb(t,{weekStartsOn:1})}const Db={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mb=(t,e,n)=>{let r;const i=Db[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ac(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Nb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fb={date:ac({formats:Nb,defaultWidth:"full"}),time:ac({formats:Lb,defaultWidth:"full"}),dateTime:ac({formats:jb,defaultWidth:"full"})},$b={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ub=(t,e,n,r)=>$b[t];function Po(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const u=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):u;i=t.formattingValues[a]||t.formattingValues[u]}else{const u=t.defaultWidth,a=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[u]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const qb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
45ay","Saturday"]},Wb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Vb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Yb=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Zb={ordinalNumber:Yb,era:Po({values:qb,defaultWidth:"wide"}),quarter:Po({values:Bb,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Po({values:zb,defaultWidth:"wide"}),day:Po({values:Hb,defaultWidth:"wide"}),dayPeriod:Po({values:Wb,defaultWidth:"wide",formattingValues:Vb,defaultFormattingWidth:"wide"})};function Do(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const u=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(a)?Kb(a,y=>y.test(u)):Gb(a,y=>y.test(u));let l;l=t.valueCallback?t.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const d=e.slice(u.length);return{value:l,rest:d}}}function Gb(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Kb(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Qb(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let u=t.valueCallback?t.valueCallback(s[0]):s[0];u=n.valueCallback?n.valueCallback(u):u;const a=e.slice(i.length);return{value:u,rest:a}}}const Xb=/^(\d+)(th|st|nd|rd)?/i,Jb=/\d+/i,ex={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tx={any:[/^b/i,/^(a|c)/i]},nx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rx={any:[/1/i,/2/i,/3/i,/4/i]},ix={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ox={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ax={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ux={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lx={ordinalNumber:Qb({matchPattern:Xb,parsePattern:Jb,valueCallback:t=>parseInt(t,10)}),era:Do({matchPatterns:ex,defaultMatchWidth:"wide",parsePatterns:tx,defaultParseWidth:"any"}),quarter:Do({matchPatterns:nx,defaultMatchWidth:"wide",parsePatterns:rx,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Do({matchPatterns:ix,defaultMatchWidth:"wide",parsePatterns:sx,defaultParseWidth:"any"}),day:Do({matchPatterns:ox,defaultMatchWidth:"wide",parsePatterns:ax,defaultParseWidth:"any"}),dayPeriod:Do({matchPatterns:ux,defaultMatchWidth:"any",parsePatterns:cx,defaultParseWidth:"any"})},pp={code:"en-US",formatDistance:Mb,formatLong:Fb,formatRelative:Ub,localize:Zb,match:lx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fx(t){const e=ve(t);return hp(e,Rb(e))+1}function dx(t){const e=ve(t),n=+vu(e)-+wb(e);return Math.round(n/ll)+1}function mp(t,e){var d,y,p,x;const n=ve(t),r=n.getFullYear(),i=ds(),s=(e==null?void 0:e.firstWeekContainsDate)??((y=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:y.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(p=i.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,u=mn(t,0);u.setFullYear(r+1,0,s),u.setHours(0,0,0,0);const a=cs(u,e),c=mn(t,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const l=cs(c,e);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function hx(t,e){var a,c,l,d;const n=ds(),r=(e==null?void 0:e.firstWeekContainsDate)??((c=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(l=n.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??1,i=mp(t,e),s=mn(t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),cs(s,e)}function px(t,e){const n=ve(t),r=+cs(n,e)-+hx(n,e);return Math.round(r/ll)+1}function ot(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const ii={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return ot(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):ot(n+1,2)},d(t,e){return ot(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return ot(t.getHours()%12||12,e.length)},H(t,e){return ot(t.getHours(),e.length)},m(t,e){return ot(t.getMinutes(),e.length)},s(t,e){return ot(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ot(i,e.length)}},Ms={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ed={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ii.y(t,e)},Y:function(t,e,n,r){const i=mp(t,r),s=i>0?i:1-i;if(e==="YY"){const u=s%100;return ot(u,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):ot(s,e.length)},R:function(t,e){const n=dp(t);return ot(n,e.length)},u:function(t,e){const n=t.getFullYear();return ot(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ot(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ot(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return ii.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return ot(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=px(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):ot(i,e.length)},I:function(t,e,n){const r=dx(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):ot(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):ii.d(t,e)},D:function(t,e,n){const r=fx(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ot(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return ot(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return ot(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return ot(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=Ms.noon:r===0?i=Ms.midnight:i=r/12>
vendor: 4,693 bytes, line 45
45=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=Ms.evening:r>=12?i=Ms.afternoon:r>=4?i=Ms.morning:i=Ms.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ii.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):ii.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ot(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):ot(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):ii.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):ii.s(t,e)},S:function(t,e){return ii.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return nd(r);case"XXXX":case"XX":return zi(r);case"XXXXX":case"XXX":default:return zi(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return nd(r);case"xxxx":case"xx":return zi(r);case"xxxxx":case"xxx":default:return zi(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+td(r,":");case"OOOO":default:return"GMT"+zi(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+td(r,":");case"zzzz":default:return"GMT"+zi(r,":")}},t:function(t,e,n){const r=Math.trunc(t.getTime()/1e3);return ot(r,e.length)},T:function(t,e,n){const r=t.getTime();return ot(r,e.length)}};function td(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+ot(s,2)}function nd(t,e){return t%60===0?(t>0?"-":"+")+ot(Math.abs(t)/60,2):zi(t,e)}function zi(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=ot(Math.trunc(r/60),2),s=ot(r%60,2);return n+i+e+s}const rd=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},gp=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},mx=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return rd(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",rd(r,e)).replace("{{time}}",gp(i,e))},gx={p:gp,P:mx},yx=/^D+$/,vx=/^Y+$/,bx=["D","DD","YY","YYYY"];function xx(t){return yx.test(t)}function wx(t){return vx.test(t)}function _x(t,e,n){const r=Sx(t,e,n);if(console.warn(r),bx.includes(t))throw new RangeError(r)}function Sx(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ex=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ox=/^'([^]*?)'?$/,Ax=/''/g,Cx=/[a-zA-Z]/;function v2(t,e,n){var d,y,p,x,b,g,S,O;const r=ds(),i=(n==null?void 0:n.locale)??r.locale??pp,s=(n==null?void 0:n.firstWeekContainsDate)??((y=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:y.firstWeekContainsDate)??r.firstWeekContainsDate??((x=(p=r.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,u=(n==null?void 0:n.weekStartsOn)??((g=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((O=(S=r.locale)==null?void 0:S.options)==null?void 0:O.weekStartsOn)??0,a=ve(t);if(!Sb(a))throw new RangeError("Invalid time value");let c=e.match(Tx).map(k=>{const v=k[0];if(v==="p"||v==="P"){const w=gx[v];return w(k,i.formatLong)}return k}).join("").match(Ex).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const v=k[0];if(v==="'")return{isToken:!1,value:kx(k)};if(ed[v])return{isToken:!0,value:k};
45if(v.match(Cx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:k}});i.localize.preprocessor&&(c=i.localize.preprocessor(a,c));const l={firstWeekContainsDate:s,weekStartsOn:u,locale:i};return c.map(k=>{if(!k.isToken)return k.value;const v=k.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&wx(v)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&xx(v))&&_x(v,e,String(t));const w=ed[v[0]];return w(a,v,i.localize,l)}).join("")}function kx(t){const e=t.match(Ox);return e?e[1].replace(Ax,"'"):t}function Ix(t,e,n){const r=ds(),i=(n==null?void 0:n.locale)??r.locale??pp,s=2520,u=tu(t,e);if(isNaN(u))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:u});let c,l;u>0?(c=ve(e),l=ve(t)):(c=ve(t),l=ve(e));const d=pg(l,c),y=(fo(l)-fo(c))/1e3,p=Math.round((d-y)/60);let x;if(p<2)return n!=null&&n.includeSeconds?d<5?i.formatDistance("lessThanXSeconds",5,a):d<10?i.formatDistance("lessThanXSeconds",10,a):d<20?i.formatDistance("lessThanXSeconds",20,a):d<40?i.formatDistance("halfAMinute",0,a):d<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):p===0?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",p,a);if(p<45)return i.formatDistance("xMinutes",p,a);if(p<90)return i.formatDistance("aboutXHours",1,a);if(p<Of){const b=Math.round(p/60);return i.formatDistance("aboutXHours",b,a)}else{if(p<s)return i.formatDistance("xDays",1,a);if(p<La){const b=Math.round(p/Of);return i.formatDistance("xDays",b,a)}else if(p<La*2)return x=Math.round(p/La),i.formatDistance("aboutXMonths",x,a)}if(x=kb(l,c),x<12){const b=Math.round(p/La);return i.formatDistance("xMonths",b,a)}else{const b=x%12,g=Math.trunc(x/12);return b<3?i.formatDistance("aboutXYears",g,a):b<9?i.formatDistance("overXYears",g,a):i.formatDistance("almostXYears",g+1,a)}}function b2(t,e){return Ix(t,Nu(t),e)}function Rx(t){return ve(t).getDay()}function Px(t){const e=ve(t),n=e.getFullYear(),r=e.getMonth(),i=mn(t,0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function x2(){return Object.assign({},ds())}function w2(t){return Math.trunc(+ve(t)/1e3)}function Dx(t){const e=ve(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}function _2(t,e){return Tb(Dx(t),Ib(t),e)+1}function S2(t,e){const n=ve(t),r=ve(e);return n.getTime()>r.getTime()}function E2(t,e){const n=ve(t),r=ve(e);return+n<+r}function T2(t,e){const n=ve(t),r=ve(e);return+n==+r}function O2(t,e){const n=ve(t),r=ve(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function A2(t,e){const n=ve(t),r=ve(e);return n.getFullYear()===r.getFullYear()}function C2(t){return El(t,Nu(t))}function k2(t){return El(t,Mu(Nu(t),1))}function I2(t,e){const n=+ve(t),[r,i]=[+ve(e.start),+ve(e.end)].sort((s,u)=>s-u);return n>=r&&n<=i}function Mx(t,e){return Mu(t,-e)}function R2(t){return El(t,Mx(Nu(t),1))}function Nx(t,e){let n=e-Rx(t);return n<=0&&(n+=7),Mu(t,n)}function P2(t){return Nx(t,1)}function Lx(t,e){const n=ve(t),r=n.getFullYear(),i=n.getDate(),s=mn(t,0);s.setFullYear(r,e,15),s.setHours(0,0,0,0);const u=Px(s);return n.setMonth(e,Math.min(i,u)),n}function D2(t,e){let n=ve(t);return isNaN(+n)?mn(t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Lx(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}function M2(t,e){const n=ve(t);return isNaN(+n)?mn(t,NaN):(n.setFullYear(e),n)}function N2(t,e){return bb(t,-2)}function L2(t,e){return hg(t,-e)}function j2(t,e){return yb(t,-1)}function ls(t){return typeof t=="string"}function rl(t){return typeof t=="number"}function Hs(t){return typeof t=="function"}function Dr(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()==="object"}function jx(t){var e,n,r,i=(r=(n=(e=t.userId)!==null&&e!==void 0?e:t.anonymousId)!==null&&n!==void 0?n:t.groupId)!==null&&r!==void 0?r:t.previousId;return ls(i)}var Mo=function(t){zn(e,t);function e(n,r){var i=t.call(this,r)||this;return i.field=n,i}return e}(Error);function Ns(t){var e,n=t&&t.event&&t.event.type,r=t.event;if(r===void 0)throw new Mo("event","Event is missing");if(!ls(n))throw new Mo("event","Event is not a string");if(n==="track"&&!ls(r.event))throw new Mo("event","Event is not a string");var i=(e=r.properties)!==null&&e!==void 0?e:r.traits;if(n!=="alias"&&!Dr(i))throw new Mo("properties","properties is not an object");
vendor: 9,579 bytes, line 45
45if(!jx(r))throw new Mo("userId","Missing userId or anonymousId");return t}var Fx={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:Ns,identify:Ns,page:Ns,alias:Ns,group:Ns,screen:Ns};function $x(t,e,n,r){var i,s=[t,e,n,r],u=Dr(t)?t.event:t;if(!u||!ls(u))throw new Error("Event missing");var a=Dr(t)?(i=t.properties)!==null&&i!==void 0?i:{}:Dr(e)?e:{},c={};Hs(n)||(c=n??{}),Dr(t)&&!Hs(e)&&(c=e??{});var l=s.find(Hs);return[u,a,c,l]}function id(t,e,n,r,i){var s,u,a=null,c=null,l=[t,e,n,r,i],d=l.filter(ls);d[0]!==void 0&&d[1]!==void 0&&(a=d[0],c=d[1]),d.length===1&&(a=null,c=d[0]);var y=l.find(Hs),p=l.filter(function(g){return c===null?Dr(g):Dr(g)||g===null}),x=(s=p[0])!==null&&s!==void 0?s:{},b=(u=p[1])!==null&&u!==void 0?u:{};return[a,c,x,b,y]}var sd=function(t){return function(){for(var e,n,r,i,s,u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];var c=null;c=(r=(e=u.find(ls))!==null&&e!==void 0?e:(n=u.find(rl))===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:t.id();var l=u.filter(function(x){return c===null?Dr(x):Dr(x)||x===null}),d=(i=l[0])!==null&&i!==void 0?i:{},y=(s=l[1])!==null&&s!==void 0?s:{},p=u.find(Hs);return[c,d,y,p]}};function Ux(t,e,n,r){rl(t)&&(t=t.toString()),rl(e)&&(e=e.toString());var i=[t,e,n,r],s=i.filter(ls),u=s[0],a=u===void 0?t:u,c=s[1],l=c===void 0?null:c,d=i.filter(Dr)[0],y=d===void 0?{}:d,p=i.find(Hs);return[a,l,y,p]}function Tl(){return typeof window<"u"}function F2(){return!Tl()}function qx(){return Tl()?window.navigator.onLine:!0}function bu(){return!qx()}var Ol=function(){function t(){this.callbacks={}}return t.prototype.on=function(e,n){return this.callbacks[e]?this.callbacks[e].push(n):this.callbacks[e]=[n],this},t.prototype.once=function(e,n){var r=this,i=function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];r.off(e,i),n.apply(r,s)};return this.on(e,i),this},t.prototype.off=function(e,n){var r,i=(r=this.callbacks[e])!==null&&r!==void 0?r:[],s=i.filter(function(u){return u!==n});return this.callbacks[e]=s,this},t.prototype.emit=function(e){for(var n=this,r,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];var u=(r=this.callbacks[e])!==null&&r!==void 0?r:[];return u.forEach(function(a){a.apply(n,i)}),this},t}();function il(t,e,n){e.split&&(e=e.split("."));for(var r=0,i=e.length,s=t,u,a;r<i&&(a=""+e[r++],!(a==="__proto__"||a==="constructor"||a==="prototype"));)s=s[a]=r===i?n:typeof(u=s[a])==typeof e?u:e[r]*0!==0||~(""+e[r]).indexOf(".")?{}:[]}function $2(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()==="object"}function yp(t,e){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},e);t.then(function(s){return clearTimeout(i),n(s)}).catch(r)})}function Bx(t){return new Promise(function(e){return setTimeout(e,t)})}function zx(t,e,n){var r=function(){try{return Promise.resolve(e(t))}catch(i){return Promise.reject(i)}};return Bx(n).then(function(){return yp(r(),1e3)}).catch(function(i){t==null||t.log("warn","Callback Error",{error:i}),t==null||t.stats.increment("callback_error")}).then(function(){return t})}function Hx(t){var e=Math.random()+1,n=t.minTimeout,r=n===void 0?500:n,i=t.factor,s=i===void 0?2:i,u=t.attempt,a=t.maxTimeout,c=a===void 0?1/0:a;return Math.min(e*r*Math.pow(s,u),c)}var vp="onRemoveFromFuture",Al=function(t){zn(e,t);function e(n,r,i){var s=t.call(this)||this;return s.future=[],s.maxAttempts=n,s.queue=r,s.seen=i??{},s}return e.prototype.push=function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=r.map(function(u){var a=n.updateAttempts(u);return a>n.maxAttempts||n.includes(u)?!1:(n.queue.push(u),!0)});return this.queue=this.queue.sort(function(u,a){return n.getAttempts(u)-n.getAttempts(a)}),s},e.prototype.pushWithBackoff=function(n){var r=this;if(this.getAttempts(n)===0)return this.push(n)[0];var i=this.updateAttempts(n);if(i>this.maxAttempts||this.includes(n))return!1;var s=Hx({attempt:i-1});return setTimeout(function(){r.queue.push(n),r.future=r.future.filter(function(u){return u.id!==n.id}),r.emit(vp)},s),this.future.push(n),!0},e.prototype.getAttempts=function(n){var r;return(r=this.seen[n.id])!==null&&r!==void 0?r:0},e.prototype.updateAttempts=function(n){return this.seen[n.id]=this.getAttempts(n)+1,this.getAttempts(n)},e.prototype.includes=function(n){return this.queue.includes(n)||this.future.includes(n)||!!this.queue.find(function(r){return r.id===n.id})||!!this.future.find(function(r){return r.id===n.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(Ol),Wi=256,nu=[],qa;for(;Wi--;)nu[Wi]=(Wi+256).toString(16).substring(1);function Cl(){var t=0,e,n="";if(!qa||Wi+16>256){for(qa=Array(t=256);t--;)qa[t]=256*Math.random()|0;t=Wi=0}for(;t<16;t++)e=qa[Wi+t],t==6?n+=nu[e&15|64]:t==8?n+=nu[e&63|128]:n+=nu[e],t&1&&t>1&&t<11&&(n+="-");return Wi++,n}var Wx=function(){function t(){this._logs=[]}return t.prototype.log=function(e,n,r){var i=new Date;this._logs.push({level:e,message:n,time:i,extras:r})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(n,r){var i,s,u,a=ie(ie({},r),{json:JSON.stringify(r.extras,null," "),extras:r.extras});delete a.time;var c=(u=(s=r.time)===null||s===void 0?void 0:s.toISOString())!==null&&u!==void 0?u:"";return n[c]&&(c="".concat(c,"-").concat(Math.random())),ie(ie({},n),(i={},i[c]=a,i))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(n){var r=n.level,i=n.message,s=n.extras;r==="info"||r==="debug"?console.log(i,s??""):console[r](i,s??"")});this._logs=[]},t}(),Vx=function(t){var e={gauge:"g",counter:"c"};return e[t]},bp=function(){function t(){this.metrics=[]}return t.prototype.increment=function(e,n,r){n===void 0&&(n=1),this.metrics.push({metric:e,value:n,tags:r??[],type:"counter",timestamp:Date.now()})},t.prototype.gauge=function(e,n,r){this.metrics.push({metric:e,value:n,tags:r??[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var e=this.metrics.map(function(n){return ie(ie({},n),{tags:n.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:Vx(e.type),e:e.timestamp}})},t}(),Yx=function(t){zn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.gauge=function(){},e.prototype.increment=function(){},e.prototype.flush=function(){},e.prototype.serialize=function(){return[]},e}(bp),ho=function(){function t(e){var n,r,i;this.retry=(n=e.retry)!==null&&n!==void 0?n:!0,this.type=(r=e.type)!==null&&r!==void 0?r:"plugin Error",this.reason=(i=e.reason)!==null&&i!==void 0?i:""}return t}(),xu=function(){function t(e,n,r,i){n===void 0&&(n=Cl()),r===void 0&&(r=new Yx),i===void 0&&(i=new Wx),this.attempts=0,this.event=e,this._id=n,this.logger=i,this.stats=r}return t.system=function(){},t.prototype.isSame=function(e){return e.id===this.id},t.prototype.cancel=function(e){throw e||new ho({reason:"Context Cancel"})},t.prototype.log=function(e,n,r){this.logger.log(e,n,r)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(e,n){var r;if(e.split(".")[0]==="integrations"){var i=e.split(".")[1];if(((r=this.event.integrations)===null||r===void 0?void 0:r[i])===!1)return this.event}return il(this.event,e,n),this.event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(e){this._failedDelivery=e},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},t}();function Zx(t,e){var n={};return t.forEach(function(r){var i,s=void 0;{var u=r[e];s=typeof u!="string"?JSON.stringify(u):u}s!==void 0&&(n[s]=_n(_n([],(i=n[s])!==null&&i!==void 0?i:[],!0),[r],!1))}),n}var Gx=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},Kx=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return Gx(i)&&(++n===1&&(t=new Promise(function(s){return e=s})),i.finally(function(){return--n===0&&e()})),i}}};function Qx(t){return ue(this,void 0,void 0,function(){var e;return ce(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t()];case 1:return[2,n.sent()];case 2:return e=n.sent(),[2,Promise.reject(e)];case 3:return[2]}})})}function zo(t,e){t.log("debug","plugin",{plugin:e.name});var n=new Date().getTime(),r=e[t.event.type];if(r===void 0)return Promise.resolve(t);var i=Qx(function(){return r.apply(e,[t])}).then(function(s){var u=new Date().getTime()-n;return s.stats.gauge("plugin_time",u,["plugin:".concat(e.name)]),s}).catch(function(s){if(s instanceof ho&&s.type==="middleware_cancellation")throw s;return s instanceof ho?(t.log("warn",s.type,{plugin:e.name,error:s}),s):(t.log("error","plugin Error",{plugin:e.name,error:s}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)]),s)});return i}function Xx(t,e){return zo(t,e).then(function(n){if(n instanceof xu)return n;
vendor: 9,280 bytes, line 45
45t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(n)})}function Jx(){return typeof window<"u"}function ew(){return Jx()?window.navigator.onLine:!0}function tw(){return!ew()}var nw=function(t){zn(e,t);function e(n){var r=t.call(this)||this;return r.criticalTasks=Kx(),r.plugins=[],r.failedInitializations=[],r.flushing=!1,r.queue=n,r.queue.on(vp,function(){r.scheduleFlush(0)}),r}return e.prototype.register=function(n,r,i){return ue(this,void 0,void 0,function(){var s=this;return ce(this,function(u){switch(u.label){case 0:return[4,yp(Promise.resolve(r.load(n,i)),1e4).then(function(){s.plugins.push(r)}).catch(function(a){if(r.type==="destination"){s.failedInitializations.push(r.name),console.warn(r.name,a),n.log("warn","Failed to load destination",{plugin:r.name,error:a});return}throw a})];case 1:return u.sent(),[2]}})})},e.prototype.deregister=function(n,r,i){return ue(this,void 0,void 0,function(){var s;return ce(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),r.unload?[4,Promise.resolve(r.unload(n,i))]:[3,2];case 1:u.sent(),u.label=2;case 2:return this.plugins=this.plugins.filter(function(a){return a.name!==r.name}),[3,4];case 3:return s=u.sent(),n.log("warn","Failed to unload destination",{plugin:r.name,error:s}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(n){return ue(this,void 0,void 0,function(){var r;return ce(this,function(i){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.push(n),r=this.subscribeToDelivery(n),this.scheduleFlush(0),[2,r]})})},e.prototype.subscribeToDelivery=function(n){return ue(this,void 0,void 0,function(){var r=this;return ce(this,function(i){return[2,new Promise(function(s){var u=function(a,c){a.isSame(n)&&(r.off("flush",u),s(a))};r.on("flush",u)})]})})},e.prototype.dispatchSingle=function(n){return ue(this,void 0,void 0,function(){var r=this;return ce(this,function(i){return n.log("debug","Dispatching"),n.stats.increment("message_dispatched"),this.queue.updateAttempts(n),n.attempts=1,[2,this.deliver(n).catch(function(s){var u=r.enqueuRetry(s,n);return u?r.subscribeToDelivery(n):(n.setFailedDelivery({reason:s}),n)})]})})},e.prototype.isEmpty=function(){return this.queue.length===0},e.prototype.scheduleFlush=function(n){var r=this;n===void 0&&(n=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){r.flush().then(function(){setTimeout(function(){r.flushing=!1,r.queue.length&&r.scheduleFlush(0)},0)})},n))},e.prototype.deliver=function(n){return ue(this,void 0,void 0,function(){var r,i,s,u;return ce(this,function(a){switch(a.label){case 0:return[4,this.criticalTasks.done()];case 1:a.sent(),r=Date.now(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.flushOne(n)];case 3:return n=a.sent(),i=Date.now()-r,this.emit("delivery_success",n),n.stats.gauge("delivered",i),n.log("debug","Delivered",n.event),[2,n];case 4:throw s=a.sent(),u=s,n.log("error","Failed to deliver",u),this.emit("delivery_failure",n,u),n.stats.increment("delivery_failed"),s;case 5:return[2]}})})},e.prototype.enqueuRetry=function(n,r){var i=!(n instanceof ho)||n.retry;return i?this.queue.pushWithBackoff(r):!1},e.prototype.flush=function(){return ue(this,void 0,void 0,function(){var n,r,i;return ce(this,function(s){switch(s.label){case 0:if(this.queue.length===0||tw())return[2,[]];if(n=this.queue.pop(),!n)return[2,[]];n.attempts=this.queue.getAttempts(n),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.deliver(n)];case 2:return n=s.sent(),this.emit("flush",n,!0),[3,4];case 3:return r=s.sent(),i=this.enqueuRetry(r,n),i||(n.setFailedDelivery({reason:r}),this.emit("flush",n,!1)),[2,[]];case 4:return[2,[n]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(n){var r=this.plugins.filter(function(x){var b,g,S;if(x.type!=="destination"&&x.name!=="Customer.io Data Pipelines")return!0;var O=void 0;return(b=x.alternativeNames)===null||b===void 0||b.forEach(function(k){n[k]!==void 0&&(O=n[k])}),(S=(g=n[x.name])!==null&&g!==void 0?g:O)!==null&&S!==void 0?S:(x.name==="Customer.io Data Pipelines"?!0:n.All)!==!1}),i=Zx(r,"type"),s=i.before,u=s===void 0?[]:s,a=i.enrichment,c=a===void 0?[]:a,l=i.destination,d=l===void 0?[]:l,y=i.after,p=y===void 0?[]:y;return{before:u,enrichment:c,destinations:d,after:p}},e.prototype.flushOne=function(n){var r,i;return ue(this,void 0,void 0,function(){var s,u,a,c,l,d,b,y,p,x,b,g,S,O,k;return ce(this,function(v){switch(v.label){case 0:if(!this.isReady())throw new Error("Not ready");n.attempts>1&&this.emit("delivery_retry",n),s=this.availableExtensions((r=n.event.integrations)!==null&&r!==void 0?r:{}),u=s.before,a=s.enrichment,c=0,l=u,v.label=1;case 1:return c<l.length?(d=l[c],[4,Xx(n,d)]):[3,4];case 2:b=v.sent(),b instanceof xu&&(n=b),this.emit("message_enriched",n,d),v.label=3;case 3:return c++,[3,1];case 4:y=0,p=a,v.label=5;case 5:return y<p.length?(x=p[y],[4,zo(n,x)]):[3,8];case 6:b=v.sent(),b instanceof xu&&(n=b),this.emit("message_enriched",n,x),v.label=7;case 7:return y++,[3,5];case 8:return g=this.availableExtensions((i=n.event.integrations)!==null&&i!==void 0?i:{}),S=g.destinations,O=g.after,[4,new Promise(function(w,D){setTimeout(function(){var I=S.map(function(j){return zo(n,j)});Promise.all(I).then(w).catch(D)},0)})];case 9:return v.sent(),n.stats.increment("message_delivered"),this.emit("message_delivered",n),k=O.map(function(w){return zo(n,w)}),[4,Promise.all(k)];case 10:return v.sent(),[2,n]}})})},e}(Ol),rw=function(t,e){var n=Date.now()-t;return Math.max((e??300)-n,0)};function iw(t,e,n,r){return ue(this,void 0,void 0,function(){var i,s;return ce(this,function(u){switch(u.label){case 0:return n.emit("dispatch_start",t),i=Date.now(),e.isEmpty()?[4,e.dispatchSingle(t)]:[3,2];case 1:return s=u.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:s=u.sent(),u.label=4;case 4:return r!=null&&r.callback?[4,zx(s,r.callback,rw(i,r.timeout))]:[3,6];case 5:s=u.sent(),u.label=6;case 6:return r!=null&&r.debug&&s.flush(),[2,s]}})})}function sw(t,e){return e=e||{},new Promise(function(n,r){var i=new XMLHttpRequest,s=[],u=[],a={},c=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return s},entries:function(){return u},get:function(d){return a[d.toLowerCase()]},has:function(d){return d.toLowerCase()in a}}}};for(var l in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(d,y,p){s.push(y=y.toLowerCase()),u.push([y,p]),a[y]=a[y]?a[y]+","+p:p}),n(c())},i.onerror=r,i.withCredentials=e.credentials=="include",e.headers)i.setRequestHeader(l,e.headers[l]);i.send(e.body||null)})}var kl=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:null},Lu=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=kl();return(n&&n.fetch||sw).apply(void 0,t)},aa="0.4.13";/*! js-cookie v3.0.1 | MIT */function Ba(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var ow={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function sl(t,e){function n(i,s,u){if(!(typeof document>"u")){u=Ba({},e,u),typeof u.expires=="number"&&(u.expires=new Date(Date.now()+u.expires*864e5)),u.expires&&(u.expires=u.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in u)u[c]&&(a+="; "+c,u[c]!==!0&&(a+="="+u[c].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],u={},a=0;a<s.length;a++){var c=s[a].split("="),l=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(u[d]=t.read(l,d),i===d)break}catch{}}return i?u[i]:u}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Ba({},s,{expires:-1}))},withAttributes:function(i){return sl(this.converter,Ba({},this.attributes,i))},withConverter:function(i){return sl(Ba({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var vr=sl(ow,{path:"/"});function aw(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return t}}function uw(t){var e=t.hostname,n=e.split("."),r=n[n.length-1],i=[];if(n.length===4&&parseInt(r,10)>0||n.length<=1)return i;for(var s=n.length-2;s>=0;--s)i.push(n.slice(s).join("."));return i}function cw(t){try{return new URL(t)}catch{return}}function xp(t){var e=cw(t);if(e)for(var n=uw(e),r=0;r<n.length;++r){var i="__tld__",s=n[r],u={domain:"."+s};try{if(vr.set(i,"1",u),vr.get(i))return vr.remove(i,u),s}catch{return}}}function Il(t){for(var e=t.constructor.prototype,n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++){var i=r[n];if(i!=="constructor"){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i
45);s&&typeof s.value=="function"&&(t[i]=t[i].bind(t))}}return t}var Ls={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},Rl=function(){function t(){this.cache={}}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t.prototype.remove=function(e){delete this.cache[e]},Object.defineProperty(t.prototype,"type",{get:function(){return"memory"},enumerable:!1,configurable:!0}),t}(),lw=365,od=function(t){zn(e,t);function e(n){n===void 0&&(n=e.defaults);var r=t.call(this)||this;return r.options=ie(ie({},e.defaults),n),r}return e.available=function(){var n=window.navigator.cookieEnabled;return n||(vr.set("ajs:cookies","test"),n=document.cookie.includes("ajs:cookies"),vr.remove("ajs:cookies")),n},Object.defineProperty(e,"defaults",{get:function(){return{maxage:lw,domain:xp(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(n){try{var r=vr.get(n);if(!r)return null;try{return JSON.parse(r)}catch{return r}}catch{return null}},e.prototype.set=function(n,r){typeof r=="string"?vr.set(n,r,this.opts()):r===null?vr.remove(n,this.opts()):vr.set(n,JSON.stringify(r),this.opts())},e.prototype.remove=function(n){return vr.remove(n,this.opts())},Object.defineProperty(e.prototype,"type",{get:function(){return"cookie"},enumerable:!1,configurable:!0}),e}(Rl),uc=function(t,e){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(e))},ad=function(t){zn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.available=function(){var n="test";try{return localStorage.setItem(n,n),localStorage.removeItem(n),!0}catch{return!1}},e.prototype.get=function(n){try{var r=localStorage.getItem(n);if(r===null)return null;try{return JSON.parse(r)}catch{return r}}catch{return uc(n,"unavailable"),null}},e.prototype.set=function(n,r){try{localStorage.setItem(n,JSON.stringify(r))}catch{uc(n,"full")}},e.prototype.remove=function(n){try{return localStorage.removeItem(n)}catch{uc(n,"unavailable")}},Object.defineProperty(e.prototype,"type",{get:function(){return"localStorage"},enumerable:!1,configurable:!0}),e}(Rl),Ho=function(){function t(e,n){this.storageOptions=n,this.enabledStores=e}return t.prototype.getStores=function(e){var n=this,r=[];return this.enabledStores.filter(function(i){return!e||(e==null?void 0:e.includes(i))}).forEach(function(i){var s=n.storageOptions[i];s!==void 0&&r.push(s)}),r},t.prototype.getAndSync=function(e,n){var r=this.get(e,n),i=typeof r=="number"?r.toString():r;return this.set(e,i,n),i},t.prototype.get=function(e,n){for(var r=null,i=0,s=this.getStores(n);i<s.length;i++){var u=s[i];if(r=u.get(e),r)return r}return null},t.prototype.set=function(e,n,r){for(var i=0,s=this.getStores(r);i<s.length;i++){var u=s[i];u.set(e,n)}},t.prototype.clear=function(e,n){for(var r=0,i=this.getStores(n);r<i.length;r++){var s=i[r];s.remove(e)}},t}();function Pl(t){return{cookie:od.available()?new od(t):void 0,localStorage:ad.available()?new ad:void 0,memory:new Rl}}var wp=function(){function t(e,n){e===void 0&&(e=Ls);var r=this,i,s,u,a;this.options={},this.id=function(x){if(r.options.disable)return null;var b=r.identityStore.getAndSync(r.idKey);if(x!==void 0){r.identityStore.set(r.idKey,x);var g=x!==b&&b!==null&&x!==null;g&&r.anonymousId(null)}var S=r.identityStore.getAndSync(r.idKey);if(S)return S;var O=r.legacyUserStore.get(Ls.cookie.oldKey);return O?typeof O=="object"?O.id:O:null},this.anonymousId=function(x){var b,g;if(r.options.disable)return null;if(x===void 0){var S=(b=r.identityStore.getAndSync(r.anonKey))!==null&&b!==void 0?b:(g=r.legacySIO())===null||g===void 0?void 0:g[0];if(S)return S}return x===null?(r.identityStore.set(r.anonKey,null),r.identityStore.getAndSync(r.anonKey)):(r.identityStore.set(r.anonKey,x??Cl()),r.identityStore.getAndSync(r.anonKey))},this.traits=function(x){var b;if(!r.options.disable)return x===null&&(x={}),x&&r.traitsStore.set(r.traitsKey,x??{}),(b=r.traitsStore.get(r.traitsKey))!==null&&b!==void 0?b:{}},this.options=e,this.cookieOptions=n,this.idKey=(s=(i=e.cookie)===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s:Ls.cookie.ke
45y,this.traitsKey=(a=(u=e.localStorage)===null||u===void 0?void 0:u.key)!==null&&a!==void 0?a:Ls.localStorage.key,this.anonKey="ajs_anonymous_id";var c=e.disable===!0,l=e.persist!==!1,d=c?[]:l?["localStorage","cookie","memory"]:["memory"],y=Pl(n);e.localStorageFallbackDisabled&&(d=d.filter(function(x){return x!=="localStorage"})),this.identityStore=new Ho(d,y),this.legacyUserStore=new Ho(d.filter(function(x){return x!=="localStorage"&&x!=="memory"}),y),this.traitsStore=new Ho(d.filter(function(x){return x!=="cookie"}),y);var p=this.legacyUserStore.get(Ls.cookie.oldKey);p&&typeof p=="object"&&(p.id&&this.id(p.id),p.traits&&this.traits(p.traits)),Il(this)}return t.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var n=e.split("----"),r=n[0],i=n[1];return[r,i]},t.prototype.identify=function(e,n){if(!this.options.disable){n=n??{};var r=this.id();(r===null||r===e)&&(n=ie(ie({},this.traits()),n)),e&&this.id(e),this.traits(n)}},t.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},t.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},t.prototype.load=function(){return new t(this.options,this.cookieOptions)},t.prototype.save=function(){return!0},t.defaults=Ls,t}(),fw={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},dw=function(t){zn(e,t);function e(n,r){n===void 0&&(n=fw);var i=t.call(this,n,r)||this;return i.anonymousId=function(s){},Il(i),i}return e}(wp),No;function hw(){if(No)return No;var t=xp(window.location.href);return No={expires:31536e6,secure:!1,path:"/"},t&&(No.domain=t),No}var pw="npm";function mw(){return pw}function gw(){var t=vr.get("_ga");if(t&&t.startsWith("amp"))return t}function yw(t){return t.startsWith("?")&&(t=t.substring(1)),t=t.replace(/\?/g,"&"),t.split("&").reduce(function(e,n){var r=n.split("="),i=r[0],s=r[1],u=s===void 0?"":s;if(i.includes("utm_")&&i.length>4){var a=i.substr(4);a==="campaign"&&(a="name"),e[a]=aw(u)}return e},{})}function vw(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1)),t=t.replace(/\?/g,"&");for(var n=t.split("&"),r=0,i=n;r<i.length;r++){var s=i[r],u=s.split("="),a=u[0],c=u[1];if(e[a])return{id:c,type:e[a]}}}function bw(t,e,n){var r=new Ho(n?[]:["cookie"],Pl(hw())),i=r.get("s:context.referrer"),s=vw(t);s=s??i,s&&(e&&(e.referrer=ie(ie({},e.referrer),s)),r.set("s:context.referrer",s))}function xw(t,e,n,r){var i,s,u,a,c=t.user(),l=window.location.search;e.context=(s=(i=e.context)!==null&&i!==void 0?i:e.options)!==null&&s!==void 0?s:{};var d=e.context;delete e.options,e.writeKey=n==null?void 0:n.apiKey,d.userAgent=window.navigator.userAgent;var y=navigator.userLanguage||navigator.language;if(typeof d.locale>"u"&&typeof y<"u"&&(d.locale=y),!d.library){var p=mw();p==="web"?d.library={name:"analytics.js",version:"next-".concat(aa)}:d.library={name:"analytics.js",version:"npm:next-".concat(aa)}}l&&!d.campaign&&(d.campaign=yw(l)),bw(l,d,(u=t.options.disableClientPersistence)!==null&&u!==void 0?u:!1),e.userId=e.userId||c.id(),e.anonymousId=e.anonymousId||c.anonymousId(),e.sentAt=new Date;var x=t.queue.failedInitializations||[];x.length>0&&(e._metadata={failedInitializations:x});var b=[],g=[];for(var S in r){var O=r[S];S==="Customer.io Data Pipelines"&&b.push(S),O.bundlingStatus==="bundled"&&b.push(S),O.bundlingStatus==="unbundled"&&g.push(S)}for(var k=0,v=(n==null?void 0:n.unbundledIntegrations)||[];k<v.length;k++){var w=v[k];g.includes(w)||g.push(w)}var D=(a=n==null?void 0:n.maybeBundledConfigIds)!==null&&a!==void 0?a:{},I=[];b.sort().forEach(function(C){var E;((E=D[C])!==null&&E!==void 0?E:[]).forEach(function(P){I.push(P)})}),(n==null?void 0:n.addBundledMetadata)!==!1&&(e._metadata=ie(ie({},e._metadata),{bundled:b.sort(),unbundled:g.sort(),bundledIds:I}));var j=gw();return j&&(d.amp={id:j}),e}var ww=function(t,e,n){var r=e.reduce(function(i,s){var u=s.split(":"),a=u[0],c=u[1];return i[a]=c,i},{});return{type:"Counter",metric:t,value:1,tags:ie(ie({},r),{library:"analytics.js",library_version:"npm:next-".concat(aa)})}};function cc(t){console.error("Error sending performance metrics",t)}var _w=function(){function t(e){var n=this,r,i,s,u;if(this.host=(r=e==null?void 0:e.host)!==null&&r!==void 0?r:"cdp.customer.io/v1",this.sampleRate=(i=e
45==null?void 0:e.sampleRate)!==null&&i!==void 0?i:1,this.flushTimer=(s=e==null?void 0:e.flushTimer)!==null&&s!==void 0?s:30*1e3,this.maxQueueSize=(u=e==null?void 0:e.maxQueueSize)!==null&&u!==void 0?u:20,this.queue=[],this.sampleRate>0){var a=!1,c=function(){a||(a=!0,n.flush().catch(cc),a=!1,setTimeout(c,n.flushTimer))};c()}}return t.prototype.increment=function(e,n){if(e.includes("analytics_js.")&&n.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var r=ww(e,n);this.queue.push(r),e.includes("error")&&this.flush().catch(cc)}},t.prototype.flush=function(){return ue(this,void 0,void 0,function(){var e=this;return ce(this,function(n){switch(n.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(r){cc(r),e.sampleRate=0})];case 1:return n.sent(),[2]}})})},t.prototype.send=function(){return ue(this,void 0,void 0,function(){var e,n,r;return ce(this,function(i){return e={series:this.queue},this.queue=[],n={"Content-Type":"text/plain"},r="https://".concat(this.host,"/m"),[2,Lu(r,{headers:n,body:JSON.stringify(e),method:"POST"})]})})},t}(),za,_p=function(t){zn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.initRemoteMetrics=function(n){za=new _w(n)},e.prototype.increment=function(n,r,i){t.prototype.increment.call(this,n,r,i),za==null||za.increment(n,i??[])},e}(bp),Ws=function(t){zn(e,t);function e(n,r){return t.call(this,n,r,new _p)||this}return e.system=function(){return new this({type:"track",event:"system"})},e}(xu),lc={exports:{}},ud;function Sw(){return ud||(ud=1,function(t,e){(function(n){t.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(O,k){var v=O[0],w=O[1],D=O[2],I=O[3];v+=(w&D|~w&I)+k[0]-680876936|0,v=(v<<7|v>>>25)+w|0,I+=(v&w|~v&D)+k[1]-389564586|0,I=(I<<12|I>>>20)+v|0,D+=(I&v|~I&w)+k[2]+606105819|0,D=(D<<17|D>>>15)+I|0,w+=(D&I|~D&v)+k[3]-1044525330|0,w=(w<<22|w>>>10)+D|0,v+=(w&D|~w&I)+k[4]-176418897|0,v=(v<<7|v>>>25)+w|0,I+=(v&w|~v&D)+k[5]+1200080426|0,I=(I<<12|I>>>20)+v|0,D+=(I&v|~I&w)+k[6]-1473231341|0,D=(D<<17|D>>>15)+I|0,w+=(D&I|~D&v)+k[7]-45705983|0,w=(w<<22|w>>>10)+D|0,v+=(w&D|~w&I)+k[8]+1770035416|0,v=(v<<7|v>>>25)+w|0,I+=(v&w|~v&D)+k[9]-1958414417|0,I=(I<<12|I>>>20)+v|0,D+=(I&v|~I&w)+k[10]-42063|0,D=(D<<17|D>>>15)+I|0,w+=(D&I|~D&v)+k[11]-1990404162|0,w=(w<<22|w>>>10)+D|0,v+=(w&D|~w&I)+k[12]+1804603682|0,v=(v<<7|v>>>25)+w|0,I+=(v&w|~v&D)+k[13]-40341101|0,I=(I<<12|I>>>20)+v|0,D+=(I&v|~I&w)+k[14]-1502002290|0,D=(D<<17|D>>>15)+I|0,w+=(D&I|~D&v)+k[15]+1236535329|0,w=(w<<22|w>>>10)+D|0,v+=(w&I|D&~I)+k[1]-165796510|0,v=(v<<5|v>>>27)+w|0,I+=(v&D|w&~D)+k[6]-1069501632|0,I=(I<<9|I>>>23)+v|0,D+=(I&w|v&~w)+k[11]+643717713|0,D=(D<<14|D>>>18)+I|0,w+=(D&v|I&~v)+k[0]-373897302|0,w=(w<<20|w>>>12)+D|0,v+=(w&I|D&~I)+k[5]-701558691|0,v=(v<<5|v>>>27)+w|0,I+=(v&D|w&~D)+k[10]+38016083|0,I=(I<<9|I>>>23)+v|0,D+=(I&w|v&~w)+k[15]-660478335|0,D=(D<<14|D>>>18)+I|0,w+=(D&v|I&~v)+k[4]-405537848|0,w=(w<<20|w>>>12)+D|0,v+=(w&I|D&~I)+k[9]+568446438|0,v=(v<<5|v>>>27)+w|0,I+=(v&D|w&~D)+k[14]-1019803690|0,I=(I<<9|I>>>23)+v|0,D+=(I&w|v&~w)+k[3]-187363961|0,D=(D<<14|D>>>18)+I|0,w+=(D&v|I&~v)+k[8]+1163531501|0,w=(w<<20|w>>>12)+D|0,v+=(w&I|D&~I)+k[13]-1444681467|0,v=(v<<5|v>>>27)+w|0,I+=(v&D|w&~D)+k[2]-51403784|0,I=(I<<9|I>>>23)+v|0,D+=(I&w|v&~w)+k[7]+1735328473|0,D=(D<<14|D>>>18)+I|0,w+=(D&v|I&~v)+k[12]-1926607734|0,w=(w<<20|w>>>12)+D|0,v+=(w^D^I)+k[5]-378558|0,v=(v<<4|v>>>28)+w|0,I+=(v^w^D)+k[8]-2022574463|0,I=(I<<11|I>>>21)+v|0,D+=(I^v^w)+k[11]+1839030562|0,D=(D<<16|D>>>16)+I|0,w+=(D^I^v)+k[14]-35309556|0,w=(w<<23|w>>>9)+D|0,v+=(w^D^I)+k[1]-1530992060|0,v=(v<<4|v>>>28)+w|0,I+=(v^w^D)+k[4]+1272893353|0,I=(I<<11|I>>>21)+v|0,D+=(I^v^w)+k[7]-155497632|0,D=(D<<16|D>>>16)+I|0,w+=(D^I^v)+k[10]-1094730640|0,w=(w<<23|w>>>9)+D|0,v+=(w^D^I)+k[13]+681279174|0,v=(v<<4|v>>>28)+w|0,I+=(v^w^D)+k[0]-358537222|0,I=(I<<11|I>>>21)+v|0,D+=(I^v^w)+k[3]-722521979|0,D=(D<<16|D>>>16)+I|0,w+=(D^I^v)+k[6]+76029189|0,w=(w<<23|w>>>9)+D|0,v+=(w^D^I)+k[9]-640364487|0,v=(v<<4|v>>>28)+w|0,I+=(v^w^D)+k[12]-421815835|0,I=(I<<11|I>>>21)+v|0,D+=(I^v^w)+k[15]+530742520|0,D=(D<<16|D>>>16)+I|0,w+=(D^I^v)+k[2]-995338651|0,w=(w<<23|w>>>9)+D|0,v+=(D^(w|~I))+k[0]-198630844|0,v=(v<<6|v>>>26)+w|0,I+=(w^(v|~D))+k[7]+1126891415|0,I=(I<<10|I>>>22)+v|0,D+=(v^(I|~w))+k[14]-1416354905|0,D=(D<<15|D>>>17)+I|0,w+=(I^(D|~v))+k[5]-57434055|0,w=(w<<21|w>>>11)+D|0,v+=(D^(w|~I))+k[12]+1700485571|0,v=(v<<6|v>>>26)+w|0,I+=(w^(v|~D))+k[3]-1894986606|0,I=(I<<10|I>>>22)+v|0,D+=(v^(I|~w))+k[10]-1051523|0,D=(D<<15|D>>>17)+I|0,w+=(I^(D|~v))+k[1]-2054922799|0,w=(w<<21|w>>>11)+D|0,v+=(D^(w|~I))+k[8]+1873313359|0,v=(v<<6|v>>>26)+w|0,I+=(w^(v|~D))+k[15]-30611744|0,I=(I<<10|I>>>22)+v|0,D+=(v^(I|~w))+k[6]-1560198380|0,D=(D<<15|D>>>17)+I|0,w+=(I^(D|~v))+k[13]+1309151649|0,w=(w<<21|w>>>11)+D|0,v+=(D^(w|~I))+k[4]-145523070|0,v=(v<<6|v>>>26)+w|0,I+=(w^(v|~D))+k[11]-1120210379|0,I=(I<<10|I>>>22)+v|0,D+=(v^(I|~w))+k[2]+718787259|0,D=(D<<15|D>>>17)+I|0,w+=(I^(D|~v))+k[9]-343485551|0,w=(w<<21|w>>>11)+D|0,O[0]=v+O[0]|0,O[1]=w+O[1]|0,O[2]=D+O[2]|0,O[3]=I+O[3]|0}function s(O){var k=[],v;for(v=0;v<64;v+=4)k[v>>2]=O.charCodeAt(v)+(O.charCodeAt(v+1)<<8)+(O.charCodeAt(v+2)<<16)+(O.charCodeAt(v+3)<<24);return k}function u(O){var k=[],v;for(v=0;v<64;v+=4)k[v>>2]=O[v]+(O[v+1]<<8)+(O[v+2]<<16)+(O[v+3]<<24);return k}function a(O){var k=O.length,v=[1732584193,-271733879,-1732584194,271733878],w,D,I,j,C,E;for(w=64;w<=k;w+=64)i(v,s(O.substring(w-64,w)));for(O=O.substring(w-64),D=O.length,I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)I[w>>2]|=O.charCodeAt(w)<<(w%4<<3);if(I[w>>2]|=128<<(w%4<<3),w>55)for(i(v,I),w=0;w<16;w+=1)I[w]=0;return j=k*8,j=j.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(j[2],16),E=parseInt(j[1],16)||0,I[14]=C,I[15]=E,i(v,I),v}function c(O){var k=O.length,v=[1732584193,-271733879,-1732584194,271733878],w,D,I,j,C,E;for(w=64;w<=k;w+=64)i(v,u(O.subarray(w-64,w)));for(O=w-64<k?O.subarray(w-64):new Uint8Array(0),D=O.length,I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<D;w+=1)I[w>>2]|=O[w]<<(w%4<<3);if(I[w>>2]|=128<<(w%4<<3),w>55)for(i(v,I),w=0;w<16;w+=1)I[w]=0;return j=k*8,j=j.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(j[2],16),E=parseInt(j[1],16)||0,I[14]=C,I[15]=E,i(v,I),v}function l(O){var k="",v;for(v=0;v<4;v+=1)k+=r[O>>v*8+4&15]+r[O>>v*8&15];return k}function d(O){var k;for(k=0;k<O.length;k+=1)O[k]=l(O[k]);return O.join("")}d(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function O(k,v){return k=k|0||0,k<0?Math.max(k+v,0):Math.min(k,v)}ArrayBuffer.prototype.slice=function(k,v){var w=this.byteLength,D=O(k,w),I=w,j,C,E,P;return v!==n&&(I=O(v,w)),D>I?new ArrayBuffer(0):(j=I-D,C=new ArrayBuffer(j),E=new Uint8Array(C),P=new Uint8Array(this,D,j),E.set(P),C)}}();function y(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function p(O,k){var v=O.length,w=new ArrayBuffer(v),D=new Uint8Array(w),I;for(I=0;I<v;I+=1)D[I]=O.charCodeAt(I);return k?D:w}function x(O){return String.fromCharCode.apply(null,new Uint8Array(O))}function b(O,k,v){var w=new Uint8Array(O.byteLength+k.byteLength);return w.set(new Uint8Array(O)),w.set(new Uint8Array(k),O.byteLength),w}function g(O){var k=[],v=O.length,w;for(w=0;w<v-1;w+=2)k.push(parseInt(O.substr(w,2),16));return String.fromCharCode.apply(String,k)}function S(){this.reset()}return S.prototype.append=function(O){return this.appendBinary(y(O)),this},S.prototype.appendBinary=function(O){this._buff+=O,this._length+=O.length;var k=this._buff.length,v;for(v=64;v<=k;v+=64)i(this._hash,s(this._buff.substring(v-64,v)));return this._buff=this._buff.substring(v-64),this},S.prototype.end=function(O){var k=this._buff,v=k.length,w,D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],I;for(w=0;w<v;w+=1)D[w>>2]|=k.charCodeAt(w)<<(w%4<<3);return this._finish(D,v),I=d(this._hash),O&&(I=g(I)),this.reset(),I},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(O,k){var v=k,w,D,I;if(O[v>>2]|=128<<(v%4<<3),v>55)for(i(this._hash,O),v=0;v<16;v+=1)O[v]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(w[2],16),I=parseInt(w[1],16)||0,O[14]=D,O[15]=I,i(this._hash,O)},S.hash=function(O,k){return S.hashBinary(y(O),k)},S.hashBinary=function(O,k){var v=a(O),w=d(v);return k?g(w):w},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(O){var k=b(this._buff.buffer,O),v=k.length,w;for(this._length+=O.byteLength,w=64;w<=v;w+=64)i(this._hash,u(k.subarray(w-64,w)));return this._buff=w-64<v?new Uint8Array(k.buffer.slice(w-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(O){var k=this._buff,v=k.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D,I;for(D=0;D<v;D+=1)w[D>>2]|=k[D]<<(D%4<<3);return this._finish(w,v),I=d(this._hash),O&&(I=g(I)),this.reset(),I},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var O=S.prototype.getState.call(this);return O.buff=x(O.buff),O},S.ArrayBuffer.prototype.setState=function(O){return O.buff=p(O.buff,!0),S.prototype.setState.call(this,O)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(O,k){var v=c(new Uint8Array(O)),w=d(v);return k?g(w):w},S})}(lc)),lc.exports}var Ew=Sw();const Tw=_u(Ew);var Ow=function(){function t(e){this.user=e}return t.prototype.track=function(e,n,r,i){return this.normalize(ie(ie({},this.baseEvent()),{event:e,type:"track",properties:n,options:ie({},r),integrations:ie({},i)}))},t.prototype.page=function(e,n,r,i,s){var u,a={type:"page",properties:ie({},r),options:ie({},i),integrations:ie({},s)};return e!==null&&(a.category=e,a.properties=(u=a.properties)!==null&&u!==void 0?u:{},a.properties.category=e),n!==null&&(a.name=n),this.normalize(ie(ie({},this.baseEvent()),a))},t.prototype.screen=function(e,n,r,i,s){var u={type:"screen",properties:ie({},r),options:ie({},i),integrations:ie({},s)};return e!==null&&(u.category=e),n!==null&&(u.name=n),this.normalize(ie(ie({},this.baseEvent()),u))},t.prototype.identify=function(e,n,r,i){return this.normalize(ie(ie({},this.baseEvent()),{type:"identify",userId:e,traits:n,options:ie({},r),integrations:ie({},i)}))},t.prototype.group=function(e,n,r,i){return this.normalize(ie(ie({},this.baseEvent()),{type:"group",traits:n,options:ie({},r),integrations:ie({},i),groupId:e}))},t.prototype.alias=function(e,n,r,i){var s={userId:e,type:"alias",options:ie({},r),integrations:ie({},i)};return n!==null&&(s.previousId=n),e===void 0?this.normalize(ie(ie({},s),this.baseEvent())):this.normalize(ie(ie({},this.baseEvent()),s))},t.prototype.baseEvent=function(){var e={integrations:{},options:{}},n=this.user;return n.id()&&(e.userId=n.id()),n.anonymousId()&&(e.anonymousId=n.anonymousId()),e},t.prototype.context=function(e){var n,r,i,s=["integrations","anonymousId","timestamp","userId"],u=(n=e.options)!==null&&n!==void 0?n:{};delete u.integrations;var a=Object.keys(u),c=(i=(r=e.options)===null||r===void 0?void 0:r.context)!==null&&i!==void 0?i:{},l={};return a.forEach(function(d){d!=="context"&&(s.includes(d)?il(l,d,u[d]):il(c,d,u[d]))}),[c,l]},t.prototype.normalize=function(e){var n,r,i;!((n=e.options)===null||n===void 0)&&n.anonymousId&&this.user.anonymousId(e.options.anonymousId);var s=Object.keys((r=e.integrations)!==null&&r!==void 0?r:{}).reduce(function(b,g){var S,O;return ie(ie({},b),(S={},S[g]=!!(!((O=e.integrations)===null||O===void 0)&&O[g]),S))},{}),u=ie(ie({},s),(i=e.options)===null||i===void 0?void 0:i.integrations),a=this.context(e),c=a[0],l=a[1];e.options;var d=Bp(e,["options"]),y=ie(ie(ie({timestamp:new Date},d),{context:c,integrations:u}),l),p="ajs-next-"+Tw.hash(JSON.stringify(y)+Cl()),x=ie(ie({},y),{messageId:p});return x},t}(),Lr={getItem:function(){},setItem:function(){},removeItem:function(){}};try{Lr=Tl()&&window.localStorage?window.localStorage:Lr}catch(t){console.warn("Unable to access localStorage",t)}function Sp(t){var e=Lr.getItem(t);return(e?JSON.parse(e):[]).map(function(n){return new Ws(n.event,n.id)})}function Aw(t,e){var n=Sp(t),r=_n(_n([],e,!0),n,!0),i=r.reduce(function(s,u){var a;return ie(ie({},s),(a={},a[u.id]=u,a))},{});Lr.setItem(t,JSON.stringify(Object.values(i)))}function Ep(t){var e=Lr.getItem(t);return e?JSON.parse(e):{}}function Cw(t,e){var n=Ep(t);Lr.setItem(t,JSON.stringify(ie(ie({},n),e)))}function cd(t){Lr.removeItem(t)}var kw=function(){return new Date().getTime()};function ol(t,e,n){n===void 0&&(n=0);var r=50,i="persisted-queue:v1:".concat(t,":lock"),s=function(l){return new Date().getTime()>l},u=Lr.getItem(i),a=u?JSON.parse(u):null,c=a===null||s(a);if(c){Lr.setItem(i,JSON.stringify(kw()+r)),e(),Lr.removeItem(i);return}!c&&n<3?setTimeout(function(){ol(t,e,n+1)},r):console.error("Unable to retrieve lock")}var Dl=function(t){zn(e,t);function e(n,r){var i=t.call(this,n,[])||this,s="persisted-queue:v1:".concat(r,":items"),u="persisted-queue:v1:".concat(r,":seen"),a=[],c={};return ol(r,function(){try{a=Sp(s),c=Ep(u),cd(s),cd(u),i.queue=_n(_n([],a,!0),i.queue,!0),i.seen=ie(ie({},c),i.seen)}catch(l){console.error(l)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var l=_n(_n([],i.queue,!0),i.future,!0);try{ol(r,function(){Aw(s,l),Cw(u,i.seen)})}catch(d){console.error(d)}}}),i}return e}(Al),Iw=function(t){zn(e,t);function e(n){return t.call(this,n??new Dl(4,"event-queue"))||this}return e}(nw),Ml="analytics";function Nl(){return window[Ml]}function Rw(t){Ml=t}function Pw(t){window[Ml]=t}var oi="This is being deprecated and will be not be available in future releases of Analytics JS",fc=kl(),dc=fc==null?void 0:fc.analytics;function Dw(t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var n=t?4:1,r=e?new Al(n,[]):new Dl(n,"event-queue");return new Iw(r)}function Cr(){console.warn(oi)}var Mw=function(t){zn(e,t);function e(n,r,i,s,u){var a=this,c,l,d;a=t.call(this)||this,a._debug=!1,a.initialized=!1,a.user=function(){return a._user},a.init=a.initialize.bind(a),a.log=Cr,a.addIntegrationMiddleware=Cr,a.listeners=Cr,a.addEventListener=Cr,a.removeAllListeners=Cr,a.removeListener=Cr,a.removeEventListener=Cr,a.hasListeners=Cr,a.add=Cr,a.addIntegration=Cr;var y=r==null?void 0:r.cookie,p=(c=r==null?void 0:r.disableClientPersistence)!==null&&c!==void 0?c:!1;return a.settings=n,a.settings.timeout=(l=a.settings.timeout)!==null&&l!==void 0?l:300,a.queue=i??Dw(r==null?void 0:r.retryQueue,p),a._universalStorage=new Ho(p?["memory"]:["localStorage","cookie","memory"],Pl(y)),a._user=s??new wp(p?ie(ie({},r==null?void 0:r.user),{persist:!1}):r==null?void 0:r.user,y).load(),a._group=u??new dw(p?ie(ie({},r==null?void 0:r.group),{persist:!1}):r==null?void 0:r.group,y).load(),a.eventFactory=new Ow(a._user),a.integrations=(d=r==null?void 0:r.integrations)!==null&&d!==void 0?d:{},a.options=r??{},Il(a),a}return Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage}
vendor: 4,878 bytes, line 45
45,enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s,u,a,c,l,d=this;return ce(this,function(y){return i=$x.apply(void 0,n),s=i[0],u=i[1],a=i[2],c=i[3],l=this.eventFactory.track(s,u,a,this.integrations),[2,this._dispatch(l,c).then(function(p){return d.emit("track",s,p.event.properties,p.event.options),p})]})})},e.prototype.page=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s,u,a,c,l,d,y=this;return ce(this,function(p){return i=id.apply(void 0,n),s=i[0],u=i[1],a=i[2],c=i[3],l=i[4],d=this.eventFactory.page(s,u,a,c,this.integrations),[2,this._dispatch(d,l).then(function(x){return y.emit("page",s,u,x.event.properties,x.event.options),x})]})})},e.prototype.identify=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s,u,a,c,l,d=this;return ce(this,function(y){return i=sd(this._user).apply(void 0,n),s=i[0],u=i[1],a=i[2],c=i[3],this._user.identify(s,u),l=this.eventFactory.identify(this._user.id(),this._user.traits(),a,this.integrations),[2,this._dispatch(l,c).then(function(p){return d.emit("identify",p.event.userId,p.event.traits,p.event.options),p})]})})},e.prototype.group=function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(r.length===0)return this._group;var s=sd(this._group).apply(void 0,r),u=s[0],a=s[1],c=s[2],l=s[3];this._group.identify(u,a);var d=this._group.id(),y=this._group.traits(),p=this.eventFactory.group(d,y,c,this.integrations);return this._dispatch(p,l).then(function(x){return n.emit("group",x.event.groupId,x.event.traits,x.event.options),x})},e.prototype.alias=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s,u,a,c,l,d=this;return ce(this,function(y){return i=Ux.apply(void 0,n),s=i[0],u=i[1],a=i[2],c=i[3],l=this.eventFactory.alias(s,u,a,this.integrations),[2,this._dispatch(l,c).then(function(p){return d.emit("alias",s,u,p.event.options),p})]})})},e.prototype.screen=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s,u,a,c,l,d,y=this;return ce(this,function(p){return i=id.apply(void 0,n),s=i[0],u=i[1],a=i[2],c=i[3],l=i[4],d=this.eventFactory.screen(s,u,a,c,this.integrations),[2,this._dispatch(d,l).then(function(x){return y.emit("screen",s,u,x.event.properties,x.event.options),x})]})})},e.prototype.trackClick=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s;return ce(this,function(u){switch(u.label){case 0:return[4,ir(()=>import("./auto-track-BMNvnF5C.js"),__vite__mapDeps([0,1,2]))];case 1:return i=u.sent(),[2,(s=i.link).call.apply(s,_n([this],n,!1))]}})})},e.prototype.trackLink=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s;return ce(this,function(u){switch(u.label){case 0:return[4,ir(()=>import("./auto-track-BMNvnF5C.js"),__vite__mapDeps([0,1,2]))];case 1:return i=u.sent(),[2,(s=i.link).call.apply(s,_n([this],n,!1))]}})})},e.prototype.trackSubmit=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s;return ce(this,function(u){switch(u.label){case 0:return[4,ir(()=>import("./auto-track-BMNvnF5C.js"),__vite__mapDeps([0,1,2]))];case 1:return i=u.sent(),[2,(s=i.form).call.apply(s,_n([this],n,!1))]}})})},e.prototype.trackForm=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s;return ce(this,function(u){switch(u.label){case 0:return[4,ir(()=>import("./auto-track-BMNvnF5C.js"),__vite__mapDeps([0,1,2]))];case 1:return i=u.sent(),[2,(s=i.form).call.apply(s,_n([this],n,!1))]}})})},e.prototype.register=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s,u=this;return ce(this,function(a){switch(a.label){case 0:return i=Ws.system(),s=n.map(function(c){return u.queue.register(i,c,u)}),[4,Promise.all(s)];case 1:return a.sent(),[2,i]}})})},e.prototype.deregister=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return ue(this,void 0,void 0,function(){var i,s,u=this;return ce(this,function(a){switch(a.label){case 0:return i=Ws.system(),s=n.map(function(c){var l=u.queue.plugins.find(function(d){return d.name===c});if(l)return u.queue.deregister(i,l,u);i.log("warn","plugin ".concat(c," not found"))}),[4,Promise.all(s)];case 1:return a.sent(),[2,i]}})})},e.prototype.debug=function(n){return n===!1&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=n,this},e.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit
45("reset")},e.prototype.timeout=function(n){this.settings.timeout=n},e.prototype._dispatch=function(n,r){return ue(this,void 0,void 0,function(){var i;return ce(this,function(s){return i=new Ws(n),bu()&&!this.options.retryQueue?[2,i]:[2,iw(i,this.queue,this,{callback:r,debug:this._debug,timeout:this.settings.timeout})]})})},e.prototype.addSourceMiddleware=function(n){return ue(this,void 0,void 0,function(){var r=this;return ce(this,function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run(function(){return ue(r,void 0,void 0,function(){var s,u,a;return ce(this,function(c){switch(c.label){case 0:return[4,ir(()=>Promise.resolve().then(()=>n1),void 0)];case 1:return s=c.sent().sourceMiddlewarePlugin,u={},this.queue.plugins.forEach(function(l){if(l.type==="destination")return u[l.name]=!0}),a=s(n,u),[4,this.register(a)];case 2:return c.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var s=this.queue.plugins.filter(function(u){return u.name.toLowerCase()===n.toLowerCase()});return s.forEach(function(u){u.addMiddleware.apply(u,r)}),Promise.resolve(this)},e.prototype.setAnonymousId=function(n){return this._user.anonymousId(n)},e.prototype.queryString=function(n){return ue(this,void 0,void 0,function(){var r;return ce(this,function(i){switch(i.label){case 0:return this.options.useQueryString===!1?[2,[]]:[4,ir(()=>import("./index-DEtxknaP.js"),__vite__mapDeps([3,1,2]))];case 1:return r=i.sent().queryString,[2,r(this,n)]}})})},e.prototype.use=function(n){return n(this),this},e.prototype.ready=function(n){return n===void 0&&(n=function(r){return r}),ue(this,void 0,void 0,function(){return ce(this,function(r){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return n(i),i})]})})},e.prototype.noConflict=function(){return console.warn(oi),Pw(dc??this),this},e.prototype.normalize=function(n){return console.warn(oi),this.eventFactory.normalize(n)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(oi),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return aa},enumerable:!1,configurable:!0}),e.prototype.initialize=function(n,r){return ue(this,void 0,void 0,function(){return ce(this,function(i){return console.warn(oi),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(n){return ue(this,void 0,void 0,function(){return ce(this,function(r){switch(r.label){case 0:return console.warn(oi),[4,this.page({path:n})];case 1:return r.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var n;return console.warn(oi),(n=this._plugins)!==null&&n!==void 0?n:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){console.warn(oi);var n=this.queue.plugins.filter(function(r){return r.type==="destination"}).reduce(function(r,i){var s="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),u=window[s];if(!u)return r;var a=u.Integration;return a?(r[i.name]=a,r):(r[i.name]=u,r)},{});return n},enumerable:!1,configurable:!0}),e.prototype.push=function(n){var r=this,i=n.shift();i&&!r[i]||r[i].apply(this,n)},e}(Ol),ld={};function Tp(){return typeof process>"u"||!ld?{}:ld}var Nw=/(https?:\/\/[\w.\-:]+)\/(?:analytics\.js\/v1|v1\/analytics-js\/snippet)\/[\w\-:]+\/(analytics\.(?:min)\.js)/,Lw=function(){for(var t,e,n,r=Array.prototype.slice.call(document.querySelectorAll("script")),i=0,s=r;i<s.length;i++){var u=s[i],a=(t=u.getAttribute("src"))!==null&&t!==void 0?t:"",c=Nw.exec(a);if(c&&c[1]&&(n=c[1]),((e=u.dataset)===null||e===void 0?void 0:e.globalCustomerioAnalyticsKey)!=null)break}return n},ru,jw=function(){var t,e=ru??((t=Nl())===null||t===void 0?void 0:t._cdn);return e},Fw=function(t){var e=Nl();e&&(e._cdn=t),ru=t},Ll=function(){var t=jw();if(t)return t;var e=Lw();return e||"https://cdp.customer.io"},U2=function(){var t=Ll();return"".concat(t,"/v1/analytics-js/actions")};function $w(t,e){var n,r=Object.entries((n=e.integrations)!==null&&n!==void 0?n:{}).reduce(function(i,s){var u,a,c=s[0],l=s[1];return typeof l=="object"?ie(ie({},i),(u={},u[c]=l,u)):ie(ie({},i),(a={},a[c]={},a))},{});return Object.entries(t.integrations).reduce(function(i,s){var u,a=s[0],c=s[1];return ie(ie({},i),(u={},u[a]=ie(ie({},c),r[a]),u))},{})}var Uw=function(){var t,e,n=new Promise(function(r,i){t=r,e=i});return{resolve:t,reject:e,promise:n}};function Op(){var t=document.getElementsByTagName("link"),e="";return Array.prototype.slice.call(t).forEach(function(n){n.getAttribute("rel")==="canonical"&&(e=n.getAttribute("href"))}),e}function qw(){var t=Op();if(!t)return window.location.pathname;var e=document.createElement("a");e.href=t;var n=e.pathname.startsWith("/")?e.pathname:"/"+e.pathname;return n}function Bw(t){t===void 0&&(t="");var e=Op();if(e)return e.includes("?")?e:"".concat(e).concat(t);var n=window.location.href,r=n.indexOf("#");return r===-1?n:n.slice(0,r)}function Ap(){return{path:qw(),referrer:document.referrer,search:location.search,title:document.title,url:Bw(location.search)}}function Lo(t){var e,n=t.event;n.context=n.context||{};var r=Ap(),i=(e=n.properties)!==null&&e!==void 0?e:{};return Object.keys(r).forEach(function(s){i[s]&&(r[s]=i[s])}),n.context.page&&(r=Object.assign({},r,n.context.page)),n.context=Object.assign({},n.context,{page:r}),t.event=n,t}var zw={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:function(t){return t.event.properties=Object.assign({},Ap(),t.event.properties),t.event.name&&(t.event.properties.name=t.event.name),Lo(t)},alias:Lo,track:Lo,identify:Lo,group:Lo};function Cp(t){var e=Array.prototype.slice.call(window.document.querySelectorAll("script"));return e.find(function(n){return n.src===t})}function hc(t,e){var n=Cp(t);if(n!==void 0){var r=n==null?void 0:n.getAttribute("status");if(r==="loaded")return Promise.resolve(n);if(r==="loading")return new Promise(function(i,s){n.addEventListener("load",function(){return i(n)}),n.addEventListener("error",function(u){return s(u)})})}return new Promise(function(i,s){var u,a=window.document.createElement("script");a.type="text/javascript",a.src=t,a.async=!0,a.setAttribute("status","loading");for(var c=0,l=Object.entries({});c<l.length;c++){var d=l[c],y=d[0],p=d[1];a.setAttribute(y,p)}a.onload=function(){a.onerror=a.onload=null,a.setAttribute("status","loaded"),i(a)},a.onerror=function(){a.onerror=a.onload=null,a.setAttribute("status","error"),s(new Error("Failed to load ".concat(t)))};var x=window.document.getElementsByTagName("script")[0];(u=x.parentElement)===null||u===void 0||u.insertBefore(a,x)})}function q2(t){var e=Cp(t);return e!==void 0&&e.remove(),Promise.resolve()}var jo={},Mi={},js={},pc={exports:{}},fd;function ju(){return fd||(fd=1,function(t){t.exports=e(n),t.exports.find=t.exports,t.exports.replace=function(a,c,l,d){return e(i).call(this,a,c,l,d),a},t.exports.del=function(a,c,l){return e(r).call(this,a,c,null,l),a};function e(a){return function(c,l,d,y){var p=y&&u(y.normalizer)?y.normalizer
vendor: 2,277 bytes, line 45
45:s;l=p(l);for(var x,b=!1;!b;)g();function g(){for(x in c){var S=p(x);if(l.indexOf(S)===0){var O=l.substr(S.length);if(O.charAt(0)==="."||O.length===0){l=O.substr(1);var k=c[x];if(k==null){b=!0;return}if(!l.length){b=!0;return}c=k;return}}}x=void 0,b=!0}if(x)return c==null?c:a(c,x,d)}}function n(a,c){if(a.hasOwnProperty(c))return a[c]}function r(a,c){return a.hasOwnProperty(c)&&delete a[c],a}function i(a,c,l){return a.hasOwnProperty(c)&&(a[c]=l),a}function s(a){return a.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function u(a){return typeof a=="function"}}(pc)),pc.exports}var dd;function Hw(){if(dd)return js;dd=1;var t=js&&js.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(js,"__esModule",{value:!0});var e=t(ju());function n(i,s){return function(){var u=this.traits(),a=this.properties?this.properties():{};return e.default(u,"address."+i)||e.default(u,i)||(s?e.default(u,"address."+s):null)||(s?e.default(u,s):null)||e.default(a,"address."+i)||e.default(a,i)||(s?e.default(a,"address."+s):null)||(s?e.default(a,s):null)}}function r(i){i.zip=n("postalCode","zip"),i.country=n("country"),i.street=n("street"),i.state=n("state"),i.city=n("city"),i.region=n("region")}return js.default=r,js}var Fo={},hd;function Ww(){if(hd)return Fo;hd=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.clone=void 0;function t(e){if(typeof e!="object")return e;if(Object.prototype.toString.call(e)==="[object Object]"){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=t(e[r]));return n}else return Array.isArray(e)?e.map(t):e}return Fo.clone=t,Fo}var Ha={},pd;function Vw(){if(pd)return Ha;pd=1,Object.defineProperty(Ha,"__esModule",{value:!0});var t={Salesforce:!0};function e(n){return!t[n]}return Ha.default=e,Ha}var Wa={},md;function kp(){if(md)return Wa;md=1;var t=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;return Wa.parse=function(e){var n=[1,5,6,7,11,12],r=t.exec(e),i=0;if(!r)return new Date(e);for(var s=0,u;u=n[s];s++)r[u]=parseInt(r[u],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0,r[4]===" "?i=new Date().getTimezoneOffset():r[9]!=="Z"&&r[10]&&(i=r[11
45]*60+r[12],r[10]==="+"&&(i=0-i));var a=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(a)},Wa.is=function(e,n){return typeof e!="string"||n&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:t.test(e)},Wa}var Va={},gd;function Yw(){if(gd)return Va;gd=1;var t=/\d{13}/;return Va.is=function(e){return t.test(e)},Va.parse=function(e){return e=parseInt(e,10),new Date(e)},Va}var Ya={},yd;function Zw(){if(yd)return Ya;yd=1;var t=/\d{10}/;return Ya.is=function(e){return t.test(e)},Ya.parse=function(e){var n=parseInt(e,10)*1e3;return new Date(n)},Ya}var mc,vd;function jl(){if(vd)return mc;vd=1;var t=kp(),e=Yw(),n=Zw(),r=Object.prototype,i=r.toString;function s(c){return i.call(c)==="[object Date]"}function u(c){return i.call(c)==="[object Number]"}mc=function(l){return s(l)?l:u(l)?new Date(a(l)):t.is(l)?t.parse(l):e.is(l)?e.parse(l):n.is(l)?n.parse(l):new Date(l)};function a(c){return c<315576e5?c*1e3:c}return mc}var gc,bd;function Gw(){if(bd)return gc;bd=1;var t=kp();gc=e;function e(i,s){return s===void 0&&(s=!0),i&&typeof i=="object"?n(i,s):Array.isArray(i)?r(i,s):t.is(i,s)?t.parse(i):i}
vendor: 1,448 bytes, line 45
45function n(i,s){return Object.keys(i).forEach(function(u){i[u]=e(i[u],s)}),i}function r(i,s){return i.forEach(function(u,a){i[a]=e(u,s)}),i}return gc}var xd;function hs(){if(xd)return Mi;xd=1;var t=Mi&&Mi.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.Facade=void 0;var e=t(Hw()),n=Ww(),r=t(Vw()),i=t(jl()),s=t(ju()),u=t(Gw());function a(d,y){y=y||{},this.raw=n.clone(d),"clone"in y||(y.clone=!0),y.clone&&(d=n.clone(d)),"traverse"in y||(y.traverse=!0),"timestamp"in d?d.timestamp=i.default(d.timestamp):d.timestamp=new Date,y.traverse&&u.default(d),this.opts=y,this.obj=d}Mi.Facade=a;var c=a.prototype;c.proxy=function(d){var y=d.split(".");d=y.shift();var p=this[d]||this.obj[d];return p&&(typeof p=="function"&&(p=p.call(this)||{}),y.length===0?this.opts.clone?l(p):p:(p=s.default(p,y.join(".")),this.opts.clone?l(p):p))},c.field=function(d){var y=this.obj[d];return this.opts.clone?l(y):y},a.proxy=function(d){return function(){return this.proxy(d)}},a.field=function(d){return function(){return this.field(d)}},a.multi=function(d){return function(){var y=this.proxy(d+"s");if(Array.isArray(y))return y;var p=this.proxy(d);return p&&(p=[this.opts.clone?n.clone(p):p]),p||[]}},a.one=function(d){return function(){var y=this.proxy(d);if(y)return y;var p=this.proxy(d+"s");if(Array.isArray(p))return p[0]}},c.json=function(){var d=this.opts.clone?n.clone(this.obj):this.obj;
vendor: 2,082 bytes, line 45
45return this.type&&(d.type=this.type()),d},c.rawEvent=function(){return this.raw},c.options=function(d){var y=this.obj.options||this.obj.context||{},p=this.opts.clone?n.clone(y):y;if(!d)return p;if(this.enabled(d)){var x=this.integrations(),b=x[d]||s.default(x,d);return typeof b!="object"&&(b=s.default(this.options(),d)),typeof b=="object"?b:{}}},c.context=c.options,c.enabled=function(d){var y=this.proxy("options.providers.all");typeof y!="boolean"&&(y=this.proxy("options.all")),typeof y!="boolean"&&(y=this.proxy("integrations.all")),typeof y!="boolean"&&(y=!0);var p=y&&r.default(d),x=this.integrations();if(x.providers&&x.providers.hasOwnProperty(d)&&(p=x.providers[d]),x.hasOwnProperty(d)){var b=x[d];typeof b=="boolean"?p=b:p=!0}return!!p},c.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},c.active=function(){var d=this.proxy("options.active");return d==null&&(d=!0),d},c.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},c.sessionId=c.anonymousId,c.groupId=a.proxy("options.groupId"),c.traits=function(d){var y=this.proxy("options.traits")||{},p=this.userId();d=d||{},p&&(y.id=p);for(var x in d)if(Object.prototype.hasOwnProperty.call(d,x)){var b=this[x]==null?this.proxy("options.traits."+x):this[x]();if(b==null)continue;y[d[x]]=b,delete y[x]}return y},c.library=function(){var d=this.proxy("options.library");return d?typeof d=="string"?{name:d,version:null}:d:{name:"unknown",version:null}},c.device=function(){var d=this.proxy("context.device");(typeof d!="object"||d===null)&&(d={});var y=this.library().name;return d.type||(y.indexOf("ios")>-1&&(d.type="ios"),y.indexOf("android")>-1&&(d.type="android")),d},c.userAgent=a.proxy("context.userAgent"),c.timezone=a.proxy("context.timezone"),c.timestamp=a.field("timestamp"),c.channel=a.field("channel"),c.ip=a.proxy("context.ip"),c.userId=a.field("userId"),e.default(c);function l(d){return n.clone(d)}return Mi}var Ni={},Za={exports:{}},wd;function ps(){return wd||(wd=1,typeof Object.create=="function"?Za.exports=function(e,n){
45n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Za.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}),Za.exports}var _d;function Kw(){if(_d)return Ni;_d=1;var t=Ni&&Ni.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.Alias=void 0;var e=t(ps()),n=hs();function r(i,s){n.Facade.call(this,i,s)}return Ni.Alias=r,e.default(r,n.Facade),r.prototype.action=function(){return"alias"},r.prototype.type=r.prototype.action,r.prototype.previousId=function(){return this.field("previousId")||this.field("from")},r.prototype.from=r.prototype.previousId,r.prototype.userId=function(){return this.field("userId")||this.field("to")},r.prototype.to=r.prototype.userId,Ni}var Li={},Ga={},Sd;function Fu(){if(Sd)return Ga;Sd=1,Object.defineProperty(Ga,"__esModule",{value:!0});var t=/.+\@.+\..+/;function e(n){return t.test(n)}return Ga.default=e,Ga}var Ed;function Qw(){if(Ed)return Li;Ed=1;var t=Li&&Li.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Li,"__esModule",{value:!0}),Li.Group=void 0;var e=t(ps()),n=t(Fu()),r=t(jl()),i=hs();function s(a,c){i.Facade.call(this,a,c)}Li.Group=s,e.default(s,i.Facade);var u=s.prototype;return u.action=function(){return"group"},u.type=u.action,u.groupId=i.Facade.field("groupId"),u.created=function(){var a=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(a)return r.default(a)},u.email=function(){var a=this.proxy("traits.email");if(a)return a;var c=this.groupId();if(n.default(c))return c},u.traits=function(a){var c=this.properties(),l=this.groupId();a=a||{},l&&(c.id=l);for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var y=this[d]==null?this.proxy("traits."+d):this[d]();if(y==null)continue;c[a[d]]=y,delete c[d]}return c},u.name=i.Facade.proxy("traits.name"),u.industry=i.Facade.proxy("traits.industry"),u.employees=i.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}},Li}var ji={},Td;function Ip(){if(Td)return ji;Td=1;var t=ji&&ji.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(ji,"__esModule",{value:!0}),ji.Identify=void 0;var e=hs(),n=t(ju()),r=t(ps()),i=t(Fu()),s=t(jl()),u=function(l){return l.trim()};function a(l,d){e.Facade.call(this,l,d)}ji.Identify=a,r.default(a,e.Facade);var c=a.prototype;return c.action=function(){return"identify"},c.type=c.action,c.traits=function(l){var d=this.field("traits")||{},y=this.userId();l=l||{},y&&(d.id=y);for(var p in l){var x=this[p]==null?this.proxy("traits."+p):this[p]();x!=null&&(d[l[p]]=x,p!==l[p]&&delete d[p])}return d},c.email=function(){var l=this.proxy("traits.email");if(l)return l;var d=this.userId();if(i.default(d))return d},c.created=function(){var l=this.proxy("traits.created")||this.proxy("traits.createdAt");if(l)return s.default(l)},c.companyCreated=function(){var l=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(l)return s.default(l)},c.companyName=function(){return this.proxy("traits.company.name")},c.name=function(){var l=this.proxy("traits.name");if(typeof l=="string")return u(l);var d=this.firstName(),y=this.lastName();if(d&&y)return u(d+" "+y)},c.firstName=function(){var l=this.proxy("traits.firstName");if(typeof l=="string")return u(l);var d=this.proxy("traits.name");if(typeof d=="string")return u(d).split(" ")[0]},c.lastName=function(){var l=this.proxy("traits.lastName");if(typeof l=="string")return u(l);var d=this.proxy("traits.name");if(typeof d=="string"){var y=u(d).indexOf(" ");if(y!==-1)return u(d.substr(y+1))}},c.uid=function(){return this.userId()||this.username()||this.email()},c.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},c.age=function(){var l=this.birthday(),d=n.default(this.traits(),"age");if(d!=null)return d;if(l instanceof Date){var y=new Date;return y.getFullYear()-l.getFullYear()}},c.avatar=function(){var l=this.traits();return n.default(l,"avatar")||n.default(l,"photoUrl")||n.default(l,"avatarUrl")},c.position=function(){var l=this.traits();return n.default(l,"position")||n.default(l,"jobTitle")},c.username=e.Facade.proxy("traits.username"),c.website=e.Facade.one("traits.website"),c.websites=e.Facade.multi("traits.website"),c.phone=e.Facade.one("traits.phone"),c.phones=e.Facade.multi("traits.phone"),c.address=e.Facade.proxy("traits.address"),c.gender=e.Facade.proxy("traits.gender"),c.birthday=e.Facade.proxy("traits.birthday"),ji}var Fi={},Od;function Fl(){if(Od)return Fi;Od=1;
vendor: 4,191 bytes, line 45
45var t=Fi&&Fi.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.Track=void 0;var e=t(ps()),n=hs(),r=Ip(),i=t(Fu()),s=t(ju());function u(l,d){n.Facade.call(this,l,d)}Fi.Track=u,e.default(u,n.Facade);var a=u.prototype;a.action=function(){return"track"},a.type=a.action,a.event=n.Facade.field("event"),a.value=n.Facade.proxy("properties.value"),a.category=n.Facade.proxy("properties.category"),a.id=n.Facade.proxy("properties.id"),a.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},a.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},a.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},a.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},a.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},a.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},a.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},a.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},a.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},a.sku=n.Facade.proxy("properties.sku"),a.tax=n.Facade.proxy("properties.tax"),a.name=n.Facade.proxy("properties.name"),a.price=n.Facade.proxy("properties.price"),a.total=n.Facade.proxy("properties.total"),a.repeat=n.Facade.proxy("properties.repeat"),a.coupon=n.Facade.proxy("properties.coupon"),a.shipping=n.Facade.proxy("properties.shipping"),a.discount=n.Facade.proxy("properties.discount"),a.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},a.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},a.description=n.Facade.proxy("properties.description"),a.plan=n.Facade.proxy("properties.plan"),a.subtotal=function(){var l=s.default(this.properties(),"subtotal"),d=this.total()||this.revenue();if(l)return l;if(!d)return 0;if(this.total()){var y=this.tax();y&&(d-=y),y=this.shipping(),y&&(d-=y),y=this.discount(),y&&(d+=y)}return d},a.products=function(){var l=this.properties(),d=s.default(l,"products");return Array.isArray(d)?d.filter(function(y){return y!==null}):[]},a.quantity=function(){var l=this.obj.properties||{};return l.quantity||1},a.currency=function(){var l=this.obj.properties||{};return l.currency||"USD"},a.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},a.query=n.Facade.proxy("options.query"),a.properties=function(l){var d=this.field("properties")||{};l=l||{};for(var y in l)if(Object.prototype.hasOwnProperty.call(l,y)){var p=this[y]==null?this.proxy("properties."+y):this[y]();if(p==null)continue;d[l[y]]=p,delete d[y]}return d},a.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},a.email=function(){var l=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(l)return l;var d=this.userId();if(i.default(d))return d},a.revenue=function(){var l=this.proxy("properties.revenue"),d=this.event(),y=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!l&&d&&d.match(y)&&(l=this.proxy("properties.total")),c(l)},a.cents=function(){var l=this.revenue();return typeof l!="number"?this.value()||0:l*100},a.identify=function(){var l=this.json();return l.traits=this.traits(),new r.Identify(l,this.opts)};function c(l){if(l){if(typeof l=="number")return l;if(typeof l=="string"&&(l=l.replace(/\$/g,""),l=parseFloat(l),!isNaN(l)))return l}}return Fi}var $i={},Ad;function Rp(){if(Ad)return $i;Ad=1;var t=$i&&$i.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty($i,"__esModule",{value:!0}),$i.Page=void 0;var e=t(ps()),n=hs(),r=Fl(),i=t(Fu());
vendor: 8,720 bytes, line 45
45function s(a,c){n.Facade.call(this,a,c)}$i.Page=s,e.default(s,n.Facade);var u=s.prototype;return u.action=function(){return"page"},u.type=u.action,u.category=n.Facade.field("category"),u.name=n.Facade.field("name"),u.title=n.Facade.proxy("properties.title"),u.path=n.Facade.proxy("properties.path"),u.url=n.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(a){var c=this.field("properties")||{},l=this.category(),d=this.name();a=a||{},l&&(c.category=l),d&&(c.name=d);for(var y in a)if(Object.prototype.hasOwnProperty.call(a,y)){var p=this[y]==null?this.proxy("properties."+y):this[y]();if(p==null)continue;c[a[y]]=p,y!==a[y]&&delete c[y]}return c},u.email=function(){var a=this.proxy("context.traits.email")||this.proxy("properties.email");if(a)return a;var c=this.userId();if(i.default(c))return c},u.fullName=function(){var a=this.category(),c=this.name();return c&&a?a+" "+c:c},u.event=function(a){return a?"Viewed "+a+" Page":"Loaded a Page"},u.track=function(a){var c=this.json();return c.event=this.event(a),c.timestamp=this.timestamp(),c.properties=this.properties(),new r.Track(c,this.opts)},$i}var Ui={},Cd;function Xw(){if(Cd)return Ui;Cd=1;var t=Ui&&Ui.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.Screen=void 0;var e=t(ps()),n=Rp(),r=Fl();function i(s,u){n.Page.call(this,s,u)}return Ui.Screen=i,e.default(i,n.Page),i.prototype.action=function(){return"screen"},i.prototype.type=i.prototype.action,i.prototype.event=function(s){return s?"Viewed "+s+" Screen":"Loaded a Screen"},i.prototype.track=function(s){var u=this.json();return u.event=this.event(s),u.timestamp=this.timestamp(),u.properties=this.properties(),new r.Track(u,this.opts)},Ui}var qi={},kd;function Jw(){if(kd)return qi;kd=1;var t=qi&&qi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(qi,"__esModule",{value:!0}),qi.Delete=void 0;var e=t(ps()),n=hs();function r(i,s){n.Facade.call(this,i,s)}return qi.Delete=r,e.default(r,n.Facade),r.prototype.type=function(){return"delete"},qi}var Id;function e1(){return Id||(Id=1,function(t){var e=jo&&jo.__assign||function(){return e=Object.assign||function(d){for(var y,p=1,x=arguments.length;p<x;p++){y=arguments[p];for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(d[b]=y[b])}return d},e.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var n=hs();Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return n.Facade}});var r=Kw();Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return r.Alias}});var i=Qw();Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return i.Group}});var s=Ip();Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var u=Fl();Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return u.Track}});var a=Rp();Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return a.Page}});var c=Xw();Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return c.Screen}});var l=Jw();Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return l.Delete}}),t.default=e(e({},n.Facade),{Alias:r.Alias,Group:i.Group,Identify:s.Identify,Track:u.Track,Page:a.Page,Screen:c.Screen,Delete:l.Delete})}(jo)),jo}var Bi=e1();function wu(t,e){var n=new Bi.Facade(t,e);return t.type==="track"&&(n=new Bi.Track(t,e)),t.type==="identify"&&(n=new Bi.Identify(t,e)),t.type==="page"&&(n=new Bi.Page(t,e)),t.type==="alias"&&(n=new Bi.Alias(t,e)),t.type==="group"&&(n=new Bi.Group(t,e)),t.type==="screen"&&(n=new Bi.Screen(t,e)),Object.defineProperty(n,"obj",{value:t,writable:!0}),n}function Pp(t,e,n){return ue(this,void 0,void 0,function(){function r(l,d){return ue(this,void 0,void 0,function(){var y,p,x;return ce(this,function(b){switch(b.label){case 0:return y=!1,p=null,[4,d({payload:wu(l,{clone:!0,traverse:!1}),integration:t,next:function(g){y=!0,g===null&&(p=null),g&&(p=g.obj)}})];case 1:return b.sent(),!y&&p!==null&&(p=p,p.integrations=ie(ie({},l.integrations),(x={},x[t]=!1,x))),[2,p]}})})}var i,s,u,a,c;return ce(this,function(l){switch(l.label){case 0:i=wu(e,{clone:!0,traverse:!1}).rawEvent(),s=0,u=n,l.label=1;case 1:return s<u.length?(a=u[s],[4,r(i,a)]):[3,4];case 2:if(c=l.sent(),c===null)return[2,null];i=c,l.label=3;case 3:return s++,[3,1];case 4:return[2,i]}})})}function t1(t,e){function n(r){return ue(this,void 0,void 0,function(){var i;return ce(this,function(s){switch(s.label){case 0:return i=!1,[4,t({payload:wu(r.event,{clone:!0,traverse:!1}),integrations:e??{},next:function(u){i=!0,u&&(r.event=u.obj)}})];case 1:if(s.sent(),!i)throw new ho({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,r]}})})}return{name:"Source Middleware ".concat(t.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(r){return Promise.resolve(r)},track:n,page:n,identify:n,alias:n,group:n}}const n1=Object.freeze(Object.defineProperty({__proto__:null,applyDestinationMiddleware:Pp,sourceMiddlewarePlugin:t1},Symbol.toStringTag,{value:"Module"}));var r1=function(){function t(e,n){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=n,this.name=e,this.type=n.type,this.alternativeNames.push(n.name)}return t.prototype.addMiddleware=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.type==="destination"&&(e=this.middleware).push.apply(e,n)},t.prototype.transform=function(e){return ue(this,void 0,void 0,function(){var n;return ce(this,function(r){switch(r.label){case 0:return[4,Pp(this.name,e.event,this.middleware)];case 1:return n=r.sent(),n===null&&e.cancel(new ho({retry:!1,reason:"dropped by destination middleware"})),[2,new Ws(n)]}})})},t.prototype._createMethod=function(e){var n=this;return function(r){return ue(n,void 0,void 0,function(){var i;return ce(this,function(s){switch(s.label){case 0:return this.action[e]?(i=r,this.type!=="destination"?[3,2]:[4,this.transform(r)]):[2,r];case 1:i=s.sent(),s.label=2;case 2:return[4,this.action[e](i)];case 3:return s.sent(),[2,r]}})})}},t.prototype.isLoaded=function(){return this.action.isLoaded()},t.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},t.prototype.load=function(e,n){return this.action.load(e,n)},t.prototype.unload=function(e,n){var r,i;return(i=(r=this.action).unload)===null||i===void 0?void 0:i.call(r,e,n)},t}();function i1(t){if(!Array.isArray(t))throw new Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];return t.forEach(function(n){e.forEach(function(r){var i;if(n[r]===void 0)throw new Error("Plugin: ".concat((i=n.name)!==null&&i!==void 0?i:"unknown"," missing required function ").concat(r))})}),!0}function s1(t,e){var n=t[e.creationName],r=t[e.name];return t.All===!1&&!n&&!r||n===!1||r===!1}function o1(t,e,n,r,i){var s,u,a;return ue(this,void 0,void 0,function(){var c,l,d,y,p=this;return ce(this,function(x){switch(x.label){case 0:return c=[],l=Ll(),d=(u=(s=t.middlewareSettings)===null||s===void 0?void 0:s.routingRules)!==null&&u!==void 0?u:[],y=((a=t.remotePlugins)!==null&&a!==void 0?a:[]).map(function(b){return ue(p,void 0,void 0,function(){var g,S,O,k,v,w,D,I,j,C;return ce(this,function(E){switch(E.label){case 0:if(s1(e,b))return[2];E.label=1;case 1:if(E.trys.push([1,12,,13]),g=new RegExp("https://cdp.customer.io"),!r)return[3,7];S=b.url.split("/"),O=S[S.length-2],k=b.url.replace(O,btoa(O).replace(/=/g,"")),E.label=2;case 2:return E.trys.push([2,4,,6]),[4,hc(k.replace(g,l))];case 3:return E.sent(),[3,6];case 4:return E.sent(),[4,hc(b.url.replace(g,l))];case 5:return E.sent(),[3,6];case 6:return[3,9];case 7:return[4,hc(b.url.replace(g,l))];case 8:E.sent(),E.label=9;case 9:return v=b.libraryName,typeof window[v]!="function"?[3,11]:(w=window[v],[4,w(ie(ie({},b.settings),n[b.name]))]);case 10:D=E.sent(),I=Array.isArray(D)?D:[D],i1(I),j=d.filter(function(P){return P.destinationName===b.creationName}),I.forEach(function(P){var L=new r1(b.creationName,P);j.length&&i&&P.type==="destination"&&L.addMiddleware(i),c.push(L)}),E.label=11;case 11:return[3,13];case 12:return C=E.sent(),console.warn("Failed to load Remote Plugin",C),[3,13];case 13:return[2]}})})}),[4,Promise.all(y)];
vendor: 4,678 bytes, line 45
45case 1:return x.sent(),[2,c.filter(Boolean)]}})})}var a1=function(t){var e=!1;window.addEventListener("pagehide",function(){e||(e=!0,t())}),document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){if(e)return;e=!0,t()}else e=!1})},u1=500;function Dp(t){var e=encodeURI(JSON.stringify(t)).split(/%..|./).length-1;return e/1024}function c1(t){return Dp(t)>=u1-50}function l1(t){var e=[],n=0;return t.forEach(function(r){var i=Dp(e[n]);i>=64&&n++,e[n]?e[n].push(r):e[n]=[r]}),e}function f1(t,e){var n,r,i=[],s=!1,u=(n=e==null?void 0:e.size)!==null&&n!==void 0?n:10,a=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:5e3;function c(x){var b;if(x.length!==0){var g=(b=x[0])===null||b===void 0?void 0:b.writeKey;return Lu("".concat(t,"/b"),{keepalive:s,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:x,writeKey:g})})}}function l(){return ue(this,void 0,void 0,function(){var x;return ce(this,function(b){return i.length?(x=i,i=[],[2,c(x)]):[2]})})}var d;function y(){d||(d=setTimeout(function(){d=void 0,l().catch(console.error)},a))}a1(function(){if(s=!0,i.length){var x=l1(i).map(c);Promise.all(x).catch(console.error)}});function p(x,b){return ue(this,void 0,void 0,function(){var g;return ce(this,function(S){return i.push(b),g=i.length>=u||c1(i),[2,g||s?l():y()]})})}return{dispatch:p}}function d1(t){function e(n,r){return Lu(n,{keepalive:t==null?void 0:t.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(r)})}return{dispatch:e}}var h1=function(t,e){return ue(void 0,void 0,void 0,function(){var n;return ce(this,function(r){return n=function(i){return ue(void 0,void 0,void 0,function(){var s;return ce(this,function(u){switch(u.label){case 0:return t(i)?(s=n,[4,e()]):[3,2];case 1:return[2,s.apply(void 0,[u.sent()])];case 2:return[2]}})})},[2,n(void 0)]})})};function p1(t,e){return ue(this,void 0,void 0,function(){var n,r=this;return ce(this,function(i){switch(i.label){case 0:return n=[],bu()?[2,e]:[4,h1(function(){return e.length>0&&!bu()},function(){return ue(r,void 0,void 0,function(){var s,u,a;return ce(this,function(c){switch(c.label){case 0:return s=e.pop(),s?[4,zo(s,t)]:[2];case 1:return u=c.sent(),a=u instanceof Ws,a||n.push(s),[2]}})})})];case 1:return i.sent(),n.map(function(s){return e.pushWithBackoff(s)}),[2,e]}})})}function Fs(t,e,n,r){var i=this;t||setTimeout(function(){return ue(i,void 0,void 0,function(){var s,u;return ce(this,function(a){switch(a.label){case 0:return s=!0,[4,p1(n,e)];case 1:return u=a.sent(),s=!1,e.todo>0&&r(s,u,n,r),[2]}})})},Math.random()*5e3)}function m1(t,e){var n,r,i,s,u=t.user();return e.previousId=(i=(r=(n=e.previousId)!==null&&n!==void 0?n:e.from)!==null&&r!==void 0?r:u.id())!==null&&i!==void 0?i:u.anonymousId(),e.userId=(s=e.userId)!==null&&s!==void 0?s:e.to,delete e.from,delete e.to,e}function g1(t,e,n){var r,i;window.addEventListener("pagehide",function(){s.push.apply(s,Array.from(u)),u.clear()});var s=t.options.disableClientPersistence?new Al(t.queue.queue.maxAttempts,[]):new Dl(t.queue.queue.maxAttempts,"dest-Customer.io-Data-Pipelines"),u=new Set,a=!1,c=(r=e==null?void 0:e.apiHost)!==null&&r!==void 0?r:"cdp.customer.io/v1",l=(i=e==null?void 0:e.protocol)!==null&&i!==void 0?i:"https",d="".concat(l,"://").concat(c),y=e==null?void 0:e.deliveryStrategy,p=(y==null?void 0:y.strategy)==="batching"?f1(d,y.config):d1(y==null?void 0:y.config);function x(g){return ue(this,void 0,void 0,function(){var S,O;return ce(this,function(k){return bu()?(s.push(g),Fs(a,s,b,Fs),[2,g]):(u.add(g),S=g.event.type.charAt(0),O=wu(g.event).json(),g.event.type==="track"&&delete O.traits,g.event.type==="alias"&&(O=m1(t,O)),[2,p.dispatch("".concat(d,"/").concat(S),xw(t,O,e,n)).then(function(){return g}).catch(function(){return s.pushWithBackoff(g),Fs(a,s,b,Fs),g}).finally(function(){u.delete(g)})])})})}var b={name:"Customer.io Data Pipelines",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:x,identify:x,page:x,alias:x,group:x,screen:x};return s.todo&&Fs(a,s,b,Fs),b}var y1=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},Mp=function(t,e,n){n.getCalls(t).forEach(function(r){$l(e,r).catch(console.error)})},v1=function(t,e){return ue(void 0,void 0,void 0,function(){var n,r,i;return ce(this,function(s){switch(s.label){case 0:n=0,r=e.getCalls("addSourceMiddleware"),s.label=1;case 1:return n<r.length?(i=r[n],[4,$l(t,i).catch(console.error)]):[3,4];case 2:s.sent(),s.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},b1=Mp.bind(void 0,"on"),x1=Mp.bind(void 0,"setAnonymousId"),w1=function(t,e){e.toArray().forEac
45h(function(n){setTimeout(function(){$l(t,n).catch(console.error)},0)})},_1=function(){function t(){this._value={}}return t.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},t.prototype.getCalls=function(e){var n;return(n=this._value[e])!==null&&n!==void 0?n:[]},t.prototype.push=function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach(function(i){e._value[i.method]?e._value[i.method].push(i):e._value[i.method]=[i]}),this},t.prototype.clear=function(){return this._value={},this},t}();function $l(t,e){return ue(this,void 0,void 0,function(){var n,r;return ce(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),e.called?[2,void 0]:(e.called=!0,n=t[e.method].apply(t,e.args),y1(n)?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return e.resolve(n),[3,4];case 3:return r=i.sent(),e.reject(r),[3,4];case 4:return[2]}})})}var S1=function(){function t(e){var n=this;this._preInitBuffer=new _1,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=aa,this._promise=e(this._preInitBuffer),this._promise.then(function(r){var i=r[0],s=r[1];n.instance=i,n.ctx=s}).catch(function(){})}return t.prototype.then=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(e=this._promise).then.apply(e,n)},t.prototype.catch=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(e=this._promise).catch.apply(e,n)},t.prototype.finally=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(e=this._promise).finally.apply(e,n)},t.prototype.inbox=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!((n=this.instance)===null||n===void 0)&&n.inbox)return(e=this.instance).inbox.apply(e,r);throw new Error("Customer.io In-App Plugin is not loaded yet. Ensure the plugin is initialized before calling inbox().")},t.prototype._createMethod=function(e){var n=this;return function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(n.instance){var u=(r=n.instance)[e].apply(r,i);return Promise.resolve(u)}return new Promise(function(a,c){n._preInitBuffer.push({method:e,args:i,resolve:a,reject:c,called:!1})})}},t.prototype._createChainableMethod=function(e){var n=this;return function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return n.instance?((r=n.instance)[e].apply(r,i),n):(n._preInitBuffer.push({method:e,args:i,resolve:function(){},reject:console.error,called:!1}),n)}},t}();function E1(t){var e=t[0],n=t.slice(1);return{method:e,resolve:function(){},reject:console.error,args:n,called:!1}}var T1=function(t){return t.map(E1)},al=function(t){t===void 0&&(t=Nl());var e=t;if(!Array.isArray(e))return[];var n=e.splice(0,e.length);return T1(n)},yc,Rd,O1=kl(),Pd=(yc=(Rd=O1).__INSPECTOR__)!==null&&yc!==void 0?yc:Rd.__INSPECTOR__={},A1=function(t){var e;return(e=Pd.attach)===null||e===void 0?void 0:e.call(Pd,t)};function C1(t,e){var n=e??Ll();return Lu("".concat(n,"/v1/projects/").concat(t,"/settings")).then(function(r){return r.ok?r.json():r.text().then(function(i){throw new Error(i)})}).catch(function(r){throw console.error(r.message),r})}function k1(t){return Tp().NODE_ENV!=="test"&&Object.keys(t.integrations).length>1}function I1(t){var e,n,r;return Tp().NODE_ENV!=="test"&&((r=(n=(e=t.middlewareSettings)===null||e===void 0?void 0:e.routingRules)===null||n===void 0?void 0:n.length)!==null&&r!==void 0?r:0)>0}function R1(t,e){e.push.apply(e,al()),x1(t,e),b1(t,e)}function P1(t,e){return ue(this,void 0,void 0,function(){return ce(this,function(n){switch(n.label){case 0:return e.push.apply(e,al()),[4,v1(t,e)];case 1:return n.sent(),e.push.apply(e,al()),w1(t,e),e.clear(),[2]}})})}function D1(t,e,n,r,i,s){var u,a,c,l;return ue(this,void 0,void 0,function(){var d,y,p,x,b,g,S,O,k,v,w,D,I,j,C,E=this;return ce(this,function(P){switch(P.label){case 0:return I1(t)?[4,ir(()=>import("./index-C42XeTRl.js"),[]).then(function(L){return L.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return y=P.sent(),[3,3];case 2:y=void 0,P.label=3;case 3:return d=y,k1(t)||s.length>0?[4,ir(()=>import("./index-W_9Gj7hB.js"),__vite__mapDeps([4,1,5,2])).then(function(L){return L.ajsDestinations(t,e.integrations,n,d,s)})]:[3,5];case 4:return x=P.sent(),[3,6];case 5:x=[],P.label=6;case 6:return p=x,t.legacyVideoPluginsEnabled?[4,ir(()=>import("./index-4Sla7jUi.js"),__vite__mapDeps([6,1])).then(function(L){return L.loadLegacyVideoPlugins(e)})]:[3,8];case 7:P.sent(),P.label=8;case 8:return!((u=n.plan)===null||u===void 0)&&u.track?[4,ir(()=>import("./index-J8Kv4z-q.js"),__vite__mapDeps([7,1,5])).then(function(L){var $;return L.schemaFilter(($=n.plan)===null||$===void 0?void 0:$.track,t)})]:[3,10];case 9:return g=P.sent(),[3,11];case 10:g=void 0,P.label=11;case 11:return b=g,S=$w(t,r),[4,o1(t,e.integrations,S,r.obfuscate,d).catch(function(){return[]})];case 12:return O=P.sent(),k="Customer.io In-App Plugin",v=S[k],v||(v=(a=r.integrations)===null||a===void 0?void 0:a[k]),v?[4,ir(()=>Promise.resolve().then(()=>z1),void 0).then(function(L){return L.InAppPlugin(v)})]:[3,14];case 13:return D=P.sent(),[3,15];case 14:D=void 0,P.label=15;case 15:return w=D,I=_n(_n(_n([Fx,zw],i,!0),p,!0),O,!0),b&&I.push(b),w&&I.push(w),j=((c=n.integrations)===null||c===void 0?void 0:c.All)===!1&&!n.integrations["Customer.io Data Pipelines"]||n.integrations&&n.integrations["Customer.io Data Pipelines"]===!1,j||I.push(g1(e,S["Customer.io Data Pipelines"],t.integrations)),[4,e.register.apply(e,I)];case 16:return C=P.sent(),Object.entries((l=t.enabledMiddleware)!==null&&l!==void 0?l:{}).some(function(L){var $=L[1];return $})?[4,ir(()=>import("./index-2WYT59YR.js"),__vite__mapDeps([8,1,2])).then(function(L){var $=L.remoteMiddlewares;return ue(E,void 0,void 0,function(){var M,qe;return ce(this,function(rt){switch(rt.label){case 0:return[4,$(C,t,r.obfuscate)];case 1:return M=rt.sent(),qe=M.map(function(Me){return e.addSourceMiddleware(Me)}
45),[2,Promise.all(qe)]}})})})]:[3,18];case 17:P.sent(),P.label=18;case 18:return[2,C]}})})}function M1(t,e,n){var r,i,s,u,a,c,l;return e===void 0&&(e={}),ue(this,void 0,void 0,function(){var d,y,p,x,b,g,S,O,k,v,w;return ce(this,function(D){switch(D.label){case 0:return e.globalAnalyticsKey&&Rw(e.globalAnalyticsKey),t.cdnURL&&Fw(t.cdnURL),(r=t.cdnSettings)!==null&&r!==void 0?(y=r,[3,3]):[3,1];case 1:return[4,C1(t.writeKey,t.cdnURL)];case 2:y=D.sent(),D.label=3;case 3:return d=y,p=(s=(i=d.integrations["Customer.io Data Pipelines"])===null||i===void 0?void 0:i.retryQueue)!==null&&s!==void 0?s:!0,x=ie({retryQueue:p},e),b=new Mw(t,x),A1(b),g=(u=t.plugins)!==null&&u!==void 0?u:[],S=(a=t.classicIntegrations)!==null&&a!==void 0?a:[],_p.initRemoteMetrics(d.metrics),R1(b,n),[4,D1(d,b,x,e,g,S)];case 4:return O=D.sent(),k=(c=window.location.search)!==null&&c!==void 0?c:"",v=(l=window.location.hash)!==null&&l!==void 0?l:"",w=k.length?k:v.replace(/(?=#).*(?=\?)/,""),w.includes("ajs_")?[4,b.queryString(w).catch(console.error)]:[3,6];case 5:D.sent(),D.label=6;case 6:return b.initialized=!0,b.emit("initialize",t,e),e.initialPageview&&b.page().catch(console.error),[4,P1(b,n)];case 7:return D.sent(),[2,[b,O]]}})})}var B2=function(t){zn(e,t);function e(){var n=this,r=Uw(),i=r.promise,s=r.resolve;return n=t.call(this,function(u){return i.then(function(a){var c=a[0],l=a[1];return M1(c,l,u)})})||this,n._resolveLoadStart=function(u,a){return s([u,a])},n}return e.prototype.load=function(n,r){return r===void 0&&(r={}),this._resolveLoadStart(n,r),this},e.load=function(n,r){return r===void 0&&(r={}),new e().load(n,r)},e.standalone=function(n,r){return e.load({writeKey:n},r).then(function(i){return i[0]})},e}(S1),Mr;(function(t){t.MessageOpened="in-app:message-opened",t.MessageDismissed="in-app:message-dismissed",t.MessageError="in-app:message-error",t.MessageAction="in-app:message-action"})(Mr||(Mr={}));var Dd=Object.values(Mr),Nn;(function(t){t.Metric="Report Delivery Event",t.Content="Report Content Event",t.Opened="opened",t.Clicked="clicked",t.ViewedContent="viewed_content",t.ClickedContent="clicked_content"})(Nn||(Nn={}));var Md="in_app_content";function vc(t,e){return new CustomEvent(t,{detail:e})}function N1(t){switch(t){case"messageShown":return Mr.MessageOpened;case"messageDismissed":return Mr.MessageDismissed;case"messageError":return Mr.MessageError;case"messageAction":return Mr.MessageAction;default:return""}}var iu={exports:{}},L1=iu.exports,Nd;function j1(){return Nd||(Nd=1,function(t,e){(function(n,r){t.exports=r()})(L1,()=>(()=>{var n={d:(h,_)=>{for(var A in _)n.o(_,A)&&!n.o(h,A)&&Object.defineProperty(h,A,{enumerable:!0,get:_[A]})},o:(h,_)=>Object.prototype.hasOwnProperty.call(h,_)},r={};n.d(r,{default:()=>te});class i{constructor(){this.callbacks={}}on(_,A){const F=this.callbacks[_];F?F.push(A):this.callbacks[_]=[A]}off(_,A){const F=this.callbacks[_];if(!F)return;if(!A)return void delete this.callbacks[_];const U=F.indexOf(A);U!==-1&&F.splice(U,1),F.length===0&&delete this.callbacks[_]}dispatch(_,A){const F=this.callbacks[_];F&&F.forEach(U=>U(A))}}function s(h){te.config&&te.config.logging&&console.log(`Gist: ${h}`)}const u="gist.web.isPersistingSession";function a(h,_,A=null){let F=A;F||(F=new Date,F.setDate(F.getDate()+365));const U={value:_,expiry:F};y().setItem(h,JSON.stringify(U))}function c(h){return p(h)}function l(h){y().removeItem(h)}function d(){const h=sessionStorage.getItem(u);return h===null?(sessionStorage.setItem(u,"true"),!0):h==="true"}function y(){return d()?localStorage:sessionStorage}function p(h){if(!h)return null;try{const _=y().getItem(h);if(!_)return null;const A=JSON.parse(_);if(!A.expiry)return A.value;if(h.startsWith("gist.")){const F=new Date,U=new Date(A.expiry),W=h.startsWith("gist.web.message.broadcasts")&&!h.endsWith("shouldShow")&&!h.endsWith("numberOfTimesShown")||h.startsWith("gist.web.message.user")&&!h.endsWith("seen")&&!h.endsWith("state"),Y=new Date(F.getTime()+366e4);if(W&&U.getTime()>Y.getTime()||F.getTime()>U.getTime())return l(h),null}return A.value}catch(_){s(`Error checking key ${h} for expiry: ${_}`)}return null}var x,b=new Uint8Array(16);function g(){if(!x&&!(x=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return x(b)}const S=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var O=[],k=0;k<256;++k)O.push((k+256).toString(16).substr(1));const v=function(h){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,A=(O[h[_+0]]+O[h[_+1]]+O[h[_+2]]+O[h[_+3]]+"-"+O[h[_+4]]+O[h[_+5]]+"-"+O[h[_+6]]+O[h[_+7]]+"-"+O[h[_+8]]+O[h[_+9]]+"-"+O[h[_+10]]+O[h[_+11]]+O[h[_+12]]+O[h[_+13]]+O[h[_+14]]+O[h[_+15]]).toLowerCase();if(!function(F){return typeof F=="string"&&S.test(F)}
45(A))throw TypeError("Stringified UUID is invalid");return A},w=function(h,_,A){var F=(h=h||{}).random||(h.rng||g)();return F[6]=15&F[6]|64,F[8]=63&F[8]|128,v(F)},D="gist.web.userQueueUseSSE",I="gist.web.activeSSEConnection";let j,C=30;const E={RENDERER_HOST:{prod:"https://code.gist.build",dev:"https://code.gist.build",local:"http://localhost:9998"},ENGINE_API_ENDPOINT:{prod:"https://engine.api.gist.build",dev:"https://engine.api.dev.gist.build",local:"http://engine.api.local.gist.build:82"},GIST_QUEUE_API_ENDPOINT:{prod:"https://consumer.cloud.gist.build",dev:"https://consumer.cloud.dev.gist.build",local:"http://localhost:3010"},GIST_QUEUE_REALTIME_API_ENDPOINT:{prod:"https://realtime.cloud.gist.build",dev:"https://realtime.cloud.dev.gist.build",local:"http://localhost:3009"},GIST_VIEW_ENDPOINT:{prod:"https://renderer.gist.build/3.0",dev:"https://renderer.gist.build/3.0",local:"http://localhost:9998"},getSdkId:()=>(j||(j=w()),j),useSSE:()=>c(D)??!1,setUseSSEFlag(h){a(D,h,new Date(new Date().getTime()+6e4)),s(`Set user uses SSE to "${h}"`)},removeActiveSSEConnection(){l(I)},setActiveSSEConnection(){a(I,E.getSdkId(),new Date(new Date().getTime()+E.getSSEHeartbeat()))},hasActiveSSEConnection:()=>c(I)??!1,isSSEConnectionManagedBySDK:()=>c(I)===E.getSdkId(),getSSEHeartbeat:()=>1e3*(C+5),setSSEHeartbeat(h){h&&h>0&&(C=h)}};function P(h){return h!==null&&typeof h=="object"&&"response"in h}function L(h){return P(h)?h.response:void 0}function $(){const h=E.GIST_QUEUE_API_ENDPOINT[te.config.env??"prod"],_={"X-CIO-Site-Id":te.config.siteId,"X-CIO-Client-Platform":"web"},A=pt();async function F(U,W={}){var fe;const Y=h+U,re=new AbortController,ee=setTimeout(()=>re.abort(),5e3);try{const Q=await fetch(Y,{method:W.method||"GET",headers:{..._,...W.headers||{}},body:W.method&&W.method.toUpperCase()!=="GET"?W.body:void 0,signal:re.signal});clearTimeout(ee);const V=(fe=Q.headers.get("content-type"))==null?void 0:fe.includes("application/json"),Ve=V?await Q.json():await Q.text(),ze=Object.fromEntries(Q.headers.entries());if(Q.status<200||Q.status>=400)throw function(G){return Object.assign(new Error,{response:G})}({status:Q.status,data:Ve,headers:ze});return{status:Q.status,headers:ze,data:Ve}}catch(Q){throw clearTimeout(ee),P(Q)?Q:Q instanceof Error?Object.assign(Q,{response:{status:0,data:Q.message||"Unknown error",headers:{}}}):Q}}return A!=null&&(_["X-Gist-Encoded-User-Token"]=A),F.post=(U,W={},Y={})=>F(U,{method:"POST",body:JSON.stringify(W),headers:{"Content-Type":"application/json",...Y.headers||{}}}),F}const M="gist.web.userLocale";function qe(){const h=c(M);return h!==null?h:navigator.language}let rt=600,Me=!1;const ut="gist.web.userQueueNextPullCheck",zt="gist.web.sessionId";function vt(){let h=c(zt);return h||(h=w()),a(zt,h,new Date(new Date().getTime()+18e5)),String(h)}const ft="gist.web.userToken",Yt="gist.web.usingGuestUserToken",Tt="gist.web.guestUserToken";function Ie(){return c(Yt)!==null}function wt(){return c(ft)}function ct(){if(wt()===null){let h=c(Tt);h==null&&(h=w(),a(Tt,h),s(`Set guest user token "${h}" with expiry date set to 1 year from today`)),a(ft,h),a(Yt,!0),s(`Using anonymous session with token: "${h}"`)}}async function $e(){const h=wt();return h===null?null:await async function(_){const A=new TextEncoder().encode(_),F=await crypto.subtle.digest("SHA-256",A);return Array.from(new Uint8Array(F)).map(U=>U.toString(16).padStart(2,"0")).join("")}(h)}function pt(){const h=wt();return h===null?null:btoa(h)}function be(){l(ft),s("Cleared user token")}async function Zt(h){try{return await $().post(`/api/v1/logs/queue/${h}`)}catch(_){return L(_)}}function _e(h){try{return(document.getElementById(h)??document.querySelector(h))||null}catch{return null}}const bt={isEmbedded:!1,elementId:"",hasRouteRule:!1,routeRule:"",position:"",hasPosition:!1,tooltipPosition:"",hasTooltipPosition:!1,tooltipArrowColor:"#fff",shouldScale:!1,campaignId:null,messageWidth:414,overlayColor:"#00000033",persistent:!1,exitClick:!1,hasCustomWidth:!1};function gn(h){var A,F,U,W;let _=bt.tooltipArrowColor;if((((U=(F=(A=h==null?void 0:h.properties)==null?void 0:A.gist)==null?void 0:F.tooltipArrowColor)==null?void 0:U.length)??0)>0)_=h.properties.gist.tooltipArrowColor;else{if(!Array.isArray(h==null?void 0:h.displaySettings)||h.displaySettings.length===0)return _;let Y=h.displaySettings[0];if(h.savedStepName){const re=h.displaySettings.find(ee=>(ee==null?void 0:ee.stepName)===h.savedStepName&&ee.displaySettings);re&&(Y=re)}(W=Y==null?void 0:Y.displaySettings)!=null&&W.tooltipArrowColor&&(_=Y.displaySettings.tooltipArrowColor)}return _}function Ge(h){var F;const _=bt,A=(F=h==null?void 0:h.properties)==null?void 0:F.gist;return A?{isEmbedded:!!A.elementId&&!A.tooltipPosition,elementId:A.elementId||"",hasRouteRule:!!A.routeRuleWeb,routeRule:A.routeRuleWeb||"",position:A.position||"",hasPosition:!!A.position,tooltipPosition:A.tooltipPosition||"",hasTooltipPosition:!!A.tooltipPosition,tooltipArrowColor:gn(h),shouldScale:!!A.scale,campaignId:A.campaignId??null,messageWidth:A.messageWidth!=null&&A.messageWidth>0?A.messageWidth:_.messageWidth,hasCustomWidth:(A.messageWidth??0)>0,overlayColor:A.overlayColor||_.overlayColor,persistent:!!A.persistent,exitClick:!!A.exitClick}:_}const Pt=["x-gist-top","x-gist-floating-top","x-gist-bottom","x-gist-floating-bottom","x-gist-floating-bottom-left","x-gist-floating-bottom-right","x-gist-floating-top-left","x-gist-floating-top-right"];function Kt(h){if(document.getElementById(h))return;const _=document.createElement("div");
45_.id=h,h==="x-gist-top"?document.body.insertBefore(_,document.body.firstChild):document.body.insertAdjacentElement("beforeend",_),s("Top & bottom elements injected into page")}const jn=["x-gist-top","x-gist-bottom","x-gist-floating-top","x-gist-floating-bottom"];function Hn(h){return te.currentMessages.find(_=>_.instanceId===h)}function Ht(h){return!!h&&te.currentMessages.some(_=>_.queueId===h)}function an(h){return h?te.currentMessages.find(_=>_.elementId===h)??null:null}function Wt(h){te.currentMessages=te.currentMessages.filter(_=>_.instanceId!==h)}function Wn(h,_){Wt(h),te.currentMessages.push(_)}function On(h){const _={topLeft:"x-gist-floating-top-left",topCenter:"x-gist-floating-top",topRight:"x-gist-floating-top-right",bottomLeft:"x-gist-floating-bottom-left",bottomCenter:"x-gist-floating-bottom",bottomRight:"x-gist-floating-bottom-right"};return h&&_[h]?_[h]:(s(`Invalid overlay position "${h}", defaulting to "topCenter"`),_.topCenter)}function Qe(h){return h.tooltipPosition?"tooltip":h.overlay?"modal":h.elementId&&Pt.includes(h.elementId)?"overlay":h.elementId?"inline":"modal"}function Lt(h,_){const A=Qe(h),F=_.displayType;if(F===void 0)return!1;if(A!==F)return!0;const U=Ge(h);switch(F){case"modal":{if((h.position||"center")!==(_.modalPosition||"center"))return!0;const W=_.dismissOutsideClick??bt.exitClick;if(U.exitClick!==W)return!0;const Y=_.overlayColor??bt.overlayColor;if(U.overlayColor!==Y)return!0;break}case"overlay":{const W=On(_.overlayPosition);if(h.elementId!==W)return!0;break}case"inline":if(h.elementId!==_.elementSelector)return!0;break;case"tooltip":if(h.tooltipPosition!==_.tooltipPosition||h.elementId!==_.elementSelector||_.tooltipArrowColor!==void 0&&U.tooltipArrowColor!==_.tooltipArrowColor)return!0}if(F!=="overlay"||!jn.includes(On(_.overlayPosition))){const W=_.maxWidth??bt.messageWidth;if(U.messageWidth!==W)return!0}return!1}function un(h,_){if(h.properties||(h.properties={}),h.properties.gist||(h.properties.gist={}),_.displayType==="modal")h.overlay=!0,h.elementId=null,h.properties.gist.elementId=null,h.position=_.modalPosition||"center",h.properties.gist.position=_.modalPosition||"center",h.tooltipPosition=void 0,h.properties.gist.tooltipPosition=void 0,h.properties.gist.tooltipArrowColor=void 0;else if(_.displayType==="overlay"){h.overlay=!1;const A=On(_.overlayPosition);h.elementId=A,h.properties.gist.elementId=A,h.position=null,h.properties.gist.position=null,h.tooltipPosition=void 0,h.properties.gist.tooltipPosition=void 0,h.properties.gist.tooltipArrowColor=void 0}else _.displayType==="inline"?(h.overlay=!1,h.elementId=_.elementSelector,h.properties.gist.elementId=_.elementSelector,h.position=null,h.properties.gist.position=null,h.tooltipPosition=void 0,h.properties.gist.tooltipPosition=void 0,h.properties.gist.tooltipArrowColor=void 0):_.displayType==="tooltip"&&(h.overlay=!1,h.elementId=_.elementSelector,h.properties.gist.elementId=_.elementSelector,h.tooltipPosition=_.tooltipPosition,h.properties.gist.tooltipPosition=_.tooltipPosition,h.position=null,h.properties.gist.position=null,_.tooltipArrowColor!==void 0&&(h.properties.gist.tooltipArrowColor=_.tooltipArrowColor));h.elementId&&jn.includes(h.elementId)?delete h.properties.gist.messageWidth:_.maxWidth!==void 0&&_.maxWidth>0?h.properties.gist.messageWidth=_.maxWidth:delete h.properties.gist.messageWidth,_.overlayColor!==void 0?h.properties.gist.overlayColor=_.overlayColor:delete h.properties.gist.overlayColor,_.dismissOutsideClick!==void 0?h.properties.gist.exitClick=_.dismissOutsideClick:delete h.properties.gist.exitClick}const me={top:["bottom","left","right"],bottom:["top","left","right"],left:["right","top","bottom"],right:["left","top","bottom"]},xe=/auto|scroll/,we={top:"gist-arrow-bottom",bottom:"gist-arrow-top",left:"gist-arrow-right",right:"gist-arrow-left"};function Be(h){const _=_e(h);return _||s(`Tooltip target element not found for selector: ${h}`),_}function Ot(h,_){if(h.bottom<=0||h.top>=window.innerHeight||h.right<=0||h.left>=window.innerWidth)return!1;for(const A of _){const F=A.getBoundingClientRect();if(h.bottom<=F.top||h.top>=F.bottom||h.right<=F.left||h.left>=F.right)return!1}return!0}function At(h,_,A){const F=function(U,W,Y){switch(Y){case"top":return{top:W.top-U.height-16,left:W.left+(W.width-U.width)/2};case"bottom":return{top:W.bottom+16,left:W.left+(W.width-U.width)/2};case"left":return{top:W.top+(W.height-U.height)/2,left:W.left-U.width-16};case"right":return{top:W.top+(W.height-U.height)/2,left:W.right+16}}}(h,_,A);return function(U,W,Y){return Y==="top"||Y==="bottom"?U.top>=0&&U.top+W.height<=window.innerHeight:U.left>=0&&U.left+W.width<=window.innerWidth}(F,h,A)&&function(U,W){return W==="top"||W==="bottom"?U.width+8<=window.innerWidth:U.height+8<=window.innerHeight}(h,A)?function(U,W,Y){let{top:re,left:ee}=U,fe=null;if(Y==="top"||Y==="bottom"){const V=window.innerWidth-W.width-4;V>=4&&(ee<4?(fe=ee-4,ee=4):ee>V&&(fe=ee-V,ee=V))}else{const V=window.innerHeight-W.height-4;V>=4&&(re<4?(fe=re-4,re=4):re>V&&(fe=re-V,re=V))}if(fe!==null){const Q=(Y==="top"||Y==="bottom"?W.width/2:W.height/2)-16-4;Math.abs(fe)>Q&&(fe=fe>0?Q:-Q)}return{top:re,left:ee,position:Y,arrowOffset:fe}}(F,h,A):null}function Ee(h,_,A){const F=At(h,_,A);if(F)return F;for(const U of me[A]){const W=At(h,_,U);if(W)return W}return null}function ge(h){const _=[];let A=h.parentElement;for(;A;){const F=getComputedStyle(A),U=F.overflow+F.overflowX+F.overflowY;xe.test(U)&&_.push(A),A=A.parentElement}return _}function Vt(h){const _=_e(h);_&&(_.classList.remove("gist-visible"),Array.from(_.classList).filter(A=>
45A.startsWith("gist-")).forEach(A=>_.classList.remove(A)),_.style.removeProperty("height"),_.style.removeProperty("width"),_.innerHTML="")}function An(h){const _=_e(h);if(_)return!(!_.style||!_.style.height||_.style.height==="0px")}function Vn(h,_,A=null){const F=document.getElementById(h);F&&(F.onload=()=>{(function(U,W,Y=null){const re=document.getElementById(U);if(re!=null&&re.contentWindow){const ee={options:W,capabilities:ms};Y&&(W.stepId=Y),re.contentWindow.postMessage(ee,"*")}})(h,_,A)})}const ms=["MultiStepDisplayTypes"];function Yn(h){if(!h.displaySettings)return;const _=Xt(h.instanceId??""),A=document.getElementById(_);A!=null&&A.contentWindow&&A.contentWindow.postMessage({action:"updateDisplaySettings",displaySettings:h.displaySettings},"*")}async function Sr(){const h=document.querySelector(".gist-message");h&&(h.classList.remove("gist-visible"),await new Promise(_=>setTimeout(_,300))),Qt()}function Qt(){var _;const h=document.querySelector("#gist-embed-message");h&&((_=h.parentNode)==null||_.removeChild(h))}const xt=new Map;function or(h){var U;const _=h.instanceId??"",A=xt.get(_);A&&(A.cleanup(),xt.delete(_));const F=_e(`gist-tooltip-${_}`);F&&((U=F.parentNode)==null||U.removeChild(F))}function Xt(h){return`gist-${h}`}function ar(){const h=document.querySelector(".gist-message");h&&h.classList.add("gist-visible")}const ur="gist.web.customAttributes";let jt=new Map;function Si(){const h=Array.from(jt.entries()),_=new Date;_.setDate(_.getDate()+30),a(ur,h,_),s(`Saved ${jt.size} custom attributes to storage with TTL of 30 days`)}async function Cn(h){const _=await Jt();if(!_)return;const A=new Date;A.setMinutes(A.getMinutes()+60),a(_,h.filter(Ct),A)}async function Ei(h,_){const A=c(h);return A==null?void 0:A.find(F=>F.queueId===_)}function Ct(h){var _;return!(!((_=h.properties)!=null&&_.gist)||!h.properties.gist.broadcast)}function at(h){if(!Ct(h))return!1;const _=h.properties.gist.broadcast;return _.frequency.delay===0&&_.frequency.count===0}async function Jt(){const h=await $e();return h?`gist.web.message.broadcasts.${h}`:null}function Er(h,_){return`${h}.${_}.numberOfTimesShown`}function Qr(h,_){return`${h}.${_}.shouldShow`}(function(){const h=c(ur);if(h)try{jt=new Map(h)}catch{jt=new Map}
45else jt=new Map})();const Tr="gist.web.message.user";async function Zn(h){const _=await Ti();if(!_)return;const A=h.filter(U=>!(U.properties&&U.properties.gist&&U.properties.gist.broadcast)),F=new Date;F.setMinutes(F.getMinutes()+60),a(_,A,F)}async function Ti(){const h=await $e();return h?`${Tr}.${h}`:null}async function gs(){const h=await $e();return h?`${Tr}.${h}.seen`:null}async function Ft(h){const _=await $e();return _?`${Tr}.${_}.message.${h}.loading`:null}async function kn(h){const _=await $e();return _?`${Tr}.${_}.message.${h}.state`:null}async function $r(h){const _=await kn(h);_&&(l(_),s(`Cleared message state for queueId: ${h}`))}function Or(h){return`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.54223 5.33301L7.7089 9.33301L11.8756 5.33301L12.6121 6.04011L7.7089 10.7472L2.80566 6.04011L3.54223 5.33301Z" fill="${h}"/></svg>`}const In=`
46  #gist-preview-bar {
47    position: fixed; bottom: 0; left: 0; right: 0;
48    z-index: 99999999999;
49    font-family: system-ui, -apple-system, sans-serif;
50    pointer-events: none;
51  }
52  .gist-pb-toggle-row {
53    display: flex; justify-content: center;
54    padding: 6px 16px;
55    border-bottom: 1px solid #e5e7eb;
56  }
57  .gist-pb-toggle-row--collapsed { border-bottom: none; }
58  .gist-pb-toggle-btn {
59    background: #08272B; border: none;
60    padding: 4px 14px;
61    border-radius: 100px;
62    font-size: 12px; font-weight: 500;
63    font-family: system-ui, -apple-system, sans-serif;
64    color: white; cursor: pointer;
65    display: flex; align-items: center; gap: 6px;
66    pointer-events: auto;
67    height: auto; min-width: auto;
68    box-sizing: border-box;
69    line-height: normal;
70    -webkit-appearance: none;
71    appearance: none;
72  }
73  .gist-pb-controls-row {
74    background: #F8F9F9;
75    box-shadow: 1px 2px 2px #34344605, 3px 3px 8px #34344614;
76    display: flex; flex-wrap: wrap; align-items: center;
77    gap: 12px; padding: 10px 16px 12px;
78    pointer-events: auto;
79  }
80  .gist-pb-label-group { display: flex; flex-direction: column; gap: 4px; }
81  .gist-pb-label-group--grow { flex: 1; }
82  .gist-pb-label {
83    font-size: 10px; font-weight: 600; color: #3F4E50;
84    letter-spacing: 0.05em; text-transform: uppercase;
85    font-family: system-ui, -apple-system, sans-serif;
86  }
87  .gist-pb-select {
88    height: 32px; padding: 0 32px 0 8px;
89    border: 1px solid #d1d5db; border-radius: 6px;
90    font-size: 13px; font-family: system-ui, -apple-system, sans-serif;
91    background: white ${`url("data:image/svg+xml,${encodeURIComponent(Or("#3F4E50"))}")`} no-repeat right 2px center;
92    color: #3F4E50; cursor: pointer; outline: none;
93    appearance: none; min-width: 120px;
94  }
95  .gist-pb-input {
96    height: 32px; padding: 0 8px;
97    border: 1px solid #d1d5db; border-radius: 6px;
98    font-size: 13px; font-family: system-ui, -apple-system, sans-serif;
99    color: #3F4E50; outline: none; box-sizing: border-box;
100  }
101  .gist-pb-checkbox-row { display: flex; align-items: center; gap: 6px; height: 32px; }
102  .gist-pb-checkbox-label {
103    font-size: 12px; font-family: system-ui, -apple-system, sans-serif;
104    color: #3F4E50; cursor: pointer; user-select: none;
105  }
106  .gist-pb-color-control {
107    display: flex; align-items: center;
108    border: 1px solid #d1d5db; border-radius: 6px;
109    overflow: hidden; height: 32px; background: white;
110  }
111  .gist-pb-color-swatch {
112    width: 28px; height: 100%;
113    cursor: pointer; flex-shrink: 0;
114    border-right: 1px solid #d1d5db; position: relative;
115  }
116  .gist-pb-color-input {
117    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
118  }
119  .gist-pb-color-hex {
120    flex: 1; border: none; outline: none; padding: 0 6px;
121    font-size: 13px; font-family: monospace; color: #3F4E50;
122    min-width: 0; background: transparent;
123  }
124  .gist-pb-color-opacity {
125    width: 36px; border: none; border-left: 1px solid #d1d5db;
126    outline: none; padding: 0 4px;
127    font-size: 13px; font-family: system-ui, -apple-system, sans-serif;
128    color: #3F4E50; background: transparent; text-align: right;
129  }
130  .gist-pb-color-pct {
131    font-size: 12px; color: #3F4E50; padding: 0 6px 0 2px;
132    font-family: system-ui, -apple-system, sans-serif; flex-shrink: 0;
133  }
134  .gist-pb-input--invalid { border-color: #941616; outline: 1px solid #941616; }
135  .gist-pb-inline-row { display: flex; align-items: center; gap: 6px; }
136  .gist-pb-select-elem-btn, .gist-pb-cancel-btn {
137    height: 32px; padding: 0 12px;
138    border: none; border-radius: 6px;
139    font-size: 12px; font-weight: 500; font-family: system-ui, -apple-system, sans-serif;
140    background: #08272B; color: white; cursor: pointer; white-space: nowrap; flex-shrink: 0;
141    min-width: auto; box-sizing: border-box;
142    -webkit-appearance: none; appearance: none;
143  }
144  .gist-pb-select-elem-btn:disabled {
145    opacity: 0.4;
145 cursor: not-allowed;
146  }
147  .gist-pb-spacer { flex: 1; min-width: 0; }
148  .gist-pb-save-btn {
149    height: 36px; padding: 0 18px;
150    background: #08272B; color: white;
151    border: none; border-radius: 6px;
152    font-size: 13px; font-weight: 600;
153    font-family: system-ui, -apple-system, sans-serif;
154    cursor: pointer; white-space: nowrap; align-self: center;
155    min-width: auto; box-sizing: border-box;
156    -webkit-appearance: none; appearance: none;
157  }
158  .gist-pb-save-btn:disabled {
159    background: #CAD6D8; cursor: not-allowed;
160  }
161  .gist-pb-picker-overlay {
162    position: fixed; inset: 0; z-index: 999999999998; cursor: crosshair;
163  }
164  .gist-pb-checkbox { cursor: pointer; width: 14px; height: 14px; }
165  .gist-pb-pick-highlight { outline: 2px solid #006FF5 !important; }
166  .gist-pb-pick-error { outline: 2px solid #941616 !important; }
167  #gist-preview-bar.gist-pb-hidden { display: none; }
168  .gist-pb-ended-row {
169    justify-content: center; align-items: center; gap: 10px; padding: 12px 16px;
170    flex-wrap: nowrap;
171  }
172  .gist-pb-ended-icon {
173    display: flex; align-items: center; justify-content: center;
174    width: 22px; height: 22px; border-radius: 50%;
175    background: #08272B; color: white;
176    font-size: 13px; font-weight: 700; flex-shrink: 0;
177  }
178  .gist-pb-ended-text {
179    margin: 0; font-size: 13px; color: #3F4E50;
180    font-family: system-ui, -apple-system, sans-serif;
181    min-width: 0;
182  }
183  .gist-pb-ended-text strong { color: #08272B; }
184  @media (max-width: 1024px) {
185    .gist-pb-controls-row { gap: 8px; }
186    .gist-pb-label-group { flex: 1 1 100%; }
187    .gist-pb-label-group--grow { flex: 1 1 100%; }
188    .gist-pb-select { width: 100%; min-width: unset; box-sizing: border-box; }
189    .gist-pb-input { width: 100% !important; box-sizing: border-box; }
190    .gist-pb-color-control { width: 100%; }
191    .gist-pb-checkbox-row { width: 100%; }
192    .gist-pb-inline-row { flex-direction: row; align-items: center; }
193    .gist-pb-inline-row .gist-pb-input { flex: 1; min-width: 0; }
194    .gist-pb-save-btn { width: 100%; box-sizing: border-box; }
195    .gist-pb-label--spacer { display: none; }
196  }
197`,Gn="cioPreviewId",Kn="cioPreviewSettings",cr="gist.previewBar.collapsed",en="gist-pb-styles",Fn="gist-preview-bar",Oi={topLeft:"Top Left",topCenter:"Top Center",topRight:"Top Right",bottomLeft:"Bottom Left",bottomCenter:"Bottom Center",bottomRight:"Bottom Right"};let Gt=null,dt=[],Ce={},mt=null,kt=!1,ne=!1,R=5,H=null,J=!0,je=!1,ke=!1,He=null,st=null,Dt=null;const $t=new Map;function Ze(h,_={}){const A=document.createElement(h);for(const[F,U]of Object.entries(_))A[F]=U;return A}function Xe(h,_){const A=Ze("div",{className:"gist-pb-label-group"});return A.appendChild(Ze("span",{className:"gist-pb-label",textContent:h})),A.appendChild(_),A}function lr(h,_){const A=Ze("select",{className:"gist-pb-select"});for(const F of h){const U=Ze("option",{value:F.value,textContent:F.label});F.value===_&&(U.selected=!0),A.appendChild(U)}return A}function Ur(h,_,A){const F=Ze("input",{className:"gist-pb-input",type:h,value:String(_)});return A&&(F.style.width=A),F}function $u(h,_){const A=Math.round(Math.min(100,Math.max(0,_))/100*255);return"#"+h.replace("#","").toUpperCase()+A.toString(16).padStart(2,"0").toUpperCase()}function $n(h){var _;return!!(h.displayType!=="inline"&&h.displayType!=="tooltip"||(_=h.elementSelector)!=null&&_.trim())}function Mt(h){if(h.displayType==="overlay"&&jn.includes(On(h.overlayPosition))){const{maxWidth:A,...F}=h;h=F}if(Ce=h,mt){const A=dt.findIndex(F=>F.stepName===mt);A!==-1&&(dt[A]={...dt[A],displaySettings:{...h}})}if(!Gt)return;const _=te.currentMessages.find(A=>A.instanceId===Gt);_&&$n(h)&&(Yn(_),Lt(_,h)&&dr(_,mt,h)),function(){const A=new URLSearchParams(window.location.search).get(Gn);A&&async function(F,U){try{return await $()(`/api/v1/preview/${F}`,{method:"POST",body:JSON.stringify(U),headers:{"Content-Type":"application/json"}})}catch(W){return L(W)}}(A,dt).then(F=>{F&&F.status===404&&Gt&&te.dismissMessage(Gt)}).catch(()=>s("Failed to persist preview display settings"))}()}function Ai(h){const _=h.value.trim();_&&!_e(_)?h.classList.add("gist-pb-input--invalid"):h.classList.remove("gist-pb-input--invalid")}function Ci(h,_){const A=Ur("text",h.elementSelector||"","260px");A.placeholder="Element ID or selector",Ai(A),A.addEventListener("change",()=>{const W=A.value.trim(),Y=Ce.elementSelector;W&&go(W),Mt({...Ce,elementSelector:W}),Y&&Y!==W&&Je(Y),Ai(A)});const F=Ze("button",{type:"button",className:"gist-pb-select-elem-btn",textContent:"Select Element"});ke&&(F.disabled=!0),F.addEventListener("click",()=>Xr(A));const U=Ze("div",{className:"gist-pb-inline-row"});U.appendChild(A),U.appendChild(F),_.appendChild(Xe("Element Selector",U))}function go(h){if(!h||$t.has(h))return;const _=_e(h);_&&$t.set(h,_.innerHTML)}function Je(h){const _=$t.get(h);if(_===void 0)return;const A=_e(h);A&&(A.innerHTML=_)}function ki(){for(const h of $t.keys())Je(h);$t.clear()}
197function Xr(h){if(ke)return;ke=!0;const _=document.querySelector(`#${Fn} .gist-pb-select-elem-btn`);_&&(_.disabled=!0);const A={...Ce},F=te.currentMessages.find(Q=>Q.instanceId===Gt)??null;F&&vs(F),Ce.elementSelector&&Je(Ce.elementSelector);const U=Ze("div",{className:"gist-pb-picker-overlay"});let W=null;const Y=Q=>{U.style.pointerEvents="none";const V=document.elementFromPoint(Q.clientX,Q.clientY);U.style.pointerEvents="all",V&&V!==W&&V!==U&&(W==null||W.classList.remove("gist-pb-pick-highlight"),W=V,W.classList.add("gist-pb-pick-highlight"))},re=Q=>{if(Q.key==="Escape"){if(fe(),Ce=A,mt){const V=dt.findIndex(Ve=>Ve.stepName===mt);V!==-1&&(dt[V]={...dt[V],displaySettings:{...A}})}F&&$n(A)&&dr(F,mt,A),Nt()}},ee=Q=>{Q.preventDefault(),Q.stopPropagation(),U.style.pointerEvents="none";const V=document.elementFromPoint(Q.clientX,Q.clientY);if(U.style.pointerEvents="all",V&&V!==U){V.classList.remove("gist-pb-pick-highlight");const Ve=document.getElementById(Fn),ze=Ve!=null&&Ve.contains(V)?null:function(ye){if(ye.id){const Ne=CSS.escape(ye.id);if(document.querySelectorAll(`#${Ne}`).length===1)return ye.id}const de=[];let he=ye;for(;he&&he.tagName!=="BODY"&&he.tagName!=="HTML";){if(he.id){const et=CSS.escape(he.id);if(document.querySelectorAll(`#${et}`).length===1){de.unshift(`#${et}`);break}}let Ne=he.tagName.toLowerCase();he.className&&typeof he.className=="string"&&(Ne+=he.className.trim().split(/\s+/).filter(Boolean).map(et=>`.${CSS.escape(et)}`).join(""));const Ke=he.parentElement;Ke&&(Ne+=`:nth-of-type(${Array.from(Ke.children).filter(et=>et.tagName===he.tagName).indexOf(he)+1})`),de.unshift(Ne);try{if(document.querySelectorAll(de.join(" > ")).length===1)break}catch{}he=he.parentElement}const Se=de.join(" > ");try{if(document.querySelectorAll(Se).length!==1)return s("buildUniqueSelector: could not produce a unique selector for element"),null}catch{return null}return Se}(V);if(ze===null)return V.classList.add("gist-pb-pick-error"),void setTimeout(()=>{V.classList.remove("gist-pb-pick-error"),V.classList.add("gist-pb-pick-highlight")},800);h.value=ze,go(ze);const G=Ce.elementSelector,_t={...Ce,elementSelector:ze},Re=F!=null&&$n(_t)&&Lt(F,_t);Mt(_t),G&&G!==ze&&Je(G),F&&!Re&&dr(F,mt,_t)}fe(),Nt()},fe=()=>{W==null||W.classList.remove("gist-pb-pick-highlight"),U.removeEventListener("mousemove",Y),U.removeEventListener("click",ee),document.removeEventListener("keydown",re),document.body.removeChild(U),ke=!1,He=null};He=fe,U.addEventListener("mousemove",Y),U.addEventListener("click",ee),document.addEventListener("keydown",re),document.body.appendChild(U)}function Nt(){const h=document.getElementById(Fn);if(!h)return;if(h.classList.toggle("gist-pb-hidden",!Gt&&!ne),h.innerHTML="",!Gt){if(ne){const ee=Ze("div",{className:"gist-pb-controls-row gist-pb-ended-row"}),fe=Ze("span",{className:"gist-pb-ended-icon",textContent:"✓"}),Q=Ze("p",{className:"gist-pb-ended-text"});if(Q.innerHTML=yo(R),ee.appendChild(fe),ee.appendChild(Q),J){const V=Ze("button",{type:"button",className:"gist-pb-cancel-btn",textContent:"Cancel"});V.addEventListener("click",qu),ee.appendChild(V)}h.appendChild(ee)}return}const _=Ze("div",{className:"gist-pb-toggle-row"+(kt?" gist-pb-toggle-row--collapsed":"")}),A=Ze("button",{type:"button",className:"gist-pb-toggle-btn"}),F=kt?"transform:rotate(180deg);display:inline-flex;":"display:inline-flex;";if(A.innerHTML=`${kt?"Expand":"Collapse"}<span style="${F}">${Or("white")}</span>`,A.addEventListener("click",Bu),_.appendChild(A),h.appendChild(_),kt)return;const U=Ze("div",{className:"gist-pb-controls-row"});if(dt.length>0){const ee=mt??dt[0].stepName,fe=lr(dt.map(Q=>({value:Q.stepName,label:Q.stepName})),ee);fe.addEventListener("change",()=>{const Q=dt.find(V=>V.stepName===fe.value);if(Q){mt=Q.stepName,Ce={...Q.displaySettings};const V=te.currentMessages.find(Ve=>Ve.instanceId===Gt);V&&$n(Q.displaySettings)&&dr(V,Q.stepName,Q.displaySettings),Nt()}}),U.appendChild(Xe("Step",fe))}const W=lr([{value:"modal",label:"Modal"},{value:"overlay",label:"Overlay"},{value:"inline",label:"Inline"},{value:"tooltip",label:"Tooltip"}],Ce.displayType||"modal");W.addEventListener("change",()=>{const ee=W.value,fe=Ce.displayType,Q=Ce.elementSelector,V={...Ce,displayType:ee};ee==="modal"?(V.modalPosition=V.modalPosition||"center",V.maxWidth=V.maxWidth??414,delete V.overlayPosition,delete V.elementSelector,delete V.tooltipPosition):ee==="overlay"?(V.overlayPosition=V.overlayPosition||"topCenter",V.maxWidth=V.maxWidth??414,delete V.modalPosition,delete V.elementSelector,delete V.tooltipPosition):ee==="inline"?(delete V.modalPosition,delete V.overlayPosition,delete V.tooltipPosition):ee==="tooltip"&&(V.tooltipPosition=V.tooltipPosition||"top",delete V.modalPosition,delete V.overlayPosition,delete V.overlayColor,delete V.dismissOutsideClick),Ce=V,Mt(Ce),fe!=="inline"&&fe!=="tooltip"||!Q||ee==="inline"||ee==="tooltip"||Je(Q),Nt()}),U.appendChild(Xe("Display Type",W));const Y=Ce.displayType||"modal";Y==="modal"?function(ee,fe){const Q=lr([{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],ee.modalPosition||"center");Q.addEventListener("change",()=>Mt({...Ce,modalPosition:Q.value})),fe.appendChild(Xe("Position",Q));const V=Ur("number",ee.maxWidth??414,"80px");V.addEventListener("change",()=>Mt({...Ce,maxWidth:parseInt(V.value)||414})),fe.appendChild(Xe("Max Width",V)),fe.appendChild(function(Re){const{color:ye,opacity:de}=function(o){const f=o.replace("#","");return f.length===8?{color:"#"+f.slice(0,6).toUpperCase(),opacity:Math.round(parseInt(f.slice(6),16)/255*100)}:f.length===6?{color:"#"+f.toUpperCase(),opacity:100}:{color:"#000000",opacity:20}}(Re.overlayColor||"#00000033"),he=Ze("div",{className:"gist-pb-color-control"}),Se=Ze("input",{className:"gist-pb-color-input",type:"color",value:ye}),Ne=Ze("div",{className:"gist-pb-color-swatch"});Ne.style.background=ye,Ne.appendChild(Se),Ne.addEventListener("click",()=>Se.click());const Ke=Ze("input",{className:"gist-pb-color-hex",type:"text",maxLength:6,value:ye.replace("#","")}),et=Ze("input",{className:"gist-pb-color-opacity",type:"number",min:"0",max:"100",value:String(de)}),tn=Ze("span",{className:"gist-pb-color-pct",textContent:"%"}),Un=()=>{const o="#"+Ke.value.replace("#",""),f=parseInt(et.value)||0;Ne.style.background=o,Se.value=o,Mt({...Ce,overlayColor:$u(o,f)})};return Se.addEventListener("input",()=>{Ke.value=Se.value.replace("#","").toUpperCase(),Ne.style.background=Se.value}),Se.addEventListener("change",Un),Ke.addEventListener("change",Un),et.addEventListener("change",Un),he.appendChild(Ne),he.appendChild(Ke),he.appendChild(et),he.appendChild(tn),Xe("Overlay Color",he)}(ee));const Ve=Ze("div",{className:"gist-pb-checkbox-row"}),ze=Ze("input",{className:"gist-pb-checkbox",type:"checkbox"});
197ze.checked=ee.dismissOutsideClick??!1;const G=Ze("label",{className:"gist-pb-checkbox-label",textContent:"Dismiss on click outside"});ze.addEventListener("change",()=>Mt({...Ce,dismissOutsideClick:ze.checked})),G.addEventListener("click",()=>{ze.checked=!ze.checked,Mt({...Ce,dismissOutsideClick:ze.checked})}),Ve.appendChild(ze),Ve.appendChild(G);const _t=Xe(" ",Ve);_t.classList.add("gist-pb-label-group--grow"),_t.firstChild.classList.add("gist-pb-label--spacer"),fe.appendChild(_t)}(Ce,U):Y==="overlay"?function(ee,fe){const Q=lr(Object.entries(Oi).map(([V,Ve])=>({value:V,label:Ve})),ee.overlayPosition||"topCenter");if(Q.addEventListener("change",()=>Mt({...Ce,overlayPosition:Q.value})),fe.appendChild(Xe("Position",Q)),!jn.includes(On(ee.overlayPosition))){const V=Ur("number",ee.maxWidth??414,"80px");V.addEventListener("change",()=>Mt({...Ce,maxWidth:parseInt(V.value)||414})),fe.appendChild(Xe("Max Width",V))}}(Ce,U):Y==="inline"?function(ee,fe){Ci(ee,fe)}(Ce,U):Y==="tooltip"&&function(ee,fe){const Q=lr([{value:"top",label:"Top"},{value:"bottom",label:"Bottom"},{value:"left",label:"Left"},{value:"right",label:"Right"}],ee.tooltipPosition||"top");Q.addEventListener("change",()=>Mt({...Ce,tooltipPosition:Q.value})),fe.appendChild(Xe("Position",Q)),Ci(ee,fe)}(Ce,U),U.appendChild(Ze("div",{className:"gist-pb-spacer"}));const re=Ze("button",{type:"button",className:"gist-pb-save-btn",textContent:"End session"});re.addEventListener("click",async()=>{Gt&&await te.dismissMessage(Gt)}),U.appendChild(re),h.appendChild(U)}async function Uu(){var h,_;if(!je)if(je=!0,be(),function(){try{sessionStorage.removeItem(u)}catch{}}(),J){try{window.close()}catch{}try{window.location.reload()}catch{}He&&He(),H&&(clearInterval(H),H=null),ki(),(h=document.getElementById(Fn))==null||h.remove(),(_=document.getElementById(en))==null||_.remove(),Gt=null,dt=[],Ce={},mt=null,ne=!1,R=5,J=!0,je=!1}else ne=!1,je=!1,Nt()}function yo(h){return J?`<strong>Preview session ended.</strong> This tab will close in ${h}s…`:`<strong>Preview session ended.</strong> Finishing session in ${h}s… This tab will stay open.`}function qu(){ne&&H&&(J=!1,Nt())}function Bu(){kt=!kt;try{sessionStorage.setItem(cr,String(kt))}catch{}Nt()}function zu(h){if(ne)return;Gt=h.instanceId??null;const _=h.displaySettings;if(Array.isArray(_)&&_.length>0?(dt=_,mt||(mt=dt[0].stepName,Ce={...dt[0].displaySettings})):_&&typeof _=="object"&&!Array.isArray(_)&&(Ce={..._}),st||Dt){const A=!!st,F=!!Dt,U=st,W=Dt;if(st=null,Dt=null,A){const re=dt.find(ee=>ee.stepName===U);if(!re)return s(`Preview bar: step "${U}" not found, ignoring initial step/display override`),void Nt();mt=re.stepName,Ce={...re.displaySettings}}if(F){if(!A)return s(`Preview bar: display type "${W}" provided without a step, ignoring`),void Nt();Ce={...Ce,displayType:W}}Nt();const Y=te.currentMessages.find(re=>re.instanceId===Gt);return void(Y&&$n(Ce)?dr(Y,mt,Ce):function(){const re=Ce.displayType;if(re!=="inline"&&re!=="tooltip")return;const ee=document.querySelector("#gist-preview-bar .gist-pb-input[type='text']");ee&&Xr(ee)}())}Nt()}function vo(){ki(),Gt=null,dt=[],Ce={},mt=null,ne=!0,R=5,J=!0,je=!1;const h=new URLSearchParams(window.location.search).get(Gn);h&&async function(_){try{return await $()(`/api/v1/preview/${_}`,{method:"DELETE"})}catch(A){return L(A)}}(h).catch(()=>s("Failed to delete preview session")),Nt(),H&&clearInterval(H),H=setInterval(async()=>{if(R-=1,R<=0)clearInterval(H),H=null,await Uu();else{const _=document.querySelector(`#${Fn} .gist-pb-ended-text`);_?_.innerHTML=yo(R):Nt()}},1e3)}async function qr(h){if(!te.isDocumentVisible)return s("Document hidden, not showing message now."),null;if(Ht(h.queueId))return s(`Message with queueId ${h.queueId} is already showing.`),null;const _=Ge(h);return!h.tooltipPosition&&_.hasTooltipPosition&&(h.tooltipPosition=_.tooltipPosition),h.tooltipPosition?function(A,F){var Y,re;const U=F.elementId||A.elementId;if(!U)return s(`No target selector specified for tooltip message ${A.messageId}`),te.messageError(A),null;if(!_e(U)){if(!te.config.isPreviewSession||!((re=(Y=A.properties)==null?void 0:Y.gist)!=null&&re.livePreview))return s(`Tooltip target element "${U}" not found for message ${A.messageId}, skipping display`),te.messageError(A),null;s(`Preview: tooltip target "${U}" not found, loading message for preview bar`)}const W=te.currentMessages.find(ee=>ee.tooltipPosition&&ee.elementId===U);return W&&(s(`Tooltip already showing on target "${U}" (instance ${W.instanceId}), dismissing it first`),te.messageDismissed(W),or(W),W.instanceId&&Wt(W.instanceId)),A.instanceId=w(),A.overlay=!1,A.firstLoad=!0,A.shouldResizeHeight=!1,A.shouldScale=!1,A.render
197StartTime=new Date().getTime(),A.elementId=U,te.currentMessages.push(A),Rn(A,null,A.savedStepName||null)}(h,_):te.overlayInstanceId?(s(`Message ${te.overlayInstanceId} already showing.`),null):(h.instanceId=w(),h.overlay=!0,h.firstLoad=!0,h.shouldResizeHeight=!0,h.shouldScale=_.shouldScale,h.renderStartTime=new Date().getTime(),te.overlayInstanceId=h.instanceId,te.currentMessages.push(h),Rn(h,null,h.savedStepName||null))}function fr(h,_){return te.isDocumentVisible?Ht(h.queueId)?(s(`Message with queueId ${h.queueId} is already showing.`),null):an(_)?(s(`Message with elementId ${_} already has a message.`),null):(h.instanceId=w(),h.overlay=!1,h.firstLoad=!0,h.shouldScale=!1,h.elementId=_,h.shouldResizeHeight=!An(_),h.renderStartTime=new Date().getTime(),te.currentMessages.push(h),Rn(h,_,h.savedStepName||null)):(s("Document hidden, not showing message now."),null)}async function Ii(h){h?(te.messageDismissed(h),await bo(h)):s("Message not found")}async function bo(h){Qe(h)==="tooltip"?ys(h):h.overlay?await _a(!0,h):Br(h)}async function xo(h){h?Ge(h).persistent&&(s("Persistent message dismissed, logging view"),await ei(h),await Sa(h),await $r(h.queueId??"")):s("Message not found")}function Br(h){h.instanceId&&Wt(h.instanceId),h.elementId&&Vt(h.elementId),te.config.isPreviewSession&&(vo(),wo())}function ys(h){or(h),h.instanceId&&Wt(h.instanceId),te.currentMessages.length===0&&(window.removeEventListener("message",Jr),window.removeEventListener("touchstart",_o)),te.config.isPreviewSession&&(vo(),wo())}async function _a(h,_){h?await Sr():Qt(),te.currentMessages.length===0&&(window.removeEventListener("message",Jr),window.removeEventListener("touchstart",_o)),_.instanceId&&Wt(_.instanceId),te.overlayInstanceId=null,te.config.isPreviewSession&&(vo(),wo())}function wo(){const h=new URL(window.location.href);h.searchParams.delete(Gn),h.searchParams.delete(Kn),history.replaceState(null,"",h.toString())}function Rn(h,_=null,A=null){const F=te.config.env,U={endpoint:E.ENGINE_API_ENDPOINT[F],siteId:te.config.siteId,dataCenter:te.config.dataCenter,messageId:h.messageId,instanceId:h.instanceId??"",livePreview:!1,properties:h.properties,customAttributes:Object.fromEntries(new Map(jt))},W=`${E.GIST_VIEW_ENDPOINT[F]}/index.html`;return window.addEventListener("message",Jr),window.addEventListener("touchstart",_o),Qe(h)==="tooltip"?function(Y,re,ee,fe=null){const Q=re.instanceId??"",V=Xt(Q),Ve=Ge(re),ze=xt.get(Q);ze&&(ze.cleanup(),xt.delete(Q)),document.querySelectorAll(`#gist-tooltip-${Q}`).forEach(Re=>{var ye;(ye=Re.parentNode)==null||ye.removeChild(Re)});const G=`gist-tooltip-${Q}`,_t=document.createElement("div");_t.id=G,_t.innerHTML=function(Re,ye,de,he=""){let Se=600;ye.messageWidth>Se&&(Se=ye.messageWidth);const Ne=ye.tooltipArrowColor,Ke=function(tn){switch(tn){case"top":default:return"gist-arrow-bottom";case"bottom":return"gist-arrow-top";case"left":return"gist-arrow-right";case"right":return"gist-arrow-left"}}(ye.tooltipPosition),et=he?`#${he} `:"";return`
198    <div class="gist-tooltip-outer">
199        <style>
200            ${et}.gist-tooltip-outer {
201                position: absolute;
202            }
203            ${et}.gist-tooltip-container {
204                position: relative;
205                z-index: 9999999;
206                opacity: 0;
207                transition: opacity 0.3s ease-in-out;
208            }
209            ${et}.gist-tooltip-container.gist-visible {
210                opacity: 1;
211            }
212            ${et}.gist-tooltip-frame-clip {
213                overflow: hidden;
214            }
215            ${et}.gist-tooltip-frame {
216                display: block;
217                width: ${ye.messageWidth}px;
218                border: none;
219                transition: height 0.1s ease-in-out;
220            }
221            ${et}.gist-tooltip-arrow {
222                width: 0;
223                height: 0;
224                position: absolute;
225                z-index: 1;
226            }
227            ${et}.gist-tooltip-arrow.gist-arrow-bottom {
228                bottom: 0;
229                left: 50%;
230                transform: translateX(-50%) translateY(100%);
231                border-left: 10px solid transparent;
232                border-right: 10px solid transparent;
233                border-top: 10px solid ${Ne};
234            }
235            ${et}.gist-tooltip-arrow.gist-arrow-top {
236                top: 0;
237                left: 50%;
238                transform: translateX(-50%) translateY(-100%);
239                border-left: 10px solid transparent;
240                border-right: 10px solid transparent;
241                border-bottom: 10px solid ${Ne};
242            }
243            ${et}.gist-tooltip-arrow.gist-arrow-right {
244                right: 0;
245                top: 50%;
246                transform: translateY(-50%) translateX(100%);
247                border-top: 10px solid transparent;
248                border-bottom: 10px solid transparent;
249                border-left: 10px solid ${Ne};
250            }
251            ${et}.gist-tooltip-arrow.gist-arrow-left {
252                left: 0;
253                top: 50%;
254                transform: translateY(-50%) translateX(-100%);
255                border-top: 10px solid transparent;
256                border-bottom: 10px solid transparent;
257                border-right: 10px solid ${Ne};
258            }
259            @media (max-width: ${Se}px) {
260                ${et}.gist-tooltip-frame {
261                    max-width: 100%;
262                }
263            }
264        </style>
265        <div class="gist-tooltip-container">
266            <div class="gist-tooltip-arrow ${Ke}"></div>
267            <div class="gist-tooltip-frame-clip">
268                <iframe id="${Re}" class="gist-tooltip-frame" src="${de}"></iframe>
269            </div>
270        </div>
271    </div>`}(V,Ve,Y,G),document.body.appendChild(_t),Vn(V,ee,fe)}(W,h,U,A):_?(Pt.includes(_)&&Kt(_),function(Y,re,ee,fe,Q=null){const V=_e(Y);if(V){const Ve=Xt(ee.instanceId??"");V.classList.add(Ve);const ze=Ge(ee);let G=ze.messageWidth+"px";jn.includes(Y)&&!ze.hasCustomWidth&&(G="100%"),Pt.includes(Y)&&(V.style.width=G),An(Y)||(V.style.height="0px"),V.innerHTML=function(_t,Re,ye){return function(de,he,Se){let Ne=800;return he.messageWidth>Ne&&(Ne=he.messageWidth),`
272    <div id="gist-embed">
273        <style>
274            #x-gist-floating-top, #x-gist-floating-top-left, #x-gist-floating-top-right {
275                position: fixed;
276                top: 0px;
277                z-index: 1000000;
278            }
279            #x-gist-floating-bottom, #x-gist-floating-bottom-left, #x-gist-floating-bottom-right {
280                position: fixed;
281                bottom: 0px;
282                z-index: 1000000;
283            }
284            #x-gist-bottom, #x-gist-top, #x-gist-floating-top, #x-gist-floating-bottom {
285                left: 50%;
286                transform: translate(-50%, 0%);
287            }
288            #x-gist-floating-top-right, #x-gist-floating-bottom-right {
289                right: 0px;
290            }
291            #gist-embed {
292                position: relative;
293                height: 100%;
294                width: 100%;
295            }
296            #gist-embed-container {
297                position: relative;
298                height: 100%;
299                width: 100%;
300            }
301            #gist-embed-container .gist-frame {
302                height: 100%;
303                width: 100%;
304                border: none;
305            }
306            #x-gist-top.${de},
307            #x-gist-bottom.${de},
308            #x-gist-floating-top.${de},
309            #x-gist-floating-bottom.${de},
310            #x-gist-floating-top-left.${de},
311            #x-gist-floating-top-right.${de},
312            #x-gist-floating-bottom-left.${de},
313            #x-gist-floating-bottom-right.${de} {
314                transition: height 0.1s ease-in-out;
315            }
316            @media (max-width: ${Ne}px) {
317                #x-gist-top.${de},
318                #x-gist-bottom.${de},
319                #x-gist-floating-top.${de},
320                #x-gist-floating-bottom.${de},
321                #x-gist-floating-top-left.${de},
322                #x-gist-floating-top-right.${de},
323                #x-gist-floating-bottom-left.${de},
324                #x-gist-floating-bottom-right.${de} {
325                    width: 100% !important;
326                }
327            }
328        </style>
329        <div id="gist-embed-container">
330            <iframe id="${de}" class="gist-frame" src="${Se}"></iframe>
331        </div>
332    </div>`}(Xt(Re.instanceId??""),ye,_t)}(re,ee,ze),Vn(Ve,fe,Q)}else s(`Message could not be embedded, elementId ${Y} not found.`)}(_,W,h,U,A)):function(Y,re,ee,fe=null){document.querySelectorAll("#gist-embed-message").forEach(Q=>{var V;(V=Q.parentNode)==null||V.removeChild(Q)}),document.body.insertAdjacentHTML("afterbegin",function(Q,V){const Ve=Ge(V);return function(ze,G,_t){let Re=600;return G.messageWidth>Re&&(Re=G.messageWidth),`
333    <div id="gist-embed-message">
334        <style>
335            #gist-overlay.gist-background {
336                position: fixed;
337                z-index: 9999999998;
338                left: 0;
339                top: 0;
340                width: 100%;
341                height: 100%;
342                background-color: ${G.overlayColor};
343                visibility: hidden;
344            }
345            #gist-overlay.gist-background.gist-visible {
346                visibility: visible;
347            }
348            .gist-message {
349                width: ${G.messageWidth}px;
350                position: absolute;
351                border: none;
352                opacity: 0;
353                transition: opacity 0.3s ease-in-out, height 0.1s ease-in-out;
354                z-index: 9999999999;
355                left: 50%;
356                transform: translateX(-50%);
357            }
358            .gist-message.gist-visible {
359                opacity: 1;
360                pointer-events: auto;
361            }
362            .gist-message.gist-center {
363                transform: translate(-50%, -50%);
364                top: 50%;
365            }
366            .gist-message.gist-bottom {
367                bottom: 0;
368            }
369            .gist-message.gist-top {
370                top: 0;
371            }
372            @media (max-width: ${Re}px) {
373                .gist-message {
374                    width: 100%;
375                }
376            }
377        </style>
378        <div id="gist-overlay" class="gist-background">
379            <iframe id="${ze}" class="gist-message" src="${_t}"></iframe>
380        </div>
381    </div>`}(Xt(V.instanceId??""),Ve,Q)}(Y,re)),Vn(Xt(re.instanceId??""),ee,fe)}(W,h,U,A),h}async function Sa(h){let _;s(`Message shown, logging view for: ${h.messageId}`),h.queueId!=null?(await ei(h),_=await Zt(h.queueId)):_=await async function(A){try{return await $().post(`/api/v1/logs/message/${A}`)}catch(F){return L(F)}}(h.messageId),s((_==null?void 0:_.status)===200?"Message view logged":`Problem logging message: ${_==null?void 0:_.status}`)}function _o(){}async function Jr(h){var F,U,W,Y,re,ee,fe,Q,V,Ve;const _=te.config.env,A=h.data;
381if(A.gist&&h.origin===E.RENDERER_HOST[_]){const ze=A.gist.instanceId,G=Hn(ze);if(!G)return;const _t=Ge(G);switch(A.gist.method){case"routeLoaded":{const Re=.001*(new Date().getTime()-(G.renderStartTime??0));if(s(`Engine render for message: ${G.messageId} timer elapsed in ${Re.toFixed(3)} seconds`),async function(ye){const de=await Ft(ye);de&&l(de)}(G.queueId??""),G.currentRoute=A.gist.parameters.route,A.gist.parameters.fullDisplaySettings&&!G.displaySettings?G.displaySettings=A.gist.parameters.fullDisplaySettings:G.displaySettings&&(s("SDK already has display settings state, sending it to iframe"),Yn(G)),te.config.isPreviewSession&&((U=(F=G.properties)==null?void 0:F.gist)!=null&&U.livePreview)&&zu(G),G.firstLoad||G.isDisplayChange){if(Qe(G)==="tooltip"){const ye=((Y=(W=G.properties)==null?void 0:W.gist)==null?void 0:Y.elementId)||G.elementId||void 0;if(!ye||!_e(ye)){if(te.config.isPreviewSession&&((ee=(re=G.properties)==null?void 0:re.gist)!=null&&ee.livePreview)){s(`Preview: tooltip target "${ye}" not found, preview bar will show element picker`),G.firstLoad=!1,G.isDisplayChange=!1;break}s(`Tooltip target not found for "${ye}", emitting error and skipping display`),te.messageError(G),G.firstLoad=!1,G.isDisplayChange=!1,ys(G);break}if(!await async function(he){var T,q;const Se=he.instanceId??"",Ne=Ge(he),Ke=`gist-tooltip-${Se}`,et=_e(Ke);if(!et)return s(`Tooltip wrapper not found for instance ${Se}`),!1;const tn=((q=(T=he.properties)==null?void 0:T.gist)==null?void 0:q.elementId)||he.elementId||void 0;if(!tn)return s(`No target selector for tooltip ${Se}`),!1;const Un=xt.get(Se);Un&&(Un.cleanup(),xt.delete(Se));const o=et.querySelector(".gist-tooltip-outer");if(!o)return s(`Tooltip inner element not found for instance ${Se}`),!1;const f=Ne.tooltipPosition||"bottom";if(!await async function(z,K,tt){const nt=Be(K);if(!nt)return!1;let Pe=[];try{Pe=ge(nt)}catch{}if(Ot(nt.getBoundingClientRect(),Pe))return!0;if(!function(nn,Ut,cn){const yn=Be(Ut);if(!yn)return!1;const qn=yn.getBoundingClientRect(),ws=window.innerWidth,Xn=window.innerHeight,Oo=new DOMRect(Math.max(0,(ws-qn.width)/2),Math.max(0,(Xn-qn.height)/2),qn.width,qn.height);return nn.style.display="",Ee(nn.getBoundingClientRect(),Oo,cn)!==null}(z,K,tt))return s(`Preflight failed: tooltip would not fit after scrolling target "${K}" into view`),!1;nt.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),await function(nn){return new Promise(Ut=>{let cn=nn.getBoundingClientRect(),yn=0;const qn=Date.now();setTimeout(function ws(){const Xn=nn.getBoundingClientRect();Math.abs(Xn.top-cn.top)<1&&Math.abs(Xn.left-cn.left)<1?yn++:yn=0,cn=Xn,yn>=2||Date.now()-qn>1e3?Ut():setTimeout(ws,50)},50)})}(nt);const yt=nt.getBoundingClientRect();let ht=[];try{ht=ge(nt)}catch{}return Ot(yt,ht)}(o,tn,f))return s(`Tooltip for instance ${Se} skipped: target "${tn}" is off-screen and cannot be scrolled into a valid position`),!1;const m=function(z,K,tt,nt){const Pe=Be(K);if(!Pe)return null;let yt=null,ht=null,nn=!1,Ut=[],cn=null;try{Ut=ge(Pe)}catch{}function yn(){var Ul;if(nn)return;if(!Pe||!document.contains(Pe)||!document.contains(z))return s("Tooltip or target element removed from DOM, cleaning up listeners"),ws(),void((Ul=nt==null?void 0:nt.onDetach)==null?void 0:Ul.call(nt));const Xn=Pe.getBoundingClientRect();if(!Ot(Xn,Ut))return void(z.style.display="none");z.style.display="";const Oo=Ee(z.getBoundingClientRect(),Xn,tt);Oo?(function(Ao,pr){Ao.style.position="absolute",Ao.style.top=`${pr.top+window.scrollY}px`,Ao.style.left=`${pr.left+window.scrollX}px`}(z,Oo),function(Ao,pr){const mr=Ao.querySelector(".gist-tooltip-arrow");mr&&(mr.classList.remove("gist-arrow-top","gist-arrow-bottom","gist-arrow-left","gist-arrow-right"),mr.classList.add(we[pr.position]),pr.arrowOffset!==null?pr.position==="top"||pr.position==="bottom"?(mr.style.left=`calc(50% + ${pr.arrowOffset}px)`,mr.style.removeProperty("top")):(mr.style.top=`calc(50% + ${pr.arrowOffset}px)`,mr.style.removeProperty("left")):pr.position==="top"||pr.position==="bottom"?(mr.style.left="50%",mr.style.removeProperty("top")):(mr.style.top="50%",mr.style.removeProperty("left")))}(z,Oo)):z.style.display="none"}function qn(){yt===null&&(yt=requestAnimationFrame(()=>{yt=null,yn()}))}function ws(){if(!nn){nn=!0,cn&&(cn.disconnect(),cn=null),window.removeEventListener("scroll",qn),window.removeEventListener("resize",qn);for(const Xn of Ut)Xn.removeEventListener("scroll",qn);yt!==null&&(cancelAnimationFrame(yt),yt=null),ht!==null&&(cancelAnimationFrame(ht),ht=null)}}if(yn(),nn)return null;window.addEventListener("scroll",qn,{passive:!0}),window.addEventListener("resize",qn,{passive:!0});for(const Xn of Ut)Xn.addEventListener("scroll",qn,{passive:!0});try{cn=new MutationObserver(()=>{ht===null&&(ht=requestAnimationFrame(()=>{ht=null,document.contains(Pe)||yn()}))}),cn.observe(document.body,{childList:!0,subtree:!0})}catch{}return{cleanup:ws,reposition:yn}}(o,tn,f,{onDetach:()=>{var K;xt.delete(Se);const z=_e(Ke);z&&((K=z.parentNode)==null||K.removeChild(z))}});if(m){if(o.style.display!=="none"){const z=et.querySelector(".gist-tooltip-container");return z?(xt.set(Se,m),z.classList.add("gist-visible"),!0):(m.cleanup(),s(`Tooltip container not found for instance ${Se}`),!1)}return m.cleanup(),s(`Tooltip for instance ${Se} could not be positioned within the viewport, target "${tn}" may be off-screen`),!1}return s(`Failed to position tooltip for instance ${Se}, target "${tn}" may not exist or no position fits the viewport`),!1}(G)){if(te.config.isPreviewSession&&((Q=(fe=G.properties)==null?void 0:fe.gist)!=null&&Q.livePreview)){s(`Preview: tooltip positioning failed for "${ye}", preview bar will remain active`),G.firstLoad=!1,G.isDisplayChange=!1;break}s(`Tooltip positioning failed for "${ye}", emitting error and cleaning up`),te.messageError(G),G.firstLoad=!1,G.isDisplayChange=!1,ys(G);break}}else G.overlay?function(ye){const de=Ge(ye),he=document.querySelector("#gist-overlay");if(he){he.classList.add("gist-visible");const Se=document.querySelector(".gist-message");Se&&(ye.position?Se.classList.add("gist-"+ye.position):Se.classList.add("gist-center")),setTimeout(ar,100),de.exitClick&&setTimeout(()=>function(Ne){const Ke=document.querySelector("#gist-overlay");Ke&&Ke.addEventListener("click",()=>{te.dismissMessage(Ne)})}(ye.instanceId??""),1e3)}else Qt()}(G):function(ye){const de=_e(ye);de&&de.classList.add("gist-visible")}(G.elementId);G.firstLoad&&!G.isDisplayChange&&(te.messageShown(G),_t.persistent?s("Persistent message shown, skipping logging view"):await Sa(G)),G.firstLoad=!1,G.isDisplayChange=!1}Wn(ze,G);break}case"tap":{const Re=A.gist.parameters.action,ye=A.gist.parameters.name;if(te.messageAction(G,Re,ye),A.gist.parameters.system&&!_t.persistent){await Ii(G);break}try{const de=new URL(Re);if(de&&de.protocol==="gist:")switch(de.href.replace("gist://","").split("?")[0]){case"close"
381:await xo(G),await So(G),await Ii(G),await Qn();break;case"showMessage":{const he=de.searchParams.get("messageId"),Se=de.searchParams.get("properties");if(he){const Ne=Se?JSON.parse(atob(Se)):void 0;await te.showMessage({messageId:he,properties:Ne})}break}case"loadPage":{const he=de.href.substring(de.href.indexOf("?url=")+5);he&&(he.startsWith("mailto:")||he.startsWith("https://")||he.startsWith("http://")||he.startsWith("/")?window.location.href=he:window.location.href=window.location+he);break}}}catch{}break}case"changeMessageStep":{const Re=A.gist.parameters.displaySettings,ye=A.gist.parameters.messageStepName;te.config.isPreviewSession&&ye&&((Ve=(V=G.properties)==null?void 0:V.gist)!=null&&Ve.livePreview)&&function(de,he){if(ne)return;mt=de;const Se=dt.find(Ne=>Ne.stepName===de);Se?Ce={...Se.displaySettings}:he&&(Ce={...he}),Nt()}(ye,Re),(_t.persistent||at(G))&&await async function(de,he,Se){const Ne=await kn(de);if(!Ne)return;const Ke=c(Ne)||{},et={stepName:he!==void 0?he:Ke.stepName,displaySettings:Se!==void 0?Se:Ke.displaySettings},tn=new Date;tn.setDate(tn.getDate()+30),a(Ne,et,tn),s(`Saved message state for queueId: ${de}`)}(G.queueId??"",ye,Re),Re&&Lt(G,Re)&&(s("Display settings changed, reloading message"),await vs(G),un(G,Re),await Ri(G,ye??null));break}case"routeChanged":G.currentRoute=A.gist.parameters.route,G.renderStartTime=new Date().getTime(),Wn(ze,G),s(`Route changed to: ${G.currentRoute}`);break;case"sizeChanged":s(`Size Changed Width: ${A.gist.parameters.width} - Height: ${A.gist.parameters.height}`),Qe(G)==="tooltip"?function(Re,ye){const de=Re.instanceId??"",he=Xt(de),Se=document.getElementById(he);if(Se&&ye.height>0){Se.style.height=`${ye.height}px`;const Ne=xt.get(de);Ne&&Ne.reposition()}}(G,A.gist.parameters):G.elementId&&!G.shouldResizeHeight||function(Re,ye){const de=_e(Re.elementId?Re.elementId:Xt(Re.instanceId??""));if(de){const he=de.style;if(ye.height>0)if(ye.height>window.innerHeight){const Se=1-(ye.height/window.innerHeight-1);Re.shouldScale&&Se>=.4?(he.height=`${ye.height}px`,he.transform=`translateX(-50%) translateY(-50%) scale(${Se})`):he.height=`${window.innerHeight}px`}else he.height=`${ye.height}px`}}(G,A.gist.parameters);break;case"titleChanged":s(`Overlay title changed to: ${A.gist.parameters.title}`),function(Re,ye){const de=_e(Xt(Re));de&&(de.title=ye)}(ze,A.gist.parameters.title);break;case"eventDispatched":te.events.dispatch("eventDispatched",{name:A.gist.parameters.name,payload:A.gist.parameters.payload});break;case"error":case"routeError":te.messageError(G),Qe(G)==="tooltip"?ys(G):te.overlayInstanceId?await _a(!1,G):Br(G)}}}async function Ri(h,_){h.isDisplayChange=!0,h.renderStartTime=new Date().getTime();const A=Qe(h),F=h.elementId||null;if(A==="tooltip")return te.overlayInstanceId===h.instanceId&&(te.overlayInstanceId=null),h.shouldScale=!1,h.shouldResizeHeight=!1,void Rn(h,null,_);if(F){const U=an(F);U&&U.instanceId!==h.instanceId&&(s(`Dismissing existing message at ${F} to make room for multi-step message`),await Ii(U))}if(h.overlay){te.overlayInstanceId=h.instanceId??null;const U=Ge(h);h.shouldScale=U.shouldScale,h.shouldResizeHeight=!0}else te.overlayInstanceId=null,h.shouldScale=!1,h.shouldResizeHeight=!An(F??"");F&&Pt.includes(F)&&Kt(F),Rn(h,F,_)}async function vs(h){Qe(h)==="tooltip"?or(h):h.overlay?await Sr():h.elementId&&Vt(h.elementId)}async function dr(h,_,A){A&&Lt(h,A)&&(await vs(h),un(h,A)),await Ri(h,_??null)}async function ei(h){s(`Logging user message view locally for: ${h.queueId}`),Ct(h)?await async function(_){s(`Marking broadcast ${_} as seen.`);const A=await Jt();if(!A)return;const F=await Ei(A,_);if(!F)return;const U=F.properties.gist.broadcast,{frequency:W}=U,Y=Er(A,_),re=Qr(A,_),ee=c(Y)||0;if(a(Y,ee+1),W.count===1)a(re,!1),s(`Marked broadcast ${_} as seen.`);else{const fe=new Date;fe.setSeconds(fe.getSeconds()+W.delay),a(re,!1,fe),s(`Marked broadcast ${_} as seen, broadcast was seen ${ee+1} times, next show date is ${fe}.`)}}(h.queueId??""):await async function(_){const A=await gs();if(!A)return;const F=c(A)??[];F.push(_),a(A,F)}(h.queueId??"")}
381async function So(h){Ct(h)&&(s(`Logging broadcast dismissed locally for: ${h.queueId}`),await async function(_){s(`Marking broadcast ${_} as dismissed.`);const A=await Jt();if(!A)return;const F=await Ei(A,_);F&&(F.properties.gist.broadcast.frequency.ignoreDismiss!==!0?(a(Qr(A,_),!1),s(`Marked broadcast ${_} as dismissed and will not show again.`)):s(`Broadcast ${_} is set to ignore dismiss.`))}(h.queueId??""),await $r(h.queueId??""))}const Pi="messageInboxUpdated";async function gt(h){const _=await bs();if(!_)return;const A=new Date;A.setMinutes(A.getMinutes()+60),a(_,h,A),te.events.dispatch(Pi,h)}async function ti(){const h=await bs();if(!h)return[];const _=c(h)??[],A=new Date;return _.filter(F=>!F.expiry||new Date(F.expiry)>A)}async function bs(){const h=await $e();return h?`gist.web.inbox.messages.${h}`:null}const Eo=(h,_)=>h().then((A=>new Promise(F=>setTimeout(F,A)))(_).then(()=>Eo(h,_)));let To=!1,Pn=null;async function ni(){To?await Qn():wt()?(s("Queue watcher started"),To=!0,Eo(()=>new Promise(()=>{(async function(){if(E.hasActiveSSEConnection())return!E.isSSEConnectionManagedBySDK()&&Pn&&(s("Not the main instance, closing our SSE connection."),zr()),void await Qn();Pn&&(s("SSE connection not active, closing it."),zr()),!E.useSSE()||Ie()?await xs():await async function(){zr();const h=function(){const _=pt();return _===null?(s("No user token available for SSE endpoint."),null):E.GIST_QUEUE_REALTIME_API_ENDPOINT[te.config.env??"prod"]+`/api/v3/sse?userToken=${_}&siteId=${te.config.siteId}&sessionId=${vt()}`}();if(h===null)return s("SSE endpoint not available, falling back to polling."),void await xs();s(`Starting SSE queue listener on ${h}`),Pn=new EventSource(h),E.setActiveSSEConnection(),Pn.addEventListener("connected",async _=>{try{s("SSE connection received"),E.setUseSSEFlag(!0);const A=JSON.parse(_.data);A.heartbeat&&(E.setSSEHeartbeat(A.heartbeat),s(`SSE heartbeat set to ${A.heartbeat} seconds`)),E.setActiveSSEConnection()}catch(A){s(`Failed to parse SSE settings: ${A}`)}l(ut),await xs()}),Pn.addEventListener("messages",async _=>{try{const A=JSON.parse(_.data);s("SSE message received"),await Zn(A),await Cn(A),await Qn()}catch(A){s(`Failed to parse SSE message: ${A}`),zr()}}),Pn.addEventListener("inbox_messages",async _=>{try{const A=JSON.parse(_.data);s("SSE inbox messages received"),await gt(A)}catch(A){s(`Failed to parse SSE inbox messages: ${A}`)}}),Pn.addEventListener("error",async()=>{s("SSE error received"),zr()}),Pn.addEventListener("heartbeat",async()=>{s("SSE heartbeat received"),E.setActiveSSEConnection(),E.setUseSSEFlag(!0)})}()})()}),1e3)):s("User token not setup, queue not started.")}async function Qn(){const h=await async function(){const U=await Jt();return U?(c(U)??[]).filter(W=>{const Y=W.properties.gist.broadcast,{frequency:re}=Y,ee=c(Qr(U,W.queueId))??!0,fe=c(Er(U,W.queueId))||0,Q=re.count===0;return ee&&(Q||fe<re.count)}):[]}(),_=await async function(){const U=await Ti();if(!U)return[];const W=c(U)??[],Y=await async function(){const re=await gs();return re?c(re)??[]:[]}();
381return W.filter(re=>!Y.includes(re.queueId??""))}(),A=h.concat(_);s(`Messages in local queue: ${A.length}`);const F=A.sort((U,W)=>U.priority-W.priority);for(const U of F)await hr(U)}async function hr(h){var A,F;let _=Ge(h);if(_.hasRouteRule){if(te.currentRoute==null&&document.readyState==="loading")return s(`Deferring message ${h.queueId}, page not fully loaded`),!1;const U=new RegExp(_.routeRule),W=new URL(window.location.href).pathname,Y=te.currentRoute!=null&&U.test(te.currentRoute),re=te.currentRoute!==W&&U.test(W);if(!Y&&!re)return s(`Route ${W} (currentRoute: ${te.currentRoute}) does not match rule: ${_.routeRule}`),!1}if(_.hasPosition&&(h.position=_.position),_.hasTooltipPosition&&(h.tooltipPosition=_.tooltipPosition),_.persistent||at(h)){const U=await async function(W){const Y=await kn(W);return Y?c(Y):null}(h.queueId??"");U&&(s(`Restoring saved state for queueId ${h.queueId}`),U.displaySettings&&(un(h,U.displaySettings),_=Ge(h)),h.savedStepName=U.stepName??null)}if(_.persistent||at(h)||!await async function(U){const W=await Ft(U);return!!W&&c(W)!==null}(h.queueId??"")){let U=null;return _.isEmbedded?!te.config.isPreviewSession||!((F=(A=h.properties)==null?void 0:A.gist)!=null&&F.livePreview)||_e(_.elementId)||Pt.includes(_.elementId)?U=fr(h,_.elementId):(s(`Preview: element "${_.elementId}" not found, showing as overlay so placement can be changed`),U=await qr(h)):U=await qr(h),U&&async function(W){const Y=await Ft(W);Y&&a(Y,!0,new Date(Date.now()+5e3))}(h.queueId??""),U!==null}return s(`Not showing message with queueId ${h.queueId} because its already loading.`),!1}async function xs(){if(wt())if(te.isDocumentVisible)if(c(ut)===null){const h=await async function(){if(Me)return;Me=!0;const _=wt();let A;try{const F={"X-Gist-User-Anonymous":String(Ie()),"Content-Language":String(qe())};A=await $().post(`/api/v4/users?sessionId=${vt()}`,{},{headers:F})}catch(F){const U=L(F);U?A=U:s(`Error getting user queue: ${F}`)}finally{Me=!1}return _!==wt()?(s("User token changed, clearing queue next pull check."),void l(ut)):(function(F){var Y;const U=(Y=F==null?void 0:F.headers)==null?void 0:Y["x-gist-queue-polling-interval"];rt=U&&Number(U)>0?Number(U):Math.min(2*rt,600);const W=new Date(new Date().getTime()+1e3*rt);a(ut,rt,W)}(A),function(F){var W,Y;const U=((Y=(W=F==null?void 0:F.headers)==null?void 0:W["x-cio-use-sse"])==null?void 0:Y.toLowerCase())==="true";E.setUseSSEFlag(U)}(A),A)}();if(h){if(h.status===200||h.status===204){s("200 response, updating local store.");const _=h.data,A=(_==null?void 0:_.inAppMessages)??[],F=(_==null?void 0:_.inboxMessages)??[];Zn(A),Cn(A),gt(F)}else h.status===304&&s("304 response, using local store.");await Qn()}else s("No response object returned while checking message queue.")}else s("Next queue pull scheduled for later.");else s("Document not visible, skipping queue check.");else s("User token reset, skipping queue check.")}function zr(h=!1){h&&E.removeActiveSSEConnection(),(h||E.isSSEConnectionManagedBySDK())&&E.setUseSSEFlag(!1),Pn&&(s("Stopping SSE queue listener..."),Pn.close(),Pn=null)}class te{static async setup(_){this.initialized?s("Gist SDK already initialized, skipping setup."):(this.initialized=!0,this.events=new i,this.config={useAnonymousSession:_.useAnonymousSession??!1,siteId:_.siteId,dataCenter:_.dataCenter,env:_.env??"prod",logging:_.logging??!1,experiments:_.experiments??!1},this.currentMessages=[],xt.forEach(A=>A.cleanup()),xt.clear(),document.querySelectorAll('[id^="gist-tooltip-"]').forEach(A=>{var F;(F=A.parentNode)==null||F.removeChild(A)}),this.overlayInstanceId=null,this.currentRoute=null,this.isDocumentVisible=!0,this.config.isPreviewSession=function(){const A=new URLSearchParams(window.location.search),F=A.get(Gn);if(F){sessionStorage.setItem(u,String(!1)),te.setUserToken(F),s(`Preview mode enabled with user token: ${F}`),function(){if(document.getElementById(Fn))return;(function(){if(document.getElementById(en))return;const Y=document.createElement("style");Y.id=en,Y.textContent=In,document.head.appendChild(Y)})();try{kt=sessionStorage.getItem(cr)==="true"}catch{kt=!1}const W=Ze("div",{id:Fn});document.body.appendChild(W),Nt()}();const U=A.get(Kn);if(U)try{const W=JSON.parse(atob(U)),Y=W.stepName||null,re=W.displayType||null;(Y||re)&&function(ee,fe){st=ee,Dt=fe}(Y,re)}catch{s("Preview bar: failed to parse cioPreviewSettings")}}return!d()}(),function(){const A=y();for(let F=A.length-1;F>=0;
381F--){const U=A.key(F);U!=null&&U.startsWith("gist.")&&p(U)}}(),s(`Setup complete on ${this.config.env} environment.`),this.config.isPreviewSession||!this.config.useAnonymousSession||new URLSearchParams(location.search).has("ajs_uid")||ct(),await ni(),document.readyState==="loading"&&document.addEventListener("DOMContentLoaded",()=>{Qn()},{once:!0}),document.addEventListener("visibilitychange",async()=>{document.visibilityState==="hidden"?this.isDocumentVisible=!1:(this.isDocumentVisible=!0,await Qn())},!1))}static async setCurrentRoute(_){this.currentRoute=_,s(`Current route set to: ${_}`),await async function(){if(te.currentMessages.length!==0)for(const A of[...te.currentMessages])document.querySelector(`#gist-${A.instanceId}`)==null&&(s(`Removing active message ${A.instanceId} that no longer exists after route change`),await bo(A))}(),await Qn()}static async setUserToken(_,A){this.config.isPreviewSession||(function(F,U){U===void 0&&(U=new Date).setDate(U.getDate()+30),a(ft,F,U),Ie()&&(l(ut),l(Yt)),s(`Set user token "${F}" with expiry date set to ${U}`)}(_,A),zr(!0),await ni())}static setUserLocale(_){var A;a(M,A=_),s(`Set user locate to "${A}"`)}static setCustomAttribute(_,A){return function(F,U){return F&&typeof F=="string"?(jt.set(F,U),Si(),s(`Set custom attribute "${F}" to "${U}"`),!0):(s(`Invalid key for custom attribute: ${F}`),!1)}(_,A)}static clearCustomAttributes(){jt.clear(),l(ur),s("Cleared all custom attributes")}static removeCustomAttribute(_){return function(A){if(!A||typeof A!="string")return s(`Invalid key for custom attribute: ${A}`),!1;const F=jt.has(A);return jt.delete(A),jt.size>0?Si():l(ur),s(`Removed custom attribute "${A}"`),F}(_)}static async clearUserToken(){this.config.isPreviewSession||(be(),this.config.useAnonymousSession&&ct(),zr(!0),await ni())}static async dismissMessage(_){const A=Hn(_);A&&(await xo(A),await So(A),await Ii(A),await Qn())}static async embedMessage(_,A){const F=fr(_,A);return(F==null?void 0:F.instanceId)??null}static async showMessage(_){const A=await qr(_);return(A==null?void 0:A.instanceId)??null}static updateMessageDisplaySettings(_,A){const F=Hn(_);return!!F&&(F.displaySettings=A,Yn(F),!0)}static messageShown(_){s(`Message shown: ${_.messageId}`),this.events.dispatch("messageShown",_)}static messageDismissed(_){_!==null&&(s(`Message dismissed: ${_.messageId}`),this.events.dispatch("messageDismissed",_))}static messageError(_){s(`Message error: ${_.messageId}`),this.events.dispatch("messageError",_)}static messageAction(_,A,F){s(`Message action: ${_.currentRoute}, ${A} with name ${F} on ${_.instanceId}`),this.events.dispatch("messageAction",{message:_,action:A,name:F})}static async getInboxUnopenedCount(){return(await ti()).filter(_=>!_.opened).length}static async getInboxMessages(){return await ti()}static async updateInboxMessageOpenState(_,A){return await async function(F,U){const W=await bs();if(!W)return;const Y=await async function(V,Ve){try{return await $()(`/api/v1/messages/${V}`,{method:"PATCH",body:JSON.stringify(Ve),headers:{"Content-Type":"application/json"}})}catch(ze){return L(ze)}}(F,{opened:U});if(!Y||Y.status<200||Y.status>=300){const V=`Failed to mark inbox message opened: ${(Y==null?void 0:Y.status)??"unknown error"}`;throw s(V),new Error(V)}const re=await ti();let ee=null;const fe=re.map(V=>{if(V.queueId===F){const Ve={...V,opened:U};return ee=Ve,Ve}return V}),Q=new Date;if(Q.setMinutes(Q.getMinutes()+60),a(W,fe,Q),ee){const V=U?"opened":"unopened";te.events.dispatch("inboxMessageAction",{message:ee,action:V})}te.events.dispatch(Pi,await ti())}(_,A)}static async removeInboxMessage(_){return await async function(A){const F=await bs();if(!F)return;const U=await Zt(A);if(!U||U.status<200||U.status>=300){const re=`Failed to remove inbox message: ${(U==null?void 0:U.status)??"unknown error"}`;throw s(re),new Error(re)}const W=(await ti()).filter(re=>re.queueId!==A),Y=new Date;Y.setMinutes(Y.getMinutes()+60),a(F,W,Y),te.events.dispatch(Pi,await ti())}(_)}}return r.default})())}(iu)),iu.exports}var F1=j1();const vn=_u(F1);var bc="_cio";function Ld(t,e,n){var r=this;return{sentAt:new Date(n.sentAt),expiresAt:n.expiry?new Date(n.expiry):void 0,messageId:n.queueId,opened:(n==null?void 0:n.opened)===!0,properties:n.properties,type:n.type||"",topics:n.topics||[],trackClick:function(i){typeof n.deliveryId>"u"||n.deliveryId===""||t.track(Nn.Metric,{deliveryId:n.deliveryId,metric:Nn.Clicked,actionName:i})},markOpened:function(){return ue(r,void 0,void 0,function(){return ce(this,function(i){switch(i.label){case 0:return[4,e.updateInboxMessageOpenState(n.queueId,!0)];case 1:return i.sent(),[2]}})})},markUnopened:function(){return ue(r,void 0,void 0,function(){return ce(this,function(i){switch(i.label){case 0:return[4,e.updateInboxMessageOpenState(n.queueId,!1)];case 1:return i.sent(),[2]}})})},markDeleted:function(){return ue(r,void 0,void 0,function(){return ce(this,function(i){switch(i.label){case 0:return[4,e.removeInboxMessage(n.queueId)];case 1:return i.sent(),[2]}})})}}}function Ka(t,e,n){return ue(this,void 0,void 0,function(){var r,i;return ce(this,function(s){switch(s.label){case 0:return r=n,!r||!Array.isArray(r)?[4,t.getInboxMessages()]:[3,2];case 1:r=s.sent(),s.label=2;case 2:return!r||!Array.isArray(r)?[2,[]]:(r=r.slice().sort(function(u,a){return new Date(a.sentAt).getTime()-new Date(u.sentAt).getTime()}),e.length===0?[2,r.filter(function(u){var a=u.topics;return!a||a.length===0?!0:!a.some(function(c){return c.startsWith(bc)})})]:(i=e.some(function(u){return u.startsWith(bc)}),[2,r.filter(function(u){var a=u.topics;return!a||a.length===0||!i&&a.some(function(c){return c.startsWith(bc)})?!1:a.some(function(c){return e.includes(c)})})]))}})})}function $1(t,e,n){var r=this;return{total:function(){return ue(r,void 0,void 0,function(){var i;return ce(this,function(s){switch(s.label){case 0:return[4,Ka(e,n,null)];case 1:return i=s.sent(),[2,i.length]}})})},totalUnopened:function(){return ue(r,void 0,void 0,function(){var i;return ce(this,function(s){switch(s.label){case 0:return[4,Ka(e,n,null)];case 1:return i=s.sent(),[2,i.filter(function(u){return(u==null?void 0:u.opened)!==!0}).length]}})})},messages:function(){return ue(r,void 0,void 0,function(){var i;return ce(this,function(s){switch(s.label){case 0:return[4,Ka(e,n,null)];case 1:return i=s.sent(),[2,i.map(function(u){return Ld(t,e,u)})]}})})},onUpdates:function(i){var s=function(u){return ue(r,void 0,void 0,function(){var a,c,l;return ce(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,Ka(e,n,u)];case 1:return a=d.sent(),c=a.map(function(y){return Ld(t,e,y)}),i(c),[3,3];case 2:return l=d.sent(),console.error("Error processing inbox updates:",l),[3,3];case 3:return[2]}})})};return e.events.on("messageInboxUpdated",s),function(){e.events.off("messageInboxUpdated",s)}}}}function U1(t){var e=this,n,r=!1,i=!1,s=new EventTarget;function u(){return ue(this,void 0,void 0,function(){var p;return ce(this,function(x){switch(x.label){case 0:return p=n.user().anonymousId(),p?[4,vn.setCustomAttribute("cio_anonymous_id",p)]:[3,2];case 1:x.sent(),x.label=2;case 2:return[2]}})})}
381function a(){!r||i||(n.on("reset",l),t.events&&(Dd.forEach(function(p){s.addEventListener(p,t==null?void 0:t.events)}),["messageDismissed","messageError"].forEach(function(p){vn.events.on(p,function(x){var b,g;s.dispatchEvent(vc(N1(p),{messageId:x.messageId,deliveryId:(g=(b=x.properties)===null||b===void 0?void 0:b.gist)===null||g===void 0?void 0:g.campaignId}))})})),vn.events.on("messageShown",function(p){var x,b,g,S,O,k,v,w,D,I,j,C=(b=(x=p==null?void 0:p.properties)===null||x===void 0?void 0:x.gist)===null||b===void 0?void 0:b.campaignId;if(t.events&&s.dispatchEvent(vc(Mr.MessageOpened,{messageId:p==null?void 0:p.messageId,deliveryId:C,message:{dismiss:function(){vn.dismissMessage(p==null?void 0:p.instanceId)}}})),typeof C<"u"&&C!==""){n.track(Nn.Metric,{deliveryId:C,metric:Nn.Opened});return}var E=(O=(S=(g=p==null?void 0:p.properties)===null||g===void 0?void 0:g.gist)===null||S===void 0?void 0:S.broadcast)===null||O===void 0?void 0:O.broadcastIdInt;if(E||(E=(w=(v=(k=p==null?void 0:p.properties)===null||k===void 0?void 0:k.gist)===null||v===void 0?void 0:v.broadcast)===null||w===void 0?void 0:w.broadcastId),E){var P=(j=(I=(D=p==null?void 0:p.properties)===null||D===void 0?void 0:D.gist)===null||I===void 0?void 0:I.broadcast)===null||j===void 0?void 0:j.templateId;n.track(Nn.Content,{actionType:Nn.ViewedContent,contentId:E,templateId:P,contentType:Md})}}),vn.events.on("inboxMessageAction",function(p){p!=null&&p.message&&(p==null?void 0:p.action)!==""&&q1(n,p.message,p.action)}),vn.events.on("messageAction",function(p){var x,b,g,S,O,k,v,w,D,I,j,C,E,P,L,$=(g=(b=(x=p==null?void 0:p.message)===null||x===void 0?void 0:x.properties)===null||b===void 0?void 0:b.gist)===null||g===void 0?void 0:g.campaignId;if(t.events&&s.dispatchEvent(vc(Mr.MessageAction,{messageId:p.message.messageId,deliveryId:$,action:p.action,name:p.name,actionName:p.name,actionValue:p.action,message:{dismiss:function(){vn.dismissMessage(p.message.instanceId)}}})),p.action!=="gist://close"){if(typeof $<"u"&&$!==""){n.track(Nn.Metric,{deliveryId:$,metric:Nn.Clicked,actionName:p.name,actionValue:p.action});return}var M=(v=(k=(O=(S=p==null?void 0:p.message)===null||S===void 0?void 0:S.properties)===null||O===void 0?void 0:O.gist)===null||k===void 0?void 0:k.broadcast)===null||v===void 0?void 0:v.broadcastIdInt;if(M||(M=(j=(I=(D=(w=p==null?void 0:p.message)===null||w===void 0?void 0:w.properties)===null||D===void 0?void 0:D.gist)===null||I===void 0?void 0:I.broadcast)===null||j===void 0?void 0:j.broadcastId),M){var qe=(L=(P=(E=(C=p==null?void 0:p.message)===null||C===void 0?void 0:C.properties)===null||E===void 0?void 0:E.gist)===null||P===void 0?void 0:P.broadcast)===null||L===void 0?void 0:L.templateId;n.track(Nn.Content,{actionType:Nn.ClickedContent,contentId:M,templateId:qe,contentType:Md,actionName:p.name,actionValue:p.action})}}}),vn.events.on("eventDispatched",function(p){var x,b,g;if(p.name==="analytics:track"){var S=(x=p.payload)===null||x===void 0?void 0:x.event;if(typeof S>"u"||S==="")return;n.track(S,(b=p.payload)===null||b===void 0?void 0:b.properties,(g=p.payload)===null||g===void 0?void 0:g.options)}}))}function c(p){var x,b,g,S,O;if(!i)return p;var k=(g=(b=(x=p.event)===null||x===void 0?void 0:x.properties)===null||b===void 0?void 0:b.name)!==null&&g!==void 0?g:(O=(S=p.event)===null||S===void 0?void 0:S.properties)===null||O===void 0?void 0:O.url;return typeof k=="string"&&k.length>0&&vn.setCurrentRoute(k),p}function l(p){return ue(this,void 0,void 0,function(){return ce(this,function(x){switch(x.label){case 0:return[4,vn.clearUserToken()];case 1:return x.sent(),[4,vn.clearCustomAttributes()];case 2:return x.sent(),[4,u()];case 3:return x.sent(),[2,p]}})})}function d(p){return ue(this,void 0,void 0,function(){var x;return ce(this,function(b){switch(b.label){case 0:return r?(x=n.user().id(),typeof x=="string"&&x.length>0?[4,vn.setUserToken(x)]:[3,2]):[2,p];case 1:return b.sent(),[3,4];case 2:return[4,vn.clearUserToken()];case 3:b.sent(),b.label=4;case 4:return[2,p]}})})}var y={name:"Customer.io In-App Plugin",type:"before",version:"0.0.1",isLoaded:function(){return i},load:function(p,x){return ue(e,void 0,void 0,function(){return ce(this,function(b){switch(b.label){case 0:return n=x,t.siteId==null||t.siteId===""?(B1("siteId is required. Can't initialize."),[2,p]
381):[4,u()];case 1:return b.sent(),[4,vn.setup({siteId:t.siteId,env:t._env?t._env:"prod",logging:t._logging,useAnonymousSession:t.anonymousInApp})];case 2:return b.sent(),r=!0,[4,d(p)];case 3:return b.sent(),a(),x.inbox=function(){for(var g=[],S=0;S<arguments.length;S++)g[S]=arguments[S];if(!i)throw new Error("Customer.io In-App Plugin is not loaded yet. Ensure the plugin is initialized before calling inbox().");return $1(x,vn,g)},i=!0,[2,Promise.resolve()]}})})},identify:d,page:c,unload:function(){t.events&&Dd.forEach(function(p){s.removeEventListener(p,t==null?void 0:t.events)})}};return y}function q1(t,e,n){var r=e==null?void 0:e.deliveryId;n==="opened"&&typeof r<"u"&&r!==""&&t.track(Nn.Metric,{deliveryId:e.deliveryId,metric:Nn.Opened})}function B1(t){console.error("[Customer.io In-App Plugin] ".concat(t))}const z1=Object.freeze(Object.defineProperty({__proto__:null,get InAppEvents(){return Mr},InAppPlugin:U1},Symbol.toStringTag,{value:"Module"}));var xc={exports:{}},wc={};/**
382 * @license React
383 * use-sync-external-store-shim.production.js
384 *
385 * Copyright (c) Meta Platforms, Inc. and affiliates.
386 *
387 * This source code is licensed under the MIT license found in the
388 * LICENSE file in the root directory of this source tree.
389 */var jd;function H1(){if(jd)return wc;jd=1;var t=Wp();function e(y,p){return y===p&&(y!==0||1/y===1/p)||y!==y&&p!==p}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,s=t.useLayoutEffect,u=t.useDebugValue;function a(y,p){var x=p(),b=r({inst:{value:x,getSnapshot:p}}),g=b[0].inst,S=b[1];return s(function(){g.value=x,g.getSnapshot=p,c(g)&&S({inst:g})},[y,x,p]),i(function(){return c(g)&&S({inst:g}),y(function(){c(g)&&S({inst:g})})},[y]),u(x),x}function c(y){var p=y.getSnapshot;y=y.value;try{var x=p();return!n(y,x)}catch{return!0}}function l(y,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return wc.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,wc}var Fd;function W1(){return Fd||(Fd=1,xc.exports=H1()),xc.exports}var z2=W1();function V1(){function t(e){return new Promise(n=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(a=>r.setRequestHeader(a,e.headers[a]));let i=(a,c)=>setTimeout(()=>{r.abort(),n({status:0,content:c,isTimedOut:!0})},a),s=i(e.connectTimeout,"Connection timeout"),u;r.onreadystatechange=()=>{r.readyState>r.OPENED&&u===void 0&&(clearTimeout(s),u=i(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{r.status===0&&(clearTimeout(s),clearTimeout(u),n({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(s),clearTimeout(u),n({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}return{send:t}}function Y1(t){let e;const n=`algolia-client-js-${t.key}`;function r(){return e===void 0&&(e=t.localStorage||window.localStorage),e}function i(){return JSON.parse(r().getItem(n)||"{}")}function s(a){r().setItem(n,JSON.stringify(a))}function u(){const a=t.timeToLive?t.timeToLive*1e3:null,c=i(),l=Object.fromEntries(Object.entries(c).filter(([,y])=>y.timestamp!==void 0));if(s(l),!a)return;const d=Object.fromEntries(Object.entries(l).filter(([,y])=>{const p=new Date().getTime();return!(y.timestamp+a<p)}));s(d)}return{get(a,c,l={miss:()=>Promise.resolve()}){return Promise.resolve().then(()=>(u(),i()[JSON.stringify(a)])).then(d=>Promise.all([d?d.value:c(),d!==void 0])).then(([d,y])=>Promise.all([d,y||l.miss(d)])).then(([d])=>d)},set(a,c){return Promise.resolve().then(()=>{const l=i();return l[JSON.stringify(a)]={timestamp:new Date().getTime(),value:c},r().setItem(n,JSON.stringify(l)),c})},delete(a){return Promise.resolve().then(()=>{const c=i();delete c[JSON.stringify(a)],r().setItem(n,JSON.stringify(c))})},clear(){return Promise.resolve().then(()=>{r().removeItem(n)})}}}function Z1(){return{get(t,e,n={miss:()=>Promise.resolve()}){return e().then(i=>Promise.all([i,n.miss(i)])).then(([i])=>i)},set(t,e){return Promise.resolve(e)},delete(t){return Promise.resolve()},clear(){return Promise.resolve()}}}function Bo(t){const e=[...t.caches],n=e.shift();return n===void 0?Z1():{get(r,i,s={miss:()=>Promise.resolve()}){return n.get(r,i,s).catch(()=>Bo({caches:e}).get(r,i,s))}
vendor: 8,492 bytes, line 389
389,set(r,i){return n.set(r,i).catch(()=>Bo({caches:e}).set(r,i))},delete(r){return n.delete(r).catch(()=>Bo({caches:e}).delete(r))},clear(){return n.clear().catch(()=>Bo({caches:e}).clear())}}}function _c(t={serializable:!0}){let e={};return{get(n,r,i={miss:()=>Promise.resolve()}){const s=JSON.stringify(n);if(s in e)return Promise.resolve(t.serializable?JSON.parse(e[s]):e[s]);const u=r();return u.then(a=>i.miss(a)).then(()=>u)},set(n,r){return e[JSON.stringify(n)]=t.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete(n){return delete e[JSON.stringify(n)],Promise.resolve()},clear(){return e={},Promise.resolve()}}}function G1(t){const e={value:`Algolia for JavaScript (${t})`,add(n){const r=`; ${n.segment}${n.version!==void 0?` (${n.version})`:""}`;return e.value.indexOf(r)===-1&&(e.value=`${e.value}${r}`),e}};return e}function K1(t,e,n="WithinHeaders"){const r={"x-algolia-api-key":e,"x-algolia-application-id":t};return{headers(){return n==="WithinHeaders"?r:{}},queryParameters(){return n==="WithinQueryParameters"?r:{}}}}function Q1({algoliaAgents:t,client:e,version:n}){const r=G1(n).add({segment:e,version:n});return t.forEach(i=>r.add(i)),r}function X1(){return{debug(t,e){return Promise.resolve()},info(t,e){return Promise.resolve()},error(t,e){return Promise.resolve()}}}var $d=120*1e3;function Ud(t,e="up"){const n=Date.now();function r(){return e==="up"||Date.now()-n>$d}function i(){return e==="timed out"&&Date.now()-n<=$d}return{...t,status:e,lastUpdate:n,isUp:r,isTimedOut:i}}var Np=class extends Error{constructor(e,n){super(e);_s(this,"name","AlgoliaError");n&&(this.name=n)}},Lp=class extends Np{constructor(e,n,r){super(e,r);_s(this,"stackTrace");this.stackTrace=n}},J1=class extends Lp{constructor(t){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",t,"RetryError")}},ul=class extends Lp{constructor(e,n,r,i="ApiError"){super(e,r,i);_s(this,"status");this.status=n}},e_=class extends Np{constructor(e,n){super(e,"DeserializationError");_s(this,"response");this.response=n}},t_=class extends ul{constructor(e,n,r,i){super(e,n,i,"DetailedApiError");_s(this,"error");this.error=r}};function n_(t){const e=t;for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1)),i=t[n];e[n]=t[r],e[r]=i}return e}function r_(t,e,n){const r=i_(n);let i=`${t.protocol}://${t.url}${t.port?`:${t.port}`:""}/${e.charAt(0)==="/"?e.substring(1):e}`;return r.length&&(i+=`?${r}`),i}function i_(t){return Object.keys(t).filter(e=>t[e]!==void 0).sort().map(e=>`${e}=${encodeURIComponent(Object.prototype.toString.call(t[e])==="[object Array]"?t[e].join(","):t[e]).replace(/\+/g,"%20")}`).join("&")}function s_(t,e){if(t.method==="GET"||t.data===void 0&&e.data===void 0)return;const n=Array.isArray(t.data)?t.data:{...t.data,...e.data};return JSON.stringify(n)}function o_(t,e,n){const r={Accept:"application/json",...t,...e,...n},i={};return Object.keys(r).forEach(s=>{const u=r[s];i[s.toLowerCase()]=u}),i}function a_(t){try{return JSON.parse(t.content)}catch(e){throw new e_(e.message,t)}}function u_({content:t,status:e},n){try{const r=JSON.parse(t);return"error"in r?new t_(r.message,e,r.error,n):new ul(r.message,e,n)}catch{}return new ul(t,e,n)}function c_({isTimedOut:t,status:e}){return!t&&~~e===0}function l_({isTimedOut:t,status:e}){return t||c_({isTimedOut:t,status:e})||~~(e/100)!==2&&~~(e/100)!==4}function f_({status:t}){return~~(t/100)===2}function d_(t){return t.map(e=>jp(e))}function jp(t){const e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...t,request:{...t.request,headers:{...t.request.headers,...e}}}}function h_({hosts:t,hostsCache:e,baseHeaders:n,logger:r,baseQueryParameters:i,algoliaAgent:s,timeouts:u,requester:a,requestsCache:c,responsesCache:l}){async function d(x){const b=await Promise.all(x.map(v=>e.get(v,()=>Promise.resolve(Ud(v))))),g=b.filter(v=>v.isUp()),S=b.filter(v=>v.isTimedOut()),O=[...g,...S];return{hosts:O.length>0?O:x,getTimeout(v,w){return(S.length===0&&v===0?1:S.length+3+v)*w}}}async function y(x,b,g=!0){const S=[],O=s_(x,b),k=o_(n,x.headers,b.headers),v=x.method==="GET"?{...x.data,...b.data}:{},w={...i,...x.queryParameters,...v};if(s.value&&(w["x-algolia-agent"]=s.value),b&&b.queryParameters)for(const E of Object.keys(b.queryParameters))!b.queryParameters[E]||Object.prototype.toString.call(b.queryParameters[E])==="[object Object]"?w[E]=b.queryParameters[E]:w[E]=b.queryParameters[E].toString();let D=0;const I=async(E,P)=>{const L=E.pop();if(L===void 0)throw new J1(d_(S));const $={...u,...b.timeouts},M={data:O,headers:k,method:x.method,url:r_(L,x.path,w),connectTimeout:P(D,$.connect),responseTimeout:P(D,g?$.read:$.write)},qe=Me=>{const ut={request:M,response:Me,host:L,triesLeft:E.length};return S.push(ut),ut},rt=await a.send(M);if(l_(rt)){const Me=qe(rt);return rt.isTimedOut&&D++,r.info("Retryable failure",jp(Me)),await e.set(L,Ud(L,rt.isTimedOut?"timed out":"down")),I(E,P)}if(f_(rt))return a_(rt);throw qe(rt),u_(rt,S)},j=t.filter(E=>E.accept==="readWrite"||(g?E.accept==="read":E.accept==="write")),C=await d(j);return I([...C.hosts].reverse(),C.getTimeout)}function p(x,b={}){const g=x.useReadTransporter||x.method==="GET";if(!g)return y(x,b,g);const S=()=>y(x,b);if((b.cacheable||x.cacheable)!==!0)return S();const k={request:x,requestOptions:b,transporter:{queryParameters:i,headers:n}};return l.get(k,()=>c.get(k,()=>c.set(k,S()).then(v=>Promise.all([c.delete(k),v]),v=>Promise.all([c.delete(k),Promise.reject(v)])).then(([v,w])=>w)),{miss:v=>l.set(k,v)})}return{hostsCache:e,requester:a,timeouts:u,logger:r,algoliaAgent:s,baseHeaders:n,baseQueryParameters:i,hosts:t,request:p,requestsCache:c,responsesCache:l}}var Fp="5.45.0";function p_(t){return[{url:`${t}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${t}.algolia.net`,accept:"write",protocol:"https"}].concat(n_([{url:`${t}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${t}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function m_({appId:t,apiKey:e,authMode:n,algoliaAgents:r,...i}){const s=K1(t,e,n),u=h_({hosts:p_(t),...i,algoliaAgent:Q1({algoliaAgents:r,client:"Lite",version:Fp}),baseHeaders:{"content-type":"text/plain",...s.headers(),...i.baseHeaders},baseQueryParameters:{...s.queryParameters(),...i.baseQueryParameters}});return{transporter:u,appId:t,apiKey:e,clearCache(){return Promise.all([u.requestsCache.clear(),u.responsesCache.clear()]).then(()=>{})},get _ua(){return u.algoliaAgent.value},addAlgoliaAgent(a,c){u.algoliaAgent.add({segment:a,version:c})},setClientApiKey({apiKey:a}){!n||n==="WithinHeaders"?u.baseHeaders["x-algolia-api-key"]=a:u.baseQueryParameters["x-algolia-api-key"]=a},searchForHits(a,c){return this.search(a,c)},searchForFacets(a,c){return this.search(a,c)},customPost({path:a,parameters:c,body:l},d){if(!a)throw new Error("Parameter `path` is required when calling `customPost`.");const b={method:"POST",path:"/{path}".replace("{path}",a),queryParameters:c||{},headers:{},data:l||{}};return u.request(b,d)},getRecommendations(a,c){if(a&&Array.isArray(a)&&(a={requests:a}),!a)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!a.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const p={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:a,useReadTransporter:!0,cacheable:!0};return u.request(p,c)},search(a,c){if(a&&Array.isArray(a)&&(a={requests:a.map(({params:b,...g})=>g.type==="facet"?{...g,...b,type:"facet"}:{...g,...b,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!a)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!a.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const p={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:a,useReadTransporter:!0,cacheable:!0};return u.request(p,c)}}}function H2(t,e,n){if(!e||typeof e!="string")throw new Error("`apiKey` is missing.");return m_({appId:t,apiKey:e,timeouts:{connect:1e3,read:2e3,write:3e4},logger:X1(),requester:V1(),algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:_c(),requestsCache:_c({serializable:!1}
389),hostsCache:Bo({caches:[Y1({key:`${Fp}-${t}`}),_c()]}),...n})}var su={exports:{}},g_=su.exports,qd;function y_(){return qd||(qd=1,function(t,e){(function(n,r){typeof zp=="function"?t.exports=r():n.pluralize=r()})(g_,function(){var n=[],r=[],i={},s={},u={};function a(g){return typeof g=="string"?new RegExp("^"+g+"$","i"):g}function c(g,S){return g===S?S:g===g.toLowerCase()?S.toLowerCase():g===g.toUpperCase()?S.toUpperCase():g[0]===g[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function l(g,S){return g.replace(/\$(\d{1,2})/g,function(O,k){return S[k]||""})}function d(g,S){return g.replace(S[0],function(O,k){var v=l(S[1],arguments);return c(O===""?g[k-1]:O,v)})}function y(g,S,O){if(!g.length||i.hasOwnProperty(g))return S;for(var k=O.length;k--;){var v=O[k];if(v[0].test(S))return d(S,v)}return S}function p(g,S,O){return function(k){var v=k.toLowerCase();return S.hasOwnProperty(v)?c(k,v):g.hasOwnProperty(v)?c(k,g[v]):y(v,k,O)}}function x(g,S,O,k){return function(v){var w=v.toLowerCase();return S.hasOwnProperty(w)?!0:g.hasOwnProperty(w)?!1:y(w,w,O)===w}}function b(g,S,O){var k=S===1?b.singular(g):b.plural(g);return(O?S+" ":"")+k}return b.plural=p(u,s,n),b.isPlural=x(u,s,n),b.singular=p(s,u,r),b.isSingular=x(s,u,r),b.addPluralRule=function(g,S){n.push([a(g),S])},b.addSingularRule=function(g,S){r.push([a(g),S])},b.addUncountableRule=function(g){if(typeof g=="string"){i[g.toLowerCase()]=!0;return}b.addPluralRule(g,"$0"),b.addSingularRule(g,"$0")},b.addIrregularRule=function(g,S){S=S.toLowerCase(),g=g.toLowerCase(),u[g]=S,s[S]=g},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(g){return b.addIrregularRule(g[0],g[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(g){return b.addPluralRule(g[0],g[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEac
389h(function(g){return b.addSingularRule(g[0],g[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(b.addUncountableRule),b})}(su)),su.exports}var v_=y_();const W2=_u(v_);export{dx as $,M_ as A,Ib as B,Ab as C,yu as D,vb as E,Eb as F,O2 as G,E2 as H,El as I,Mu as J,Mx as K,pp as L,_2 as M,yb as N,w2 as O,S2 as P,f2 as Q,d2 as R,h2 as S,A2 as T,Lx as U,M2 as V,Rb as W,y2 as X,Pb as Y,vu as Z,cs as _,i2 as a,cg as a$,px as a0,_b as a1,p2 as a2,c2 as a3,b2 as a4,aw as a5,$2 as a6,hg as a7,Bt as a8,J_ as a9,xm as aA,I2 as aB,Ob as aC,j2 as aD,Q_ as aE,g2 as aF,r2 as aG,dm as aH,bb as aI,H2 as aJ,N2 as aK,P2 as aL,D2 as aM,ib as aN,Sb as aO,S_ as aP,__ as aQ,A_ as aR,k_ as aS,ng as aT,rg as aU,ig as aV,og as aW,ag as aX,fg as aY,lg as aZ,sg as a_,q2 as aa,bu as ab,ho as ac,Pp as ad,Bi as ae,$w as af,Al as ag,Dl as ah,h1 as ai,zo as aj,Ws as ak,qx as al,L2 as am,Sm as an,x2 as ao,k2 as ap,T_ as aq,K_ as ar,Im as as,mh as at,W1 as au,o2 as av,wl as aw,T2 as ax,O_ as ay,s2 as az,wa as b,ug as b0,pg as b1,X_ as b2,l2 as b3,Am as b4,Nm as b5,B2 as b6,a2 as b7,e2 as b8,n2 as b9,hh as c,hp as d,R2 as e,v2 as f,Lm as g,dh as h,C2 as i,E_ as j,Om as k,mm as l,Vm as m,ph as n,Em as o,jm as p,q_ as q,m2 as r,z2 as s,W2 as t,u2 as u,C_ as v,F2 as w,U2 as x,hc as y,yp as z};

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.