@lark-apaas/coding-template-vite-react 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/.githooks/pre-commit +9 -0
- package/template/eslint.config.mjs +32 -5
- package/template/package-lock.json +272 -19
- package/template/package.json +12 -5
- package/template/scripts/setup-git-hooks.mjs +20 -0
- package/template/tsconfig.app.json +1 -1
- package/template/dist/output/index.html +0 -69
- package/template/dist/output/routes.json +0 -5
- package/template/dist/output_capabilities/README.md +0 -5
- package/template/dist/output_resource/assets/index-BfPcZpFn.css +0 -2
- package/template/dist/output_resource/assets/index-kNdDV1l7.js +0 -9
- package/template/dist/output_resource/assets/index-kNdDV1l7.js.map +0 -1
- package/template/dist/output_resource/assets/polyfills.js +0 -1
- package/template/dist/output_resource/assets/radix-CJb0azbR.js +0 -45
- package/template/dist/output_resource/assets/radix-CJb0azbR.js.map +0 -1
- package/template/dist/output_resource/assets/rolldown-runtime-Cyuzqnbw.js +0 -1
- package/template/dist/output_resource/assets/toolkit-TzhP7hZD.js +0 -54
- package/template/dist/output_resource/assets/toolkit-TzhP7hZD.js.map +0 -1
- package/template/dist/output_static/README.md +0 -16
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n,r,t as i}from"./rolldown-runtime-Cyuzqnbw.js";import{a,c as o,d as s,i as c,l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"./radix-CJb0azbR.js";var _=e(f(),1),v=`modulepreload`,y=function(e){return`https://lf3-static.bytednsdoc.com/obj/cdn/app_demo/v0.1/`+e},b={},x=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=y(t,n),t in b)return;b[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:v,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},S=`popstate`;function C(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function w(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return k(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:A(t)}return ee(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function E(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function D(){return Math.random().toString(36).substring(2,10)}function O(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function k(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?j(t):t,state:n,key:t&&t.key||r||D(),mask:i}}function A({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function j(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ee(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u()+1;let d=O(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u();let i=O(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return M(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(S,d),c=e,()=>{i.removeEventListener(S,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function M(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),T(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:A(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function N(e,t,n=`/`){return P(e,t,n,!1)}function P(e,t,n,r,i){let a=_e((typeof t==`string`?j(t):t).pathname||`/`,n);if(a==null)return null;let o=i??I(e),s=null,c=ge(a);for(let e=0;s==null&&e<o.length;++e)s=pe(o[e],c,r);return s}function F(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function I(e){let t=te(e);return re(t),t}function te(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;T(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ee([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),te(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:de(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ne(e.path))a(e,t,!0,n)}),t}function ne(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ne(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function re(e){e.sort((e,t)=>e.score===t.score?fe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ie=/^:[\w-]+$/,ae=3,oe=2,se=1,ce=10,le=-2,ue=e=>e===`*`;function de(e,t){let n=e.split(`/`),r=n.length;return n.some(ue)&&(r+=le),t&&(r+=oe),n.filter(e=>!ue(e)).reduce((e,t)=>e+(ie.test(t)?ae:t===``?se:ce),r)}function fe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function pe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=me({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=me({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:Ee([a,u.pathname]),pathnameBase:Oe(Ee([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Ee([a,u.pathnameBase]))}return o}function me(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=he(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function he(e,t=!1,n=!0){E(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ge(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _e(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var ve=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ye(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?j(e):e,a;return n?(n=Te(n),a=n.startsWith(`/`)?be(n.substring(1),`/`):be(n,t)):a=t,{pathname:a,search:ke(r),hash:Ae(i)}}function be(e,t){let n=De(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function xe(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Se(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ce(e){let t=Se(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function we(e,t,n,r=!1){let i;typeof e==`string`?i=j(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),xe(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),xe(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),xe(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ye(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Te=e=>e.replace(/\/\/+/g,`/`),Ee=e=>Te(e.join(`/`)),De=e=>e.replace(/\/+$/,``),Oe=e=>De(e).replace(/^\/*/,`/`),ke=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ae=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,je=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Me(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ne(e){return Ee(e.map(e=>e.route.path).filter(Boolean))||`/`}var Pe=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Fe(e,t){let n=e;if(typeof n!=`string`||!ve.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Pe)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=_e(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ie=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Ie);var Le=[`GET`,...Ie];new Set(Le);var Re=_.createContext(null);Re.displayName=`DataRouter`;var ze=_.createContext(null);ze.displayName=`DataRouterState`;var Be=_.createContext(!1);function Ve(){return _.useContext(Be)}var He=_.createContext({isTransitioning:!1});He.displayName=`ViewTransition`;var Ue=_.createContext(new Map);Ue.displayName=`Fetchers`;var We=_.createContext(null);We.displayName=`Await`;var Ge=_.createContext(null);Ge.displayName=`Navigation`;var Ke=_.createContext(null);Ke.displayName=`Location`;var qe=_.createContext({outlet:null,matches:[],isDataRoute:!1});qe.displayName=`Route`;var Je=_.createContext(null);Je.displayName=`RouteError`;var Ye=`REACT_ROUTER_ERROR`,Xe=`REDIRECT`,Ze=`ROUTE_ERROR_RESPONSE`;function Qe(e){if(e.startsWith(`${Ye}:${Xe}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function $e(e){if(e.startsWith(`${Ye}:${Ze}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new je(t.status,t.statusText,t.data)}catch{}}function et(e,{relative:t}={}){T(tt(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=_.useContext(Ge),{hash:i,pathname:a,search:o}=lt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ee([n,a])),r.createHref({pathname:s,search:o,hash:i})}function tt(){return _.useContext(Ke)!=null}function nt(){return T(tt(),`useLocation() may be used only in the context of a <Router> component.`),_.useContext(Ke).location}var rt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function it(e){_.useContext(Ge).static||_.useLayoutEffect(e)}function at(){let{isDataRoute:e}=_.useContext(qe);return e?Ot():ot()}function ot(){T(tt(),`useNavigate() may be used only in the context of a <Router> component.`);let e=_.useContext(Re),{basename:t,navigator:n}=_.useContext(Ge),{matches:r}=_.useContext(qe),{pathname:i}=nt(),a=JSON.stringify(Ce(r)),o=_.useRef(!1);return it(()=>{o.current=!0}),_.useCallback((r,s={})=>{if(E(o.current,rt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=we(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ee([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var st=_.createContext(null);function ct(e){let t=_.useContext(qe).outlet;return _.useMemo(()=>t&&_.createElement(st.Provider,{value:e},t),[t,e])}function lt(e,{relative:t}={}){let{matches:n}=_.useContext(qe),{pathname:r}=nt(),i=JSON.stringify(Ce(n));return _.useMemo(()=>we(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function ut(e,t){return dt(e,t)}function dt(e,t,n){T(tt(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=_.useContext(Ge),{matches:i}=_.useContext(qe),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;At(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
-
|
|
3
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=nt(),d;if(t){let e=typeof t==`string`?j(t):t;T(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):N(e,{pathname:p});E(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),E(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=vt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ee([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ee([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?_.createElement(Ke.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function ft(){let e=Dt(),t=Me(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=_.createElement(_.Fragment,null,_.createElement(`p`,null,`💿 Hey developer 👋`),_.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,_.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,_.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),_.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:i},n):null,o)}var pt=_.createElement(ft,null),mt=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=$e(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement(qe.Provider,{value:this.props.routeContext},_.createElement(Je.Provider,{value:e,children:this.props.component}));return this.context?_.createElement(gt,{error:e},t):t}};mt.contextType=Be;var ht=new WeakMap;function gt({children:e,error:t}){let{basename:n}=_.useContext(Ge);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Qe(t.digest);if(e){let r=ht.get(t);if(r)throw r;let i=Fe(e.location,n);if(Pe&&!ht.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw ht.set(t,n),n}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function _t({routeContext:e,match:t,children:n}){let r=_.useContext(Re);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(qe.Provider,{value:e},n)}function vt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);T(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ne(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||pt,o&&(s<0&&c===0?(At(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(_t,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(mt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function yt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bt(e){let t=_.useContext(Re);return T(t,yt(e)),t}function xt(e){let t=_.useContext(ze);return T(t,yt(e)),t}function St(e){let t=_.useContext(qe);return T(t,yt(e)),t}function Ct(e){let t=St(e),n=t.matches[t.matches.length-1];return T(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function wt(){return Ct(`useRouteId`)}function Tt(){let e=xt(`useNavigation`);return _.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Et(){let{matches:e,loaderData:t}=xt(`useMatches`);return _.useMemo(()=>e.map(e=>F(e,t)),[e,t])}function Dt(){let e=_.useContext(Je),t=xt(`useRouteError`),n=Ct(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Ot(){let{router:e}=bt(`useNavigate`),t=Ct(`useNavigate`),n=_.useRef(!1);return it(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{E(n.current,rt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var kt={};function At(e,t,n){!t&&!kt[e]&&(kt[e]=!0,E(!1,n))}_.memo(jt);function jt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return dt(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Mt(e){return ct(e.context)}function Nt(e){T(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Pt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){T(!tt(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=_.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=j(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=_.useMemo(()=>{let e=_e(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return E(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:_.createElement(Ge.Provider,{value:c},_.createElement(Ke.Provider,{children:t,value:h}))}function Ft({children:e,location:t}){return ut(It(e),t)}_.Component;function It(e,t=[]){let n=[];return _.Children.forEach(e,(e,r)=>{if(!_.isValidElement(e))return;let i=[...t,r];if(e.type===_.Fragment){n.push.apply(n,It(e.props.children,i));return}T(e.type===Nt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),T(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=It(e.props.children,i)),n.push(a)}),n}var Lt=`get`,Rt=`application/x-www-form-urlencoded`;function zt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Bt(e){return zt(e)&&e.tagName.toLowerCase()===`button`}function Vt(e){return zt(e)&&e.tagName.toLowerCase()===`form`}function Ht(e){return zt(e)&&e.tagName.toLowerCase()===`input`}function Ut(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wt(e,t){return e.button===0&&(!t||t===`_self`)&&!Ut(e)}var Gt=null;function Kt(){if(Gt===null)try{new FormData(document.createElement(`form`),0),Gt=!1}catch{Gt=!0}return Gt}var qt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Jt(e){return e!=null&&!qt.has(e)?(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Rt}"`),null):e}function Yt(e,t){let n,r,i,a,o;if(Vt(e)){let o=e.getAttribute(`action`);r=o?_e(o,t):null,n=e.getAttribute(`method`)||Lt,i=Jt(e.getAttribute(`enctype`))||Rt,a=new FormData(e)}else if(Bt(e)||Ht(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?_e(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Lt,i=Jt(e.getAttribute(`formenctype`))||Jt(o.getAttribute(`enctype`))||Rt,a=new FormData(o,e),!Kt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(zt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Lt,r=null,i=Rt,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Xt={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Zt=/[&><\u2028\u2029]/g;function Qt(e){return e.replace(Zt,e=>Xt[e])}function $t(e,t){if(e===!1||e==null)throw Error(t)}function en(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&_e(i.pathname,t)===`/`?i.pathname=`${De(t)}/_root.${r}`:i.pathname=`${De(i.pathname)}.${r}`,i}async function tn(e,t){if(e.id in t)return t[e.id];try{let n=await x(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nn(e){return e!=null&&typeof e.page==`string`}function rn(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function an(e,t,n){return un((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await tn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(rn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function on(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function sn(e,t,{includeHydrateFallback:n}={}){return cn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function cn(e){return[...new Set(e)]}function ln(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function un(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!nn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(ln(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function dn(){let e=_.useContext(Re);return $t(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function fn(){let e=_.useContext(ze);return $t(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var pn=_.createContext(void 0);pn.displayName=`FrameworkContext`;function mn(){let e=_.useContext(pn);return $t(e,`You must render this element inside a <HydratedRouter> element`),e}function hn(e,t){let n=_.useContext(pn),[r,i]=_.useState(!1),[a,o]=_.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=_.useRef(null);_.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),_.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:gn(s,p),onBlur:gn(c,m),onMouseEnter:gn(l,p),onMouseLeave:gn(u,m),onTouchStart:gn(d,p)}]:[a,f,{}]:[!1,f,{}]}function gn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _n({page:e,...t}){let n=Ve(),{router:r}=dn(),i=_.useMemo(()=>N(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?_.createElement(yn,{page:e,matches:i,...t}):_.createElement(bn,{page:e,matches:i,...t}):null}function vn(e){let{manifest:t,routeModules:n}=mn(),[r,i]=_.useState([]);return _.useEffect(()=>{let r=!1;return an(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function yn({page:e,matches:t,...n}){let r=nt(),{future:i}=mn(),{basename:a}=dn(),o=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=en(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return _.createElement(_.Fragment,null,o.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function bn({page:e,matches:t,...n}){let r=nt(),{future:i,manifest:a,routeModules:o}=mn(),{basename:s}=dn(),{loaderData:c,matches:l}=fn(),u=_.useMemo(()=>on(e,t,l,a,r,`data`),[e,t,l,a,r]),d=_.useMemo(()=>on(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=en(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=_.useMemo(()=>sn(d,a),[d,a]),m=vn(d);return _.createElement(_.Fragment,null,f.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>_.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>_.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function xn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}_.Component;var Sn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Sn&&(window.__reactRouterVersion=`7.15.1`)}catch{}function Cn({basename:e,children:t,useTransitions:n,window:r}){let i=_.useRef();i.current??=w({window:r,v5Compat:!0});let a=i.current,[o,s]=_.useState({action:a.action,location:a.location}),c=_.useCallback(e=>{n===!1?s(e):_.startTransition(()=>s(e))},[n]);return _.useLayoutEffect(()=>a.listen(c),[a,c]),_.createElement(Pt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function wn({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=_.useState({action:n.action,location:n.location}),o=_.useCallback(e=>{r===!1?a(e):_.startTransition(()=>a(e))},[r]);return _.useLayoutEffect(()=>n.listen(o),[n,o]),_.createElement(Pt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}wn.displayName=`unstable_HistoryRouter`;var Tn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,En=_.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:v}=_.useContext(Ge),y=typeof l==`string`&&Tn.test(l),b=Fe(l,h);l=b.to;let x=et(l,{relative:r}),S=nt(),C=null;if(o){let e=we(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ee([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=hn(n,p),D=Nn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=_.createElement(`a`,{...p,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:xn(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?_.createElement(_.Fragment,null,A,_.createElement(_n,{page:x})):A});En.displayName=`Link`;var Dn=_.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=lt(a,{relative:c.relative}),d=nt(),f=_.useContext(ze),{navigator:p,basename:m}=_.useContext(Ge),h=f!=null&&Un(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=_e(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=v===g||!r&&v.startsWith(g)&&v.charAt(b)===`/`,S=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return _.createElement(En,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Dn.displayName=`NavLink`;var On=_.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Lt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=_.useContext(Ge),g=In(),v=Ln(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&Tn.test(s);return _.createElement(`form`,{ref:m,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?_.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});On.displayName=`Form`;function kn({getKey:e,storageKey:t,...n}){let r=_.useContext(pn),{basename:i}=_.useContext(Ge),a=nt(),o=Et();Vn({getKey:e,storageKey:t});let s=_.useMemo(()=>{if(!r||!e)return null;let t=Bn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return _.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Qt(JSON.stringify(t||Rn))}, ${Qt(JSON.stringify(s))})`}})}kn.displayName=`ScrollRestoration`;function An(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jn(e){let t=_.useContext(Re);return T(t,An(e)),t}function Mn(e){let t=_.useContext(ze);return T(t,An(e)),t}function Nn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=at(),d=nt(),f=lt(e,{relative:o});return _.useCallback(p=>{if(Wt(p,t)){p.preventDefault();let t=n===void 0?A(d)===A(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?_.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var Pn=0,Fn=()=>`__${String(++Pn)}__`;function In(){let{router:e}=jn(`useSubmit`),{basename:t}=_.useContext(Ge),n=wt(),r=e.fetch,i=e.navigate;return _.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Yt(e,t);a.navigate===!1?await r(a.fetcherKey||Fn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ln(e,{relative:t}={}){let{basename:n}=_.useContext(Ge),r=_.useContext(qe);T(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...lt(e||`.`,{relative:t})},o=nt();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ee([n,a.pathname])),A(a)}var Rn=`react-router-scroll-positions`,zn={};function Bn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:_e(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Vn({getKey:e,storageKey:t}={}){let{router:n}=jn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Mn(`useScrollRestoration`),{basename:a}=_.useContext(Ge),o=nt(),s=Et(),c=Tt();_.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Hn(_.useCallback(()=>{if(c.state===`idle`){let t=Bn(o,s,a,e);zn[t]=window.scrollY}try{sessionStorage.setItem(t||Rn,JSON.stringify(zn))}catch(e){E(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(_.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Rn);e&&(zn=JSON.parse(e))}catch{}},[t]),_.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(zn,()=>window.scrollY,e?(t,n)=>Bn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),_.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{E(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Hn(e,t){let{capture:n}=t||{};_.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Un(e,{relative:t}={}){let n=_.useContext(He);T(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=jn(`useViewTransitionState`),i=lt(e,{relative:t});if(!n.isTransitioning)return!1;let a=_e(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=_e(n.nextLocation.pathname,r)||n.nextLocation.pathname;return me(i.pathname,o)!=null||me(i.pathname,a)!=null}function Wn(e,t){return function(){return e.apply(t,arguments)}}var{toString:Gn}=Object.prototype,{getPrototypeOf:Kn}=Object,{iterator:qn,toStringTag:Jn}=Symbol,Yn=(e=>t=>{let n=Gn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xn=e=>(e=e.toLowerCase(),t=>Yn(t)===e),Zn=e=>t=>typeof t===e,{isArray:Qn}=Array,$n=Zn(`undefined`);function er(e){return e!==null&&!$n(e)&&e.constructor!==null&&!$n(e.constructor)&&ir(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var tr=Xn(`ArrayBuffer`);function nr(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&tr(e.buffer),t}var rr=Zn(`string`),ir=Zn(`function`),ar=Zn(`number`),or=e=>typeof e==`object`&&!!e,sr=e=>e===!0||e===!1,cr=e=>{if(Yn(e)!==`object`)return!1;let t=Kn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Jn in e)&&!(qn in e)},lr=e=>{if(!or(e)||er(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ur=Xn(`Date`),dr=Xn(`File`),fr=e=>!!(e&&e.uri!==void 0),pr=e=>e&&e.getParts!==void 0,mr=Xn(`Blob`),hr=Xn(`FileList`),gr=e=>or(e)&&ir(e.pipe);function _r(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}var vr=_r(),yr=vr.FormData===void 0?void 0:vr.FormData,br=e=>{if(!e)return!1;if(yr&&e instanceof yr)return!0;let t=Kn(e);if(!t||t===Object.prototype||!ir(e.append))return!1;let n=Yn(e);return n===`formdata`||n===`object`&&ir(e.toString)&&e.toString()===`[object FormData]`},xr=Xn(`URLSearchParams`),[Sr,Cr,wr,Tr]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Xn),Er=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function Dr(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Qn(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(er(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function Or(e,t){if(er(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var kr=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:globalThis,Ar=e=>!$n(e)&&e!==kr;function jr(...e){let{caseless:t,skipUndefined:n}=Ar(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&Or(r,i)||i,o=Hr(r,a)?r[a]:void 0;cr(o)&&cr(e)?r[a]=jr(o,e):cr(e)?r[a]=jr({},e):Qn(e)?r[a]=e.slice():(!n||!$n(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++)e[t]&&Dr(e[t],i);return r}var Mr=(e,t,n,{allOwnKeys:r}={})=>(Dr(t,(t,r)=>{n&&ir(t)?Object.defineProperty(e,r,{__proto__:null,value:Wn(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Nr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Fr=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Kn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ir=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Lr=e=>{if(!e)return null;if(Qn(e))return e;let t=e.length;if(!ar(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Rr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Kn(Uint8Array)),zr=(e,t)=>{let n=(e&&e[qn]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Br=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},L=Xn(`HTMLFormElement`),Vr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Hr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ur=Xn(`RegExp`),R=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Dr(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Wr=e=>{R(e,(t,n)=>{if(ir(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(ir(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Gr=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Qn(e)?r(e):r(String(e).split(t)),n},Kr=()=>{},qr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Jr(e){return!!(e&&ir(e.append)&&e[Jn]===`FormData`&&e[qn])}var Yr=e=>{let t=new WeakSet,n=e=>{if(or(e)){if(t.has(e))return;if(er(e))return e;if(!(`toJSON`in e)){t.add(e);let r=Qn(e)?[]:{};return Dr(e,(e,t)=>{let i=n(e);!$n(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},Xr=Xn(`AsyncFunction`),Zr=e=>e&&(or(e)||ir(e))&&ir(e.then)&&ir(e.catch),Qr=((e,t)=>e?setImmediate:t?((e,t)=>(kr.addEventListener(`message`,({source:n,data:r})=>{n===kr&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),kr.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,ir(kr.postMessage)),z={isArray:Qn,isArrayBuffer:tr,isBuffer:er,isFormData:br,isArrayBufferView:nr,isString:rr,isNumber:ar,isBoolean:sr,isObject:or,isPlainObject:cr,isEmptyObject:lr,isReadableStream:Sr,isRequest:Cr,isResponse:wr,isHeaders:Tr,isUndefined:$n,isDate:ur,isFile:dr,isReactNativeBlob:fr,isReactNative:pr,isBlob:mr,isRegExp:Ur,isFunction:ir,isStream:gr,isURLSearchParams:xr,isTypedArray:Rr,isFileList:hr,forEach:Dr,merge:jr,extend:Mr,trim:Er,stripBOM:Nr,inherits:Pr,toFlatObject:Fr,kindOf:Yn,kindOfTest:Xn,endsWith:Ir,toArray:Lr,forEachEntry:zr,matchAll:Br,isHTMLForm:L,hasOwnProperty:Hr,hasOwnProp:Hr,reduceDescriptors:R,freezeMethods:Wr,toObjectSet:Gr,toCamelCase:Vr,noop:Kr,toFiniteNumber:qr,findKey:Or,global:kr,isContextDefined:Ar,isSpecCompliantForm:Jr,toJSONObject:Yr,isAsyncFn:Xr,isThenable:Zr,setImmediate:Qr,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(kr):typeof process<`u`&&process.nextTick||Qr,isIterable:e=>e!=null&&ir(e[qn])},$r=z.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`]),ei=e=>{let t={},n,r,i;return e&&e.split(`
|
|
4
|
-
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&$r[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function ti(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var ni=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),ri=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function ii(e,t){return z.isArray(e)?e.map(e=>ii(e,t)):ti(String(e).replace(t,``))}var ai=e=>ii(e,ni),oi=e=>ii(e,ri);function si(e){let t=Object.create(null);return z.forEach(e.toJSON(),(e,n)=>{t[n]=oi(e)}),t}var ci=Symbol(`internals`);function li(e){return e&&String(e).trim().toLowerCase()}function ui(e){return e===!1||e==null?e:z.isArray(e)?e.map(ui):ai(String(e))}function di(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var fi=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pi(e,t,n,r,i){if(z.isFunction(r))return r.call(this,t,n);if(i&&(t=n),z.isString(t)){if(z.isString(r))return t.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(t)}}function mi(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function hi(e,t){let n=z.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var gi=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=li(t);if(!i)throw Error(`header name must be a non-empty string`);let a=z.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=ui(e))}let a=(e,t)=>z.forEach(e,(e,n)=>i(e,n,t));if(z.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(z.isString(e)&&(e=e.trim())&&!fi(e))a(ei(e),t);else if(z.isObject(e)&&z.isIterable(e)){let n={},r,i;for(let t of e){if(!z.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?z.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=li(e),e){let n=z.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return di(e);if(z.isFunction(t))return t.call(this,e,n);if(z.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=li(e),e){let n=z.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||pi(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=li(e),e){let i=z.findKey(n,e);i&&(!t||pi(n,n[i],i,t))&&(delete n[i],r=!0)}}return z.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||pi(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return z.forEach(this,(r,i)=>{let a=z.findKey(n,i);if(a){t[a]=ui(r),delete t[i];return}let o=e?mi(i):String(i).trim();o!==i&&delete t[i],t[o]=ui(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return z.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&z.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
5
|
-
`)}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,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[ci]=this[ci]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=li(e);t[r]||(hi(n,e),t[r]=!0)}return z.isArray(e)?e.forEach(r):r(e),this}};gi.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),z.reduceDescriptors(gi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),z.freezeMethods(gi);var _i=`[REDACTED ****]`;function vi(e){if(z.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(z.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function yi(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||z.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof gi&&(e=e.toJSON()),r.push(e);let t;if(z.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);z.isUndefined(r)||(t[n]=r)});else{if(!z.isPlainObject(e)&&vi(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?_i:i(a);z.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var B=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&z.hasOwnProp(e,`redact`)?e.redact:void 0,n=z.isArray(t)&&t.length>0?yi(e,t):z.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:n,code:this.code,status:this.status}}};B.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,B.ERR_BAD_OPTION=`ERR_BAD_OPTION`,B.ECONNABORTED=`ECONNABORTED`,B.ETIMEDOUT=`ETIMEDOUT`,B.ECONNREFUSED=`ECONNREFUSED`,B.ERR_NETWORK=`ERR_NETWORK`,B.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,B.ERR_DEPRECATED=`ERR_DEPRECATED`,B.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,B.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,B.ERR_CANCELED=`ERR_CANCELED`,B.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,B.ERR_INVALID_URL=`ERR_INVALID_URL`,B.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function bi(e){return z.isPlainObject(e)||z.isArray(e)}function xi(e){return z.endsWith(e,`[]`)?e.slice(0,-2):e}function Si(e,t,n){return e?e.concat(t).map(function(e,t){return e=xi(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Ci(e){return z.isArray(e)&&!e.some(bi)}var wi=z.toFlatObject(z,{},null,function(e){return/^is[A-Z]/.test(e)});function Ti(e,t,n){if(!z.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!z.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw TypeError(`visitor must be a function`);function u(e){if(e===null)return``;if(z.isDate(e))return e.toISOString();if(z.isBoolean(e))return e.toString();if(!l&&z.isBlob(e))throw new B(`Blob is not supported. Use a Buffer instead.`);return z.isArrayBuffer(e)||z.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(z.isReactNative(t)&&z.isReactNativeBlob(e))return t.append(Si(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(z.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(z.isArray(e)&&Ci(e)||(z.isFileList(e)||z.endsWith(n,`[]`))&&(s=z.toArray(e)))return n=xi(n),s.forEach(function(e,r){!(z.isUndefined(e)||e===null)&&t.append(o===!0?Si([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return bi(e)?!0:(t.append(Si(i,n,a),u(e)),!1)}let f=[],p=Object.assign(wi,{defaultVisitor:d,convertValue:u,isVisitable:bi});function m(e,n,r=0){if(!z.isUndefined(e)){if(r>c)throw new B(`Object is too deeply nested (`+r+` levels). Max depth: `+c,B.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),z.forEach(e,function(e,a){(!(z.isUndefined(e)||e===null)&&i.call(t,e,z.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!z.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function Ei(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Di(e,t){this._pairs=[],e&&Ti(e,this,t)}var Oi=Di.prototype;Oi.append=function(e,t){this._pairs.push([e,t])},Oi.toString=function(e){let t=e?function(t){return e.call(this,t,Ei)}:Ei;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function ki(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ai(e,t,n){if(!t)return e;let r=n&&n.encode||ki,i=z.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):z.isURLSearchParams(t)?t.toString():new Di(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var ji=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){z.forEach(this.handlers,function(t){t!==null&&e(t)})}},Mi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ni={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Di,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Pi=r({hasBrowserEnv:()=>Fi,hasStandardBrowserEnv:()=>Li,hasStandardBrowserWebWorkerEnv:()=>Ri,navigator:()=>Ii,origin:()=>zi}),Fi=typeof window<`u`&&typeof document<`u`,Ii=typeof navigator==`object`&&navigator||void 0,Li=Fi&&(!Ii||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ii.product)<0),Ri=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,zi=Fi&&window.location.href||`http://localhost`,Bi={...Pi,...Ni};function Vi(e,t){return Ti(e,new Bi.classes.URLSearchParams,{visitor:function(e,t,n,r){return Bi.isNode&&z.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Hi(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Ui(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Wi(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&z.isArray(r)?r.length:a,s?(z.hasOwnProp(r,a)?r[a]=z.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!z.hasOwnProp(r,a)||!z.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&z.isArray(r[a])&&(r[a]=Ui(r[a])),!o)}if(z.isFormData(e)&&z.isFunction(e.entries)){let n={};return z.forEachEntry(e,(e,r)=>{t(Hi(e),r,n,0)}),n}return null}var Gi=(e,t)=>e!=null&&z.hasOwnProp(e,t)?e[t]:void 0;function Ki(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var qi={transitional:Mi,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=z.isObject(e);if(i&&z.isHTMLForm(e)&&(e=new FormData(e)),z.isFormData(e))return r?JSON.stringify(Wi(e)):e;if(z.isArrayBuffer(e)||z.isBuffer(e)||z.isStream(e)||z.isFile(e)||z.isBlob(e)||z.isReadableStream(e))return e;if(z.isArrayBufferView(e))return e.buffer;if(z.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Gi(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Vi(e,t).toString();if((a=z.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Gi(this,`env`),r=n&&n.FormData;return Ti(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Ki(e)):e}],transformResponse:[function(e){let t=Gi(this,`transitional`)||qi.transitional,n=t&&t.forcedJSONParsing,r=Gi(this,`responseType`),i=r===`json`;if(z.isResponse(e)||z.isReadableStream(e))return e;if(e&&z.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Gi(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?B.from(e,B.ERR_BAD_RESPONSE,this,null,Gi(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bi.classes.FormData,Blob:Bi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{qi.headers[e]={}});function Ji(e,t){let n=this||qi,r=t||n,i=gi.from(r.headers),a=r.data;return z.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Yi(e){return!!(e&&e.__CANCEL__)}var Xi=class extends B{constructor(e,t,n){super(e??`canceled`,B.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Zi(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new B(`Request failed with status code `+n.status,n.status>=400&&n.status<500?B.ERR_BAD_REQUEST:B.ERR_BAD_RESPONSE,n.config,n.request,n))}function Qi(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function $i(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function ea(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var ta=(e,t,n=3)=>{let r=0,i=$i(50,250);return ea(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},na=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ra=e=>(...t)=>z.asap(()=>e(...t)),ia=Bi.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Bi.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Bi.origin),Bi.navigator&&/(msie|trident)/i.test(Bi.navigator.userAgent)):()=>!0,aa=Bi.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];z.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),z.isString(r)&&s.push(`path=${r}`),z.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),z.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function oa(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function sa(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function ca(e,t,n){let r=!oa(t);return e&&(r||n===!1)?sa(e,t):t}var la=e=>e instanceof gi?{...e}:e;function ua(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return z.isPlainObject(e)&&z.isPlainObject(t)?z.merge.call({caseless:r},e,t):z.isPlainObject(t)?z.merge({},t):z.isArray(t)?t.slice():t}function i(e,t,n,i){if(!z.isUndefined(t))return r(e,t,n,i);if(!z.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!z.isUndefined(t))return r(void 0,t)}function o(e,t){if(!z.isUndefined(t))return r(void 0,t);if(!z.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(z.hasOwnProp(t,a))return r(n,i);if(z.hasOwnProp(e,a))return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(la(e),la(t),n,!0)};return z.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=z.hasOwnProp(c,r)?c[r]:i,o=a(z.hasOwnProp(e,r)?e[r]:void 0,z.hasOwnProp(t,r)?t[r]:void 0,r);z.isUndefined(o)&&a!==s||(n[r]=o)}),n}var da=[`content-type`,`content-length`];function fa(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{da.includes(t.toLowerCase())&&e.set(t,n)})}var pa=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),ma=e=>{let t=ua({},e),n=e=>z.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=gi.from(s),t.url=Ai(ca(l,d,u),e.params,e.paramsSerializer),c&&s.set(`Authorization`,`Basic `+btoa((c.username||``)+`:`+(c.password?pa(c.password):``))),z.isFormData(r)&&(Bi.hasStandardBrowserEnv||Bi.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):z.isFunction(r.getHeaders)&&fa(s,r.getHeaders(),n(`formDataHeaderPolicy`))),Bi.hasStandardBrowserEnv&&(z.isFunction(i)&&(i=i(t)),i===!0||i==null&&ia(t.url))){let e=a&&o&&aa.read(o);e&&s.set(a,e)}return t},ha=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=ma(e),i=r.data,a=gi.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=gi.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Zi(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new B(`Request aborted`,B.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new B(t&&t.message?t.message:`Network Error`,B.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Mi;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new B(t,i.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&z.forEach(si(a),function(e,t){h.setRequestHeader(t,e)}),z.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=ta(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=ta(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Xi(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Qi(r.url);if(_&&!Bi.protocols.includes(_)){n(new B(`Unsupported protocol `+_+`:`,B.ERR_BAD_REQUEST,e));return}h.send(i||null)})},ga=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof B?t:new Xi(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new B(`timeout of ${t}ms exceeded`,B.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>z.asap(o),s},_a=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},va=async function*(e,t){for await(let n of ya(e))yield*_a(n,t)},ya=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ba=(e,t,n,r)=>{let i=va(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})};function xa(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}if(typeof Buffer<`u`&&typeof Buffer.byteLength==`function`)return Buffer.byteLength(r,`utf8`);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var Sa=`1.16.1`,Ca=64*1024,{isFunction:wa}=z,Ta=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ea=e=>{let t=z.global!==void 0&&z.global!==null?z.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=z.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?wa(i):typeof fetch==`function`,c=wa(a),l=wa(o);if(!s)return!1;let u=s&&wa(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Ta(()=>{let e=!1,t=new a(Bi.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Ta(()=>z.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new B(`Response type '${e}' is not supported`,B.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new a(Bi.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e+=``),z.isString(e))return(await d(e)).byteLength},g=async(e,t)=>z.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:u,timeout:d,onDownloadProgress:h,onUploadProgress:_,responseType:v,headers:y,withCredentials:b=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:C}=ma(e),w=z.isNumber(S)&&S>-1,T=z.isNumber(C)&&C>-1,E=i||fetch;v=v?(v+``).toLowerCase():`text`;let D=ga([l,u&&u.toAbortSignal()],d),O=null,k=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),A;try{if(w&&typeof t==`string`&&t.startsWith(`data:`)&&xa(t)>S)throw new B(`maxContentLength size of `+S+` exceeded`,B.ERR_BAD_RESPONSE,e,O);if(T&&n!==`get`&&n!==`head`){let t=await g(y,s);if(typeof t==`number`&&isFinite(t)&&t>C)throw new B(`Request body larger than maxBodyLength limit`,B.ERR_BAD_REQUEST,e,O)}if(_&&f&&n!==`get`&&n!==`head`&&(A=await g(y,s))!==0){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(z.isFormData(s)&&(n=e.headers.get(`content-type`))&&y.setContentType(n),e.body){let[t,n]=na(A,ta(ra(_)));s=ba(e.body,Ca,t,n)}}z.isString(b)||(b=b?`include`:`omit`);let i=c&&`credentials`in a.prototype;if(z.isFormData(s)){let e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete(`content-type`)}y.set(`User-Agent`,`axios/`+Sa,!1);let l={...x,signal:D,method:n.toUpperCase(),headers:si(y.normalize()),body:s,duplex:`half`,credentials:i?b:void 0};O=c&&new a(t,l);let u=await(c?E(O,x):E(t,l));if(w){let t=z.toFiniteNumber(u.headers.get(`content-length`));if(t!=null&&t>S)throw new B(`maxContentLength size of `+S+` exceeded`,B.ERR_BAD_RESPONSE,e,O)}let d=p&&(v===`stream`||v===`response`);if(p&&u.body&&(h||w||d&&k)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=u[e]});let n=z.toFiniteNumber(u.headers.get(`content-length`)),[r,i]=h&&na(n,ta(ra(h),!0))||[],a=0;u=new o(ba(u.body,Ca,t=>{if(w&&(a=t,a>S))throw new B(`maxContentLength size of `+S+` exceeded`,B.ERR_BAD_RESPONSE,e,O);r&&r(t)},()=>{i&&i(),k&&k()}),t)}v||=`text`;let j=await m[z.findKey(m,v)||`text`](u,e);if(w&&!p&&!d){let t;if(j!=null&&(typeof j.byteLength==`number`?t=j.byteLength:typeof j.size==`number`?t=j.size:typeof j==`string`&&(t=typeof r==`function`?new r().encode(j).byteLength:j.length)),typeof t==`number`&&t>S)throw new B(`maxContentLength size of `+S+` exceeded`,B.ERR_BAD_RESPONSE,e,O)}return!d&&k&&k(),await new Promise((t,n)=>{Zi(t,n,{data:j,headers:gi.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:O})})}catch(t){if(k&&k(),D&&D.aborted&&D.reason instanceof B){let n=D.reason;throw n.config=e,O&&(n.request=O),t!==n&&(n.cause=t),n}throw t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new B(`Network Error`,B.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t}):B.from(t,t&&t.code,e,O,t&&t.response)}}},Da=new Map,Oa=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Da;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Ea(t)),l=c;return c};Oa();var ka={http:null,xhr:ha,fetch:{get:Oa}};z.forEach(ka,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Aa=e=>`- ${e}`,ja=e=>z.isFunction(e)||e===null||e===!1;function Ma(e,t){e=z.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!ja(r)&&(i=ka[(n=String(r)).toLowerCase()],i===void 0))throw new B(`Unknown adapter '${n}'`);if(i&&(z.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new B(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
6
|
-
`+e.map(Aa).join(`
|
|
7
|
-
`):` `+Aa(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Na={getAdapter:Ma,adapters:ka};function V(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xi(null,e)}function Pa(e){return V(e),e.headers=gi.from(e.headers),e.data=Ji.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Na.getAdapter(e.adapter||qi.adapter,e)(e).then(function(t){V(e),e.response=t;try{t.data=Ji.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=gi.from(t.headers),t},function(t){if(!Yi(t)&&(V(e),t&&t.response)){e.response=t.response;try{t.response.data=Ji.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=gi.from(t.response.headers)}return Promise.reject(t)})}var Fa={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Fa[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Ia={};Fa.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Sa+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new B(r(i,` has been removed`+(t?` in `+t:``)),B.ERR_DEPRECATED);return t&&!Ia[i]&&(Ia[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},Fa.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function La(e,t,n){if(typeof e!=`object`)throw new B(`options must be an object`,B.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new B(`option `+a+` must be `+n,B.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B(`Unknown option `+a,B.ERR_BAD_OPTION)}}var Ra={assertOptions:La,validators:Fa},za=Ra.validators,Ba=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ji,response:new ji}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
|
|
8
|
-
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
9
|
-
`),r=t===-1?-1:n.indexOf(`
|
|
10
|
-
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
11
|
-
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=ua(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Ra.assertOptions(n,{silentJSONParsing:za.transitional(za.boolean),forcedJSONParsing:za.transitional(za.boolean),clarifyTimeoutError:za.transitional(za.boolean),legacyInterceptorReqResOrdering:za.transitional(za.boolean)},!1),r!=null&&(z.isFunction(r)?t.paramsSerializer={serialize:r}:Ra.assertOptions(r,{encode:za.function,serialize:za.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Ra.assertOptions(t,{baseUrl:za.spelling(`baseURL`),withXsrfToken:za.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&z.merge(i.common,i[t.method]);i&&z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=gi.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Mi;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Pa.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Pa.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=ua(this.defaults,e),Ai(ca(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};z.forEach([`delete`,`get`,`head`,`options`],function(e){Ba.prototype[e]=function(t,n){return this.request(ua(n||{},{method:e,url:t,data:(n||{}).data}))}}),z.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(ua(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Ba.prototype[e]=t(),e!==`query`&&(Ba.prototype[e+`Form`]=t(!0))});var Va=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Xi(e,r,i),t(n.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;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Ha(e){return function(t){return e.apply(null,t)}}function Ua(e){return z.isObject(e)&&e.isAxiosError===!0}var Wa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Wa).forEach(([e,t])=>{Wa[t]=e});function Ga(e){let t=new Ba(e),n=Wn(Ba.prototype.request,t);return z.extend(n,Ba.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Ga(ua(e,t))},n}var H=Ga(qi);H.Axios=Ba,H.CanceledError=Xi,H.CancelToken=Va,H.isCancel=Yi,H.VERSION=Sa,H.toFormData=Ti,H.AxiosError=B,H.Cancel=H.CanceledError,H.all=function(e){return Promise.all(e)},H.spread=Ha,H.isAxiosError=Ua,H.mergeConfig=ua,H.AxiosHeaders=gi,H.formToJSON=e=>Wi(z.isHTMLForm(e)?new FormData(e):e),H.getAdapter=Na.getAdapter,H.HttpStatusCode=Wa,H.default=H;var Ka=i(((e,t)=>{(function(n,r){if(typeof define==`function`&&define.amd)define(r);else if(typeof e==`object`&&typeof t<`u`)t.exports=r();else{var i=r();for(var a in i)n[a]=i[a]}})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:e,function(){var e={},t=e,n={exports:e},r=Object.defineProperty,i=Object.defineProperties,a=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,l=function(e,t,n){return t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},u=function(e,t){for(var n in t||={})s.call(t,n)&&l(e,n,t[n]);if(o)for(var r=0,i=o(t);r<i.length;r++){var n=i[r];c.call(t,n)&&l(e,n,t[n])}return e},d=function(e,t){return i(e,a(t))},f=function(e,t,n){return l(e,typeof t==`symbol`?t:t+``,n),n},p=globalThis;function m(e){return(p.__Zone_symbol_prefix||`__zone_symbol__`)+e}function h(){var e=p.performance;function t(t){e&&e.mark&&e.mark(t)}function n(t,n){e&&e.measure&&e.measure(t,n)}t(`Zone`);var r=function(){function e(e,t){f(this,`_parent`),f(this,`_name`),f(this,`_properties`),f(this,`_zoneDelegate`),this._parent=e,this._name=t?t.name||`unnamed`:`<root>`,this._properties=t&&t.properties||{},this._zoneDelegate=new o(this,this._parent&&this._parent._zoneDelegate,t)}return e.assertZonePatched=function(){if(p.Promise!==j.ZoneAwarePromise)throw Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return M.zone},enumerable:!1,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return N},enumerable:!1,configurable:!0}),e.__load_patch=function(r,i,a){if(a===void 0&&(a=!1),j.hasOwnProperty(r)){var o=p[m(`forceDuplicateZoneCheck`)]===!0;if(!a&&o)throw Error(`Already loaded patch: `+r)}else if(!p[`__Zone_disable_`+r]){var s=`Zone:`+r;t(s),j[r]=i(p,e,ee),n(s,s)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},e.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},e.prototype.fork=function(e){if(!e)throw Error(`ZoneSpec required!`);return this._zoneDelegate.fork(this,e)},e.prototype.wrap=function(e,t){if(typeof e!=`function`)throw Error(`Expecting function got: `+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},e.prototype.run=function(e,t,n,r){M={parent:M,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{M=M.parent}},e.prototype.runGuarded=function(e,t,n,r){t===void 0&&(t=null),M={parent:M,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{M=M.parent}},e.prototype.runTask=function(e,t,n){if(e.zone!=this)throw Error(`A task can only be run in the zone of creation! (Creation: `+(e.zone||x).name+`; Execution: `+this.name+`)`);var r=e,i=e.type,a=e.data,o=a===void 0?{}:a,s=o.isPeriodic,c=s===void 0?!1:s,l=o.isRefreshable,u=l===void 0?!1:l;if(!(e.state===S&&(i===A||i===k))){var d=e.state!=T;d&&r._transitionTo(T,w);var f=N;N=r,M={parent:M,zone:this};try{i==k&&e.data&&!c&&!u&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{var p=e.state;if(p!==S&&p!==D)if(i==A||c||u&&p===C)d&&r._transitionTo(w,T,C);else{var m=r._zoneDelegates;this._updateTaskCount(r,-1),d&&r._transitionTo(S,T,S),u&&(r._zoneDelegates=m)}M=M.parent,N=f}}},e.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}e._transitionTo(C,S);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(D,C,S),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==C&&e._transitionTo(w,C),e},e.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new s(O,e,t,n,r,void 0))},e.prototype.scheduleMacroTask=function(e,t,n,r,i){return this.scheduleTask(new s(k,e,t,n,r,i))},e.prototype.scheduleEventTask=function(e,t,n,r,i){return this.scheduleTask(new s(A,e,t,n,r,i))},e.prototype.cancelTask=function(e){if(e.zone!=this)throw Error(`A task can only be cancelled in the zone of creation! (Creation: `+(e.zone||x).name+`; Execution: `+this.name+`)`);if(!(e.state!==w&&e.state!==T)){e._transitionTo(E,w,T);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(D,E),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(S,E),e.runCount=-1,e}},e.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;t==-1&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},e}();f(r,`__symbol__`,m);var i=r,a={name:``,onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,i,a){return e.invokeTask(n,r,i,a)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},o=function(){function e(e,t,n){f(this,`_zone`),f(this,`_taskCounts`,{microTask:0,macroTask:0,eventTask:0}),f(this,`_forkDlgt`),f(this,`_forkZS`),f(this,`_forkCurrZone`),f(this,`_interceptDlgt`),f(this,`_interceptZS`),f(this,`_interceptCurrZone`),f(this,`_invokeDlgt`),f(this,`_invokeZS`),f(this,`_invokeCurrZone`),f(this,`_handleErrorDlgt`),f(this,`_handleErrorZS`),f(this,`_handleErrorCurrZone`),f(this,`_scheduleTaskDlgt`),f(this,`_scheduleTaskZS`),f(this,`_scheduleTaskCurrZone`),f(this,`_invokeTaskDlgt`),f(this,`_invokeTaskZS`),f(this,`_invokeTaskCurrZone`),f(this,`_cancelTaskDlgt`),f(this,`_cancelTaskZS`),f(this,`_cancelTaskCurrZone`),f(this,`_hasTaskDlgt`),f(this,`_hasTaskDlgtOwner`),f(this,`_hasTaskZS`),f(this,`_hasTaskCurrZone`),this._zone=e,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this._zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this._zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this._zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this._zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this._zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this._zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this._zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask,i=t&&t._hasTaskZS;(r||i)&&(this._hasTaskZS=r?n:a,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,n.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this._zone),n.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this._zone),n.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this._zone))}return Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,i):t.apply(n,r)},e.prototype.handleError=function(e,t){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t):!0},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||=t;else if(t.scheduleFn)t.scheduleFn(t);else if(t.type==O)y(t);else throw Error(`Task is missing scheduleFn.`);return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error(`Task is not cancelable`);n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(t){this.handleError(e,t)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],i=n[e]=r+t;if(i<0)throw Error(`More tasks executed then were scheduled.`);if(r==0||i==0){var a={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e};this.hasTask(this._zone,a)}},e}(),s=function(){function e(t,n,r,i,a,o){if(f(this,`type`),f(this,`source`),f(this,`invoke`),f(this,`callback`),f(this,`data`),f(this,`scheduleFn`),f(this,`cancelFn`),f(this,`_zone`,null),f(this,`runCount`,0),f(this,`_zoneDelegates`,null),f(this,`_state`,`notScheduled`),this.type=t,this.source=n,this.data=i,this.scheduleFn=a,this.cancelFn=o,!r)throw Error(`callback is not defined`);this.callback=r;var s=this;t===A&&i&&i.useG?this.invoke=e.invokeTask:this.invoke=function(){return e.invokeTask.call(p,s,this,arguments)}}return e.invokeTask=function(e,t,n){e||=this,P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{P===1&&!p[d]&&b(),P--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(S,C)},e.prototype._transitionTo=function(e,t,n){if(this._state===t||this._state===n)this._state=e,e==S&&(this._zoneDelegates=null);else throw Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?` or '`+n+`'`:``}, was '${this._state}'.`)},e.prototype.toString=function(){return this.data&&this.data.handleId!==void 0?this.data.handleId.toString():Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),c=m(`setTimeout`),l=m(`Promise`),u=m(`then`),d=m(`enable_native_microtask_draining`),h=[],g=!1,_;function v(e){!_&&p[l]&&(_=p[l].resolve(0)),_?(_[u]??_.then).call(_,e):p[c](e,0)}function y(e){var t=p[d],n=t&&h.length===0&&!g,r=!t&&P===0&&h.length===0;(n||r)&&v(b),e&&h.push(e)}function b(){if(!g){for(g=!0;h.length;){var e=h;h=[];for(var t=0,n=e;t<n.length;t++){var r=n[t];try{r.zone.runTask(r,null,null)}catch(e){ee.onUnhandledError(e)}}}p[d]?(g=!1,ee.microtaskDrainDone()):(ee.microtaskDrainDone(),g=!1)}}var x={name:`NO ZONE`},S=`notScheduled`,C=`scheduling`,w=`scheduled`,T=`running`,E=`canceling`,D=`unknown`,O=`microTask`,k=`macroTask`,A=`eventTask`,j={},ee={symbol:m,currentZoneFrame:function(){return M},onUnhandledError:F,microtaskDrainDone:F,scheduleMicroTask:y,showUncaughtError:function(){return!i[m(`ignoreConsoleErrorUncaughtError`)]},patchEventTarget:function(){return[]},patchOnProperties:F,patchMethod:function(){return F},bindArguments:function(){return[]},patchThen:function(){return F},patchMacroTask:function(){return F},patchEventPrototype:function(){return F},getGlobalObjects:function(){},ObjectDefineProperty:function(){return F},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return F},wrapWithCurrentZone:function(){return F},filterProperties:function(){return[]},attachOriginToPatched:function(){return F},_redefineProperty:function(){return F},patchCallbacks:function(){return F},nativeScheduleMicroTask:v},M={parent:null,zone:new i(null,null)},N=null,P=0;function F(){}return n(`Zone`,`Zone`),i}function g(){var e=globalThis,t=e[m(`forceDuplicateZoneCheck`)]===!0;if(e.Zone&&(t||typeof e.Zone.__symbol__!=`function`))throw Error(`Zone already loaded.`);return e.Zone??=h(),e.Zone}var _=Object.getOwnPropertyDescriptor,v=Object.defineProperty,y=Object.getPrototypeOf,b=Object.create,x=Array.prototype.slice,S=`addEventListener`,C=`removeEventListener`,w=m(S),T=m(C),E=`true`,D=`false`,O=m(``);function k(e,t){return Zone.current.wrap(e,t)}function A(e,t,n,r,i){return Zone.current.scheduleMacroTask(e,t,n,r,i)}var j=m,ee=typeof window<`u`,M=ee?window:void 0,N=ee&&M||globalThis,P=`removeAttribute`;function F(e,t){for(var n=e.length-1;n>=0;n--)typeof e[n]==`function`&&(e[n]=k(e[n],t+`_`+n));return e}function I(e,t){for(var n=e.constructor.name,r=function(r){var i=t[r],a=e[i];if(a){if(!te(_(e,i)))return`continue`;e[i]=(function(e){var t=function(){return e.apply(this,F(arguments,n+`.`+i))};return _e(t,e),t})(a)}},i=0;i<t.length;i++)r(i)}function te(e){return e?e.writable===!1?!1:!(typeof e.get==`function`&&e.set===void 0):!0}var ne=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope,re=!(`nw`in N)&&N.process!==void 0&&N.process.toString()===`[object process]`,ie=!re&&!ne&&!!(ee&&M.HTMLElement),ae=N.process!==void 0&&N.process.toString()===`[object process]`&&!ne&&!!(ee&&M.HTMLElement),oe={},se=j(`enable_beforeunload`),ce=function(e){if(e||=N.event,e){var t=oe[e.type];t||=oe[e.type]=j(`ON_PROPERTY`+e.type);var n=this||e.target||N,r=n[t],i;if(ie&&n===M&&e.type===`error`){var a=e;i=r&&r.call(this,a.message,a.filename,a.lineno,a.colno,a.error),i===!0&&e.preventDefault()}else i=r&&r.apply(this,arguments),e.type===`beforeunload`&&N[se]&&typeof i==`string`?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i}};function le(e,t,n){var r=_(e,t);if(!r&&n&&_(n,t)&&(r={enumerable:!0,configurable:!0}),!(!r||!r.configurable)){var i=j(`on`+t+`patched`);if(!(e.hasOwnProperty(i)&&e[i])){delete r.writable,delete r.value;var a=r.get,o=r.set,s=t.slice(2),c=oe[s];c||=oe[s]=j(`ON_PROPERTY`+s),r.set=function(t){var n=this;!n&&e===N&&(n=N),n&&(typeof n[c]==`function`&&n.removeEventListener(s,ce),o?.call(n,null),n[c]=t,typeof t==`function`&&n.addEventListener(s,ce,!1))},r.get=function(){var n=this;if(!n&&e===N&&(n=N),!n)return null;var i=n[c];if(i)return i;if(a){var o=a.call(this);if(o)return r.set.call(this,o),typeof n[P]==`function`&&n.removeAttribute(t),o}return null},v(e,t,r),e[i]=!0}}}function ue(e,t,n){if(t)for(var r=0;r<t.length;r++)le(e,`on`+t[r],n);else{var i=[];for(var a in e)a.slice(0,2)==`on`&&i.push(a);for(var o=0;o<i.length;o++)le(e,i[o],n)}}var de=j(`originalInstance`);function fe(e){var t=N[e];if(t){N[j(e)]=t,N[e]=function(){var n=F(arguments,e);switch(n.length){case 0:this[de]=new t;break;case 1:this[de]=new t(n[0]);break;case 2:this[de]=new t(n[0],n[1]);break;case 3:this[de]=new t(n[0],n[1],n[2]);break;case 4:this[de]=new t(n[0],n[1],n[2],n[3]);break;default:throw Error(`Arg list too long.`)}},_e(N[e],t);var n=new t(function(){}),r;for(r in n)e===`XMLHttpRequest`&&r===`responseBlob`||(function(t){typeof n[t]==`function`?N[e].prototype[t]=function(){return this[de][t].apply(this[de],arguments)}:v(N[e].prototype,t,{set:function(n){typeof n==`function`?(this[de][t]=k(n,e+`.`+t),_e(this[de][t],n)):this[de][t]=n},get:function(){return this[de][t]}})})(r);for(r in t)r!==`prototype`&&t.hasOwnProperty(r)&&(N[e][r]=t[r])}}function pe(e,t){typeof Object.getOwnPropertySymbols==`function`&&Object.getOwnPropertySymbols(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){r&&(!r.writable||typeof r.set!=`function`)||(e[n]=t)},enumerable:r?r.enumerable:!0,configurable:r?r.configurable:!0})})}var me=!1;function he(e,t,n){for(var r=e;r&&!r.hasOwnProperty(t);)r=y(r);!r&&e[t]&&(r=e);var i=j(t),a=null;if(r&&(!(a=r[i])||!r.hasOwnProperty(i))&&(a=r[i]=r[t],te(r&&_(r,t)))){var o=n(a,i,t);r[t]=function(){return o(this,arguments)},_e(r[t],a),me&&pe(a,r[t])}return a}function ge(e,t,n){var r=null;function i(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=he(e,t,function(e){return function(t,r){var a=n(t,r);return a.cbIdx>=0&&typeof r[a.cbIdx]==`function`?A(a.name,r[a.cbIdx],a,i):e.apply(t,r)}})}function _e(e,t){e[j(`OriginalDelegate`)]=t}function ve(e){return typeof e==`function`}function ye(e){return typeof e==`number`}var be={useG:!0},xe={},Se={},Ce=RegExp(`^`+O+`(\\w+)(true|false)$`),we=j(`propagationStopped`);function Te(e,t){var n=(t?t(e):e)+D,r=(t?t(e):e)+E,i=O+n,a=O+r;xe[e]={},xe[e][D]=i,xe[e][E]=a}function Ee(e,t,n,r){var i=r&&r.add||S,a=r&&r.rm||C,o=r&&r.listeners||`eventListeners`,s=r&&r.rmAll||`removeAllListeners`,c=j(i),l=`.`+i+`:`,f=`prependListener`,p=`.`+f+`:`,m=function(e,t,n){if(!e.isRemoved){var r=e.callback;typeof r==`object`&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r);var i;try{e.invoke(e,t,[n])}catch(e){i=e}var o=e.options;if(o&&typeof o==`object`&&o.once){var s=e.originalDelegate?e.originalDelegate:e.callback;t[a].call(t,n.type,s,o)}return i}};function h(n,r,i){if(r||=e.event,r){var a=n||r.target||e,o=a[xe[r.type][i?E:D]];if(o){var s=[];if(o.length===1){var c=m(o[0],a,r);c&&s.push(c)}else for(var l=o.slice(),u=0;u<l.length&&!(r&&r[we]===!0);u++){var c=m(l[u],a,r);c&&s.push(c)}if(s.length===1)throw s[0];for(var d=function(e){var n=s[e];t.nativeScheduleMicroTask(function(){throw n})},u=0;u<s.length;u++)d(u)}}}var g=function(e){return h(this,e,!1)},_=function(e){return h(this,e,!0)};function v(t,n){if(!t)return!1;var r=!0;n&&n.useG!==void 0&&(r=n.useG);var m=n&&n.vh,h=!0;n&&n.chkDup!==void 0&&(h=n.chkDup);var v=!1;n&&n.rt!==void 0&&(v=n.rt);for(var b=t;b&&!b.hasOwnProperty(i);)b=y(b);if(!b&&t[i]&&(b=t),!b||b[c])return!1;var x=n&&n.eventNameToString,S={},C=b[c]=b[i],w=b[j(a)]=b[a],T=b[j(o)]=b[o],k=b[j(s)]=b[s],A;n&&n.prepend&&(A=b[j(n.prepend)]=b[n.prepend]);function ee(e,t){return t?typeof e==`boolean`?{capture:e,passive:!0}:e?typeof e==`object`&&e.passive!==!1?d(u({},e),{passive:!0}):e:{passive:!0}:e}var M=function(e){if(!S.isExisting)return C.call(S.target,S.eventName,S.capture?_:g,S.options)},N=function(e){if(!e.isRemoved){var t=xe[e.eventName],n=void 0;t&&(n=t[e.capture?E:D]);var r=n&&e.target[n];if(r){for(var i=0;i<r.length;i++)if(r[i]===e){r.splice(i,1),e.isRemoved=!0,e.removeAbortListener&&=(e.removeAbortListener(),null),r.length===0&&(e.allRemoved=!0,e.target[n]=null);break}}}if(e.allRemoved)return w.call(e.target,e.eventName,e.capture?_:g,e.options)},P=function(e){return C.call(S.target,S.eventName,e.invoke,S.options)},F=function(e){return A.call(S.target,S.eventName,e.invoke,S.options)},I=function(e){return w.call(e.target,e.eventName,e.invoke,e.options)},te=r?M:P,ne=r?N:I,ie=n?.diff||function(e,t){var n=typeof t;return n===`function`&&e.callback===t||n===`object`&&e.originalDelegate===t},ae=Zone[j(`UNPATCHED_EVENTS`)],oe=e[j(`PASSIVE_EVENTS`)];function se(e){if(typeof e==`object`&&e){var t=u({},e);return e.signal&&(t.signal=e.signal),t}return e}var ce=function(t,i,a,o,s,c){return s===void 0&&(s=!1),c===void 0&&(c=!1),function(){var l=this||e,u=arguments[0];n&&n.transferEventName&&(u=n.transferEventName(u));var d=arguments[1];if(!d||re&&u===`uncaughtException`)return t.apply(this,arguments);var f=!1;if(typeof d!=`function`){if(!d.handleEvent)return t.apply(this,arguments);f=!0}if(!(m&&!m(t,d,l,arguments))){var p=!!oe&&oe.indexOf(u)!==-1,g=se(ee(arguments[2],p)),_=g?.signal;if(!_?.aborted){if(ae){for(var v=0;v<ae.length;v++)if(u===ae[v])return p?t.call(l,u,d,g):t.apply(this,arguments)}var y=g?typeof g==`boolean`?!0:g.capture:!1,b=g&&typeof g==`object`?g.once:!1,C=Zone.current,w=xe[u];w||=(Te(u,x),xe[u]);var T=w[y?E:D],O=l[T],k=!1;if(O){if(k=!0,h){for(var v=0;v<O.length;v++)if(ie(O[v],d))return}}else O=l[T]=[];var A,j=l.constructor.name,M=Se[j];M&&(A=M[u]),A||=j+i+(x?x(u):u),S.options=g,b&&(S.options.once=!1),S.target=l,S.capture=y,S.eventName=u,S.isExisting=k;var N=r?be:void 0;N&&(N.taskData=S),_&&(S.options.signal=void 0);var P=C.scheduleEventTask(A,d,N,a,o);if(_){S.options.signal=_;var F=function(){return P.zone.cancelTask(P)};t.call(_,`abort`,F,{once:!0}),P.removeAbortListener=function(){return _.removeEventListener(`abort`,F)}}if(S.target=null,N&&(N.taskData=null),b&&(S.options.once=!0),typeof P.options!=`boolean`&&(P.options=g),P.target=l,P.capture=y,P.eventName=u,f&&(P.originalDelegate=d),c?O.unshift(P):O.push(P),s)return l}}}};return b[i]=ce(C,l,te,ne,v),A&&(b[f]=ce(A,p,F,ne,v,!0)),b[a]=function(){var t=this||e,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));var i=arguments[2],a=i?typeof i==`boolean`?!0:i.capture:!1,o=arguments[1];if(!o)return w.apply(this,arguments);if(!(m&&!m(w,o,t,arguments))){var s=xe[r],c;s&&(c=s[a?E:D]);var l=c&&t[c];if(l)for(var u=0;u<l.length;u++){var d=l[u];if(ie(d,o)){if(l.splice(u,1),d.isRemoved=!0,l.length===0&&(d.allRemoved=!0,t[c]=null,!a&&typeof r==`string`)){var f=O+`ON_PROPERTY`+r;t[f]=null}return d.zone.cancelTask(d),v?t:void 0}}return w.apply(this,arguments)}},b[o]=function(){var t=this||e,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));for(var i=[],a=De(t,x?x(r):r),o=0;o<a.length;o++){var s=a[o],c=s.originalDelegate?s.originalDelegate:s.callback;i.push(c)}return i},b[s]=function(){var t=this||e,r=arguments[0];if(r){n&&n.transferEventName&&(r=n.transferEventName(r));var i=xe[r];if(i){var o=i[D],c=i[E],l=t[o],u=t[c];if(l)for(var d=l.slice(),f=0;f<d.length;f++){var p=d[f],m=p.originalDelegate?p.originalDelegate:p.callback;this[a].call(this,r,m,p.options)}if(u)for(var d=u.slice(),f=0;f<d.length;f++){var p=d[f],m=p.originalDelegate?p.originalDelegate:p.callback;this[a].call(this,r,m,p.options)}}}else{for(var h=Object.keys(t),f=0;f<h.length;f++){var g=h[f],_=Ce.exec(g),y=_&&_[1];y&&y!==`removeListener`&&this[s].call(this,y)}this[s].call(this,`removeListener`)}if(v)return this},_e(b[i],C),_e(b[a],w),k&&_e(b[s],k),T&&_e(b[o],T),!0}for(var b=[],x=0;x<n.length;x++)b[x]=v(n[x],r);return b}function De(e,t){if(!t){var n=[];for(var r in e){var i=Ce.exec(r),a=i&&i[1];if(a&&(!t||a===t)){var o=e[r];if(o)for(var s=0;s<o.length;s++)n.push(o[s])}}return n}var c=xe[t];c||=(Te(t),xe[t]);var l=e[c[D]],u=e[c[E]];return l?u?l.concat(u):l.slice():u?u.slice():[]}function Oe(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,`stopImmediatePropagation`,function(e){return function(t,n){t[we]=!0,e&&e.apply(t,n)}})}function ke(e,t){t.patchMethod(e,`queueMicrotask`,function(e){return function(e,t){Zone.current.scheduleMicroTask(`queueMicrotask`,t[0])}})}var Ae=j(`zoneTask`);function je(e,t,n,r){var i=null,a=null;t+=r,n+=r;var o={};function s(t){var n=t.data;n.args[0]=function(){return t.invoke.apply(this,arguments)};var r=i.apply(e,n.args);return ye(r)?n.handleId=r:(n.handle=r,n.isRefreshable=ve(r.refresh)),t}function c(t){var n=t.data,r=n.handle,i=n.handleId;return a.call(e,r??i)}i=he(e,t,function(n){return function(i,a){if(ve(a[0])){var l={isRefreshable:!1,isPeriodic:r===`Interval`,delay:r===`Timeout`||r===`Interval`?a[1]||0:void 0,args:a},u=a[0];a[0]=function(){try{return u.apply(this,arguments)}finally{var e=l.handle,t=l.handleId,n=l.isPeriodic,r=l.isRefreshable;!n&&!r&&(t?delete o[t]:e&&(e[Ae]=null))}};var d=A(t,a[0],l,s,c);if(!d)return d;var f=d.data,p=f.handleId,m=f.handle,h=f.isRefreshable,g=f.isPeriodic;if(p)o[p]=d;else if(m&&(m[Ae]=d,h&&!g)){var _=m.refresh;m.refresh=function(){var e=d.zone,t=d.state;return t===`notScheduled`?(d._state=`scheduled`,e._updateTaskCount(d,1)):t===`running`&&(d._state=`scheduling`),_.call(this)}}return m??p??d}else return n.apply(e,a)}}),a=he(e,n,function(t){return function(n,r){var i=r[0],a;ye(i)?(a=o[i],delete o[i]):(a=i?.[Ae],a?i[Ae]=null:a=i),a?.type?a.cancelFn&&a.zone.cancelTask(a):t.apply(e,r)}})}function Me(e,t){var n=t.getGlobalObjects(),r=n.isBrowser,i=n.isMix;!r&&!i||!e.customElements||!(`customElements`in e)||t.patchCallbacks(t,e.customElements,`customElements`,`define`,[`connectedCallback`,`disconnectedCallback`,`adoptedCallback`,`attributeChangedCallback`,`formAssociatedCallback`,`formDisabledCallback`,`formResetCallback`,`formStateRestoreCallback`])}function Ne(e,t){if(!Zone[t.symbol(`patchEventTarget`)]){for(var n=t.getGlobalObjects(),r=n.eventNames,i=n.zoneSymbolEventNames,a=n.TRUE_STR,o=n.FALSE_STR,s=n.ZONE_SYMBOL_PREFIX,c=0;c<r.length;c++){var l=r[c],u=l+o,d=l+a,f=s+u,p=s+d;i[l]={},i[l][o]=f,i[l][a]=p}var m=e.EventTarget;if(!(!m||!m.prototype))return t.patchEventTarget(e,t,[m&&m.prototype]),!0}}function Pe(e,t){t.patchEventPrototype(e,t)}function Fe(e,t,n){if(!n||n.length===0)return t;var r=n.filter(function(t){return t.target===e});if(r.length===0)return t;var i=r[0].ignoreProperties;return t.filter(function(e){return i.indexOf(e)===-1})}function Ie(e,t,n,r){e&&ue(e,Fe(e,t,n),r)}function Le(e){return Object.getOwnPropertyNames(e).filter(function(e){return e.startsWith(`on`)&&e.length>2}).map(function(e){return e.substring(2)})}function Re(e,t){if(!(re&&!ae)&&!Zone[e.symbol(`patchEvents`)]){var n=t.__Zone_ignore_on_properties,r=[];if(ie){var i=window;r=r.concat([`Document`,`SVGElement`,`Element`,`HTMLElement`,`HTMLBodyElement`,`HTMLMediaElement`,`HTMLFrameSetElement`,`HTMLFrameElement`,`HTMLIFrameElement`,`HTMLMarqueeElement`,`Worker`]),Ie(i,Le(i),n,y(i))}r=r.concat([`XMLHttpRequest`,`XMLHttpRequestEventTarget`,`IDBIndex`,`IDBRequest`,`IDBOpenDBRequest`,`IDBDatabase`,`IDBTransaction`,`IDBCursor`,`WebSocket`]);for(var a=0;a<r.length;a++){var o=t[r[a]];o!=null&&o.prototype&&Ie(o.prototype,Le(o.prototype),n)}}}function ze(e){e.__load_patch(`timers`,function(e){var t=`set`,n=`clear`;je(e,t,n,`Timeout`),je(e,t,n,`Interval`),je(e,t,n,`Immediate`)}),e.__load_patch(`requestAnimationFrame`,function(e){je(e,`request`,`cancel`,`AnimationFrame`),je(e,`mozRequest`,`mozCancel`,`AnimationFrame`),je(e,`webkitRequest`,`webkitCancel`,`AnimationFrame`)}),e.__load_patch(`blocking`,function(e,t){for(var n=[`alert`,`prompt`,`confirm`],r=0;r<n.length;r++){var i=n[r];he(e,i,function(n,r,i){return function(r,a){return t.current.run(n,e,a,i)}})}}),e.__load_patch(`EventTarget`,function(e,t,n){Pe(e,n),Ne(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,n,[r.prototype])}),e.__load_patch(`MutationObserver`,function(e,t,n){fe(`MutationObserver`),fe(`WebKitMutationObserver`)}),e.__load_patch(`IntersectionObserver`,function(e,t,n){fe(`IntersectionObserver`)}),e.__load_patch(`FileReader`,function(e,t,n){fe(`FileReader`)}),e.__load_patch(`on_property`,function(e,t,n){Re(n,e)}),e.__load_patch(`customElements`,function(e,t,n){Me(e,n)}),e.__load_patch(`XHR`,function(e,t){c(e);var n=j(`xhrTask`),r=j(`xhrSync`),i=j(`xhrListener`),a=j(`xhrScheduled`),o=j(`xhrURL`),s=j(`xhrErrorBeforeScheduled`);function c(e){var c=e.XMLHttpRequest;if(!c)return;var l=c.prototype;function u(e){return e[n]}var d=l[w],f=l[T];if(!d){var p=e.XMLHttpRequestEventTarget;if(p){var m=p.prototype;d=m[w],f=m[T]}}var h=`readystatechange`,g=`scheduled`;function _(e){var r=e.data,o=r.target;o[a]=!1,o[s]=!1;var c=o[i];d||(d=o[w],f=o[T]),c&&f.call(o,h,c);var l=o[i]=function(){if(o.readyState===o.DONE)if(!r.aborted&&o[a]&&e.state===g){var n=o[t.__symbol__(`loadfalse`)];if(o.status!==0&&n&&n.length>0){var i=e.invoke;e.invoke=function(){for(var n=o[t.__symbol__(`loadfalse`)],a=0;a<n.length;a++)n[a]===e&&n.splice(a,1);!r.aborted&&e.state===g&&i.call(e)},n.push(e)}else e.invoke()}else !r.aborted&&o[a]===!1&&(o[s]=!0)};return d.call(o,h,l),o[n]||(o[n]=e),E.apply(o,r.args),o[a]=!0,e}function v(){}function y(e){var t=e.data;return t.aborted=!0,D.apply(t.target,t.args)}var b=he(l,`open`,function(){return function(e,t){return e[r]=t[2]==0,e[o]=t[1],b.apply(e,t)}}),x=`XMLHttpRequest.send`,S=j(`fetchTaskAborting`),C=j(`fetchTaskScheduling`),E=he(l,`send`,function(){return function(e,n){if(t.current[C]===!0||e[r])return E.apply(e,n);var i={target:e,url:e[o],isPeriodic:!1,args:n,aborted:!1},a=A(x,v,i,_,y);e&&e[s]===!0&&!i.aborted&&a.state===g&&a.invoke()}}),D=he(l,`abort`,function(){return function(e,n){var r=u(e);if(r&&typeof r.type==`string`){if(r.cancelFn==null||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(t.current[S]===!0)return D.apply(e,n)}})}}),e.__load_patch(`geolocation`,function(e){e.navigator&&e.navigator.geolocation&&I(e.navigator.geolocation,[`getCurrentPosition`,`watchPosition`])}),e.__load_patch(`PromiseRejectionEvent`,function(e,t){function n(t){return function(n){De(e,t).forEach(function(r){var i=e.PromiseRejectionEvent;if(i){var a=new i(t,{promise:n.promise,reason:n.rejection});r.invoke(a)}})}}e.PromiseRejectionEvent&&(t[j(`unhandledPromiseRejectionHandler`)]=n(`unhandledrejection`),t[j(`rejectionHandledHandler`)]=n(`rejectionhandled`))}),e.__load_patch(`queueMicrotask`,function(e,t,n){ke(e,n)})}function Be(e){e.__load_patch(`ZoneAwarePromise`,function(e,t,n){var r=Object.getOwnPropertyDescriptor,i=Object.defineProperty;function a(e){return e&&e.toString===Object.prototype.toString?(e.constructor&&e.constructor.name||``)+`: `+JSON.stringify(e):e?e.toString():Object.prototype.toString.call(e)}var o=n.symbol,s=[],c=e[o(`DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION`)]!==!1,l=o(`Promise`),u=o(`then`),d=`__creationTrace__`;n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error(`Unhandled Promise rejection:`,t instanceof Error?t.message:t,`; Zone:`,e.zone.name,`; Task:`,e.task&&e.task.source,`; Value:`,t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=s.shift();try{e.zone.runGuarded(function(){throw e.throwOriginal?e.rejection:e})}catch(e){p(e)}};s.length;)e()};var f=o(`unhandledPromiseRejectionHandler`);function p(e){n.onUnhandledError(e);try{var r=t[f];typeof r==`function`&&r.call(this,e)}catch{}}function m(e){return e&&typeof e.then==`function`}function h(e){return e}function g(e){return te.reject(e)}var _=o(`state`),v=o(`value`),y=o(`finally`),b=o(`parentPromiseValue`),x=o(`parentPromiseState`),S=`Promise.then`,C=null,w=!0,T=!1,E=0;function D(e,t){return function(n){try{j(e,t,n)}catch(t){j(e,!1,t)}}}var O=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},k=`Promise resolved with itself`,A=o(`currentTaskTrace`);function j(e,r,o){var l=O();if(e===o)throw TypeError(k);if(e[_]===C){var u=null;try{(typeof o==`object`||typeof o==`function`)&&(u=o&&o.then)}catch(t){return l(function(){j(e,!1,t)})(),e}if(r!==T&&o instanceof te&&o.hasOwnProperty(_)&&o.hasOwnProperty(v)&&o[_]!==C)M(o),j(e,o[_],o[v]);else if(r!==T&&typeof u==`function`)try{u.call(o,l(D(e,r)),l(D(e,!1)))}catch(t){l(function(){j(e,!1,t)})()}else{e[_]=r;var f=e[v];if(e[v]=o,e[y]===y&&r===w&&(e[_]=e[x],e[v]=e[b]),r===T&&o instanceof Error){var p=t.currentTask&&t.currentTask.data&&t.currentTask.data[d];p&&i(o,A,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var m=0;m<f.length;)N(e,f[m++],f[m++],f[m++],f[m++]);if(f.length==0&&r==T){e[_]=E;var h=o;try{throw Error(`Uncaught (in promise): `+a(o)+(o&&o.stack?`
|
|
12
|
-
`+o.stack:``))}catch(e){h=e}c&&(h.throwOriginal=!0),h.rejection=o,h.promise=e,h.zone=t.current,h.task=t.currentTask,s.push(h),n.scheduleMicroTask()}}}return e}var ee=o(`rejectionHandledHandler`);function M(e){if(e[_]===E){try{var n=t[ee];n&&typeof n==`function`&&n.call(this,{rejection:e[v],promise:e})}catch{}e[_]=T;for(var r=0;r<s.length;r++)e===s[r].promise&&s.splice(r,1)}}function N(e,t,n,r,i){M(e);var a=e[_],o=a?typeof r==`function`?r:h:typeof i==`function`?i:g;t.scheduleMicroTask(S,function(){try{var r=e[v],i=!!n&&y===n[y];i&&(n[b]=r,n[x]=a),j(n,!0,t.run(o,void 0,i&&o!==g&&o!==h?[]:[r]))}catch(e){j(n,!1,e)}},n)}var P=`function ZoneAwarePromise() { [native code] }`,F=function(){},I=e.AggregateError,te=function(){function e(t){var n=this;if(!(n instanceof e))throw Error(`Must be an instanceof Promise.`);n[_]=C,n[v]=[];try{var r=O();t&&t(r(D(n,w)),r(D(n,T)))}catch(e){j(n,!1,e)}}return e.toString=function(){return P},e.resolve=function(t){return t instanceof e?t:j(new this(null),w,t)},e.reject=function(e){return j(new this(null),T,e)},e.withResolvers=function(){var t={};return t.promise=new e(function(e,n){t.resolve=e,t.reject=n}),t},e.any=function(t){if(!t||typeof t[Symbol.iterator]!=`function`)return Promise.reject(new I([],`All promises were rejected`));var n=[],r=0;try{for(var i=0,a=t;i<a.length;i++){var o=a[i];r++,n.push(e.resolve(o))}}catch{return Promise.reject(new I([],`All promises were rejected`))}if(r===0)return Promise.reject(new I([],`All promises were rejected`));var s=!1,c=[];return new e(function(e,t){for(var i=0;i<n.length;i++)n[i].then(function(t){s||(s=!0,e(t))},function(e){c.push(e),r--,r===0&&(s=!0,t(new I(c,`All promises were rejected`)))})})},e.race=function(e){var t,n,r=new this(function(e,r){t=e,n=r});function i(e){t(e)}function a(e){n(e)}for(var o=0,s=e;o<s.length;o++){var c=s[o];m(c)||(c=this.resolve(c)),c.then(i,a)}return r},e.all=function(t){return e.allWithCallback(t)},e.allSettled=function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:`fulfilled`,value:e}},errorCallback:function(e){return{status:`rejected`,reason:e}}})},e.allWithCallback=function(e,t){for(var n,r,i=new this(function(e,t){n=e,r=t}),a=2,o=0,s=[],c=function(e){m(e)||(e=l.resolve(e));var i=o;try{e.then(function(e){s[i]=t?t.thenCallback(e):e,a--,a===0&&n(s)},function(e){t?(s[i]=t.errorCallback(e),a--,a===0&&n(s)):r(e)})}catch(e){r(e)}a++,o++},l=this,u=0,d=e;u<d.length;u++){var f=d[u];c(f)}return a-=2,a===0&&n(s),i},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return`Promise`},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.then=function(n,r){var i=this.constructor?.[Symbol.species];(!i||typeof i!=`function`)&&(i=this.constructor||e);var a=new i(F),o=t.current;return this[_]==C?this[v].push(o,a,n,r):N(this,o,a,n,r),a},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(n){var r=this.constructor?.[Symbol.species];(!r||typeof r!=`function`)&&(r=e);var i=new r(F);i[y]=y;var a=t.current;return this[_]==C?this[v].push(a,i,n,n):N(this,a,i,n,n),i},e}();te.resolve=te.resolve,te.reject=te.reject,te.race=te.race,te.all=te.all;var ne=e[l]=e.Promise;e.Promise=te;var re=o(`thenPatched`);function ie(e){var t=e.prototype,n=r(t,`then`);if(!(n&&(n.writable===!1||!n.configurable))){var i=t.then;t[u]=i,e.prototype.then=function(e,t){var n=this;return new te(function(e,t){i.call(n,e,t)}).then(e,t)},e[re]=!0}}n.patchThen=ie;function ae(e){return function(t,n){var r=e.apply(t,n);if(r instanceof te)return r;var i=r.constructor;return i[re]||ie(i),r}}if(ne){ie(ne);var oe=ne.try;oe&&typeof oe==`function`&&(te.try=oe),he(e,`fetch`,function(e){return ae(e)})}return Promise[t.__symbol__(`uncaughtPromiseErrors`)]=s,te})}function Ve(e){e.__load_patch(`toString`,function(e){var t=Function.prototype.toString,n=j(`OriginalDelegate`),r=j(`Promise`),i=j(`Error`),a=function(){if(typeof this==`function`){var a=this[n];if(a)return typeof a==`function`?t.call(a):Object.prototype.toString.call(a);if(this===Promise){var o=e[r];if(o)return t.call(o)}if(this===Error){var s=e[i];if(s)return t.call(s)}}return t.call(this)};a[n]=t,Function.prototype.toString=a;var o=Object.prototype.toString,s=`[object Promise]`;Object.prototype.toString=function(){return typeof Promise==`function`&&this instanceof Promise?s:o.call(this)}})}function He(e,t,n,r,i){var a=Zone.__symbol__(r);if(!t[a]){var o=t[a]=t[r];t[r]=function(a,s,c){return s&&s.prototype&&i.forEach(function(t){var i=`${n}.${r}::`+t,a=s.prototype;try{if(a.hasOwnProperty(t)){var o=e.ObjectGetOwnPropertyDescriptor(a,t);o&&o.value?(o.value=e.wrapWithCurrentZone(o.value,i),e._redefineProperty(s.prototype,t,o)):a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],i))}else a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],i))}catch{}}),o.call(t,a,s,c)},e.attachOriginToPatched(t[r],o)}}function Ue(e){e.__load_patch(`util`,function(e,t,n){var r=Le(e);n.patchOnProperties=ue,n.patchMethod=he,n.bindArguments=F,n.patchMacroTask=ge;var i=t.__symbol__(`BLACK_LISTED_EVENTS`),a=t.__symbol__(`UNPATCHED_EVENTS`);e[a]&&(e[i]=e[a]),e[i]&&(t[i]=t[a]=e[i]),n.patchEventPrototype=Oe,n.patchEventTarget=Ee,n.ObjectDefineProperty=v,n.ObjectGetOwnPropertyDescriptor=_,n.ObjectCreate=b,n.ArraySlice=x,n.patchClass=fe,n.wrapWithCurrentZone=k,n.filterProperties=Fe,n.attachOriginToPatched=_e,n._redefineProperty=Object.defineProperty,n.patchCallbacks=He,n.getGlobalObjects=function(){return{globalSources:Se,zoneSymbolEventNames:xe,eventNames:r,isBrowser:ie,isMix:ae,isNode:re,TRUE_STR:E,FALSE_STR:D,ZONE_SYMBOL_PREFIX:O,ADD_EVENT_LISTENER_STR:S,REMOVE_EVENT_LISTENER_STR:C}}})}function We(e){Be(e),Ve(e),Ue(e)}var Ge=g();return We(Ge),ze(Ge),t!=e&&(n.exports=e),n.exports})})),qa,Ja=n((()=>{qa=`1.9.1`}));function Ya(e){let t=new Set([e]),n=new Set,r=e.match(Xa);if(!r)return()=>!1;let i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;let r=e.match(Xa);if(!r)return a(e);let s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var Xa,Za,Qa=n((()=>{Ja(),Xa=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,Za=Ya(qa)}));function $a(e,t,n,r=!1){let i=io[ro]=io[ro]??{version:qa};if(!r&&i[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return n.error(t.stack||t.message),!1}if(i.version!==`1.9.1`){let t=Error(`@opentelemetry/api: Registration of version v${i.version} for ${e} does not match previously registered API v${qa}`);return n.error(t.stack||t.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for ${e} v${qa}.`),!0}function eo(e){let t=io[ro]?.version;if(!(!t||!Za(t)))return io[ro]?.[e]}function to(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${qa}.`);let n=io[ro];n&&delete n[e]}var no,ro,io,ao=n((()=>{Ja(),Qa(),no=qa.split(`.`)[0],ro=Symbol.for(`opentelemetry.js.api.${no}`),io=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof globalThis==`object`?globalThis:{}}));function oo(e,t,n){let r=eo(`diag`);if(r)return r[e](t,...n)}var so,co=n((()=>{ao(),so=class{constructor(e){this._namespace=e.namespace||`DiagComponentLogger`}debug(...e){return oo(`debug`,this._namespace,e)}error(...e){return oo(`error`,this._namespace,e)}info(...e){return oo(`info`,this._namespace,e)}warn(...e){return oo(`warn`,this._namespace,e)}verbose(...e){return oo(`verbose`,this._namespace,e)}}})),lo,uo=n((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(lo||={})}));function fo(e,t){e<lo.NONE?e=lo.NONE:e>lo.ALL&&(e=lo.ALL),t||={};function n(n,r){let i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,lo.ERROR),warn:n(`warn`,lo.WARN),info:n(`info`,lo.INFO),debug:n(`debug`,lo.DEBUG),verbose:n(`verbose`,lo.VERBOSE)}}var po=n((()=>{uo()})),mo,ho,go=n((()=>{co(),po(),uo(),ao(),mo=`diag`,ho=class e{static instance(){return this._instance||=new e,this._instance}constructor(){function e(e){return function(...t){let n=eo(`diag`);if(n)return n[e](...t)}}let t=this;t.setLogger=(e,n={logLevel:lo.INFO})=>{if(e===t){let e=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(e.stack??e.message),!1}typeof n==`number`&&(n={logLevel:n});let r=eo(`diag`),i=fo(n.logLevel??lo.INFO,e);if(r&&!n.suppressOverrideMessage){let e=Error().stack??`<failed to generate stacktrace>`;r.warn(`Current logger will be overwritten from ${e}`),i.warn(`Current logger will overwrite one already registered from ${e}`)}return $a(`diag`,i,t,!0)},t.disable=()=>{to(mo,t)},t.createComponentLogger=e=>new so(e),t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}}})),_o,vo=n((()=>{_o=class e{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let e of t)n._entries.delete(e);return n}clear(){return new e}}})),yo,bo=n((()=>{yo=Symbol(`BaggageEntryMetadata`)}));function xo(e={}){return new _o(new Map(Object.entries(e)))}function So(e){return typeof e!=`string`&&(Co.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=``),{__TYPE__:yo,toString(){return e}}}var Co,wo=n((()=>{go(),vo(),bo(),Co=ho.instance()}));function To(e){return Symbol.for(e)}var Eo,Do,Oo=n((()=>{Eo=class e{constructor(t){let n=this;n._currentContext=t?new Map(t):new Map,n.getValue=e=>n._currentContext.get(e),n.setValue=(t,r)=>{let i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=t=>{let r=new e(n._currentContext);return r._currentContext.delete(t),r}}},Do=new Eo}));function ko(){return Bo}var Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo=n((()=>{Ao=class{constructor(){}createGauge(e,t){return Ho}createHistogram(e,t){return Uo}createCounter(e,t){return Vo}createUpDownCounter(e,t){return Wo}createObservableGauge(e,t){return Ko}createObservableCounter(e,t){return Go}createObservableUpDownCounter(e,t){return qo}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},jo=class{},Mo=class extends jo{add(e,t){}},No=class extends jo{add(e,t){}},Po=class extends jo{record(e,t){}},Fo=class extends jo{record(e,t){}},Io=class{addCallback(e){}removeCallback(e){}},Lo=class extends Io{},Ro=class extends Io{},zo=class extends Io{},Bo=new Ao,Vo=new Mo,Ho=new Po,Uo=new Fo,Wo=new No,Go=new Lo,Ko=new Ro,qo=new zo})),Yo,Xo=n((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(Yo||={})})),Zo,Qo,$o=n((()=>{Zo={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},Qo={set(e,t,n){e!=null&&(e[t]=n)}}})),es,ts=n((()=>{Oo(),es=class{active(){return Do}with(e,t,n,...r){return t.call(n,...r)}bind(e,t){return t}enable(){return this}disable(){return this}}})),U,ns,rs,is=n((()=>{ts(),ao(),go(),U=`context`,ns=new es,rs=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalContextManager(e){return $a(U,e,ho.instance())}active(){return this._getContextManager().active()}with(e,t,n,...r){return this._getContextManager().with(e,t,n,...r)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return eo(U)||ns}disable(){this._getContextManager().disable(),to(U,ho.instance())}}})),as,os=n((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(as||={})})),ss,cs,ls,us=n((()=>{os(),ss=`0000000000000000`,cs=`00000000000000000000000000000000`,ls={traceId:cs,spanId:ss,traceFlags:as.NONE}})),ds,fs=n((()=>{us(),ds=class{constructor(e=ls){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}}));function ps(e){return e.getValue(ys)||void 0}function ms(){return ps(rs.getInstance().active())}function hs(e,t){return e.setValue(ys,t)}function gs(e){return e.deleteValue(ys)}function _s(e,t){return hs(e,new ds(t))}function vs(e){return ps(e)?.spanContext()}var ys,bs=n((()=>{Oo(),fs(),is(),ys=To(`OpenTelemetry Context Key SPAN`)}));function xs(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(Es[e.charCodeAt(t)]|0)+(Es[e.charCodeAt(t+1)]|0)+(Es[e.charCodeAt(t+2)]|0)+(Es[e.charCodeAt(t+3)]|0);return n===t}function Ss(e){return xs(e,32)&&e!==`00000000000000000000000000000000`}function Cs(e){return xs(e,16)&&e!==`0000000000000000`}function ws(e){return Ss(e.traceId)&&Cs(e.spanId)}function Ts(e){return new ds(e)}var Es,Ds=n((()=>{us(),fs(),Es=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1])}));function Os(e){return typeof e==`object`&&!!e&&`spanId`in e&&typeof e.spanId==`string`&&`traceId`in e&&typeof e.traceId==`string`&&`traceFlags`in e&&typeof e.traceFlags==`number`}var ks,As,js=n((()=>{is(),bs(),fs(),Ds(),ks=rs.getInstance(),As=class{startSpan(e,t,n=ks.active()){if(t?.root)return new ds;let r=n&&vs(n);return Os(r)&&ws(r)?new ds(r):new ds}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??ks.active(),c=this.startSpan(e,i,s),l=hs(s,c);return ks.with(l,o,void 0,c)}}})),Ms,Ns,Ps=n((()=>{js(),Ms=new As,Ns=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Ms}}})),Fs,Is=n((()=>{js(),Fs=class{getTracer(e,t,n){return new As}}})),Ls,Rs,zs=n((()=>{Ps(),Is(),Ls=new Fs,Rs=class{getTracer(e,t,n){return this.getDelegateTracer(e,t,n)??new Ns(this,e,t,n)}getDelegate(){return this._delegate??Ls}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){return this._delegate?.getTracer(e,t,n)}}})),Bs,Vs=n((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(Bs||={})})),Hs,Us=n((()=>{(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(Hs||={})})),Ws,Gs=n((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(Ws||={})})),Ks,qs=n((()=>{is(),Ks=rs.getInstance()})),W,Js=n((()=>{go(),W=ho.instance()})),Ys,Xs=n((()=>{Ys=class{inject(e,t){}extract(e,t){return e}fields(){return[]}}}));function Zs(e){return e.getValue(tc)||void 0}function Qs(){return Zs(rs.getInstance().active())}function $s(e,t){return e.setValue(tc,t)}function ec(e){return e.deleteValue(tc)}var tc,nc=n((()=>{is(),Oo(),tc=To(`OpenTelemetry Baggage Key`)})),rc,ic,ac,oc=n((()=>{ao(),Xs(),$o(),nc(),wo(),go(),rc=`propagation`,ic=new Ys,ac=class e{constructor(){this.createBaggage=xo,this.getBaggage=Zs,this.getActiveBaggage=Qs,this.setBaggage=$s,this.deleteBaggage=ec}static getInstance(){return this._instance||=new e,this._instance}setGlobalPropagator(e){return $a(rc,e,ho.instance())}inject(e,t,n=Qo){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=Zo){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){to(rc,ho.instance())}_getGlobalPropagator(){return eo(rc)||ic}}})),sc,cc=n((()=>{oc(),sc=ac.getInstance()})),lc,uc,dc=n((()=>{ao(),zs(),Ds(),bs(),go(),lc=`trace`,uc=class e{constructor(){this._proxyTracerProvider=new Rs,this.wrapSpanContext=Ts,this.isSpanContextValid=ws,this.deleteSpan=gs,this.getSpan=ps,this.getActiveSpan=ms,this.getSpanContext=vs,this.setSpan=hs,this.setSpanContext=_s}static getInstance(){return this._instance||=new e,this._instance}setGlobalTracerProvider(e){let t=$a(lc,this._proxyTracerProvider,ho.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return eo(lc)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){to(lc,ho.instance()),this._proxyTracerProvider=new Rs}}})),fc,pc=n((()=>{dc(),fc=uc.getInstance()})),G=n((()=>{wo(),Oo(),uo(),Jo(),Xo(),$o(),Ps(),zs(),Vs(),Us(),Gs(),os(),Ds(),us(),qs(),Js(),cc(),pc()}));function mc(e){return typeof e==`object`&&!!e&&`addEventListener`in e&&typeof e.addEventListener==`function`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`}var hc=n((()=>{})),gc,_c,vc=n((()=>{G(),hc(),gc=`OT_ZONE_CONTEXT`,_c=class{_enabled=!1;_bindFunction(e,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}_bindListener(e,t){let n=t;return n.__ot_listeners===void 0?(n.__ot_listeners={},typeof n.addEventListener==`function`&&(n.addEventListener=this._patchAddEventListener(n,n.addEventListener,e)),typeof n.removeEventListener==`function`&&(n.removeEventListener=this._patchRemoveEventListener(n,n.removeEventListener)),t):t}_createZone(e,t){return Zone.current.fork({name:e,properties:{[gc]:t},onCancelTask(e,t,n,r){return r.state===`notScheduled`||r.state===`running`?r:e.cancelTask(n,r)}})}_patchAddEventListener(e,t,n){let r=this;return function(i,a,o){e.__ot_listeners===void 0&&(e.__ot_listeners={});let s=e.__ot_listeners[i];s===void 0&&(s=new WeakMap,e.__ot_listeners[i]=s);let c=r.bind(n,a);return s.set(a,c),t.call(this,i,c,o)}}_patchRemoveEventListener(e,t){return function(n,r){if(e.__ot_listeners===void 0||e.__ot_listeners[n]===void 0)return t.call(this,n,r);let i=e.__ot_listeners[n],a=i.get(r);return i.delete(r),t.call(this,n,a||r)}}active(){return!this._enabled||!Zone.current?Do:Zone.current.get(gc)||Do}bind(e,t){return typeof t==`function`?this._bindFunction(e,t):(mc(t)&&this._bindListener(e,t),t)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(e,t,n,...r){let i=`otel:with`;return t.name&&(i+=`:${t.name}`),this._createZone(i,e).run(t,n,r)}}})),yc=n((()=>{vc()}));function bc(e){return(dl.__Zone_symbol_prefix||`__zone_symbol__`)+e}function xc(){let e=dl.performance;function t(t){e&&e.mark&&e.mark(t)}function n(t,n){e&&e.measure&&e.measure(t,n)}t(`Zone`);let r=class e{constructor(e,t){K(this,`_parent`),K(this,`_name`),K(this,`_properties`),K(this,`_zoneDelegate`),this._parent=e,this._name=t?t.name||`unnamed`:`<root>`,this._properties=t&&t.properties||{},this._zoneDelegate=new o(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(dl.Promise!==O.ZoneAwarePromise)throw Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=e.current;for(;t.parent;)t=t.parent;return t}static get current(){return A.zone}static get currentTask(){return j}static __load_patch(r,i,a=!1){if(O.hasOwnProperty(r)){let e=dl[bc(`forceDuplicateZoneCheck`)]===!0;if(!a&&e)throw Error(`Already loaded patch: `+r)}else if(!dl[`__Zone_disable_`+r]){let a=`Zone:`+r;t(a),O[r]=i(dl,e,k),n(a,a)}}get parent(){return this._parent}get name(){return this._name}get(e){let t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw Error(`ZoneSpec required!`);return this._zoneDelegate.fork(this,e)}wrap(e,t){if(typeof e!=`function`)throw Error(`Expecting function got: `+e);let n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}}run(e,t,n,r){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{A=A.parent}}runGuarded(e,t=null,n,r){A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{A=A.parent}}runTask(e,t,n){if(e.zone!=this)throw Error(`A task can only be run in the zone of creation! (Creation: `+(e.zone||v).name+`; Execution: `+this.name+`)`);let r=e,{type:i,data:{isPeriodic:a=!1,isRefreshable:o=!1}={}}=e;if(e.state===y&&(i===D||i===E))return;let s=e.state!=S;s&&r._transitionTo(S,x);let c=j;j=r,A={parent:A,zone:this};try{i==E&&e.data&&!a&&!o&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{let t=e.state;if(t!==y&&t!==w)if(i==D||a||o&&t===b)s&&r._transitionTo(x,S,b);else{let e=r._zoneDelegates;this._updateTaskCount(r,-1),s&&r._transitionTo(y,S,y),o&&(r._zoneDelegates=e)}A=A.parent,j=c}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(b,y);let t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(w,b,y),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(x,b),e}scheduleMicroTask(e,t,n,r){return this.scheduleTask(new s(T,e,t,n,r,void 0))}scheduleMacroTask(e,t,n,r,i){return this.scheduleTask(new s(E,e,t,n,r,i))}scheduleEventTask(e,t,n,r,i){return this.scheduleTask(new s(D,e,t,n,r,i))}cancelTask(e){if(e.zone!=this)throw Error(`A task can only be cancelled in the zone of creation! (Creation: `+(e.zone||v).name+`; Execution: `+this.name+`)`);if(!(e.state!==x&&e.state!==S)){e._transitionTo(C,x,S);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(w,C),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,C),e.runCount=-1,e}}_updateTaskCount(e,t){let n=e._zoneDelegates;t==-1&&(e._zoneDelegates=null);for(let r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)}};K(r,`__symbol__`,bc);let i=r,a={name:``,onHasTask:(e,t,n,r)=>e.hasTask(n,r),onScheduleTask:(e,t,n,r)=>e.scheduleTask(n,r),onInvokeTask:(e,t,n,r,i,a)=>e.invokeTask(n,r,i,a),onCancelTask:(e,t,n,r)=>e.cancelTask(n,r)};class o{constructor(e,t,n){K(this,`_zone`),K(this,`_taskCounts`,{microTask:0,macroTask:0,eventTask:0}),K(this,`_forkDlgt`),K(this,`_forkZS`),K(this,`_forkCurrZone`),K(this,`_interceptDlgt`),K(this,`_interceptZS`),K(this,`_interceptCurrZone`),K(this,`_invokeDlgt`),K(this,`_invokeZS`),K(this,`_invokeCurrZone`),K(this,`_handleErrorDlgt`),K(this,`_handleErrorZS`),K(this,`_handleErrorCurrZone`),K(this,`_scheduleTaskDlgt`),K(this,`_scheduleTaskZS`),K(this,`_scheduleTaskCurrZone`),K(this,`_invokeTaskDlgt`),K(this,`_invokeTaskZS`),K(this,`_invokeTaskCurrZone`),K(this,`_cancelTaskDlgt`),K(this,`_cancelTaskZS`),K(this,`_cancelTaskCurrZone`),K(this,`_hasTaskDlgt`),K(this,`_hasTaskDlgtOwner`),K(this,`_hasTaskZS`),K(this,`_hasTaskCurrZone`),this._zone=e,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this._zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this._zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this._zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this._zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this._zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this._zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this._zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let r=n&&n.onHasTask,i=t&&t._hasTaskZS;(r||i)&&(this._hasTaskZS=r?n:a,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,n.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this._zone),n.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this._zone),n.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,i):t.apply(n,r)}handleError(e,t){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t):!0}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||=t;else if(t.scheduleFn)t.scheduleFn(t);else if(t.type==T)g(t);else throw Error(`Task is missing scheduleFn.`);return n}invokeTask(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error(`Task is not cancelable`);n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(t){this.handleError(e,t)}}_updateTaskCount(e,t){let n=this._taskCounts,r=n[e],i=n[e]=r+t;if(i<0)throw Error(`More tasks executed then were scheduled.`);if(r==0||i==0){let t={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e};this.hasTask(this._zone,t)}}}class s{constructor(e,t,n,r,i,a){if(K(this,`type`),K(this,`source`),K(this,`invoke`),K(this,`callback`),K(this,`data`),K(this,`scheduleFn`),K(this,`cancelFn`),K(this,`_zone`,null),K(this,`runCount`,0),K(this,`_zoneDelegates`,null),K(this,`_state`,`notScheduled`),this.type=e,this.source=t,this.data=r,this.scheduleFn=i,this.cancelFn=a,!n)throw Error(`callback is not defined`);this.callback=n;let o=this;e===D&&r&&r.useG?this.invoke=s.invokeTask:this.invoke=function(){return s.invokeTask.call(dl,o,this,arguments)}}static invokeTask(e,t,n){e||=this,ee++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{ee===1&&!dl[d]&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,b)}_transitionTo(e,t,n){if(this._state===t||this._state===n)this._state=e,e==y&&(this._zoneDelegates=null);else throw Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?` or '`+n+`'`:``}, was '${this._state}'.`)}toString(){return this.data&&this.data.handleId!==void 0?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let c=bc(`setTimeout`),l=bc(`Promise`),u=bc(`then`),d=bc(`enable_native_microtask_draining`),f=[],p=!1,m;function h(e){!m&&dl[l]&&(m=dl[l].resolve(0)),m?(m[u]??m.then).call(m,e):dl[c](e,0)}function g(e){let t=dl[d],n=t&&f.length===0&&!p,r=!t&&ee===0&&f.length===0;(n||r)&&h(_),e&&f.push(e)}function _(){if(!p){for(p=!0;f.length;){let e=f;f=[];for(let t of e)try{t.zone.runTask(t,null,null)}catch(e){k.onUnhandledError(e)}}dl[d]?(p=!1,k.microtaskDrainDone()):(k.microtaskDrainDone(),p=!1)}}let v={name:`NO ZONE`},y=`notScheduled`,b=`scheduling`,x=`scheduled`,S=`running`,C=`canceling`,w=`unknown`,T=`microTask`,E=`macroTask`,D=`eventTask`,O={},k={symbol:bc,currentZoneFrame:()=>A,onUnhandledError:M,microtaskDrainDone:M,scheduleMicroTask:g,showUncaughtError:()=>!i[bc(`ignoreConsoleErrorUncaughtError`)],patchEventTarget:()=>[],patchOnProperties:M,patchMethod:()=>M,bindArguments:()=>[],patchThen:()=>M,patchMacroTask:()=>M,patchEventPrototype:()=>M,getGlobalObjects:()=>void 0,ObjectDefineProperty:()=>M,ObjectGetOwnPropertyDescriptor:()=>void 0,ObjectCreate:()=>void 0,ArraySlice:()=>[],patchClass:()=>M,wrapWithCurrentZone:()=>M,filterProperties:()=>[],attachOriginToPatched:()=>M,_redefineProperty:()=>M,patchCallbacks:()=>M,nativeScheduleMicroTask:h},A={parent:null,zone:new i(null,null)},j=null,ee=0;function M(){}return n(`Zone`,`Zone`),i}function Sc(){let e=globalThis,t=e[bc(`forceDuplicateZoneCheck`)]===!0;if(e.Zone&&(t||typeof e.Zone.__symbol__!=`function`))throw Error(`Zone already loaded.`);return e.Zone??=xc(),e.Zone}function Cc(e,t){return Zone.current.wrap(e,t)}function wc(e,t,n,r,i){return Zone.current.scheduleMacroTask(e,t,n,r,i)}function Tc(e,t){for(let n=e.length-1;n>=0;n--)typeof e[n]==`function`&&(e[n]=Cc(e[n],t+`_`+n));return e}function Ec(e,t){let n=e.constructor.name;for(let r=0;r<t.length;r++){let i=t[r],a=e[i];if(a){if(!Dc(fl(e,i)))continue;e[i]=(e=>{let t=function(){return e.apply(this,Tc(arguments,n+`.`+i))};return Pc(t,e),t})(a)}}}function Dc(e){return e?e.writable===!1?!1:!(typeof e.get==`function`&&e.set===void 0):!0}function Oc(e,t,n){let r=fl(e,t);if(!r&&n&&fl(n,t)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let i=q(`on`+t+`patched`);if(e.hasOwnProperty(i)&&e[i])return;delete r.writable,delete r.value;let a=r.get,o=r.set,s=t.slice(2),c=Ml[s];c||=Ml[s]=q(`ON_PROPERTY`+s),r.set=function(t){let n=this;!n&&e===El&&(n=El),n&&(typeof n[c]==`function`&&n.removeEventListener(s,Pl),o?.call(n,null),n[c]=t,typeof t==`function`&&n.addEventListener(s,Pl,!1))},r.get=function(){let n=this;if(!n&&e===El&&(n=El),!n)return null;let i=n[c];if(i)return i;if(a){let e=a.call(this);if(e)return r.set.call(this,e),typeof n[Dl]==`function`&&n.removeAttribute(t),e}return null},pl(e,t,r),e[i]=!0}function kc(e,t,n){if(t)for(let r=0;r<t.length;r++)Oc(e,`on`+t[r],n);else{let t=[];for(let n in e)n.slice(0,2)==`on`&&t.push(n);for(let r=0;r<t.length;r++)Oc(e,t[r],n)}}function Ac(e){let t=El[e];if(!t)return;El[q(e)]=t,El[e]=function(){let n=Tc(arguments,e);switch(n.length){case 0:this[Fl]=new t;break;case 1:this[Fl]=new t(n[0]);break;case 2:this[Fl]=new t(n[0],n[1]);break;case 3:this[Fl]=new t(n[0],n[1],n[2]);break;case 4:this[Fl]=new t(n[0],n[1],n[2],n[3]);break;default:throw Error(`Arg list too long.`)}},Pc(El[e],t);let n=new t(function(){}),r;for(r in n)e===`XMLHttpRequest`&&r===`responseBlob`||(function(t){typeof n[t]==`function`?El[e].prototype[t]=function(){return this[Fl][t].apply(this[Fl],arguments)}:pl(El[e].prototype,t,{set:function(n){typeof n==`function`?(this[Fl][t]=Cc(n,e+`.`+t),Pc(this[Fl][t],n)):this[Fl][t]=n},get:function(){return this[Fl][t]}})})(r);for(r in t)r!==`prototype`&&t.hasOwnProperty(r)&&(El[e][r]=t[r])}function jc(e,t){typeof Object.getOwnPropertySymbols==`function`&&Object.getOwnPropertySymbols(e).forEach(n=>{let r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){r&&(!r.writable||typeof r.set!=`function`)||(e[n]=t)},enumerable:r?r.enumerable:!0,configurable:r?r.configurable:!0})})}function Mc(e,t,n){let r=e;for(;r&&!r.hasOwnProperty(t);)r=ml(r);!r&&e[t]&&(r=e);let i=q(t),a=null;if(r&&(!(a=r[i])||!r.hasOwnProperty(i))&&(a=r[i]=r[t],Dc(r&&fl(r,t)))){let e=n(a,i,t);r[t]=function(){return e(this,arguments)},Pc(r[t],a),Il&&jc(a,r[t])}return a}function Nc(e,t,n){let r=null;function i(e){let t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=Mc(e,t,e=>function(t,r){let a=n(t,r);return a.cbIdx>=0&&typeof r[a.cbIdx]==`function`?wc(a.name,r[a.cbIdx],a,i):e.apply(t,r)})}function Pc(e,t){e[q(`OriginalDelegate`)]=t}function Fc(e){return typeof e==`function`}function Ic(e){return typeof e==`number`}function Lc(e,t){let n=(t?t(e):e)+Sl,r=(t?t(e):e)+xl,i=Cl+n,a=Cl+r;Rl[e]={},Rl[e][Sl]=i,Rl[e][xl]=a}function Rc(e,t,n,r){let i=r&&r.add||_l,a=r&&r.rm||vl,o=r&&r.listeners||`eventListeners`,s=r&&r.rmAll||`removeAllListeners`,c=q(i),l=`.`+i+`:`,u=function(e,t,n){if(e.isRemoved)return;let r=e.callback;typeof r==`object`&&r.handleEvent&&(e.callback=e=>r.handleEvent(e),e.originalDelegate=r);let i;try{e.invoke(e,t,[n])}catch(e){i=e}let o=e.options;if(o&&typeof o==`object`&&o.once){let r=e.originalDelegate?e.originalDelegate:e.callback;t[a].call(t,n.type,r,o)}return i};function d(n,r,i){if(r||=e.event,!r)return;let a=n||r.target||e,o=a[Rl[r.type][i?xl:Sl]];if(o){let e=[];if(o.length===1){let t=u(o[0],a,r);t&&e.push(t)}else{let t=o.slice();for(let n=0;n<t.length&&!(r&&r[Vl]===!0);n++){let i=u(t[n],a,r);i&&e.push(i)}}if(e.length===1)throw e[0];for(let n=0;n<e.length;n++){let r=e[n];t.nativeScheduleMicroTask(()=>{throw r})}}}let f=function(e){return d(this,e,!1)},p=function(e){return d(this,e,!0)};function m(t,n){if(!t)return!1;let r=!0;n&&n.useG!==void 0&&(r=n.useG);let u=n&&n.vh,d=!0;n&&n.chkDup!==void 0&&(d=n.chkDup);let m=!1;n&&n.rt!==void 0&&(m=n.rt);let h=t;for(;h&&!h.hasOwnProperty(i);)h=ml(h);if(!h&&t[i]&&(h=t),!h||h[c])return!1;let g=n&&n.eventNameToString,_={},v=h[c]=h[i],y=h[q(a)]=h[a],b=h[q(o)]=h[o],x=h[q(s)]=h[s],S;n&&n.prepend&&(S=h[q(n.prepend)]=h[n.prepend]);function C(e,t){return t?typeof e==`boolean`?{capture:e,passive:!0}:e?typeof e==`object`&&e.passive!==!1?ul(ll({},e),{passive:!0}):e:{passive:!0}:e}let w=function(e){if(!_.isExisting)return v.call(_.target,_.eventName,_.capture?p:f,_.options)},T=function(e){if(!e.isRemoved){let t=Rl[e.eventName],n;t&&(n=t[e.capture?xl:Sl]);let r=n&&e.target[n];if(r){for(let t=0;t<r.length;t++)if(r[t]===e){r.splice(t,1),e.isRemoved=!0,e.removeAbortListener&&=(e.removeAbortListener(),null),r.length===0&&(e.allRemoved=!0,e.target[n]=null);break}}}if(e.allRemoved)return y.call(e.target,e.eventName,e.capture?p:f,e.options)},E=function(e){return v.call(_.target,_.eventName,e.invoke,_.options)},D=function(e){return S.call(_.target,_.eventName,e.invoke,_.options)},O=function(e){return y.call(e.target,e.eventName,e.invoke,e.options)},k=r?w:E,A=r?T:O,j=n?.diff||function(e,t){let n=typeof t;return n===`function`&&e.callback===t||n===`object`&&e.originalDelegate===t},ee=Zone[q(`UNPATCHED_EVENTS`)],M=e[q(`PASSIVE_EVENTS`)];function N(e){if(typeof e==`object`&&e){let t=ll({},e);return e.signal&&(t.signal=e.signal),t}return e}let P=function(t,i,a,o,s=!1,c=!1){return function(){let l=this||e,f=arguments[0];n&&n.transferEventName&&(f=n.transferEventName(f));let p=arguments[1];if(!p||kl&&f===`uncaughtException`)return t.apply(this,arguments);let m=!1;if(typeof p!=`function`){if(!p.handleEvent)return t.apply(this,arguments);m=!0}if(u&&!u(t,p,l,arguments))return;let h=!!M&&M.indexOf(f)!==-1,v=N(C(arguments[2],h)),y=v?.signal;if(y?.aborted)return;if(ee){for(let e=0;e<ee.length;e++)if(f===ee[e])return h?t.call(l,f,p,v):t.apply(this,arguments)}let b=v?typeof v==`boolean`?!0:v.capture:!1,x=v&&typeof v==`object`?v.once:!1,S=Zone.current,w=Rl[f];w||=(Lc(f,g),Rl[f]);let T=w[b?xl:Sl],E=l[T],D=!1;if(E){if(D=!0,d){for(let e=0;e<E.length;e++)if(j(E[e],p))return}}else E=l[T]=[];let O,k=l.constructor.name,A=zl[k];A&&(O=A[f]),O||=k+i+(g?g(f):f),_.options=v,x&&(_.options.once=!1),_.target=l,_.capture=b,_.eventName=f,_.isExisting=D;let P=r?Ll:void 0;P&&(P.taskData=_),y&&(_.options.signal=void 0);let F=S.scheduleEventTask(O,p,P,a,o);if(y){_.options.signal=y;let e=()=>F.zone.cancelTask(F);t.call(y,`abort`,e,{once:!0}),F.removeAbortListener=()=>y.removeEventListener(`abort`,e)}if(_.target=null,P&&(P.taskData=null),x&&(_.options.once=!0),typeof F.options!=`boolean`&&(F.options=v),F.target=l,F.capture=b,F.eventName=f,m&&(F.originalDelegate=p),c?E.unshift(F):E.push(F),s)return l}};return h[i]=P(v,l,k,A,m),S&&(h.prependListener=P(S,`.prependListener:`,D,A,m,!0)),h[a]=function(){let t=this||e,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));let i=arguments[2],a=i?typeof i==`boolean`?!0:i.capture:!1,o=arguments[1];if(!o)return y.apply(this,arguments);if(u&&!u(y,o,t,arguments))return;let s=Rl[r],c;s&&(c=s[a?xl:Sl]);let l=c&&t[c];if(l)for(let e=0;e<l.length;e++){let n=l[e];if(j(n,o)){if(l.splice(e,1),n.isRemoved=!0,l.length===0&&(n.allRemoved=!0,t[c]=null,!a&&typeof r==`string`)){let e=Cl+`ON_PROPERTY`+r;t[e]=null}return n.zone.cancelTask(n),m?t:void 0}}return y.apply(this,arguments)},h[o]=function(){let t=this||e,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));let i=[],a=zc(t,g?g(r):r);for(let e=0;e<a.length;e++){let t=a[e],n=t.originalDelegate?t.originalDelegate:t.callback;i.push(n)}return i},h[s]=function(){let t=this||e,r=arguments[0];if(r){n&&n.transferEventName&&(r=n.transferEventName(r));let e=Rl[r];if(e){let n=e[Sl],i=e[xl],o=t[n],s=t[i];if(o){let e=o.slice();for(let t=0;t<e.length;t++){let n=e[t],i=n.originalDelegate?n.originalDelegate:n.callback;this[a].call(this,r,i,n.options)}}if(s){let e=s.slice();for(let t=0;t<e.length;t++){let n=e[t],i=n.originalDelegate?n.originalDelegate:n.callback;this[a].call(this,r,i,n.options)}}}}else{let e=Object.keys(t);for(let t=0;t<e.length;t++){let n=e[t],r=Bl.exec(n),i=r&&r[1];i&&i!==`removeListener`&&this[s].call(this,i)}this[s].call(this,`removeListener`)}if(m)return this},Pc(h[i],v),Pc(h[a],y),x&&Pc(h[s],x),b&&Pc(h[o],b),!0}let h=[];for(let e=0;e<n.length;e++)h[e]=m(n[e],r);return h}function zc(e,t){if(!t){let n=[];for(let r in e){let i=Bl.exec(r),a=i&&i[1];if(a&&(!t||a===t)){let t=e[r];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=Rl[t];n||=(Lc(t),Rl[t]);let r=e[n[Sl]],i=e[n[xl]];return r?i?r.concat(i):r.slice():i?i.slice():[]}function Bc(e,t){let n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,`stopImmediatePropagation`,e=>function(t,n){t[Vl]=!0,e&&e.apply(t,n)})}function Vc(e,t){t.patchMethod(e,`queueMicrotask`,e=>function(e,t){Zone.current.scheduleMicroTask(`queueMicrotask`,t[0])})}function Hc(e,t,n,r){let i=null,a=null;t+=r,n+=r;let o={};function s(t){let n=t.data;n.args[0]=function(){return t.invoke.apply(this,arguments)};let r=i.apply(e,n.args);return Ic(r)?n.handleId=r:(n.handle=r,n.isRefreshable=Fc(r.refresh)),t}function c(t){let{handle:n,handleId:r}=t.data;return a.call(e,n??r)}i=Mc(e,t,n=>function(i,a){if(Fc(a[0])){let e={isRefreshable:!1,isPeriodic:r===`Interval`,delay:r===`Timeout`||r===`Interval`?a[1]||0:void 0,args:a},n=a[0];a[0]=function(){try{return n.apply(this,arguments)}finally{let{handle:t,handleId:n,isPeriodic:r,isRefreshable:i}=e;!r&&!i&&(n?delete o[n]:t&&(t[Hl]=null))}};let i=wc(t,a[0],e,s,c);if(!i)return i;let{handleId:l,handle:u,isRefreshable:d,isPeriodic:f}=i.data;if(l)o[l]=i;else if(u&&(u[Hl]=i,d&&!f)){let e=u.refresh;u.refresh=function(){let{zone:t,state:n}=i;return n===`notScheduled`?(i._state=`scheduled`,t._updateTaskCount(i,1)):n===`running`&&(i._state=`scheduling`),e.call(this)}}return u??l??i}else return n.apply(e,a)}),a=Mc(e,n,t=>function(n,r){let i=r[0],a;Ic(i)?(a=o[i],delete o[i]):(a=i?.[Hl],a?i[Hl]=null:a=i),a?.type?a.cancelFn&&a.zone.cancelTask(a):t.apply(e,r)})}function Uc(e,t){let{isBrowser:n,isMix:r}=t.getGlobalObjects();!n&&!r||!e.customElements||!(`customElements`in e)||t.patchCallbacks(t,e.customElements,`customElements`,`define`,[`connectedCallback`,`disconnectedCallback`,`adoptedCallback`,`attributeChangedCallback`,`formAssociatedCallback`,`formDisabledCallback`,`formResetCallback`,`formStateRestoreCallback`])}function Wc(e,t){if(Zone[t.symbol(`patchEventTarget`)])return;let{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:a,ZONE_SYMBOL_PREFIX:o}=t.getGlobalObjects();for(let e=0;e<n.length;e++){let t=n[e],s=t+a,c=t+i,l=o+s,u=o+c;r[t]={},r[t][a]=l,r[t][i]=u}let s=e.EventTarget;if(!(!s||!s.prototype))return t.patchEventTarget(e,t,[s&&s.prototype]),!0}function Gc(e,t){t.patchEventPrototype(e,t)}function Kc(e,t,n){if(!n||n.length===0)return t;let r=n.filter(t=>t.target===e);if(r.length===0)return t;let i=r[0].ignoreProperties;return t.filter(e=>i.indexOf(e)===-1)}function qc(e,t,n,r){e&&kc(e,Kc(e,t,n),r)}function Jc(e){return Object.getOwnPropertyNames(e).filter(e=>e.startsWith(`on`)&&e.length>2).map(e=>e.substring(2))}function Yc(e,t){if(kl&&!jl||Zone[e.symbol(`patchEvents`)])return;let n=t.__Zone_ignore_on_properties,r=[];if(Al){let e=window;r=r.concat([`Document`,`SVGElement`,`Element`,`HTMLElement`,`HTMLBodyElement`,`HTMLMediaElement`,`HTMLFrameSetElement`,`HTMLFrameElement`,`HTMLIFrameElement`,`HTMLMarqueeElement`,`Worker`]),qc(e,Jc(e),n,ml(e))}r=r.concat([`XMLHttpRequest`,`XMLHttpRequestEventTarget`,`IDBIndex`,`IDBRequest`,`IDBOpenDBRequest`,`IDBDatabase`,`IDBTransaction`,`IDBCursor`,`WebSocket`]);for(let e=0;e<r.length;e++){let i=t[r[e]];i!=null&&i.prototype&&qc(i.prototype,Jc(i.prototype),n)}}function Xc(e){e.__load_patch(`timers`,e=>{let t=`clear`;Hc(e,`set`,t,`Timeout`),Hc(e,`set`,t,`Interval`),Hc(e,`set`,t,`Immediate`)}),e.__load_patch(`requestAnimationFrame`,e=>{Hc(e,`request`,`cancel`,`AnimationFrame`),Hc(e,`mozRequest`,`mozCancel`,`AnimationFrame`),Hc(e,`webkitRequest`,`webkitCancel`,`AnimationFrame`)}),e.__load_patch(`blocking`,(e,t)=>{let n=[`alert`,`prompt`,`confirm`];for(let r=0;r<n.length;r++){let i=n[r];Mc(e,i,(n,r,i)=>function(r,a){return t.current.run(n,e,a,i)})}}),e.__load_patch(`EventTarget`,(e,t,n)=>{Gc(e,n),Wc(e,n);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,n,[r.prototype])}),e.__load_patch(`MutationObserver`,(e,t,n)=>{Ac(`MutationObserver`),Ac(`WebKitMutationObserver`)}),e.__load_patch(`IntersectionObserver`,(e,t,n)=>{Ac(`IntersectionObserver`)}),e.__load_patch(`FileReader`,(e,t,n)=>{Ac(`FileReader`)}),e.__load_patch(`on_property`,(e,t,n)=>{Yc(n,e)}),e.__load_patch(`customElements`,(e,t,n)=>{Uc(e,n)}),e.__load_patch(`XHR`,(e,t)=>{c(e);let n=q(`xhrTask`),r=q(`xhrSync`),i=q(`xhrListener`),a=q(`xhrScheduled`),o=q(`xhrURL`),s=q(`xhrErrorBeforeScheduled`);function c(e){let c=e.XMLHttpRequest;if(!c)return;let l=c.prototype;function u(e){return e[n]}let d=l[yl],f=l[bl];if(!d){let t=e.XMLHttpRequestEventTarget;if(t){let e=t.prototype;d=e[yl],f=e[bl]}}let p=`readystatechange`,m=`scheduled`;function h(e){let r=e.data,o=r.target;o[a]=!1,o[s]=!1;let c=o[i];d||(d=o[yl],f=o[bl]),c&&f.call(o,p,c);let l=o[i]=()=>{if(o.readyState===o.DONE)if(!r.aborted&&o[a]&&e.state===m){let n=o[t.__symbol__(`loadfalse`)];if(o.status!==0&&n&&n.length>0){let i=e.invoke;e.invoke=function(){let n=o[t.__symbol__(`loadfalse`)];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);!r.aborted&&e.state===m&&i.call(e)},n.push(e)}else e.invoke()}else !r.aborted&&o[a]===!1&&(o[s]=!0)};return d.call(o,p,l),o[n]||(o[n]=e),x.apply(o,r.args),o[a]=!0,e}function g(){}function _(e){let t=e.data;return t.aborted=!0,S.apply(t.target,t.args)}let v=Mc(l,`open`,()=>function(e,t){return e[r]=t[2]==0,e[o]=t[1],v.apply(e,t)}),y=q(`fetchTaskAborting`),b=q(`fetchTaskScheduling`),x=Mc(l,`send`,()=>function(e,n){if(t.current[b]===!0||e[r])return x.apply(e,n);{let t={target:e,url:e[o],isPeriodic:!1,args:n,aborted:!1},r=wc(`XMLHttpRequest.send`,g,t,h,_);e&&e[s]===!0&&!t.aborted&&r.state===m&&r.invoke()}}),S=Mc(l,`abort`,()=>function(e,n){let r=u(e);if(r&&typeof r.type==`string`){if(r.cancelFn==null||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(t.current[y]===!0)return S.apply(e,n)})}}),e.__load_patch(`geolocation`,e=>{e.navigator&&e.navigator.geolocation&&Ec(e.navigator.geolocation,[`getCurrentPosition`,`watchPosition`])}),e.__load_patch(`PromiseRejectionEvent`,(e,t)=>{function n(t){return function(n){zc(e,t).forEach(r=>{let i=e.PromiseRejectionEvent;if(i){let e=new i(t,{promise:n.promise,reason:n.rejection});r.invoke(e)}})}}e.PromiseRejectionEvent&&(t[q(`unhandledPromiseRejectionHandler`)]=n(`unhandledrejection`),t[q(`rejectionHandledHandler`)]=n(`rejectionhandled`))}),e.__load_patch(`queueMicrotask`,(e,t,n)=>{Vc(e,n)})}function Zc(e){e.__load_patch(`ZoneAwarePromise`,(e,t,n)=>{let r=Object.getOwnPropertyDescriptor,i=Object.defineProperty;function a(e){return e&&e.toString===Object.prototype.toString?(e.constructor&&e.constructor.name||``)+`: `+JSON.stringify(e):e?e.toString():Object.prototype.toString.call(e)}let o=n.symbol,s=[],c=e[o(`DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION`)]!==!1,l=o(`Promise`),u=o(`then`);n.onUnhandledError=e=>{if(n.showUncaughtError()){let t=e&&e.rejection;t?console.error(`Unhandled Promise rejection:`,t instanceof Error?t.message:t,`; Zone:`,e.zone.name,`; Task:`,e.task&&e.task.source,`; Value:`,t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;s.length;){let e=s.shift();try{e.zone.runGuarded(()=>{throw e.throwOriginal?e.rejection:e})}catch(e){f(e)}}};let d=o(`unhandledPromiseRejectionHandler`);function f(e){n.onUnhandledError(e);try{let n=t[d];typeof n==`function`&&n.call(this,e)}catch{}}function p(e){return e&&typeof e.then==`function`}function m(e){return e}function h(e){return A.reject(e)}let g=o(`state`),_=o(`value`),v=o(`finally`),y=o(`parentPromiseValue`),b=o(`parentPromiseState`);function x(e,t){return n=>{try{w(e,t,n)}catch(t){w(e,!1,t)}}}let S=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},C=o(`currentTaskTrace`);function w(e,r,o){let l=S();if(e===o)throw TypeError(`Promise resolved with itself`);if(e[g]===null){let u=null;try{(typeof o==`object`||typeof o==`function`)&&(u=o&&o.then)}catch(t){return l(()=>{w(e,!1,t)})(),e}if(r!==!1&&o instanceof A&&o.hasOwnProperty(g)&&o.hasOwnProperty(_)&&o[g]!==null)E(o),w(e,o[g],o[_]);else if(r!==!1&&typeof u==`function`)try{u.call(o,l(x(e,r)),l(x(e,!1)))}catch(t){l(()=>{w(e,!1,t)})()}else{e[g]=r;let l=e[_];if(e[_]=o,e[v]===v&&r===!0&&(e[g]=e[b],e[_]=e[y]),r===!1&&o instanceof Error){let e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&i(o,C,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<l.length;)D(e,l[t++],l[t++],l[t++],l[t++]);if(l.length==0&&r==0){e[g]=0;let r=o;try{throw Error(`Uncaught (in promise): `+a(o)+(o&&o.stack?`
|
|
13
|
-
`+o.stack:``))}catch(e){r=e}c&&(r.throwOriginal=!0),r.rejection=o,r.promise=e,r.zone=t.current,r.task=t.currentTask,s.push(r),n.scheduleMicroTask()}}}return e}let T=o(`rejectionHandledHandler`);function E(e){if(e[g]===0){try{let n=t[T];n&&typeof n==`function`&&n.call(this,{rejection:e[_],promise:e})}catch{}e[g]=!1;for(let t=0;t<s.length;t++)e===s[t].promise&&s.splice(t,1)}}function D(e,t,n,r,i){E(e);let a=e[g],o=a?typeof r==`function`?r:m:typeof i==`function`?i:h;t.scheduleMicroTask(`Promise.then`,()=>{try{let r=e[_],i=!!n&&v===n[v];i&&(n[y]=r,n[b]=a),w(n,!0,t.run(o,void 0,i&&o!==h&&o!==m?[]:[r]))}catch(e){w(n,!1,e)}},n)}let O=function(){},k=e.AggregateError;class A{static toString(){return`function ZoneAwarePromise() { [native code] }`}static resolve(e){return e instanceof A?e:w(new this(null),!0,e)}static reject(e){return w(new this(null),!1,e)}static withResolvers(){let e={};return e.promise=new A((t,n)=>{e.resolve=t,e.reject=n}),e}static any(e){if(!e||typeof e[Symbol.iterator]!=`function`)return Promise.reject(new k([],`All promises were rejected`));let t=[],n=0;try{for(let r of e)n++,t.push(A.resolve(r))}catch{return Promise.reject(new k([],`All promises were rejected`))}if(n===0)return Promise.reject(new k([],`All promises were rejected`));let r=!1,i=[];return new A((e,a)=>{for(let o=0;o<t.length;o++)t[o].then(t=>{r||(r=!0,e(t))},e=>{i.push(e),n--,n===0&&(r=!0,a(new k(i,`All promises were rejected`)))})})}static race(e){let t,n,r=new this((e,r)=>{t=e,n=r});function i(e){t(e)}function a(e){n(e)}for(let t of e)p(t)||(t=this.resolve(t)),t.then(i,a);return r}static all(e){return A.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof A?this:A).allWithCallback(e,{thenCallback:e=>({status:`fulfilled`,value:e}),errorCallback:e=>({status:`rejected`,reason:e})})}static allWithCallback(e,t){let n,r,i=new this((e,t)=>{n=e,r=t}),a=2,o=0,s=[];for(let i of e){p(i)||(i=this.resolve(i));let e=o;try{i.then(r=>{s[e]=t?t.thenCallback(r):r,a--,a===0&&n(s)},i=>{t?(s[e]=t.errorCallback(i),a--,a===0&&n(s)):r(i)})}catch(e){r(e)}a++,o++}return a-=2,a===0&&n(s),i}constructor(e){let t=this;if(!(t instanceof A))throw Error(`Must be an instanceof Promise.`);t[g]=null,t[_]=[];try{let n=S();e&&e(n(x(t,!0)),n(x(t,!1)))}catch(e){w(t,!1,e)}}get[Symbol.toStringTag](){return`Promise`}get[Symbol.species](){return A}then(e,n){let r=this.constructor?.[Symbol.species];(!r||typeof r!=`function`)&&(r=this.constructor||A);let i=new r(O),a=t.current;return this[g]==null?this[_].push(a,i,e,n):D(this,a,i,e,n),i}catch(e){return this.then(null,e)}finally(e){let n=this.constructor?.[Symbol.species];(!n||typeof n!=`function`)&&(n=A);let r=new n(O);r[v]=v;let i=t.current;return this[g]==null?this[_].push(i,r,e,e):D(this,i,r,e,e),r}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;let j=e[l]=e.Promise;e.Promise=A;let ee=o(`thenPatched`);function M(e){let t=e.prototype,n=r(t,`then`);if(n&&(n.writable===!1||!n.configurable))return;let i=t.then;t[u]=i,e.prototype.then=function(e,t){return new A((e,t)=>{i.call(this,e,t)}).then(e,t)},e[ee]=!0}n.patchThen=M;function N(e){return function(t,n){let r=e.apply(t,n);if(r instanceof A)return r;let i=r.constructor;return i[ee]||M(i),r}}if(j){M(j);let t=j.try;t&&typeof t==`function`&&(A.try=t),Mc(e,`fetch`,e=>N(e))}return Promise[t.__symbol__(`uncaughtPromiseErrors`)]=s,A})}function Qc(e){e.__load_patch(`toString`,e=>{let t=Function.prototype.toString,n=q(`OriginalDelegate`),r=q(`Promise`),i=q(`Error`),a=function(){if(typeof this==`function`){let a=this[n];if(a)return typeof a==`function`?t.call(a):Object.prototype.toString.call(a);if(this===Promise){let n=e[r];if(n)return t.call(n)}if(this===Error){let n=e[i];if(n)return t.call(n)}}return t.call(this)};a[n]=t,Function.prototype.toString=a;let o=Object.prototype.toString;Object.prototype.toString=function(){return typeof Promise==`function`&&this instanceof Promise?`[object Promise]`:o.call(this)}})}function $c(e,t,n,r,i){let a=Zone.__symbol__(r);if(t[a])return;let o=t[a]=t[r];t[r]=function(a,s,c){return s&&s.prototype&&i.forEach(function(t){let i=`${n}.${r}::`+t,a=s.prototype;try{if(a.hasOwnProperty(t)){let n=e.ObjectGetOwnPropertyDescriptor(a,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,i),e._redefineProperty(s.prototype,t,n)):a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],i))}else a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],i))}catch{}}),o.call(t,a,s,c)},e.attachOriginToPatched(t[r],o)}function el(e){e.__load_patch(`util`,(e,t,n)=>{let r=Jc(e);n.patchOnProperties=kc,n.patchMethod=Mc,n.bindArguments=Tc,n.patchMacroTask=Nc;let i=t.__symbol__(`BLACK_LISTED_EVENTS`),a=t.__symbol__(`UNPATCHED_EVENTS`);e[a]&&(e[i]=e[a]),e[i]&&(t[i]=t[a]=e[i]),n.patchEventPrototype=Bc,n.patchEventTarget=Rc,n.ObjectDefineProperty=pl,n.ObjectGetOwnPropertyDescriptor=fl,n.ObjectCreate=hl,n.ArraySlice=gl,n.patchClass=Ac,n.wrapWithCurrentZone=Cc,n.filterProperties=Kc,n.attachOriginToPatched=Pc,n._redefineProperty=Object.defineProperty,n.patchCallbacks=$c,n.getGlobalObjects=()=>({globalSources:zl,zoneSymbolEventNames:Rl,eventNames:r,isBrowser:Al,isMix:jl,isNode:kl,TRUE_STR:xl,FALSE_STR:Sl,ZONE_SYMBOL_PREFIX:Cl,ADD_EVENT_LISTENER_STR:_l,REMOVE_EVENT_LISTENER_STR:vl})})}function tl(e){Zc(e),Qc(e),el(e)}var nl,rl,il,al,ol,sl,cl,ll,ul,K,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,q,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl=n((()=>{nl=Object.defineProperty,rl=Object.defineProperties,il=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertySymbols,ol=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable,cl=(e,t,n)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ll=(e,t)=>{for(var n in t||={})ol.call(t,n)&&cl(e,n,t[n]);if(al)for(var n of al(t))sl.call(t,n)&&cl(e,n,t[n]);return e},ul=(e,t)=>rl(e,il(t)),K=(e,t,n)=>(cl(e,typeof t==`symbol`?t:t+``,n),n),dl=globalThis,fl=Object.getOwnPropertyDescriptor,pl=Object.defineProperty,ml=Object.getPrototypeOf,hl=Object.create,gl=Array.prototype.slice,_l=`addEventListener`,vl=`removeEventListener`,yl=bc(_l),bl=bc(vl),xl=`true`,Sl=`false`,Cl=bc(``),q=bc,wl=typeof window<`u`,Tl=wl?window:void 0,El=wl&&Tl||globalThis,Dl=`removeAttribute`,Ol=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope,kl=!(`nw`in El)&&El.process!==void 0&&El.process.toString()===`[object process]`,Al=!kl&&!Ol&&!!(wl&&Tl.HTMLElement),jl=El.process!==void 0&&El.process.toString()===`[object process]`&&!Ol&&!!(wl&&Tl.HTMLElement),Ml={},Nl=q(`enable_beforeunload`),Pl=function(e){if(e||=El.event,!e)return;let t=Ml[e.type];t||=Ml[e.type]=q(`ON_PROPERTY`+e.type);let n=this||e.target||El,r=n[t],i;if(Al&&n===Tl&&e.type===`error`){let t=e;i=r&&r.call(this,t.message,t.filename,t.lineno,t.colno,t.error),i===!0&&e.preventDefault()}else i=r&&r.apply(this,arguments),e.type===`beforeunload`&&El[Nl]&&typeof i==`string`?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i},Fl=q(`originalInstance`),Il=!1,Ll={useG:!0},Rl={},zl={},Bl=RegExp(`^`+Cl+`(\\w+)(true|false)$`),Vl=q(`propagationStopped`),Hl=q(`zoneTask`),Ul=Sc(),tl(Ul),Xc(Ul)})),Gl=r({ZoneContextManager:()=>_c}),Kl=n((()=>{yc(),Wl()}));function ql(e){return e.setValue(Xl,!0)}function Jl(e){return e.deleteValue(Xl)}function Yl(e){return e.getValue(Xl)===!0}var Xl,Zl=n((()=>{G(),Xl=To(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`)})),Ql,$l,eu=n((()=>{Ql=`baggage`,$l=4096}));function tu(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function nu(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function ru(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let i=n.substring(0,r).trim(),a=n.substring(r+1).trim();if(!i||!a)return;let o,s;try{o=decodeURIComponent(i),s=decodeURIComponent(a)}catch{return}let c;return t!==-1&&t<e.length-1&&(c=So(e.substring(t+1))),{key:o,value:s,metadata:c}}function iu(e){let t={};return typeof e==`string`&&e.length>0&&e.split(`,`).forEach(e=>{let n=ru(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}var au=n((()=>{G(),eu()})),ou,su=n((()=>{G(),Zl(),eu(),au(),ou=class{inject(e,t,n){let r=sc.getBaggage(e);if(!r||Yl(e))return;let i=tu(nu(r).filter(e=>e.length<=$l).slice(0,180));i.length>0&&n.set(t,Ql,i)}extract(e,t,n){let r=n.get(t,Ql),i=Array.isArray(r)?r.join(`,`):r;if(!i)return e;let a={};return i.length===0||(i.split(`,`).forEach(e=>{let t=ru(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),a[t.key]=e}}),Object.entries(a).length===0)?e:sc.setBaggage(e,sc.createBaggage(a))}fields(){return[Ql]}}})),cu,lu=n((()=>{cu=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}}}));function uu(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!du(n)){W.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!fu(r)){W.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function du(e){return typeof e==`string`&&e!==``}function fu(e){return e==null?!0:Array.isArray(e)?pu(e):mu(typeof e)}function pu(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(mu(e)){t=e;continue}return!1}return!1}}return!0}function mu(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}var J=n((()=>{G()}));function hu(){return e=>{W.error(gu(e))}}function gu(e){return typeof e==`string`?e:JSON.stringify(_u(e))}function _u(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var vu=n((()=>{G()}));function yu(e){xu=e}function bu(e){try{xu(e)}catch{}}var xu,Su=n((()=>{vu(),xu=hu()}));function Cu(e){}function wu(e){}function Tu(e){}function Eu(e){}var Du=n((()=>{})),Ou,ku=n((()=>{Ou=globalThis})),Au,ju=n((()=>{Au=`2.7.1`})),Mu=n((()=>{})),Nu=n((()=>{Mu()})),Pu=n((()=>{})),Fu=n((()=>{Pu()})),Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu=n((()=>{Iu=`exception.message`,Lu=`exception.stacktrace`,Ru=`exception.type`,zu=`service.name`,Bu=`telemetry.sdk.language`,Vu=`webjs`,Hu=`telemetry.sdk.name`,Uu=`telemetry.sdk.version`})),Gu=n((()=>{})),Ku=n((()=>{})),qu=n((()=>{Nu(),Fu(),Wu(),Gu(),Ku()})),Ju,Yu=n((()=>{Ju=`process.runtime.name`})),Xu,Zu=n((()=>{ju(),qu(),Yu(),Xu={[Hu]:`opentelemetry`,[Ju]:`browser`,[Bu]:Vu,[Uu]:Au}})),Qu,$u=n((()=>{Du(),ku(),Zu(),Qu=performance}));function Y(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*fd)]}function ed(){return Qu.timeOrigin}function td(e){return ud(Y(Qu.timeOrigin),Y(typeof e==`number`?e:Qu.now()))}function nd(e){if(cd(e))return e;if(typeof e==`number`)return e<Qu.timeOrigin?td(e):Y(e);if(e instanceof Date)return Y(e.getTime());throw TypeError(`Invalid input type`)}function rd(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=pd),[n,r]}function id(e){let t=dd,n=`${`0`.repeat(t)}${e[1]}Z`,r=n.substring(n.length-t-1);return new Date(e[0]*1e3).toISOString().replace(`000Z`,r)}function ad(e){return e[0]*pd+e[1]}function od(e){return e[0]*1e3+e[1]/1e6}function sd(e){return e[0]*1e6+e[1]/1e3}function cd(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function ld(e){return cd(e)||typeof e==`number`||e instanceof Date}function ud(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=pd&&(n[1]-=pd,n[0]+=1),n}var dd,fd,pd,md=n((()=>{$u(),dd=9,fd=10**6,pd=10**dd}));function hd(e){typeof e!=`number`&&e.unref()}var gd=n((()=>{})),_d,vd=n((()=>{(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(_d||={})})),yd,bd=n((()=>{G(),yd=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[];let t=new Set;for(let e of this._propagators){let n=typeof e.fields==`function`?e.fields():[];for(let e of n)t.add(e)}this._fields=Array.from(t)}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){W.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){W.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}}));function xd(e){return wd.test(e)}function Sd(e){return Td.test(e)&&!Ed.test(e)}var Cd,wd,Td,Ed,Dd=n((()=>{Cd=`[_0-9a-z-*/]`,wd=RegExp(`^(?:${`[a-z]${Cd}{0,255}`}|${`[a-z0-9]${Cd}{0,240}@[a-z]${Cd}{0,13}`})$`),Td=/^[ -~]{0,255}[!-~]$/,Ed=/,|=/})),Od,kd,Ad,jd,Md,Nd=n((()=>{Dd(),Od=32,kd=512,Ad=`,`,jd=`=`,Md=class e{_length;_rawTraceState;_internalState;constructor(e){this._rawTraceState=typeof e==`string`?e:``,this._length=this._rawTraceState.length}set(e,t){if(!xd(e)||!Sd(t))return this;let n=this._getState(),r=n.get(e),i=this._length;if(typeof r==`string`?i+=t.length-r.length:i+=e.length+t.length+(n.size>0?2:1),i>kd)return this;let a=new Map(n);return a.delete(e),a.set(e,t),this._fromState(a,i)}unset(e){let t=this._getState(),n=t.get(e);if(typeof n!=`string`)return this;let r=this._length-(e.length+n.length+1);t.size>1&&--r;let i=new Map(t);return i.delete(e),this._fromState(i,r)}get(e){return this._getState().get(e)}serialize(){let e=``,t=0;for(let n of this._getState())t>0&&(e=Ad+e),e=`${n[0]}${jd}${n[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(Ad),t=new Map,n=0;for(let r of e){let e=r.trim(),i=e.indexOf(jd);if(i===-1)continue;let a=e.slice(0,i),o=e.slice(i+1);if(!xd(a)||!Sd(o))continue;let s=n+e.length+ +(t.size>0);if(!(s>kd)&&(t.set(a,o),n=s,t.size>=Od))break}return this._length=n,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(t,n){let r=Object.create(e.prototype);return r._internalState=t,r._length=n,r}}}));function Pd(e){let t=Rd.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Fd,Id,Ld,Rd,zd,Bd=n((()=>{G(),Zl(),Nd(),Fd=`traceparent`,Id=`tracestate`,Ld=`00`,Rd=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`),zd=class{inject(e,t,n){let r=fc.getSpanContext(e);if(!r||Yl(e)||!ws(r))return;let i=`${Ld}-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||as.NONE).toString(16)}`;n.set(t,Fd,i),r.traceState&&n.set(t,Id,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,Fd);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=Pd(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,Id);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new Md(typeof e==`string`?e:void 0)}return fc.setSpanContext(e,a)}fields(){return[Fd,Id]}}}));function Vd(e,t){return e.setValue(Wd,t)}function Hd(e){return e.deleteValue(Wd)}function Ud(e){return e.getValue(Wd)}var Wd,Gd,Kd=n((()=>{G(),Wd=To(`OpenTelemetry SDK Context Key RPC_METADATA`),(function(e){e.HTTP=`http`})(Gd||={})}));function qd(e){if(!Jd(e)||Yd(e)!==Qd)return!1;let t=rf(e);if(t===null)return!0;let n=of.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&tf.call(n)===nf}function Jd(e){return typeof e==`object`&&!!e}function Yd(e){return e==null?e===void 0?ef:$d:sf&&sf in Object(e)?Xd(e):Zd(e)}function Xd(e){let t=of.call(e,sf),n=e[sf],r=!1;try{e[sf]=void 0,r=!0}catch{}let i=cf.call(e);return r&&(t?e[sf]=n:delete e[sf]),i}function Zd(e){return cf.call(e)}var Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf=n((()=>{Qd=`[object Object]`,$d=`[object Null]`,ef=`[object Undefined]`,tf=Function.prototype.toString,nf=tf.call(Object),rf=Object.getPrototypeOf,af=Object.prototype,of=af.hasOwnProperty,sf=Symbol?Symbol.toStringTag:void 0,cf=af.toString}));function uf(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=ff(t,e.shift(),0,n);return t}function df(e){return mf(e)?e.slice():e}function ff(e,t,n=0,r){let i;if(!(n>yf)){if(n++,_f(e)||_f(t)||hf(t))i=df(t);else if(mf(e)){if(i=e.slice(),mf(t))for(let e=0,n=t.length;e<n;e++)i.push(df(t[e]));else if(gf(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===`__proto__`||r===`constructor`||r===`prototype`||(i[r]=df(t[r]))}}}else if(gf(e))if(gf(t)){if(!vf(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if(_f(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(pf(e,s,r)||pf(t,s,r))delete i[s];else{if(gf(a)&&gf(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=ff(i[s],c,n,r)}}}}else i=t;return i}}function pf(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function mf(e){return Array.isArray(e)}function hf(e){return typeof e==`function`}function gf(e){return!_f(e)&&!mf(e)&&!hf(e)&&typeof e==`object`}function _f(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function vf(e,t){return!(!qd(e)||!qd(t))}var yf,bf=n((()=>{lf(),yf=20}));function xf(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new Sf(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}var Sf,Cf=n((()=>{Sf=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}}));function wf(e,t){return typeof t==`string`?e===t:!!e.match(t)}function Tf(e,t){if(!t)return!1;for(let n of t)if(wf(e,n))return!0;return!1}var Ef=n((()=>{})),Df,Of=n((()=>{Df=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),kf,Af=n((()=>{Of(),kf=class{_isCalled=!1;_deferred=new Df;_callback;_that;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}}));function jf(e){return e==null?void 0:Mf[e.toUpperCase()]??(W.warn(`Unknown log level "${e}", expected one of ${Object.keys(Mf)}, using default`),lo.INFO)}var Mf,Nf=n((()=>{G(),Mf={ALL:lo.ALL,VERBOSE:lo.VERBOSE,DEBUG:lo.DEBUG,INFO:lo.INFO,WARN:lo.WARN,ERROR:lo.ERROR,NONE:lo.NONE}}));function Pf(e,t){return new Promise(n=>{Ks.with(ql(Ks.active()),()=>{e.export(t,n)})})}var Ff=n((()=>{G(),Zl()})),If=r({AnchoredClock:()=>cu,BindOnceFuture:()=>kf,CompositePropagator:()=>yd,ExportResultCode:()=>_d,RPCType:()=>Gd,SDK_INFO:()=>Xu,TRACE_PARENT_HEADER:()=>Fd,TRACE_STATE_HEADER:()=>Id,TimeoutError:()=>Sf,TraceState:()=>Md,W3CBaggagePropagator:()=>ou,W3CTraceContextPropagator:()=>zd,_globalThis:()=>Ou,addHrTimes:()=>ud,callWithTimeout:()=>xf,deleteRPCMetadata:()=>Hd,diagLogLevelFromString:()=>jf,getBooleanFromEnv:()=>wu,getNumberFromEnv:()=>Tu,getRPCMetadata:()=>Ud,getStringFromEnv:()=>Cu,getStringListFromEnv:()=>Eu,getTimeOrigin:()=>ed,globalErrorHandler:()=>bu,hrTime:()=>td,hrTimeDuration:()=>rd,hrTimeToMicroseconds:()=>sd,hrTimeToMilliseconds:()=>od,hrTimeToNanoseconds:()=>ad,hrTimeToTimeStamp:()=>id,internal:()=>Lf,isAttributeValue:()=>fu,isTimeInput:()=>ld,isTimeInputHrTime:()=>cd,isTracingSuppressed:()=>Yl,isUrlIgnored:()=>Tf,loggingErrorHandler:()=>hu,merge:()=>uf,millisToHrTime:()=>Y,otperformance:()=>Qu,parseKeyPairsIntoRecord:()=>iu,parseTraceParent:()=>Pd,sanitizeAttributes:()=>uu,setGlobalErrorHandler:()=>yu,setRPCMetadata:()=>Vd,suppressTracing:()=>ql,timeInputToHrTime:()=>nd,unrefTimer:()=>hd,unsuppressTracing:()=>Jl,urlMatches:()=>wf}),Lf,Rf=n((()=>{su(),lu(),J(),Su(),vu(),md(),gd(),vd(),au(),$u(),bd(),Bd(),Kd(),Zl(),Nd(),bf(),Cf(),Ef(),Af(),Nf(),Ff(),Lf={_export:Pf}}));function zf(){if(Bf===void 0)try{let e=globalThis.process.argv0;Bf=e?`unknown_service:${e}`:`unknown_service`}catch{Bf=`unknown_service`}return Bf}var Bf,Vf=n((()=>{})),Hf,Uf=n((()=>{Hf=e=>typeof e==`object`&&!!e&&typeof e.then==`function`}));function Wf(e,t){return Zf.FromAttributeList(Object.entries(e),t)}function Gf(e,t){return new Zf(e,t)}function Kf(){return Wf({})}function qf(){return Wf({[zu]:zf(),[Bu]:Xu[Bu],[Hu]:Xu[Hu],[Uu]:Xu[Uu]})}function Jf(e){return e.map(([e,t])=>Hf(t)?[e,t.catch(t=>{W.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function Yf(e){if(typeof e==`string`||e===void 0)return e;W.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function Xf(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;W.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var Zf,Qf=n((()=>{G(),Rf(),qu(),Vf(),Uf(),Zf=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=Jf(t),r._asyncAttributesPending=t.filter(([e,t])=>Hf(t)).length>0,r}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(Hf(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=Jf(this._rawAttributes),this._schemaUrl=Yf(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,Hf(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&W.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(Hf(n)){W.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=Xf(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}})),$f,ep=n((()=>{G(),Qf(),$f=(e={})=>(e.detectors||[]).map(t=>{try{let n=Gf(t.detect(e));return W.debug(`${t.constructor.name} found resource.`,n),n}catch(e){return W.debug(`${t.constructor.name} failed: ${e.message}`),Kf()}}).reduce((e,t)=>e.merge(t),Kf())})),tp,np,rp=n((()=>{G(),qu(),Rf(),tp=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=`,`;_LABEL_KEY_VALUE_SPLITTER=`=`;detect(e){return{attributes:{}}}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR).filter(e=>e.trim()!==``);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER);if(n.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${e}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[r,i]=n,a=r.trim(),o=i.trim();if(a.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${e}".`);let s,c;try{s=decodeURIComponent(a),c=decodeURIComponent(o)}catch(t){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${e}": ${t instanceof Error?t.message:t}`)}if(s.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${s}".`);if(c.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${s}".`);t[s]=c}return t}},np=new tp})),ip,ap,op=n((()=>{ip=class{detect(){return{attributes:{}}}},ap=new ip})),sp,cp=n((()=>{op(),sp=ap})),lp,up=n((()=>{op(),lp=ap})),dp,fp=n((()=>{op(),dp=ap})),pp,mp=n((()=>{op(),pp=ap})),hp=n((()=>{cp(),up(),fp(),mp()})),gp=n((()=>{rp(),hp(),op()})),_p=r({defaultResource:()=>qf,defaultServiceName:()=>zf,detectResources:()=>$f,emptyResource:()=>Kf,envDetector:()=>np,hostDetector:()=>sp,osDetector:()=>lp,processDetector:()=>dp,resourceFromAttributes:()=>Wf,serviceInstanceIdDetector:()=>pp}),vp=n((()=>{ep(),gp(),Qf(),Vf()})),yp,bp,xp=n((()=>{yp=class{emit(e){}},bp=new yp})),Sp,Cp,wp=n((()=>{xp(),Sp=class{getLogger(e,t,n){return new yp}},Cp=new Sp})),Tp,Ep=n((()=>{xp(),Tp=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):bp}}})),Dp,Op=n((()=>{wp(),Ep(),Dp=class{getLogger(e,t,n){return this._getDelegateLogger(e,t,n)??new Tp(this,e,t,n)}_getDelegate(){return this._delegate??Cp}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){return this._delegate?.getLogger(e,t,n)}}})),kp,Ap=n((()=>{kp=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof globalThis==`object`?globalThis:{}})),jp=n((()=>{Ap()}));function Mp(e,t,n){return r=>r===e?t:n}var Np,Pp,Fp=n((()=>{jp(),Np=Symbol.for(`io.opentelemetry.js.api.logs`),Pp=kp})),Ip,Lp=n((()=>{Fp(),wp(),Op(),Ip=class e{constructor(){this._proxyLoggerProvider=new Dp}static getInstance(){return this._instance||=new e,this._instance}setGlobalLoggerProvider(e){return Pp[Np]?this.getLoggerProvider():(Pp[Np]=Mp(1,e,Cp),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){return Pp[Np]?.call(Pp,1)??this._proxyLoggerProvider}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete Pp[Np],this._proxyLoggerProvider=new Dp}}})),Rp=n((()=>{xp(),Op(),Lp(),Ip.getInstance()}));function zp(e){return e.setValue(Bp,!0)}var Bp,Vp=n((()=>{G(),Bp=To(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`)}));function Hp(e){return e==null?!0:Array.isArray(e)?Up(e):Wp(typeof e)}function Up(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(Wp(e)){t=e;continue}return!1}return!1}}return!0}function Wp(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}var Gp=n((()=>{}));function Kp(){return e=>{W.error(qp(e))}}function qp(e){return typeof e==`string`?e:JSON.stringify(Jp(e))}function Jp(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var Yp=n((()=>{G()}));function Xp(e){try{Zp(e)}catch{}}var Zp,Qp=n((()=>{Yp(),Zp=Kp()})),$p=n((()=>{})),em,tm=n((()=>{em=performance})),nm,rm=n((()=>{nm=`2.2.0`})),im,am=n((()=>{im=`process.runtime.name`})),om,sm=n((()=>{rm(),qu(),am(),om={[Hu]:`opentelemetry`,[im]:`browser`,[Bu]:Vu,[Uu]:nm}})),cm=n((()=>{$p(),tm(),sm()}));function lm(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*_m)]}function um(){let e=em.timeOrigin;if(typeof e!=`number`){let t=em;e=t.timing&&t.timing.fetchStart}return e}function dm(e){return hm(lm(um()),lm(typeof e==`number`?e:em.now()))}function fm(e){if(mm(e))return e;if(typeof e==`number`)return e<um()?dm(e):lm(e);if(e instanceof Date)return lm(e.getTime());throw TypeError(`Invalid input type`)}function pm(e){return e[0]*1e6+e[1]/1e3}function mm(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function hm(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=vm&&(n[1]-=vm,n[0]+=1),n}var gm,_m,vm,ym=n((()=>{cm(),gm=9,_m=10**6,vm=10**gm})),bm,xm=n((()=>{(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(bm||={})}));function Sm(e){if(!Cm(e)||wm(e)!==Dm)return!1;let t=Mm(e);if(t===null)return!0;let n=Pm.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Am.call(n)===jm}function Cm(e){return typeof e==`object`&&!!e}function wm(e){return e==null?e===void 0?km:Om:Fm&&Fm in Object(e)?Tm(e):Em(e)}function Tm(e){let t=Pm.call(e,Fm),n=e[Fm],r=!1;try{e[Fm]=void 0,r=!0}catch{}let i=Im.call(e);return r&&(t?e[Fm]=n:delete e[Fm]),i}function Em(e){return Im.call(e)}var Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm=n((()=>{Dm=`[object Object]`,Om=`[object Null]`,km=`[object Undefined]`,Am=Function.prototype.toString,jm=Am.call(Object),Mm=Object.getPrototypeOf,Nm=Object.prototype,Pm=Nm.hasOwnProperty,Fm=Symbol?Symbol.toStringTag:void 0,Im=Nm.toString}));function Rm(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=Bm(t,e.shift(),0,n);return t}function zm(e){return Hm(e)?e.slice():e}function Bm(e,t,n=0,r){let i;if(!(n>qm)){if(n++,Gm(e)||Gm(t)||Um(t))i=zm(t);else if(Hm(e)){if(i=e.slice(),Hm(t))for(let e=0,n=t.length;e<n;e++)i.push(zm(t[e]));else if(Wm(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];i[r]=zm(t[r])}}}else if(Wm(e))if(Wm(t)){if(!Km(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o],c=t[s];if(Gm(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(Vm(e,s,r)||Vm(t,s,r))delete i[s];else{if(Wm(a)&&Wm(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=Bm(i[s],c,n,r)}}}}else i=t;return i}}function Vm(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function Hm(e){return Array.isArray(e)}function Um(e){return typeof e==`function`}function Wm(e){return!Gm(e)&&!Hm(e)&&!Um(e)&&typeof e==`object`}function Gm(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function Km(e,t){return!(!Sm(e)||!Sm(t))}var qm,Jm=n((()=>{Lm(),qm=20}));function Ym(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new Xm(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}var Xm,Zm=n((()=>{Xm=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Qm,$m=n((()=>{Qm=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),eh,th=n((()=>{$m(),eh=class{_callback;_that;_isCalled=!1;_deferred=new Qm;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}}));function nh(e,t){return new Promise(n=>{Ks.with(zp(Ks.active()),()=>{e.export(t,e=>{n(e)})})})}var rh=n((()=>{G(),Vp()})),ih,ah=n((()=>{G(),Vp(),Gp(),Qp(),Yp(),ym(),xm(),cm(),Jm(),Zm(),th(),rh(),ih={_export:nh}}));function oh(){return`unknown_service`}var sh=n((()=>{})),ch=n((()=>{sh()})),lh,uh=n((()=>{lh=e=>typeof e==`object`&&!!e&&typeof e.then==`function`}));function dh(e,t){return gh.FromAttributeList(Object.entries(e),t)}function fh(){return dh({[zu]:oh(),[Bu]:om[Bu],[Hu]:om[Hu],[Uu]:om[Uu]})}function ph(e){return e.map(([e,t])=>lh(t)?[e,t.catch(t=>{W.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function mh(e){if(typeof e==`string`||e===void 0)return e;W.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function hh(e,t){let n=e?.schemaUrl,r=t?.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;W.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var gh,_h=n((()=>{G(),ah(),qu(),ch(),uh(),gh=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=ph(t),r._asyncAttributesPending=t.filter(([e,t])=>lh(t)).length>0,r}constructor(e,t){let n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([e,t])=>(lh(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=ph(this._rawAttributes),this._schemaUrl=mh(t?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,n]=this._rawAttributes[e];this._rawAttributes[e]=[t,lh(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&W.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(lh(n)){W.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=hh(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}})),vh=n((()=>{G(),_h(),qu(),ah(),ch()})),yh,bh=n((()=>{G(),ah(),yh=class{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(e){this._isLogRecordReadonly()||(this._severityText=e)}get severityText(){return this._severityText}set severityNumber(e){this._isLogRecordReadonly()||(this._severityNumber=e)}get severityNumber(){return this._severityNumber}set body(e){this._isLogRecordReadonly()||(this._body=e)}get body(){return this._body}get eventName(){return this._eventName}set eventName(e){this._isLogRecordReadonly()||(this._eventName=e)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(e,t,n){let{timestamp:r,observedTimestamp:i,eventName:a,severityNumber:o,severityText:s,body:c,attributes:l={},context:u}=n,d=Date.now();if(this.hrTime=fm(r??d),this.hrTimeObserved=fm(i??d),u){let e=fc.getSpanContext(u);e&&ws(e)&&(this.spanContext=e)}this.severityNumber=o,this.severityText=s,this.body=c,this.resource=e.resource,this.instrumentationScope=t,this._logRecordLimits=e.logRecordLimits,this._eventName=a,this.setAttributes(l)}setAttribute(e,t){return this._isLogRecordReadonly()||t===null?this:e.length===0?(W.warn(`Invalid attribute key: ${e}`),this):!Hp(t)&&!(typeof t==`object`&&!Array.isArray(t)&&Object.keys(t).length>0)?(W.warn(`Invalid attribute value set for key: ${e}`),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this.droppedAttributesCount===1&&W.warn(`Dropping extra attributes.`),this):(Hp(t)?this.attributes[e]=this._truncateToSize(t):this.attributes[e]=t,this))}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}setBody(e){return this.body=e,this}setEventName(e){return this.eventName=e,this}setSeverityNumber(e){return this.severityNumber=e,this}setSeverityText(e){return this.severityText=e,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(e){let t=this._logRecordLimits.attributeValueLengthLimit;return t<=0?(W.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_isLogRecordReadonly(){return this._isReadonly&&W.warn(`Can not execute the operation on emitted log record`),this._isReadonly}}})),xh,Sh=n((()=>{G(),bh(),xh=class{instrumentationScope;_sharedState;constructor(e,t){this.instrumentationScope=e,this._sharedState=t}emit(e){let t=e.context||Ks.active(),n=new yh(this._sharedState,this.instrumentationScope,{context:t,...e});this._sharedState.activeProcessor.onEmit(n,t),n._makeReadonly()}}}));function Ch(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},includeTraceContext:!0}}function wh(e){return{attributeCountLimit:e.attributeCountLimit??void 0??void 0??128,attributeValueLengthLimit:e.attributeValueLengthLimit??void 0??void 0??1/0}}var Th=n((()=>{ah()})),Eh,Dh=n((()=>{Eh=class{forceFlush(){return Promise.resolve()}onEmit(e,t){}shutdown(){return Promise.resolve()}}})),Oh,kh=n((()=>{ah(),Oh=class{processors;forceFlushTimeoutMillis;constructor(e,t){this.processors=e,this.forceFlushTimeoutMillis=t}async forceFlush(){let e=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(t=>Ym(t.forceFlush(),e)))}onEmit(e,t){this.processors.forEach(n=>n.onEmit(e,t))}async shutdown(){await Promise.all(this.processors.map(e=>e.shutdown()))}}})),Ah,jh=n((()=>{Dh(),kh(),Ah=class{resource;forceFlushTimeoutMillis;logRecordLimits;processors;loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];constructor(e,t,n,r){this.resource=e,this.forceFlushTimeoutMillis=t,this.logRecordLimits=n,this.processors=r,r.length>0?(this.registeredLogRecordProcessors=r,this.activeProcessor=new Oh(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new Eh}}})),Mh,Nh=n((()=>{G(),Rp(),vh(),ah(),Sh(),Th(),jh(),Mh=class{_shutdownOnce;_sharedState;constructor(e={}){let t=Rm({},Ch(),e),n=e.resource??fh();this._sharedState=new Ah(n,t.forceFlushTimeoutMillis,wh(t.logRecordLimits),e?.processors??[]),this._shutdownOnce=new eh(this._shutdown,this)}getLogger(e,t,n){if(this._shutdownOnce.isCalled)return W.warn(`A shutdown LoggerProvider cannot provide a Logger`),bp;e||W.warn(`Logger requested without instrumentation scope name.`);let r=e||`unknown`,i=`${r}@${t||``}:${n?.schemaUrl||``}`;return this._sharedState.loggers.has(i)||this._sharedState.loggers.set(i,new xh({name:r,version:t,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(i)}forceFlush(){return this._shutdownOnce.isCalled?(W.warn(`invalid attempt to force flush after LoggerProvider shutdown`),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(W.warn(`shutdown may only be called once per LoggerProvider`),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}}})),Ph,Fh=n((()=>{ah(),Ph=class{export(e,t){this._sendLogRecords(e,t)}shutdown(){return Promise.resolve()}_exportInfo(e){return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationScope,timestamp:pm(e.hrTime),traceId:e.spanContext?.traceId,spanId:e.spanContext?.spanId,traceFlags:e.spanContext?.traceFlags,severityText:e.severityText,severityNumber:e.severityNumber,body:e.body,attributes:e.attributes}}_sendLogRecords(e,t){for(let t of e)console.dir(this._exportInfo(t),{depth:3});t?.({code:bm.SUCCESS})}}})),Ih,Lh=n((()=>{ah(),Ih=class{_exporter;_shutdownOnce;_unresolvedExports;constructor(e){this._exporter=e,this._shutdownOnce=new eh(this._shutdown,this),this._unresolvedExports=new Set}onEmit(e){if(this._shutdownOnce.isCalled)return;let t=()=>ih._export(this._exporter,[e]).then(e=>{e.code!==bm.SUCCESS&&Xp(e.error??Error(`SimpleLogRecordProcessor: log record export failed (status ${e})`))}).catch(Xp);if(e.resource.asyncAttributesPending){let n=e.resource.waitForAsyncAttributes?.().then(()=>(this._unresolvedExports.delete(n),t()),Xp);n!=null&&this._unresolvedExports.add(n)}else t()}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports))}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}})),Rh,zh=n((()=>{ah(),Rh=class{_finishedLogRecords=[];_stopped=!1;export(e,t){if(this._stopped)return t({code:bm.FAILED,error:Error(`Exporter has been stopped`)});this._finishedLogRecords.push(...e),t({code:bm.SUCCESS})}shutdown(){return this._stopped=!0,this.reset(),Promise.resolve()}getFinishedLogRecords(){return this._finishedLogRecords}reset(){this._finishedLogRecords=[]}}})),Bh,Vh=n((()=>{G(),ah(),Bh=class{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedLogRecords=[];_timer;_shutdownOnce;constructor(e,t){this._exporter=e,this._maxExportBatchSize=t?.maxExportBatchSize??void 0??512,this._maxQueueSize=t?.maxQueueSize??void 0??2048,this._scheduledDelayMillis=t?.scheduledDelayMillis??void 0??5e3,this._exportTimeoutMillis=t?.exportTimeoutMillis??void 0??3e4,this._shutdownOnce=new eh(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(W.warn(`BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize)}onEmit(e){this._shutdownOnce.isCalled||this._addToBuffer(e)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}shutdown(){return this._shutdownOnce.call()}async _shutdown(){this.onShutdown(),await this._flushAll(),await this._exporter.shutdown()}_addToBuffer(e){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(e),this._maybeStartTimer())}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedLogRecords.length/this._maxExportBatchSize);for(let e=0;e<r;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedLogRecords.length===0?Promise.resolve():new Promise((e,t)=>{Ym(this._export(this._finishedLogRecords.splice(0,this._maxExportBatchSize)),this._exportTimeoutMillis).then(()=>e()).catch(t)})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().then(()=>{this._isExporting=!1,this._finishedLogRecords.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,Xp(e)})};if(this._finishedLogRecords.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}_export(e){let t=()=>ih._export(this._exporter,e).then(e=>{e.code!==bm.SUCCESS&&Xp(e.error??Error(`BatchLogRecordProcessor: log record export failed (status ${e})`))}).catch(Xp),n=e.map(e=>e.resource).filter(e=>e.asyncAttributesPending);return n.length===0?t():Promise.all(n.map(e=>e.waitForAsyncAttributes?.())).then(t,Xp)}}})),Hh,Uh=n((()=>{Vh(),Hh=class extends Bh{_visibilityChangeListener;_pageHideListener;constructor(e,t){super(e,t),this._onInit(t)}onShutdown(){typeof document>`u`||(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}_onInit(e){e?.disableAutoFlushOnDocumentHide===!0||typeof document>`u`||(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush()},this._pageHideListener=()=>{this.forceFlush()},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}}})),Wh=n((()=>{Uh()})),Gh=r({BatchLogRecordProcessor:()=>Hh,ConsoleLogRecordExporter:()=>Ph,InMemoryLogRecordExporter:()=>Rh,LoggerProvider:()=>Mh,SimpleLogRecordProcessor:()=>Ih}),Kh=n((()=>{Nh(),Fh(),Lh(),zh(),Wh()})),qh,Jh=n((()=>{(function(e){e[e.DELTA=0]=`DELTA`,e[e.CUMULATIVE=1]=`CUMULATIVE`})(qh||={})})),X,Yh,Xh=n((()=>{(function(e){e.COUNTER=`COUNTER`,e.GAUGE=`GAUGE`,e.HISTOGRAM=`HISTOGRAM`,e.UP_DOWN_COUNTER=`UP_DOWN_COUNTER`,e.OBSERVABLE_COUNTER=`OBSERVABLE_COUNTER`,e.OBSERVABLE_GAUGE=`OBSERVABLE_GAUGE`,e.OBSERVABLE_UP_DOWN_COUNTER=`OBSERVABLE_UP_DOWN_COUNTER`})(X||={}),(function(e){e[e.HISTOGRAM=0]=`HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=1]=`EXPONENTIAL_HISTOGRAM`,e[e.GAUGE=2]=`GAUGE`,e[e.SUM=3]=`SUM`})(Yh||={})}));function Zh(e){let t=Object.keys(e);return t.length===0?``:(t=t.sort(),JSON.stringify(t.map(t=>[t,e[t]])))}function Qh(e){return`${e.name}:${e.version??``}:${e.schemaUrl??``}`}function $h(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new rg(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}function eg(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function tg(e,t){let n=0,r=e.length-1,i=e.length;for(;r>=n;){let a=n+Math.trunc((r-n)/2);e[a]<t?n=a+1:(i=a,r=a-1)}return i}function ng(e,t){return e.toLowerCase()===t.toLowerCase()}var rg,ig=n((()=>{rg=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),ag,og=n((()=>{(function(e){e[e.DROP=0]=`DROP`,e[e.SUM=1]=`SUM`,e[e.LAST_VALUE=2]=`LAST_VALUE`,e[e.HISTOGRAM=3]=`HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=4]=`EXPONENTIAL_HISTOGRAM`})(ag||={})})),sg,cg=n((()=>{og(),sg=class{kind=ag.DROP;createAccumulation(){}merge(e,t){}diff(e,t){}toMetricData(e,t,n,r){}}}));function lg(e){let t=e.map(()=>0);return t.push(0),{buckets:{boundaries:e,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var ug,dg,fg=n((()=>{og(),Xh(),ig(),ug=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,t,n=!0,r=lg(t)){this.startTime=e,this._boundaries=t,this._recordMinMax=n,this._current=r}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let t=tg(this._boundaries,e);this._current.buckets.counts[t]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}},dg=class{kind=ag.HISTOGRAM;_boundaries;_recordMinMax;constructor(e,t){this._boundaries=e,this._recordMinMax=t}createAccumulation(e){return new ug(e,this._boundaries,this._recordMinMax)}merge(e,t){let n=e.toPointValue(),r=t.toPointValue(),i=n.buckets.counts,a=r.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=i[e]+a[e];let s=1/0,c=-1/0;return this._recordMinMax&&(n.hasMinMax&&r.hasMinMax?(s=Math.min(n.min,r.min),c=Math.max(n.max,r.max)):n.hasMinMax?(s=n.min,c=n.max):r.hasMinMax&&(s=r.min,c=r.max)),new ug(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:o},count:n.count+r.count,sum:n.sum+r.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||r.hasMinMax),min:s,max:c})}diff(e,t){let n=e.toPointValue(),r=t.toPointValue(),i=n.buckets.counts,a=r.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=a[e]-i[e];return new ug(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:o},count:r.count-n.count,sum:r.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Yh.HISTOGRAM,dataPoints:n.map(([t,n])=>{let i=n.toPointValue(),a=e.type===X.GAUGE||e.type===X.UP_DOWN_COUNTER||e.type===X.OBSERVABLE_GAUGE||e.type===X.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:t,startTime:n.startTime,endTime:r,value:{min:i.hasMinMax?i.min:void 0,max:i.hasMinMax?i.max:void 0,sum:a?void 0:i.sum,buckets:i.buckets,count:i.count}}})}}}})),pg,mg,hg=n((()=>{pg=class e{backing;indexBase;indexStart;indexEnd;constructor(e=new mg,t=0,n=0,r=0){this.backing=e,this.indexBase=t,this.indexStart=n,this.indexEnd=r}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,t)=>this.at(t))}at(e){let t=this.indexBase-this.indexStart;return e<t&&(e+=this.backing.length),e-=t,this.backing.countAt(e)}incrementBucket(e,t){this.backing.increment(e,t)}decrementBucket(e,t){this.backing.decrement(e,t)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let t=1+this.indexEnd-this.indexStart,n=1<<e,r=0,i=0;for(let e=this.indexStart;e<=this.indexEnd;){let a=e%n;a<0&&(a+=n);for(let o=a;o<n&&r<t;o++)this._relocateBucket(i,r),r++,e++;i++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new e(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,t){e!==t&&this.incrementBucket(e,this.backing.emptyBucket(t))}},mg=class e{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,t,n){let r=Array(e).fill(0);r.splice(n,this._counts.length-t,...this._counts.slice(t)),r.splice(0,t,...this._counts.slice(0,t)),this._counts=r}reverse(e,t){let n=Math.floor((e+t)/2)-e;for(let r=0;r<n;r++){let n=this._counts[e+r];this._counts[e+r]=this._counts[t-r-1],this._counts[t-r-1]=n}}emptyBucket(e){let t=this._counts[e];return this._counts[e]=0,t}increment(e,t){this._counts[e]+=t}decrement(e,t){this._counts[e]>=t?this._counts[e]-=t:this._counts[e]=0}clone(){return new e([...this._counts])}}}));function gg(e){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e),((t.getUint32(0)&vg)>>20)-bg}function _g(e){let t=new DataView(new ArrayBuffer(8));t.setFloat64(0,e);let n=t.getUint32(0),r=t.getUint32(4);return(n&yg)*2**32+r}var vg,yg,bg,xg,Sg,Cg,wg=n((()=>{vg=2146435072,yg=1048575,bg=1023,xg=-1022,Sg=bg,Cg=2**-1022}));function Tg(e,t){return e===0||e===1/0||e===-1/0||Number.isNaN(e)?e:e*2**t}function Eg(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e}var Dg=n((()=>{})),Og,kg=n((()=>{Og=class extends Error{}})),Ag,jg=n((()=>{wg(),Dg(),kg(),Ag=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){return e<Cg?this._minNormalLowerBoundaryIndex():gg(e)+this._rightShift(_g(e)-1,52)>>this._shift}lowerBoundary(e){let t=this._minNormalLowerBoundaryIndex();if(e<t)throw new Og(`underflow: ${e} is < minimum lower boundary: ${t}`);let n=this._maxNormalLowerBoundaryIndex();if(e>n)throw new Og(`overflow: ${e} is > maximum lower boundary: ${n}`);return Tg(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=xg>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return Sg>>this._shift}_rightShift(e,t){return Math.floor(e*2**-t)}}})),Mg,Ng=n((()=>{wg(),Dg(),kg(),Mg=class{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=Tg(Math.LOG2E,e),this._inverseFactor=Tg(Math.LN2,-e)}mapToIndex(e){if(e<=Cg)return this._minNormalLowerBoundaryIndex()-1;if(_g(e)===0)return(gg(e)<<this._scale)-1;let t=Math.floor(Math.log(e)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return t>=n?n:t}lowerBoundary(e){let t=this._maxNormalLowerBoundaryIndex();if(e>=t){if(e===t)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new Og(`overflow: ${e} is > maximum lower boundary: ${t}`)}let n=this._minNormalLowerBoundaryIndex();if(e<=n){if(e===n)return Cg;if(e===n-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new Og(`overflow: ${e} is < minimum lower boundary: ${n}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return xg<<this._scale}_maxNormalLowerBoundaryIndex(){return(Sg+1<<this._scale)-1}}}));function Pg(e){if(e>Ig||e<Fg)throw new Og(`expected scale >= ${Fg} && <= ${Ig}, got: ${e}`);return Lg[e+10]}var Fg,Ig,Lg,Rg=n((()=>{jg(),Ng(),kg(),Fg=-10,Ig=20,Lg=Array.from({length:31},(e,t)=>t>10?new Mg(t-10):new Ag(t-10))})),zg,Bg,Vg,Hg,Ug,Wg,Gg=n((()=>{og(),Xh(),G(),hg(),Rg(),Dg(),zg=class e{static combine(t,n){return new e(Math.min(t.low,n.low),Math.max(t.high,n.high))}low;high;constructor(e,t){this.low=e,this.high=t}},Bg=20,Vg=160,Hg=2,Ug=class e{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,t=Vg,n=!0,r=0,i=0,a=0,o=1/0,s=-1/0,c=new pg,l=new pg,u=Pg(Bg)){this.startTime=e,this._maxSize=t,this._recordMinMax=n,this._sum=r,this._count=i,this._zeroCount=a,this._min=o,this._max=s,this._positive=c,this._negative=l,this._mapping=u,this._maxSize<Hg&&(W.warn(`Exponential Histogram Max Size set to ${this._maxSize}, \
|
|
14
|
-
changing to the minimum size of: ${Hg}`),this._maxSize=Hg)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,t){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=t,e===0){this._zeroCount+=t;return}this._sum+=e*t,e>0?this._updateBuckets(this._positive,e,t):this._updateBuckets(this._negative,-e,t)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let t=this._minScale(e);this._downscale(this.scale-t),this._mergeBuckets(this.positive,e,e.positive,t),this._mergeBuckets(this.negative,e,e.negative,t)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let t=this._minScale(e);this._downscale(this.scale-t),this._diffBuckets(this.positive,e,e.positive,t),this._diffBuckets(this.negative,e,e.negative,t)}clone(){return new e(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,t,n){let r=this._mapping.mapToIndex(t),i=!1,a=0,o=0;if(e.length===0?(e.indexStart=r,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):r<e.indexStart&&e.indexEnd-r>=this._maxSize?(i=!0,o=r,a=e.indexEnd):r>e.indexEnd&&r-e.indexStart>=this._maxSize&&(i=!0,o=e.indexStart,a=r),i){let e=this._changeScale(a,o);this._downscale(e),r=this._mapping.mapToIndex(t)}this._incrementIndexBy(e,r,n)}_incrementIndexBy(e,t,n){if(n===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=t),t<e.indexStart){let n=e.indexEnd-t;n>=e.backing.length&&this._grow(e,n+1),e.indexStart=t}else if(t>e.indexEnd){let n=t-e.indexStart;n>=e.backing.length&&this._grow(e,n+1),e.indexEnd=t}let r=t-e.indexBase;r<0&&(r+=e.backing.length),e.incrementBucket(r,n)}_grow(e,t){let n=e.backing.length,r=e.indexBase-e.indexStart,i=n-r,a=Eg(t);a>this._maxSize&&(a=this._maxSize);let o=a-r;e.backing.growTo(a,i,o)}_changeScale(e,t){let n=0;for(;e-t>=this._maxSize;)e>>=1,t>>=1,n++;return n}_downscale(e){if(e===0)return;if(e<0)throw Error(`impossible change of scale: ${this.scale}`);let t=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=Pg(t)}_minScale(e){let t=Math.min(this.scale,e.scale),n=zg.combine(this._highLowAtScale(this.positive,this.scale,t),this._highLowAtScale(e.positive,e.scale,t)),r=zg.combine(this._highLowAtScale(this.negative,this.scale,t),this._highLowAtScale(e.negative,e.scale,t));return Math.min(t-this._changeScale(n.high,n.low),t-this._changeScale(r.high,r.low))}_highLowAtScale(e,t,n){if(e.length===0)return new zg(0,-1);let r=t-n;return new zg(e.indexStart>>r,e.indexEnd>>r)}_mergeBuckets(e,t,n,r){let i=n.offset,a=t.scale-r;for(let t=0;t<n.length;t++)this._incrementIndexBy(e,i+t>>a,n.at(t))}_diffBuckets(e,t,n,r){let i=n.offset,a=t.scale-r;for(let t=0;t<n.length;t++){let r=(i+t>>a)-e.indexBase;r<0&&(r+=e.backing.length),e.decrementBucket(r,n.at(t))}e.trim()}},Wg=class{kind=ag.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(e,t){this._maxSize=e,this._recordMinMax=t}createAccumulation(e){return new Ug(e,this._maxSize,this._recordMinMax)}merge(e,t){let n=t.clone();return n.merge(e),n}diff(e,t){let n=t.clone();return n.diff(e),n}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Yh.EXPONENTIAL_HISTOGRAM,dataPoints:n.map(([t,n])=>{let i=n.toPointValue(),a=e.type===X.GAUGE||e.type===X.UP_DOWN_COUNTER||e.type===X.OBSERVABLE_GAUGE||e.type===X.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:t,startTime:n.startTime,endTime:r,value:{min:i.hasMinMax?i.min:void 0,max:i.hasMinMax?i.max:void 0,sum:a?void 0:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},count:i.count,scale:i.scale,zeroCount:i.zeroCount}}})}}}})),Kg,qg,Jg=n((()=>{og(),Rf(),Xh(),Kg=class{startTime;_current;sampleTime;constructor(e,t=0,n=[0,0]){this.startTime=e,this._current=t,this.sampleTime=n}record(e){this._current=e,this.sampleTime=Y(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}},qg=class{kind=ag.LAST_VALUE;createAccumulation(e){return new Kg(e)}merge(e,t){let n=sd(t.sampleTime)>=sd(e.sampleTime)?t:e;return new Kg(e.startTime,n.toPointValue(),n.sampleTime)}diff(e,t){let n=sd(t.sampleTime)>=sd(e.sampleTime)?t:e;return new Kg(t.startTime,n.toPointValue(),n.sampleTime)}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Yh.GAUGE,dataPoints:n.map(([e,t])=>({attributes:e,startTime:t.startTime,endTime:r,value:t.toPointValue()}))}}}})),Yg,Xg,Zg=n((()=>{og(),Xh(),Yg=class{startTime;monotonic;_current;reset;constructor(e,t,n=0,r=!1){this.startTime=e,this.monotonic=t,this._current=n,this.reset=r}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}},Xg=class{kind=ag.SUM;monotonic;constructor(e){this.monotonic=e}createAccumulation(e){return new Yg(e,this.monotonic)}merge(e,t){let n=e.toPointValue(),r=t.toPointValue();return t.reset?new Yg(t.startTime,this.monotonic,r,t.reset):new Yg(e.startTime,this.monotonic,n+r)}diff(e,t){let n=e.toPointValue(),r=t.toPointValue();return this.monotonic&&n>r?new Yg(t.startTime,this.monotonic,r,!0):new Yg(t.startTime,this.monotonic,r-n)}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Yh.SUM,dataPoints:n.map(([e,t])=>({attributes:e,startTime:t.startTime,endTime:r,value:t.toPointValue()})),isMonotonic:this.monotonic}}}})),Qg=n((()=>{cg(),fg(),Gg(),Jg(),Zg()})),$g,e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_=n((()=>{G(),Qg(),Xh(),$g=class e{static DEFAULT_INSTANCE=new sg;createAggregator(t){return e.DEFAULT_INSTANCE}},e_=class e{static MONOTONIC_INSTANCE=new Xg(!0);static NON_MONOTONIC_INSTANCE=new Xg(!1);createAggregator(t){switch(t.type){case X.COUNTER:case X.OBSERVABLE_COUNTER:case X.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}}},t_=class e{static DEFAULT_INSTANCE=new qg;createAggregator(t){return e.DEFAULT_INSTANCE}},n_=class e{static DEFAULT_INSTANCE=new dg([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(t){return e.DEFAULT_INSTANCE}},r_=class{_boundaries;_recordMinMax;constructor(e,t=!0){if(e==null)throw Error(`ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array`);e=e.concat(),e=e.sort((e,t)=>e-t);let n=e.lastIndexOf(-1/0),r=e.indexOf(1/0);r===-1&&(r=void 0),this._boundaries=e.slice(n+1,r),this._recordMinMax=t}createAggregator(e){return new dg(this._boundaries,this._recordMinMax)}},i_=class{_maxSize;_recordMinMax;constructor(e=160,t=!0){this._maxSize=e,this._recordMinMax=t}createAggregator(e){return new Wg(this._maxSize,this._recordMinMax)}},a_=class{_resolve(e){switch(e.type){case X.COUNTER:case X.UP_DOWN_COUNTER:case X.OBSERVABLE_COUNTER:case X.OBSERVABLE_UP_DOWN_COUNTER:return s_;case X.GAUGE:case X.OBSERVABLE_GAUGE:return c_;case X.HISTOGRAM:return e.advice.explicitBucketBoundaries?new r_(e.advice.explicitBucketBoundaries):l_}return W.warn(`Unable to recognize instrument type: ${e.type}`),o_}createAggregator(e){return this._resolve(e).createAggregator(e)}},o_=new $g,s_=new e_,c_=new t_,l_=new n_,new i_,u_=new a_}));function f_(e){switch(e.type){case p_.DEFAULT:return u_;case p_.DROP:return o_;case p_.SUM:return s_;case p_.LAST_VALUE:return c_;case p_.EXPONENTIAL_HISTOGRAM:{let t=e;return new i_(t.options?.maxSize,t.options?.recordMinMax)}case p_.EXPLICIT_BUCKET_HISTOGRAM:{let t=e;return t.options==null?l_:new r_(t.options?.boundaries,t.options?.recordMinMax)}default:throw Error(`Unsupported Aggregation`)}}var p_,m_=n((()=>{d_(),(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.DROP=1]=`DROP`,e[e.SUM=2]=`SUM`,e[e.LAST_VALUE=3]=`LAST_VALUE`,e[e.EXPLICIT_BUCKET_HISTOGRAM=4]=`EXPLICIT_BUCKET_HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=5]=`EXPONENTIAL_HISTOGRAM`})(p_||={})})),h_,g_,__=n((()=>{Jh(),m_(),h_=e=>({type:p_.DEFAULT}),g_=e=>qh.CUMULATIVE})),v_,y_=n((()=>{G(),ig(),__(),v_=class{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(e){this._aggregationSelector=e?.aggregationSelector??h_,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??g_,this._metricProducers=e?.metricProducers??[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw Error(`MetricReader can not be bound to a MeterProvider again.`);this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw Error(`MetricReader is not bound to a MetricProducer`);if(this._shutdown)throw Error(`MetricReader is shutdown`);let[t,...n]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(t=>t.collect({timeoutMillis:e?.timeoutMillis}))]),r=t.errors.concat(n.flatMap(e=>e.errors));return{resourceMetrics:{resource:t.resourceMetrics.resource,scopeMetrics:t.resourceMetrics.scopeMetrics.concat(n.flatMap(e=>e.resourceMetrics.scopeMetrics))},errors:r}}async shutdown(e){if(this._shutdown){W.error(`Cannot call shutdown twice.`);return}e?.timeoutMillis==null?await this.onShutdown():await $h(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){W.warn(`Cannot forceFlush on already shutdown MetricReader.`);return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await $h(this.onForceFlush(),e.timeoutMillis)}}})),b_,x_=n((()=>{G(),Rf(),y_(),ig(),Xh(),b_=class extends v_{_interval;_exporter;_exportInterval;_exportTimeout;constructor(e){let{exporter:t,exportIntervalMillis:n=6e4,metricProducers:r,cardinalityLimits:i}=e,{exportTimeoutMillis:a=3e4}=e;if(super({aggregationSelector:t.selectAggregation?.bind(t),aggregationTemporalitySelector:t.selectAggregationTemporality?.bind(t),metricProducers:r,cardinalitySelector:e=>{let t={default:2e3,...i};switch(e){case X.COUNTER:return t.counter??t.default;case X.GAUGE:return t.gauge??t.default;case X.HISTOGRAM:return t.histogram??t.default;case X.OBSERVABLE_COUNTER:return t.observableCounter??t.default;case X.OBSERVABLE_UP_DOWN_COUNTER:return t.observableUpDownCounter??t.default;case X.OBSERVABLE_GAUGE:return t.observableGauge??t.default;case X.UP_DOWN_COUNTER:return t.upDownCounter??t.default;default:return t.default}}}),n<=0)throw Error(`exportIntervalMillis must be greater than 0`);if(a<=0)throw Error(`exportTimeoutMillis must be greater than 0`);if(n<a){if(`exportIntervalMillis`in e&&`exportTimeoutMillis`in e)throw Error(`exportIntervalMillis must be greater than or equal to exportTimeoutMillis`);W.info(`Timeout of ${a} exceeds the interval of ${n}. Clamping timeout to interval duration.`),a=n}this._exportInterval=n,this._exportTimeout=a,this._exporter=t}async _runOnce(){try{await $h(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof rg){W.error(`Export took longer than %s milliseconds and timed out.`,this._exportTimeout);return}bu(e)}}async _doRun(){let{resourceMetrics:e,errors:t}=await this.collect({timeoutMillis:this._exportTimeout});if(t.length>0&&W.error(`PeriodicExportingMetricReader: metrics collection errors`,...t),e.resource.asyncAttributesPending)try{await e.resource.waitForAsyncAttributes?.()}catch(e){W.debug(`Error while resolving async portion of resource: `,e),bu(e)}if(e.scopeMetrics.length===0)return;let n=await Lf._export(this._exporter,e);if(n.code!==_d.SUCCESS)throw Error(`PeriodicExportingMetricReader: metrics export failed (error ${n.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),typeof this._interval!=`number`&&this._interval.unref()}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}}})),S_,C_=n((()=>{Rf(),S_=class{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(e){this._aggregationTemporality=e}export(e,t){if(this._shutdown){setTimeout(()=>t({code:_d.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>t({code:_d.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}}})),w_,T_=n((()=>{Rf(),__(),w_=class e{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??g_}export(t,n){if(this._shutdown){n({code:_d.FAILED});return}return e._sendMetrics(t,n)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,t){for(let t of e.scopeMetrics)for(let e of t.metrics)console.dir({descriptor:e.descriptor,dataPointType:e.dataPointType,dataPoints:e.dataPoints},{depth:null});t({code:_d.SUCCESS})}}})),E_,D_=n((()=>{E_=class{_registeredViews=[];addView(e){this._registeredViews.push(e)}findViews(e,t){return this._registeredViews.filter(n=>this._matchInstrument(n.instrumentSelector,e)&&this._matchMeter(n.meterSelector,t))}_matchInstrument(e,t){return(e.getType()===void 0||t.type===e.getType())&&e.getNameFilter().match(t.name)&&e.getUnitFilter().match(t.unit)}_matchMeter(e,t){return e.getNameFilter().match(t.name)&&(t.version===void 0||e.getVersionFilter().match(t.version))&&(t.schemaUrl===void 0||e.getSchemaUrlFilter().match(t.schemaUrl))}}}));function O_(e,t,n){return j_(e)||W.warn(`Invalid metric name: "${e}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:e,type:t,description:n?.description??``,unit:n?.unit??``,valueType:n?.valueType??Yo.DOUBLE,advice:n?.advice??{}}}function k_(e,t){return{name:e.name??t.name,description:e.description??t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function A_(e,t){return ng(e.name,t.name)&&e.unit===t.unit&&e.type===t.type&&e.valueType===t.valueType}function j_(e){return M_.test(e)}var M_,N_=n((()=>{G(),ig(),M_=/^[a-z][a-z0-9_.\-/]{0,254}$/i}));function P_(e){return e instanceof B_}var F_,I_,L_,R_,z_,B_,V_,H_,U_,W_=n((()=>{G(),Rf(),F_=class{_writableMetricStorage;_descriptor;constructor(e,t){this._writableMetricStorage=e,this._descriptor=t}_record(e,t={},n=Ks.active()){if(typeof e!=`number`){W.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`);return}this._descriptor.valueType===Yo.INT&&!Number.isInteger(e)&&(W.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,t,n,Y(Date.now()))}},I_=class extends F_{add(e,t,n){this._record(e,t,n)}},L_=class extends F_{add(e,t,n){if(e<0){W.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`);return}this._record(e,t,n)}},R_=class extends F_{record(e,t,n){this._record(e,t,n)}},z_=class extends F_{record(e,t,n){if(e<0){W.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`);return}this._record(e,t,n)}},B_=class{_metricStorages;_descriptor;_observableRegistry;constructor(e,t,n){this._descriptor=e,this._metricStorages=t,this._observableRegistry=n}addCallback(e){this._observableRegistry.addCallback(e,this)}removeCallback(e){this._observableRegistry.removeCallback(e,this)}},V_=class extends B_{},H_=class extends B_{},U_=class extends B_{}})),G_,K_=n((()=>{N_(),W_(),Xh(),G_=class{_meterSharedState;constructor(e){this._meterSharedState=e}createGauge(e,t){let n=O_(e,X.GAUGE,t);return new R_(this._meterSharedState.registerMetricStorage(n),n)}createHistogram(e,t){let n=O_(e,X.HISTOGRAM,t);return new z_(this._meterSharedState.registerMetricStorage(n),n)}createCounter(e,t){let n=O_(e,X.COUNTER,t);return new L_(this._meterSharedState.registerMetricStorage(n),n)}createUpDownCounter(e,t){let n=O_(e,X.UP_DOWN_COUNTER,t);return new I_(this._meterSharedState.registerMetricStorage(n),n)}createObservableGauge(e,t){let n=O_(e,X.OBSERVABLE_GAUGE,t);return new H_(n,this._meterSharedState.registerAsyncMetricStorage(n),this._meterSharedState.observableRegistry)}createObservableCounter(e,t){let n=O_(e,X.OBSERVABLE_COUNTER,t);return new V_(n,this._meterSharedState.registerAsyncMetricStorage(n),this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,t){let n=O_(e,X.OBSERVABLE_UP_DOWN_COUNTER,t);return new U_(n,this._meterSharedState.registerAsyncMetricStorage(n),this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.addBatchCallback(e,t)}removeBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.removeBatchCallback(e,t)}}})),q_,J_=n((()=>{N_(),q_=class{_instrumentDescriptor;constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=O_(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}}})),Y_,X_,Z_=n((()=>{ig(),Y_=class{_valueMap=new Map;_keyMap=new Map;_hash;constructor(e){this._hash=e}get(e,t){return t??=this._hash(e),this._valueMap.get(t)}getOrDefault(e,t){let n=this._hash(e);if(this._valueMap.has(n))return this._valueMap.get(n);let r=t();return this._keyMap.has(n)||this._keyMap.set(n,e),this._valueMap.set(n,r),r}set(e,t,n){n??=this._hash(e),this._keyMap.has(n)||this._keyMap.set(n,e),this._valueMap.set(n,t)}has(e,t){return t??=this._hash(e),this._valueMap.has(t)}*keys(){let e=this._keyMap.entries(),t=e.next();for(;t.done!==!0;)yield[t.value[1],t.value[0]],t=e.next()}*entries(){let e=this._valueMap.entries(),t=e.next();for(;t.done!==!0;)yield[this._keyMap.get(t.value[0]),t.value[1],t.value[0]],t=e.next()}get size(){return this._valueMap.size}},X_=class extends Y_{constructor(){super(Zh)}}})),Q_,$_=n((()=>{ig(),Z_(),Q_=class{_activeCollectionStorage=new X_;_cumulativeMemoStorage=new X_;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;_aggregator;constructor(e,t){this._aggregator=e,this._cardinalityLimit=(t??2e3)-1,this._overflowHashCode=Zh(this._overflowAttributes)}record(e,t,n,r){let i=this._activeCollectionStorage.get(t);if(!i){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(r))?.record(e);return}i=this._aggregator.createAccumulation(r),this._activeCollectionStorage.set(t,i)}i?.record(e)}batchCumulate(e,t){for(let[n,r,i]of e.entries()){let e=n,a=i,o=this._aggregator.createAccumulation(t);o?.record(r);let s=o;if(this._cumulativeMemoStorage.has(e,a)){let t=this._cumulativeMemoStorage.get(e,a);s=this._aggregator.diff(t,o)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(e=this._overflowAttributes,a=this._overflowHashCode,this._cumulativeMemoStorage.has(e,a))){let t=this._cumulativeMemoStorage.get(e,a);s=this._aggregator.diff(t,o)}if(this._activeCollectionStorage.has(e,a)){let t=this._activeCollectionStorage.get(e,a);s=this._aggregator.merge(t,s)}this._cumulativeMemoStorage.set(e,o,a),this._activeCollectionStorage.set(e,s,a)}}collect(){let e=this._activeCollectionStorage;return this._activeCollectionStorage=new X_,e}}}));function ev(e){return Array.from(e.entries())}var tv,nv=n((()=>{Jh(),Z_(),tv=class e{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(e,t){this._aggregator=e,t.forEach(e=>{this._unreportedAccumulations.set(e,[])})}buildMetrics(t,n,r,i){this._stashAccumulations(r);let a=this._getMergedUnreportedAccumulations(t),o=a,s;if(this._reportHistory.has(t)){let n=this._reportHistory.get(t),r=n.collectionTime;s=n.aggregationTemporality,o=s===qh.CUMULATIVE?e.merge(n.accumulations,a,this._aggregator):e.calibrateStartTime(n.accumulations,a,r)}else s=t.selectAggregationTemporality(n.type);this._reportHistory.set(t,{accumulations:o,collectionTime:i,aggregationTemporality:s});let c=ev(o);if(c.length!==0)return this._aggregator.toMetricData(n,s,c,i)}_stashAccumulations(e){let t=this._unreportedAccumulations.keys();for(let n of t){let t=this._unreportedAccumulations.get(n);t===void 0&&(t=[],this._unreportedAccumulations.set(n,t)),t.push(e)}}_getMergedUnreportedAccumulations(t){let n=new X_,r=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),r===void 0)return n;for(let t of r)n=e.merge(n,t,this._aggregator);return n}static merge(e,t,n){let r=e,i=t.entries(),a=i.next();for(;a.done!==!0;){let[t,o,s]=a.value;if(e.has(t,s)){let i=e.get(t,s),a=n.merge(i,o);r.set(t,a,s)}else r.set(t,o,s);a=i.next()}return r}static calibrateStartTime(e,t,n){for(let[r,i]of e.keys())t.get(r,i)?.setStartTime(n);return t}}})),rv,iv=n((()=>{J_(),$_(),nv(),Z_(),rv=class extends q_{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(e,t,n,r,i){super(e),this._aggregationCardinalityLimit=i,this._deltaMetricStorage=new Q_(t,this._aggregationCardinalityLimit),this._temporalMetricStorage=new tv(t,r),this._attributesProcessor=n}record(e,t){let n=new X_;for(let[t,r]of e.entries())n.set(this._attributesProcessor.process(t),r);this._deltaMetricStorage.batchCumulate(n,t)}collect(e,t){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,n,t)}}}));function av(e,t){let n=``;return e.unit!==t.unit&&(n+=`\t- Unit '${e.unit}' does not match '${t.unit}'\n`),e.type!==t.type&&(n+=`\t- Type '${e.type}' does not match '${t.type}'\n`),e.valueType!==t.valueType&&(n+=`\t- Value Type '${e.valueType}' does not match '${t.valueType}'\n`),e.description!==t.description&&(n+=`\t- Description '${e.description}' does not match '${t.description}'\n`),n}function ov(e,t){return`\t- use valueType '${e.valueType}' on instrument creation or use an instrument name other than '${t.name}'`}function sv(e,t){return`\t- use unit '${e.unit}' on instrument creation or use an instrument name other than '${t.name}'`}function cv(e,t){let n={name:t.name,type:t.type,unit:t.unit},r=JSON.stringify(n);return`\t- create a new view with a name other than '${e.name}' and InstrumentSelector '${r}'`}function lv(e,t){let n={name:t.name,type:t.type,unit:t.unit},r=JSON.stringify(n);return`\t- create a new view with a name other than '${e.name}' and InstrumentSelector '${r}'
|
|
15
|
-
\t- OR - create a new view with the name ${e.name} and description '${e.description}' and InstrumentSelector ${r}
|
|
16
|
-
\t- OR - create a new view with the name ${t.name} and description '${e.description}' and InstrumentSelector ${r}`}function uv(e,t){return e.valueType===t.valueType?e.unit===t.unit?e.type===t.type?e.description===t.description?``:lv(e,t):cv(e,t):sv(e,t):ov(e,t)}var dv=n((()=>{})),fv,pv=n((()=>{N_(),G(),dv(),fv=class e{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new e}getStorages(e){let t=[];for(let e of this._sharedRegistry.values())t=t.concat(e);let n=this._perCollectorRegistry.get(e);if(n!=null)for(let e of n.values())t=t.concat(e);return t}register(e){this._registerStorage(e,this._sharedRegistry)}registerForCollector(e,t){let n=this._perCollectorRegistry.get(e);n??(n=new Map,this._perCollectorRegistry.set(e,n)),this._registerStorage(t,n)}findOrUpdateCompatibleStorage(e){let t=this._sharedRegistry.get(e.name);return t===void 0?null:this._findOrUpdateCompatibleStorage(e,t)}findOrUpdateCompatibleCollectorStorage(e,t){let n=this._perCollectorRegistry.get(e);if(n===void 0)return null;let r=n.get(t.name);return r===void 0?null:this._findOrUpdateCompatibleStorage(t,r)}_registerStorage(e,t){let n=e.getInstrumentDescriptor(),r=t.get(n.name);if(r===void 0){t.set(n.name,[e]);return}r.push(e)}_findOrUpdateCompatibleStorage(e,t){let n=null;for(let r of t){let t=r.getInstrumentDescriptor();A_(t,e)?(t.description!==e.description&&(e.description.length>t.description.length&&r.updateDescription(e.description),W.warn(`A view or instrument with the name `,e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
|
17
|
-
`,`Details:
|
|
18
|
-
`,av(t,e),`The longer description will be used.
|
|
19
|
-
To resolve the conflict:`,uv(t,e))),n=r):W.warn(`A view or instrument with the name `,e.name,` has already been registered and is incompatible with another registered view.
|
|
20
|
-
`,`Details:
|
|
21
|
-
`,av(t,e),`To resolve the conflict:
|
|
22
|
-
`,uv(t,e))}return n}}})),mv,hv=n((()=>{mv=class{_backingStorages;constructor(e){this._backingStorages=e}record(e,t,n,r){let i=this._backingStorages;for(let a=0;a<i.length;a++)i[a].record(e,t,n,r)}}})),gv,_v,vv=n((()=>{G(),Z_(),W_(),gv=class{_buffer=new X_;_instrumentName;_valueType;constructor(e,t){this._instrumentName=e,this._valueType=t}observe(e,t={}){if(typeof e!=`number`){W.warn(`non-number value provided to metric ${this._instrumentName}: ${e}`);return}this._valueType===Yo.INT&&!Number.isInteger(e)&&(W.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(t,e)}},_v=class{_buffer=new Map;observe(e,t,n={}){if(!P_(e))return;let r=this._buffer.get(e);if(r??(r=new X_,this._buffer.set(e,r)),typeof t!=`number`){W.warn(`non-number value provided to metric ${e._descriptor.name}: ${t}`);return}e._descriptor.valueType===Yo.INT&&!Number.isInteger(t)&&(W.warn(`INT value type cannot accept a floating-point value for ${e._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||r.set(n,t)}}})),yv,bv=n((()=>{G(),W_(),vv(),ig(),yv=class{_callbacks=[];_batchCallbacks=[];addCallback(e,t){this._findCallback(e,t)>=0||this._callbacks.push({callback:e,instrument:t})}removeCallback(e,t){let n=this._findCallback(e,t);n<0||this._callbacks.splice(n,1)}addBatchCallback(e,t){let n=new Set(t.filter(P_));if(n.size===0){W.error(`BatchObservableCallback is not associated with valid instruments`,t);return}this._findBatchCallback(e,n)>=0||this._batchCallbacks.push({callback:e,instruments:n})}removeBatchCallback(e,t){let n=new Set(t.filter(P_)),r=this._findBatchCallback(e,n);r<0||this._batchCallbacks.splice(r,1)}async observe(e,t){let n=this._observeCallbacks(e,t),r=this._observeBatchCallbacks(e,t);return(await Promise.allSettled([...n,...r])).filter(e=>e.status===`rejected`).map(e=>e.reason)}_observeCallbacks(e,t){return this._callbacks.map(async({callback:n,instrument:r})=>{let i=new gv(r._descriptor.name,r._descriptor.valueType),a=Promise.resolve(n(i));t!=null&&(a=$h(a,t)),await a,r._metricStorages.forEach(t=>{t.record(i._buffer,e)})})}_observeBatchCallbacks(e,t){return this._batchCallbacks.map(async({callback:n,instruments:r})=>{let i=new _v,a=Promise.resolve(n(i));t!=null&&(a=$h(a,t)),await a,r.forEach(t=>{let n=i._buffer.get(t);n!=null&&t._metricStorages.forEach(t=>{t.record(n,e)})})})}_findCallback(e,t){return this._callbacks.findIndex(n=>n.callback===e&&n.instrument===t)}_findBatchCallback(e,t){return this._batchCallbacks.findIndex(n=>n.callback===e&&eg(n.instruments,t))}}})),xv,Sv=n((()=>{J_(),$_(),nv(),xv=class extends q_{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(e,t,n,r,i){super(e),this._aggregationCardinalityLimit=i,this._deltaMetricStorage=new Q_(t,this._aggregationCardinalityLimit),this._temporalMetricStorage=new tv(t,r),this._attributesProcessor=n}record(e,t,n,r){t=this._attributesProcessor.process(t,n),this._deltaMetricStorage.record(e,t,n,r)}collect(e,t){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,n,t)}}}));function Cv(){return jv}function wv(e){return new Ov(e)}function Tv(e){return new kv(e)}function Ev(e){return new Av(e)}var Dv,Ov,kv,Av,jv,Mv=n((()=>{Dv=class{process(e,t){return e}},Ov=class{_processors;constructor(e){this._processors=e}process(e,t){let n=e;for(let e of this._processors)n=e.process(n,t);return n}},kv=class{_allowedAttributeNames;constructor(e){this._allowedAttributeNames=new Set(e)}process(e,t){let n={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this._allowedAttributeNames.has(t)&&(n[t]=e[t]);return n}},Av=class{_deniedAttributeNames;constructor(e){this._deniedAttributeNames=new Set(e)}process(e,t){let n={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&!this._deniedAttributeNames.has(t)&&(n[t]=e[t]);return n}},jv=new Dv})),Nv,Pv=n((()=>{N_(),K_(),iv(),pv(),hv(),bv(),Sv(),Mv(),Nv=class{metricStorageRegistry=new fv;observableRegistry=new yv;meter;_meterProviderSharedState;_instrumentationScope;constructor(e,t){this.meter=new G_(this),this._meterProviderSharedState=e,this._instrumentationScope=t}registerMetricStorage(e){let t=this._registerMetricStorage(e,xv);return t.length===1?t[0]:new mv(t)}registerAsyncMetricStorage(e){return this._registerMetricStorage(e,rv)}async collect(e,t,n){let r=await this.observableRegistry.observe(t,n?.timeoutMillis),i=this.metricStorageRegistry.getStorages(e);if(i.length===0)return null;let a=[];return i.forEach(n=>{let r=n.collect(e,t);r!=null&&a.push(r)}),a.length===0?{errors:r}:{scopeMetrics:{scope:this._instrumentationScope,metrics:a},errors:r}}_registerMetricStorage(e,t){let n=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope).map(n=>{let r=k_(n,e),i=this.metricStorageRegistry.findOrUpdateCompatibleStorage(r);if(i!=null)return i;let a=new t(r,n.aggregation.createAggregator(r),n.attributesProcessor,this._meterProviderSharedState.metricCollectors,n.aggregationCardinalityLimit);return this.metricStorageRegistry.register(a),a});if(n.length===0){let r=this._meterProviderSharedState.selectAggregations(e.type).map(([n,r])=>{let i=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(n,e);if(i!=null)return i;let a=r.createAggregator(e),o=n.selectCardinalityLimit(e.type),s=new t(e,a,Cv(),[n],o);return this.metricStorageRegistry.registerForCollector(n,s),s});n=n.concat(r)}return n}}})),Fv,Iv=n((()=>{ig(),D_(),Pv(),m_(),Fv=class{viewRegistry=new E_;metricCollectors=[];meterSharedStates=new Map;resource;constructor(e){this.resource=e}getMeterSharedState(e){let t=Qh(e),n=this.meterSharedStates.get(t);return n??(n=new Nv(this,e),this.meterSharedStates.set(t,n)),n}selectAggregations(e){let t=[];for(let n of this.metricCollectors)t.push([n,f_(n.selectAggregation(e))]);return t}}})),Lv,Rv=n((()=>{Rf(),Lv=class{_sharedState;_metricReader;constructor(e,t){this._sharedState=e,this._metricReader=t}async collect(e){let t=Y(Date.now()),n=[],r=[],i=Array.from(this._sharedState.meterSharedStates.values()).map(async i=>{let a=await i.collect(this,t,e);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&r.push(...a.errors)});return await Promise.all(i),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:r}}async forceFlush(e){await this._metricReader.forceFlush(e)}async shutdown(e){await this._metricReader.shutdown(e)}selectAggregationTemporality(e){return this._metricReader.selectAggregationTemporality(e)}selectAggregation(e){return this._metricReader.selectAggregation(e)}selectCardinalityLimit(e){return this._metricReader.selectCardinalityLimit?.(e)??2e3}}})),zv,Bv,Vv,Hv=n((()=>{zv=/[\^$\\.+?()[\]{}|]/g,Bv=class e{_matchAll;_regexp;constructor(t){t===`*`?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(e.escapePattern(t)))}match(e){return this._matchAll?!0:this._regexp.test(e)}static escapePattern(e){return`^${e.replace(zv,`\\$&`).replace(`*`,`.*`)}$`}static hasWildcard(e){return e.includes(`*`)}},Vv=class{_matchAll;_pattern;constructor(e){this._matchAll=e===void 0,this._pattern=e}match(e){return!!(this._matchAll||e===this._pattern)}}})),Uv,Wv=n((()=>{Hv(),Uv=class{_nameFilter;_type;_unitFilter;constructor(e){this._nameFilter=new Bv(e?.name??`*`),this._type=e?.type,this._unitFilter=new Vv(e?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}}})),Gv,Kv=n((()=>{Hv(),Gv=class{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(e){this._nameFilter=new Vv(e?.name),this._versionFilter=new Vv(e?.version),this._schemaUrlFilter=new Vv(e?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}}}));function qv(e){return e.instrumentName==null&&e.instrumentType==null&&e.instrumentUnit==null&&e.meterName==null&&e.meterVersion==null&&e.meterSchemaUrl==null}function Jv(e){if(qv(e))throw Error(`Cannot create view with no selector arguments supplied`);if(e.name!=null&&(e?.instrumentName==null||Bv.hasWildcard(e.instrumentName)))throw Error(`Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.`)}var Yv,Xv=n((()=>{Hv(),Mv(),Wv(),Kv(),m_(),Yv=class{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(e){Jv(e),e.attributesProcessors==null?this.attributesProcessor=Cv():this.attributesProcessor=wv(e.attributesProcessors),this.name=e.name,this.description=e.description,this.aggregation=f_(e.aggregation??{type:p_.DEFAULT}),this.instrumentSelector=new Uv({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new Gv({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl}),this.aggregationCardinalityLimit=e.aggregationCardinalityLimit}}})),Zv,Qv=n((()=>{G(),vp(),Iv(),Rv(),Xv(),Zv=class{_sharedState;_shutdown=!1;constructor(e){if(this._sharedState=new Fv(e?.resource??qf()),e?.views!=null&&e.views.length>0)for(let t of e.views)this._sharedState.viewRegistry.addView(new Yv(t));if(e?.readers!=null&&e.readers.length>0)for(let t of e.readers){let e=new Lv(this._sharedState,t);t.setMetricProducer(e),this._sharedState.metricCollectors.push(e)}}getMeter(e,t=``,n={}){return this._shutdown?(W.warn(`A shutdown MeterProvider cannot provide a Meter`),ko()):this._sharedState.getMeterSharedState({name:e,version:t,schemaUrl:n.schemaUrl}).meter}async shutdown(e){if(this._shutdown){W.warn(`shutdown may only be called once per MeterProvider`);return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(t=>t.shutdown(e)))}async forceFlush(e){if(this._shutdown){W.warn(`invalid attempt to force flush after MeterProvider shutdown`);return}await Promise.all(this._sharedState.metricCollectors.map(t=>t.forceFlush(e)))}}})),$v=r({AggregationTemporality:()=>qh,AggregationType:()=>p_,ConsoleMetricExporter:()=>w_,DataPointType:()=>Yh,InMemoryMetricExporter:()=>S_,InstrumentType:()=>X,MeterProvider:()=>Zv,MetricReader:()=>v_,PeriodicExportingMetricReader:()=>b_,TimeoutError:()=>rg,createAllowListAttributesProcessor:()=>Tv,createDenyListAttributesProcessor:()=>Ev}),ey=n((()=>{Jh(),Xh(),y_(),x_(),C_(),T_(),Qv(),m_(),Mv(),ig()})),ty,ny=n((()=>{ty=`exception`})),ry,iy=n((()=>{G(),Rf(),qu(),ny(),ry=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Ws.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(e){let t=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=Qu.now(),this._performanceOffset=t-(this._performanceStartTime+Qu.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let t of e.links)this.addLink(t);this.startTime=this._getTime(e.startTime??t),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(t==null||this._isSpanEnded())return this;if(e.length===0)return W.warn(`Invalid attribute key: ${e}`),this;if(!fu(t))return W.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n!==void 0&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(r===0)return W.warn(`No events allowed.`),this._droppedEventsCount++,this;r!==void 0&&this.events.length>=r&&(this._droppedEventsCount===0&&W.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),ld(t)&&(ld(n)||(n=t),t=void 0);let i=uu(t),{attributePerEventCountLimit:a}=this._spanLimits,o={},s=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(a!==void 0&&c>=a){s++;continue}o[e]=this._truncateToSize(t),c++}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:s}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(t===0)return this._droppedLinksCount++,this;t!==void 0&&this.links.length>=t&&(this._droppedLinksCount===0&&W.debug(`Dropping extra links.`),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:n}=this._spanLimits,r=uu(e.attributes),i={},a=0,o=0;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];if(n!==void 0&&o>=n){a++;continue}i[e]=this._truncateToSize(t),o++}let s={context:e.context};return o>0&&(s.attributes=i),a>0&&(s.droppedAttributesCount=a),this.links.push(s),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===Ws.UNSET||this.status.code===Ws.OK)return this;let t={code:e.code};return e.code===Ws.ERROR&&(typeof e.message==`string`?t.message=e.message:e.message!=null&&W.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){if(this._isSpanEnded()){W.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(e),this._duration=rd(this.startTime,this.endTime),this._duration[0]<0&&(W.warn(`Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.`,this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&W.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&W.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=Qu.now())return td(e+this._performanceOffset);if(typeof e==`number`)return Y(e);if(e instanceof Date)return Y(e.getTime());if(cd(e))return e;if(this._startTimeProvided)return Y(Date.now());let t=Qu.now()-this._performanceStartTime;return ud(this.startTime,Y(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[Iu]=e:e&&(e.code?n[Ru]=e.code.toString():e.name&&(n[Ru]=e.name),e.message&&(n[Iu]=e.message),e.stack&&(n[Lu]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(ty,n,t):W.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);W.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(W.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}}})),ay,oy=n((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(ay||={})})),sy,cy=n((()=>{oy(),sy=class{shouldSample(){return{decision:ay.NOT_RECORD}}toString(){return`AlwaysOffSampler`}}})),ly,uy=n((()=>{oy(),ly=class{shouldSample(){return{decision:ay.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}}})),dy,fy=n((()=>{G(),Rf(),cy(),uy(),dy=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(e){this._root=e.root,this._root||=(bu(Error(`ParentBasedSampler must have a root sampler configured`)),new ly),this._remoteParentSampled=e.remoteParentSampled??new ly,this._remoteParentNotSampled=e.remoteParentNotSampled??new sy,this._localParentSampled=e.localParentSampled??new ly,this._localParentNotSampled=e.localParentNotSampled??new sy}shouldSample(e,t,n,r,i,a){let o=fc.getSpanContext(e);return!o||!ws(o)?this._root.shouldSample(e,t,n,r,i,a):o.isRemote?o.traceFlags&as.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,a):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,a):o.traceFlags&as.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,a):this._localParentNotSampled.shouldSample(e,t,n,r,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),py,my=n((()=>{G(),oy(),py=class{_ratio;_upperBound;constructor(e=0){this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:Ss(t)&&this._accumulate(t)<this._upperBound?ay.RECORD_AND_SAMPLED:ay.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<32;n+=8){let r=0;for(let t=0;t<8;t++){let i=e.charCodeAt(n+t),a=i<58?i-48:i<71?i-55:i-87;r=r<<4|a}t=(t^r)>>>0}return t}}}));function hy(){return{sampler:gy(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function gy(){let e=vy.ParentBasedAlwaysOn;switch(e){case vy.AlwaysOn:return new ly;case vy.AlwaysOff:return new sy;case vy.ParentBasedAlwaysOn:return new dy({root:new ly});case vy.ParentBasedAlwaysOff:return new dy({root:new sy});case vy.TraceIdRatio:return new py(_y());case vy.ParentBasedTraceIdRatio:return new dy({root:new py(_y())});default:return W.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${vy.ParentBasedAlwaysOn}".`),new dy({root:new ly})}}function _y(){return W.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${yy}.`),yy}var vy,yy,by=n((()=>{G(),Rf(),cy(),uy(),fy(),my(),(function(e){e.AlwaysOff=`always_off`,e.AlwaysOn=`always_on`,e.ParentBasedAlwaysOff=`parentbased_always_off`,e.ParentBasedAlwaysOn=`parentbased_always_on`,e.ParentBasedTraceIdRatio=`parentbased_traceidratio`,e.TraceIdRatio=`traceidratio`})(vy||={}),yy=1}));function xy(e){let t={sampler:gy()},n=hy(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function Sy(e){let t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??128,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??1/0,Object.assign({},e,{spanLimits:t})}var Cy=n((()=>{by(),Rf()})),wy,Ty=n((()=>{G(),Rf(),wy=class{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(e,t){this._exporter=e,this._maxExportBatchSize=typeof t?.maxExportBatchSize==`number`?t.maxExportBatchSize:512,this._maxQueueSize=typeof t?.maxQueueSize==`number`?t.maxQueueSize:2048,this._scheduledDelayMillis=typeof t?.scheduledDelayMillis==`number`?t.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof t?.exportTimeoutMillis==`number`?t.exportTimeoutMillis:3e4,this._shutdownOnce=new kf(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(W.warn(`BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&as.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&W.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(W.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);Ks.with(ql(Ks.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,r=>{clearTimeout(n),r.code===_d.SUCCESS?e():t(r.error??Error(`BatchSpanProcessor: span export failed`))}),a=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(a??=[],a.push(t.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,e=>{bu(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,bu(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}})),Ey,Dy=n((()=>{Ty(),Rf(),Ey=class extends wy{_visibilityChangeListener;_pageHideListener;constructor(e,t){super(e,t),this.onInit(t)}onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&typeof document<`u`&&(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush().catch(e=>{bu(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{bu(e)})},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}onShutdown(){typeof document<`u`&&(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}}}));function Oy(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function ky(e){let t=``;for(let n=0;n<e.length;n++)t+=Py[e[n]];return t}var Ay,jy,My,Ny,Py,Fy,Iy=n((()=>{Ay=16,jy=8,My=new Uint8Array(Ay),Ny=new Uint8Array(jy),Py=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`)),Fy=class{generateTraceId(){return Oy(My),ky(My)}generateSpanId(){return Oy(Ny),ky(Ny)}}})),Ly=n((()=>{Dy(),Iy()})),Ry,zy,By,Vy,Hy=n((()=>{Ry=`otel.span.parent.origin`,zy=`otel.span.sampling_result`,By=`otel.sdk.span.live`,Vy=`otel.sdk.span.started`}));function Uy(e){return e?e.isRemote?`remote`:`local`:`none`}function Wy(e){switch(e){case ay.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case ay.RECORD:return`RECORD_ONLY`;case ay.NOT_RECORD:return`DROP`}}var Gy,Ky=n((()=>{oy(),Hy(),Gy=class{startedSpans;liveSpans;constructor(e){this.startedSpans=e.createCounter(Vy,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(By,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=Wy(t);if(this.startedSpans.add(1,{[Ry]:Uy(e),[zy]:n}),t===ay.NOT_RECORD)return()=>{};let r={[zy]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}}})),qy,Jy=n((()=>{qy=`2.7.1`})),Yy,Xy=n((()=>{G(),Rf(),iy(),Cy(),Ly(),Ky(),Jy(),Yy=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(e,t,n,r){let i=xy(t);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=t.idGenerator||new Fy,this._resource=n,this._spanProcessor=r,this.instrumentationScope=e;let a=i.meterProvider?i.meterProvider.getMeter(`@opentelemetry/sdk-trace`,qy):ko();this._tracerMetrics=new Gy(a)}startSpan(e,t={},n=Ks.active()){t.root&&(n=fc.deleteSpan(n));let r=fc.getSpan(n);if(Yl(n))return W.debug(`Instrumentation suppressed, returning Noop Span`),fc.wrapSpanContext(ls);let i=r?.spanContext(),a=this._idGenerator.generateSpanId(),o,s,c;!i||!fc.isSpanContextValid(i)?s=this._idGenerator.generateTraceId():(s=i.traceId,c=i.traceState,o=i);let l=t.kind??Hs.INTERNAL,u=(t.links??[]).map(e=>({context:e.context,attributes:uu(e.attributes)})),d=uu(t.attributes),f=this._sampler.shouldSample(n,s,e,l,d,u),p=this._tracerMetrics.startSpan(i,f.decision);c=f.traceState??c;let m=f.decision===Bs.RECORD_AND_SAMPLED?as.SAMPLED:as.NONE,h={traceId:s,spanId:a,traceFlags:m,traceState:c};if(f.decision===Bs.NOT_RECORD)return W.debug(`Recording is off, propagating context in a non-recording span`),fc.wrapSpanContext(h);let g=uu(Object.assign(d,f.attributes));return new ry({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:h,name:e,kind:l,links:u,parentSpanContext:o,attributes:g,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:p})}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??Ks.active(),c=this.startSpan(e,i,s),l=fc.setSpan(s,c);return Ks.with(l,o,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}})),Zy,Qy=n((()=>{Rf(),Zy=class{_spanProcessors;constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{bu(e||Error(`MultiSpanProcessor: forceFlush failed`)),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}})),$y,eb,tb=n((()=>{Rf(),vp(),Xy(),by(),Qy(),Cy(),(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})($y||={}),eb=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(e={}){let t=uf({},hy(),Sy(e));this._resource=t.resource??qf(),this._config=Object.assign({},t,{resource:this._resource});let n=[];e.spanProcessors?.length&&n.push(...e.spanProcessors),this._activeSpanProcessor=new Zy(n)}getTracer(e,t,n){let r=`${e}@${t||``}:${n?.schemaUrl||``}`;return this._tracers.has(r)||this._tracers.set(r,new Yy({name:e,version:t,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(r)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=$y.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==$y.timeout&&(r=$y.resolved,n(r))}).catch(e=>{clearTimeout(i),r=$y.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==$y.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}})),nb,rb=n((()=>{Rf(),nb=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationScope,traceId:e.spanContext().traceId,parentSpanContext:e.parentSpanContext,traceState:e.spanContext().traceState?.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:sd(e.startTime),duration:sd(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,t){for(let t of e)console.dir(this._exportInfo(t),{depth:3});if(t)return t({code:_d.SUCCESS})}}})),ib,ab=n((()=>{Rf(),ib=class{_finishedSpans=[];_stopped=!1;export(e,t){if(this._stopped)return t({code:_d.FAILED,error:Error(`Exporter has been stopped`)});this._finishedSpans.push(...e),setTimeout(()=>t({code:_d.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}})),ob,sb=n((()=>{G(),Rf(),ob=class{_exporter;_shutdownOnce;_pendingExports;constructor(e){this._exporter=e,this._shutdownOnce=new kf(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,t){}onEnd(e){if(this._shutdownOnce.isCalled||(e.spanContext().traceFlags&as.SAMPLED)===0)return;let t=this._doExport(e).catch(e=>bu(e));this._pendingExports.add(t),t.finally(()=>this._pendingExports.delete(t))}async _doExport(e){e.resource.asyncAttributesPending&&await e.resource.waitForAsyncAttributes?.();let t=await Lf._export(this._exporter,[e]);if(t.code!==_d.SUCCESS)throw t.error??Error(`SimpleSpanProcessor: span export failed (status ${t})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}})),cb,lb=n((()=>{cb=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}})),ub=r({AlwaysOffSampler:()=>sy,AlwaysOnSampler:()=>ly,BasicTracerProvider:()=>eb,BatchSpanProcessor:()=>Ey,ConsoleSpanExporter:()=>nb,InMemorySpanExporter:()=>ib,NoopSpanProcessor:()=>cb,ParentBasedSampler:()=>dy,RandomIdGenerator:()=>Fy,SamplingDecision:()=>ay,SimpleSpanProcessor:()=>ob,TraceIdRatioBasedSampler:()=>py}),db=n((()=>{tb(),Ly(),rb(),ab(),sb(),lb(),cy(),uy(),fy(),my(),oy()})),fb,pb=n((()=>{G(),fb=class{_enabled=!1;_currentContext=Do;_bindFunction(e=Do,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return e===void 0&&(e=this.active()),typeof t==`function`?this._bindFunction(e,t):t}disable(){return this._currentContext=Do,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Do,this)}with(e,t,n,...r){let i=this._currentContext;this._currentContext=e||Do;try{return t.call(n,...r)}finally{this._currentContext=i}}}}));function mb(e){if(e!==null){if(e===void 0){let e=new fb;e.enable(),Ks.setGlobalContextManager(e);return}e.enable(),Ks.setGlobalContextManager(e)}}function hb(e){if(e!==null){if(e===void 0){sc.setGlobalPropagator(new yd({propagators:[new zd,new ou]}));return}sc.setGlobalPropagator(e)}}var gb,_b=n((()=>{db(),pb(),G(),Rf(),gb=class extends eb{constructor(e={}){super(e)}register(e={}){fc.setGlobalTracerProvider(this),hb(e.propagator),mb(e.contextManager)}}})),vb,yb=n((()=>{(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(vb||={})})),bb,xb,Sb=n((()=>{bb=`http.response_content_length`,xb=`http.response_content_length_uncompressed`}));function Cb(){return Rb||=document.createElement(`a`),Rb}function wb(e,t){return t in e}function Tb(e,t,n,r=!0){if(wb(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function Eb(e,t,n=!1,r,i){if(r===void 0&&(r=t[vb.START_TIME]!==0),n||(Tb(e,vb.FETCH_START,t,r),Tb(e,vb.DOMAIN_LOOKUP_START,t,r),Tb(e,vb.DOMAIN_LOOKUP_END,t,r),Tb(e,vb.CONNECT_START,t,r),Tb(e,vb.SECURE_CONNECTION_START,t,r),Tb(e,vb.CONNECT_END,t,r),Tb(e,vb.REQUEST_START,t,r),Tb(e,vb.RESPONSE_START,t,r),Tb(e,vb.RESPONSE_END,t,r)),!i){let n=t[vb.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(bb,n);let r=t[vb.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(xb,r)}}function Db(e){return e.slice().sort((e,t)=>{let n=e[vb.FETCH_START],r=t[vb.FETCH_START];return n>r?1:n<r?-1:0})}function Ob(){return typeof location<`u`?location.origin:void 0}function kb(e,t,n,r,i=new WeakSet,a){let o=Mb(e);e=o.toString();let s=jb(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};let c=Db(s);if(o.origin!==Ob()&&c.length>1){let e=c[0],t=Ab(c,e[vb.RESPONSE_END],n),r=e[vb.RESPONSE_END];return t[vb.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}else return{mainRequest:s[0]}}function Ab(e,t,n){let r=ad(n),i=ad(nd(t)),a=e[1],o,s=e.length;for(let t=1;t<s;t++){let n=e[t],s=ad(nd(n[vb.FETCH_START])),c=r-ad(nd(n[vb.RESPONSE_END]));s>=i&&(!o||c<o)&&(o=c,a=n)}return a}function jb(e,t,n,r,i,a){let o=ad(t),s=ad(n),c=r.filter(t=>{let n=ad(nd(t[vb.FETCH_START])),r=ad(nd(t[vb.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||`xmlhttprequest`)&&t.name===e&&n>=o&&r<=s});return c.length>0&&(c=c.filter(e=>!i.has(e))),c}function Mb(e){if(typeof URL==`function`)return new URL(e,typeof document<`u`?document.baseURI:typeof location<`u`?location.href:void 0);let t=Cb();return t.href=e,t}function Nb(e){return Mb(e).href}function Pb(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return`/`;let n=Ib(e,t);if(t&&n.indexOf(`@id`)>0)return n;let r=``;return e.parentNode&&(r+=Pb(e.parentNode,t)),r+=n,r}function Fb(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let n=Array.from(e.parentNode.childNodes);return n=n.filter(n=>{let r=n.localName;return t.indexOf(n.nodeType)>=0&&r===e.localName}),n.length>=1?n.indexOf(e)+1:0}function Ib(e,t){let n=e.nodeType,r=Fb(e),i=``;if(n===Node.ELEMENT_NODE){let n=e.getAttribute(`id`);if(t&&n)return`//*[@id="${n}"]`;i=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)i=`text()`;else if(n===Node.COMMENT_NODE)i=`comment()`;else return``;return i&&r>1?`/${i}[${r}]`:`/${i}`}function Lb(e,t){let n=t||[];return(typeof n==`string`||n instanceof RegExp)&&(n=[n]),Mb(e).origin===Ob()?!0:n.some(t=>wf(e,t))}var Rb,zb=n((()=>{yb(),Rf(),Sb()})),Bb=r({AlwaysOffSampler:()=>sy,AlwaysOnSampler:()=>ly,BasicTracerProvider:()=>eb,BatchSpanProcessor:()=>Ey,ConsoleSpanExporter:()=>nb,InMemorySpanExporter:()=>ib,NoopSpanProcessor:()=>cb,ParentBasedSampler:()=>dy,PerformanceTimingNames:()=>vb,RandomIdGenerator:()=>Fy,SamplingDecision:()=>ay,SimpleSpanProcessor:()=>ob,StackContextManager:()=>fb,TraceIdRatioBasedSampler:()=>py,WebTracerProvider:()=>gb,addSpanNetworkEvent:()=>Tb,addSpanNetworkEvents:()=>Eb,getElementXPath:()=>Pb,getResource:()=>kb,hasKey:()=>wb,normalizeUrl:()=>Nb,parseUrl:()=>Mb,shouldPropagateTraceHeaders:()=>Lb,sortResources:()=>Db}),Vb=n((()=>{_b(),pb(),yb(),zb(),db()})),Hb=i(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stackframe`,[],r):typeof e==`object`?t.exports=r():n.StackFrame=r()})(e,function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`],[`evalOrigin`]);function s(e){if(e)for(var n=0;n<o.length;n++)e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n}},s.fromString=function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),c=o[1],l=o[2],u=o[3];return new s({functionName:r,args:i||void 0,fileName:c,lineNumber:l||void 0,columnNumber:u||void 0})};for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=(function(e){return function(t){this[e]=!!t}})(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=(function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}})(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=(function(e){return function(t){this[e]=String(t)}})(a[u]);return s})})),Ub=i(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`error-stack-parser`,[`stackframe`],r):typeof e==`object`?t.exports=r(Hb()):n.ErrorStackParser=r(n.StackFrame)})(e,function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
|
|
23
|
-
`).filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf(`(eval `)>-1&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));var n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;var i=this.extractLocation(r?r[1]:n);return new e({functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split(`
|
|
24
|
-
`).filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(` > eval`)>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),t.indexOf(`@`)===-1&&t.indexOf(`:`)===-1)return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,``));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(`
|
|
25
|
-
`)>-1&&e.message.split(`
|
|
26
|
-
`).length>e.stacktrace.split(`
|
|
27
|
-
`).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
|
|
28
|
-
`),i=[],a=2,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
|
|
29
|
-
`),i=[],a=0,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera11:function(n){return n.stack.split(`
|
|
30
|
-
`).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,o;return i.match(/\(([^)]*)\)/)&&(o=i.replace(/^[^(]+\(([^)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)}}})})),Wb=i(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stack-generator`,[`stackframe`],r):typeof e==`object`?t.exports=r(Hb()):n.StackGenerator=r(n.StackFrame)})(e,function(e){return{backtrace:function(t){var n=[],r=10;typeof t==`object`&&typeof t.maxStackSize==`number`&&(r=t.maxStackSize);for(var i=arguments.callee;i&&n.length<r&&i.arguments;){for(var a=Array(i.arguments.length),o=0;o<a.length;++o)a[o]=i.arguments[o];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{i=i.caller}catch{break}}return n}}})})),Gb=i((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||!!e.match(n)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=e.source-t.source;return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:e.name-t.name}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=e.source-t.source,r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:e.name-t.name}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_})),Kb=i((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})),qb=i((e=>{var t=Gb(),n=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}r.fromArray=function(e,t){for(var n=new r,i=0,a=e.length;i<a;i++)n.add(e[i],t);return n},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,r){var i=t.toSetString(e),a=n.call(this._set,i),o=this._array.length;(!a||r)&&this._array.push(e),a||(this._set[i]=o)},r.prototype.has=function(e){var r=t.toSetString(e);return n.call(this._set,r)},r.prototype.indexOf=function(e){var r=t.toSetString(e);if(n.call(this._set,r))return this._set[r];throw Error(`"`+e+`" is not in the set.`)},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},r.prototype.toArray=function(){return this._array.slice()},e.ArraySet=r})),Jb=i((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),Yb=i((e=>{var t=Jb(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),Xb=i((e=>{function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}e.quickSort=function(e,t){r(e,t,0,e.length-1)}})),Zb=i((e=>{var t=Gb(),n=Kb(),r=qb().ArraySet,i=Yb(),a=Xb().quickSort;function o(e){var t=e;return typeof e==`string`&&(t=JSON.parse(e.replace(/^\)\]\}'/,``))),t.sections==null?new s(t):new l(t)}o.fromSourceMap=function(e){return s.fromSourceMap(e)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n!=null&&c!=null&&(n=t.join(c,n)),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(this.sourceRoot!=null&&(i.source=t.relative(this.sourceRoot,i.source)),!this._sources.has(i.source))return[];i.source=this._sources.indexOf(i.source);var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e){var n=e;typeof e==`string`&&(n=JSON.parse(e.replace(/^\)\]\}'/,``)));var i=t.getArg(n,`version`),a=t.getArg(n,`sources`),o=t.getArg(n,`names`,[]),s=t.getArg(n,`sourceRoot`,null),c=t.getArg(n,`sourcesContent`,null),l=t.getArg(n,`mappings`),u=t.getArg(n,`file`,null);if(i!=this._version)throw Error(`Unsupported version: `+i);a=a.map(String).map(t.normalize).map(function(e){return s&&t.isAbsolute(s)&&t.isAbsolute(e)?t.relative(s,e):e}),this._names=r.fromArray(o.map(String),!0),this._sources=r.fromArray(a,!0),this.sourceRoot=s,this.sourcesContent=c,this._mappings=l,this.file=u}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.fromSourceMap=function(e){var n=Object.create(s.prototype),i=n._names=r.fromArray(e._names.toArray(),!0),o=n._sources=r.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file;for(var l=e._mappings.toArray().slice(),u=n.__generatedMappings=[],d=n.__originalMappings=[],f=0,p=l.length;f<p;f++){var m=l[f],h=new c;h.generatedLine=m.generatedLine,h.generatedColumn=m.generatedColumn,m.source&&(h.source=o.indexOf(m.source),h.originalLine=m.originalLine,h.originalColumn=m.originalColumn,m.name&&(h.name=i.indexOf(m.name)),d.push(h)),u.push(h)}return a(n.__originalMappings,t.compareByOriginalPositions),n},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot==null?e:t.join(this.sourceRoot,e)},this)}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),this.sourceRoot!=null&&(a=t.join(this.sourceRoot,a)));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(e=t.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(this.sourceRoot!=null&&(r=t.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,``);if(r.scheme==`file`&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!r.path||r.path==`/`)&&this._sources.has(`/`+e))return this.sourcesContent[this._sources.indexOf(`/`+e)]}if(n)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),!this._sources.has(n))return{line:null,column:null,lastColumn:null};n=this._sources.indexOf(n);var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(e){var n=e;typeof e==`string`&&(n=JSON.parse(e.replace(/^\)\]\}'/,``)));var i=t.getArg(n,`version`),a=t.getArg(n,`sections`);if(i!=this._version)throw Error(`Unsupported version: `+i);this._sources=new r,this._names=new r;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var n=t.getArg(e,`offset`),r=t.getArg(n,`line`),i=t.getArg(n,`column`);if(r<s.line||r===s.line&&i<s.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return s=n,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new o(t.getArg(e,`map`))}})}l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),l.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},l.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer.sources.indexOf(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},l.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);i.consumer.sourceRoot!==null&&(l=t.join(i.consumer.sourceRoot,l)),this._sources.add(l),l=this._sources.indexOf(l);var u=i.consumer._names.at(c.name);this._names.add(u),u=this._names.indexOf(u);var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l})),Qb=i(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stacktrace-gps`,[`source-map`,`stackframe`],r):typeof e==`object`?t.exports=r(Zb(),Hb()):n.StackTraceGPS=r(n.SourceMap||n.sourceMap,n.StackFrame)})(e,function(e,t){function n(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open(`get`,e),r.onerror=n,r.onreadystatechange=function(){r.readyState===4&&(r.status>=200&&r.status<300||e.substr(0,7)===`file://`&&r.responseText?t(r.responseText):n(Error(`HTTP status: `+r.status+` retrieving `+e)))},r.send()})}function r(e){if(typeof window<`u`&&window.atob)return window.atob(e);throw Error(`You must supply a polyfill for window.atob in this environment`)}function i(e){if(typeof JSON<`u`&&JSON.parse)return JSON.parse(e);throw Error(`You must supply a polyfill for JSON.parse in this environment`)}function a(e,t){for(var n=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],r=e.split(`
|
|
31
|
-
`),i=``,a=Math.min(t,20),o=0;o<a;++o){var s=r[t-o-1],c=s.indexOf(`//`);if(c>=0&&(s=s.substr(0,c)),s){i=s+i;for(var l=n.length,u=0;u<l;u++){var d=n[u].exec(i);if(d&&d[1])return d[1]}}}}function o(){if(typeof Object.defineProperty!=`function`||typeof Object.create!=`function`)throw Error(`Unable to consume source maps in older browsers`)}function s(e){if(typeof e!=`object`)throw TypeError(`Given StackFrame is not an object`);if(typeof e.fileName!=`string`)throw TypeError(`Given file name is not a String`);if(typeof e.lineNumber!=`number`||e.lineNumber%1!=0||e.lineNumber<1)throw TypeError(`Given line number must be a positive integer`);if(typeof e.columnNumber!=`number`||e.columnNumber%1!=0||e.columnNumber<0)throw TypeError(`Given column number must be a non-negative integer`);return!0}function c(e){for(var t=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm,n,r;r=t.exec(e);)n=r[1];if(n)return n;throw Error(`sourceMappingURL not found`)}function l(e,n,r){return new Promise(function(i,a){var o=n.originalPositionFor({line:e.lineNumber,column:e.columnNumber});if(o.source){var s=n.sourceContentFor(o.source);s&&(r[o.source]=s),i(new t({functionName:o.name||e.functionName,args:e.args,fileName:o.source,lineNumber:o.line,columnNumber:o.column}))}else a(Error(`Could not get original source for given stackframe and source map`))})}return function u(d){if(!(this instanceof u))return new u(d);d||={},this.sourceCache=d.sourceCache||{},this.sourceMapConsumerCache=d.sourceMapConsumerCache||{},this.ajax=d.ajax||n,this._atob=d.atob||r,this._get=function(e){return new Promise(function(t,n){var r=e.substr(0,5)===`data:`;if(this.sourceCache[e])t(this.sourceCache[e]);else if(d.offline&&!r)n(Error(`Cannot make network requests in offline mode`));else if(r){var i=e.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(i){var a=i[0].length,o=e.substr(a),s=this._atob(o);this.sourceCache[e]=s,t(s)}else n(Error(`The encoding of the inline sourcemap is not supported`))}else{var c=this.ajax(e,{method:`get`});this.sourceCache[e]=c,c.then(t,n)}}.bind(this))},this._getSourceMapConsumer=function(t,n){return new Promise(function(r){if(this.sourceMapConsumerCache[t])r(this.sourceMapConsumerCache[t]);else{var a=new Promise(function(r,a){return this._get(t).then(function(t){typeof t==`string`&&(t=i(t.replace(/^\)\]\}'/,``))),t.sourceRoot===void 0&&(t.sourceRoot=n),r(new e.SourceMapConsumer(t))}).catch(a)}.bind(this));this.sourceMapConsumerCache[t]=a,r(a)}}.bind(this))},this.pinpoint=function(e){return new Promise(function(t,n){this.getMappedLocation(e).then(function(e){function n(){t(e)}this.findFunctionName(e).then(t,n).catch(n)}.bind(this),n)}.bind(this))},this.findFunctionName=function(e){return new Promise(function(n,r){s(e),this._get(e.fileName).then(function(r){var i=e.lineNumber,o=e.columnNumber,s=a(r,i,o);n(s?new t({functionName:s,args:e.args,fileName:e.fileName,lineNumber:i,columnNumber:o}):e)},r).catch(r)}.bind(this))},this.getMappedLocation=function(e){return new Promise(function(t,n){o(),s(e);var r=this.sourceCache,i=e.fileName;this._get(i).then(function(n){var a=c(n),o=a.substr(0,5)===`data:`,s=i.substring(0,i.lastIndexOf(`/`)+1);return a[0]!==`/`&&!o&&!/^https?:\/\/|^\/\//i.test(a)&&(a=s+a),this._getSourceMapConsumer(a,s).then(function(n){return l(e,n,r).then(t).catch(function(){t(e)})})}.bind(this),n).catch(n)}.bind(this))}}})})),$b=i(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stacktrace`,[`error-stack-parser`,`stack-generator`,`stacktrace-gps`],r):typeof e==`object`?t.exports=r(Ub(),Wb(),Qb()):n.StackTrace=r(n.ErrorStackParser,n.StackGenerator,n.StackTraceGPS)})(e,function(e,t,n){var r={filter:function(e){return(e.functionName||``).indexOf(`StackTrace$$`)===-1&&(e.functionName||``).indexOf(`ErrorStackParser$$`)===-1&&(e.functionName||``).indexOf(`StackTraceGPS$$`)===-1&&(e.functionName||``).indexOf(`StackGenerator$$`)===-1},sourceCache:{}},i=function(){try{throw Error()}catch(e){return e}};function a(e,t){var n={};return[e,t].forEach(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}),n}function o(e){return e.stack||e[`opera#sourceloc`]}function s(e,t){return typeof t==`function`?e.filter(t):e}return{get:function(e){var t=i();return o(t)?this.fromError(t,e):this.generateArtificially(e)},getSync:function(n){n=a(r,n);var c=i();return s(o(c)?e.parse(c):t.backtrace(n),n.filter)},fromError:function(t,i){i=a(r,i);var o=new n(i);return new Promise(function(n){var r=s(e.parse(t),i.filter);n(Promise.all(r.map(function(e){return new Promise(function(t){function n(){t(e)}o.pinpoint(e).then(t,n).catch(n)})})))}.bind(this))},generateArtificially:function(e){e=a(r,e);var n=t.backtrace(e);return typeof e.filter==`function`&&(n=n.filter(e.filter)),Promise.resolve(n)},instrument:function(e,t,n,r){if(typeof e!=`function`)throw Error(`Cannot instrument non-function object`);if(typeof e.__stacktraceOriginalFn==`function`)return e;var i=function(){try{return this.get().then(t,n).catch(n),e.apply(r||this,arguments)}catch(e){throw o(e)&&this.fromError(e).then(t,n).catch(n),e}}.bind(this);return i.__stacktraceOriginalFn=e,i},deinstrument:function(e){if(typeof e!=`function`)throw Error(`Cannot de-instrument non-function object`);return typeof e.__stacktraceOriginalFn==`function`?e.__stacktraceOriginalFn:e},report:function(e,t,n,r){return new Promise(function(i,a){var o=new XMLHttpRequest;if(o.onerror=a,o.onreadystatechange=function(){o.readyState===4&&(o.status>=200&&o.status<400?i(o.responseText):a(Error(`POST to `+t+` failed with status: `+o.status)))},o.open(`post`,t),o.setRequestHeader(`Content-Type`,`application/json`),r&&typeof r.headers==`object`){var s=r.headers;for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&o.setRequestHeader(c,s[c])}var l={stack:e};n!=null&&(l.message=n),o.send(JSON.stringify(l))})}}})})),ex=i((e=>{Ka();var n=(Kl(),t(Gl)),r=(vp(),t(_p)),i=(Kh(),t(Gh)),a=(ey(),t($v)),o=(Vb(),t(Bb)),s=(db(),t(ub)),c=$b(),l=(Rf(),t(If));function u(e){return e&&e.__esModule?e:{default:e}}var d=u(c),f=Object.defineProperty,p=Object.defineProperties,m=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})g.call(t,n)&&v(e,n,t[n]);if(h)for(var n of h(t))_.call(t,n)&&v(e,n,t[n]);return e},b=(e,t)=>p(e,m(t)),x=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),S=`1.9.1`,C=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function w(e){let t=new Set([e]),n=new Set,r=e.match(C);if(!r)return()=>!1;let i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;let r=e.match(C);if(!r)return a(e);let s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var T=w(S),E=S.split(`.`)[0],D=Symbol.for(`opentelemetry.js.api.${E}`),O=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof globalThis==`object`?globalThis:{};function k(e,t,n,r=!1){let i=O[D]=O[D]??{version:S};if(!r&&i[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return n.error(t.stack||t.message),!1}if(i.version!==S){let t=Error(`@opentelemetry/api: Registration of version v${i.version} for ${e} does not match previously registered API v${S}`);return n.error(t.stack||t.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for ${e} v${S}.`),!0}function A(e){let t=O[D]?.version;if(!(!t||!T(t)))return O[D]?.[e]}function j(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${S}.`);let n=O[D];n&&delete n[e]}var ee=class{constructor(e){this._namespace=e.namespace||`DiagComponentLogger`}debug(...e){return M(`debug`,this._namespace,e)}error(...e){return M(`error`,this._namespace,e)}info(...e){return M(`info`,this._namespace,e)}warn(...e){return M(`warn`,this._namespace,e)}verbose(...e){return M(`verbose`,this._namespace,e)}};function M(e,t,n){let r=A(`diag`);if(r)return r[e](t,...n)}var N;(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(N||={});function P(e,t){e<N.NONE?e=N.NONE:e>N.ALL&&(e=N.ALL),t||={};function n(n,r){let i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,N.ERROR),warn:n(`warn`,N.WARN),info:n(`info`,N.INFO),debug:n(`debug`,N.DEBUG),verbose:n(`verbose`,N.VERBOSE)}}var F=`diag`,I=class e{static instance(){return this._instance||=new e,this._instance}constructor(){function e(e){return function(...t){let n=A(`diag`);if(n)return n[e](...t)}}let t=this;t.setLogger=(e,n={logLevel:N.INFO})=>{if(e===t){let e=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(e.stack??e.message),!1}typeof n==`number`&&(n={logLevel:n});let r=A(`diag`),i=P(n.logLevel??N.INFO,e);if(r&&!n.suppressOverrideMessage){let e=Error().stack??`<failed to generate stacktrace>`;r.warn(`Current logger will be overwritten from ${e}`),i.warn(`Current logger will overwrite one already registered from ${e}`)}return k(`diag`,i,t,!0)},t.disable=()=>{j(F,t)},t.createComponentLogger=e=>new ee(e),t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}};function te(e){return Symbol.for(e)}var ne=new class e{constructor(t){let n=this;n._currentContext=t?new Map(t):new Map,n.getValue=e=>n._currentContext.get(e),n.setValue=(t,r)=>{let i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=t=>{let r=new e(n._currentContext);return r._currentContext.delete(t),r}}},re=class{active(){return ne}with(e,t,n,...r){return t.call(n,...r)}bind(e,t){return t}enable(){return this}disable(){return this}},ie=`context`,ae=new re,oe=class e{constructor(){}static getInstance(){return this._instance||=new e,this._instance}setGlobalContextManager(e){return k(ie,e,I.instance())}active(){return this._getContextManager().active()}with(e,t,n,...r){return this._getContextManager().with(e,t,n,...r)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return A(ie)||ae}disable(){this._getContextManager().disable(),j(ie,I.instance())}},se;(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(se||={});var ce=`0000000000000000`,le=`00000000000000000000000000000000`,ue={traceId:le,spanId:ce,traceFlags:se.NONE},de=class{constructor(e=ue){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}},fe=te(`OpenTelemetry Context Key SPAN`);function pe(e){return e.getValue(fe)||void 0}function me(){return pe(oe.getInstance().active())}function he(e,t){return e.setValue(fe,t)}function ge(e){return e.deleteValue(fe)}function _e(e,t){return he(e,new de(t))}function ve(e){return pe(e)?.spanContext()}var ye=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function be(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(ye[e.charCodeAt(t)]|0)+(ye[e.charCodeAt(t+1)]|0)+(ye[e.charCodeAt(t+2)]|0)+(ye[e.charCodeAt(t+3)]|0);return n===t}function xe(e){return be(e,32)&&e!==le}function Se(e){return be(e,16)&&e!==ce}function Ce(e){return xe(e.traceId)&&Se(e.spanId)}function we(e){return new de(e)}var Te=oe.getInstance(),Ee=class{startSpan(e,t,n=Te.active()){if(t?.root)return new de;let r=n&&ve(n);return De(r)&&Ce(r)?new de(r):new de}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a??Te.active(),c=this.startSpan(e,i,s),l=he(s,c);return Te.with(l,o,void 0,c)}};function De(e){return typeof e==`object`&&!!e&&`spanId`in e&&typeof e.spanId==`string`&&`traceId`in e&&typeof e.traceId==`string`&&`traceFlags`in e&&typeof e.traceFlags==`number`}var Oe=new Ee,ke=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Oe}},Ae=new class{getTracer(e,t,n){return new Ee}},je=class{getTracer(e,t,n){return this.getDelegateTracer(e,t,n)??new ke(this,e,t,n)}getDelegate(){return this._delegate??Ae}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){return this._delegate?.getTracer(e,t,n)}},Me=oe.getInstance(),Ne=`trace`,Pe=class e{constructor(){this._proxyTracerProvider=new je,this.wrapSpanContext=we,this.isSpanContextValid=Ce,this.deleteSpan=ge,this.getSpan=pe,this.getActiveSpan=me,this.getSpanContext=ve,this.setSpan=he,this.setSpanContext=_e}static getInstance(){return this._instance||=new e,this._instance}setGlobalTracerProvider(e){let t=k(Ne,this._proxyTracerProvider,I.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return A(Ne)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){j(Ne,I.instance()),this._proxyTracerProvider=new je}}.getInstance(),Fe={sdk_version:{version:`1.0.6`}.version,sdk_lang:`javascript`,sdk_type:`client-frontend`},Ie=(e=>(e.Dev=`preview`,e.Prod=`runtime`,e))(Ie||{}),Le=class{detect(e){return{attributes:y({},Fe)}}},Re=e=>{try{return JSON.stringify(e)}catch{return`【Observable SDK】Stringify Error`}};function ze(e){let t={};for(let[n,r]of Object.entries(e))t[n]=r==null?``:typeof r==`object`?Re(r):String(r);return t}function Be(e){let t=Number(e[0]),n=Number(e[1]);return t*1e9+n}var Ve=()=>{if(typeof crypto<`u`&&crypto.getRandomValues){let e=new Uint8Array(8);return crypto.getRandomValues(e),Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}let e=``;for(let t=0;t<16;t++)e+=Math.floor(Math.random()*16).toString(16);return e},He=`x_sdk_device_id`,Ue=()=>{let e=localStorage.getItem(He);return e||(e=Ve(),localStorage.setItem(He,e)),e};function We(e){let t=e||(typeof navigator<`u`?navigator.userAgent:``);if(!t)return`desktop`;let n=/Android/i.test(t)&&/Mobile/i.test(t),r=/iPhone|iPod/i.test(t),i=/BlackBerry|IEMobile|Opera Mini/i.test(t);return n||r||i?`mobile`:`desktop`}var Ge=()=>({app_id:window.appId||``,tenant_id:window.tenantId||``,user_id:window.userId||``,did:Ue(),module:`app_web`,app_env:`runtime`,source_type:`user`,device_type:We(navigator.userAgent),release_commit_id:window.__RELEASE_COMMIT_ID__||``}),Ke=class{constructor(e){this._shutdown=!1,this.url=e.url,this.headers=e.headers||{}}export(e,t){if(this._shutdown){t({code:l.ExportResultCode.FAILED,error:Error(`Exporter is shutdown`)});return}try{let n=this.transform(e);if(!n.metrics||n.metrics.length===0){t({code:l.ExportResultCode.SUCCESS});return}this.send(n,t)}catch(e){console.error(`Transform metrics failed:`,e),t({code:l.ExportResultCode.FAILED,error:e})}}transform(e){let t=[];for(let n of e.scopeMetrics){let e=n.scope.name;for(let r of n.metrics){let n={name:r.descriptor.name,description:r.descriptor.description,unit:r.descriptor.unit,scopeName:e};switch(r.dataPointType){case a.DataPointType.SUM:n.sum={aggregationTemporality:this.mapTemporality(r.aggregationTemporality),isMonotonic:r.isMonotonic??!0,dataPoints:this.transformNumberDataPoints(r.dataPoints)};break;case a.DataPointType.GAUGE:n.gauge={dataPoints:this.transformNumberDataPoints(r.dataPoints)};break;case a.DataPointType.HISTOGRAM:n.histogram={aggregationTemporality:this.mapTemporality(r.aggregationTemporality),dataPoints:this.transformHistogramDataPoints(r.dataPoints)};break}t.push(n)}}return{resource:{attributes:ze(y({},e.resource.attributes))},metrics:t}}transformNumberDataPoints(e){return e.map(e=>({attributes:y(y({},ze(e.attributes)),Ge()),startTimeUnixNano:Be($e.adjustHrTime(e.startTime)),timeUnixNano:Be($e.adjustHrTime(e.endTime)),asDouble:e.value}))}transformHistogramDataPoints(e){return e.map(e=>({attributes:y(y({},ze(e.attributes)),Ge()),startTimeUnixNano:Be($e.adjustHrTime(e.startTime)),timeUnixNano:Be($e.adjustHrTime(e.endTime)),count:e.value.count,sum:e.value.sum,min:e.value.min,max:e.value.max,bucketCounts:e.value.buckets.counts,explicitBounds:e.value.buckets.boundaries}))}mapTemporality(e){switch(e){case a.AggregationTemporality.DELTA:return 1;case a.AggregationTemporality.CUMULATIVE:return 2;default:return 0}}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return a.AggregationTemporality.DELTA}shutdown(){return x(this,null,function*(){return this._shutdown=!0,Promise.resolve()})}send(e,t){let n=JSON.stringify({metricsData:e});fetch(this.url,{method:`POST`,headers:y({"Content-Type":`application/json`,"X-Suda-Csrf-Token":window.csrfToken||``},this.headers),body:n,keepalive:!0}).then(e=>{e.ok?t({code:l.ExportResultCode.SUCCESS}):t({code:l.ExportResultCode.FAILED,error:Error(`HTTP ${e.status} ${e.statusText}`)})}).catch(e=>{t({code:l.ExportResultCode.FAILED,error:e})})}},qe=class{constructor(e){this.meter=e}enable(){let e=this.meter.createCounter(`apaas_internal_metrics_pv_uv`,{description:`Count of page views`}),t=()=>{let t=window.location.href;this.lastUrl!==t&&(this.lastUrl=t,e.add(1,{url:window.location.href,path:window.location.pathname,referrer:document.referrer}))};document.readyState===`complete`?t():window.addEventListener(`load`,t),window.addEventListener(`popstate`,t),this.patchHistory(`pushState`,t),this.patchHistory(`replaceState`,t)}patchHistory(e,t){let n=history[e];history[e]=function(...e){let r=n.apply(this,e);return t(),r}}},Je=class{constructor(e){this.url=e.url,this.appEnv=e.env,this.headers=e.headers||{}}export(e,t){let n={uuid:Ve(),app_env:this.appEnv},r={resource:{attributes:y({},e.length>0?e[0].resource.attributes:{})},logRecords:e.map(e=>({timeUnixNano:Be($e.adjustHrTime(e.hrTime)),observedTimeUnixNano:Be($e.adjustHrTime(e.hrTimeObserved)),severityNumber:e.severityNumber,severityText:e.severityText,body:e.body,attributes:ze(y(y(y({},e.attributes??{}),n),Ge())),traceID:e.spanContext?.traceId,spanID:e.spanContext?.spanId}))};this.sendWithFetch({logsData:r},t)}sendWithFetch(e,t){let n=JSON.stringify(e);fetch(this.url,{method:`POST`,headers:y({"Content-Type":`application/json`,"X-Suda-Csrf-Token":window.csrfToken||``},this.headers),body:n,keepalive:!0}).then(e=>{e.ok?t({code:l.ExportResultCode.SUCCESS}):(console.error(`Log export failed: ${e.status} ${e.statusText}`),t({code:l.ExportResultCode.FAILED,error:Error(`HTTP Status ${e.status}`)}))}).catch(e=>{console.error(`Log export network error:`,e),t({code:l.ExportResultCode.FAILED,error:e})})}shutdown(){return x(this,null,function*(){return Promise.resolve()})}},Ye=class{constructor(e){this._shutdown=!1,this.url=e.url,this.headers=e.headers||{}}export(e,t){if(this._shutdown){t({code:l.ExportResultCode.FAILED,error:Error(`Exporter is shutdown`)});return}try{let n=this.transform(e);if(!n.spans||n.spans.length===0){t({code:l.ExportResultCode.SUCCESS});return}this.send(n,t)}catch(e){console.error(`Transform traces failed:`,e),t({code:l.ExportResultCode.FAILED,error:e})}}transform(e){if(e.length===0)return{spans:[]};let t=e[0].resource,n=e.map(e=>({traceID:e.spanContext().traceId,spanID:e.spanContext().spanId,parentSpanID:e.parentSpanContext?.spanId,name:e.name,kind:e.kind,startTimeUnixNano:Be($e.adjustHrTime(e.startTime)),endTimeUnixNano:Be($e.adjustHrTime(e.endTime)),attributes:y(y({},ze(e.attributes)),Ge()),status:{code:e.status.code,message:e.status.message},traceState:e.spanContext().traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>({timeUnixNano:Be($e.adjustHrTime(e.time)),name:e.name,attributes:ze(e.attributes??{}),droppedAttributesCount:e.droppedAttributesCount})),droppedEventsCount:e.droppedEventsCount,links:e.links.map(e=>({traceID:e.context.traceId,spanID:e.context.spanId,traceState:e.context.traceState?.serialize(),attributes:ze(e.attributes??{}),droppedAttributesCount:e.droppedAttributesCount})),droppedLinksCount:e.droppedLinksCount}));return{resource:{attributes:ze(t.attributes)},spans:n}}send(e,t){let n=JSON.stringify({tracesData:e});fetch(this.url,{method:`POST`,headers:y({"Content-Type":`application/json`,"X-Suda-Csrf-Token":window.csrfToken||``},this.headers),body:n,keepalive:!0}).then(e=>{e.ok?t({code:l.ExportResultCode.SUCCESS}):t({code:l.ExportResultCode.FAILED,error:Error(`HTTP ${e.status} ${e.statusText}`)})}).catch(e=>{t({code:l.ExportResultCode.FAILED,error:e})})}shutdown(){return x(this,null,function*(){return this._shutdown=!0,Promise.resolve()})}forceFlush(){return Promise.resolve()}},Xe=e=>e.map(e=>({fileName:(e.fileName?.split(`/`))?.pop()||``,line:e.lineNumber||0,column:e.columnNumber||0})),Ze=50,Qe=class e{constructor(){this.isStarted=!1,this.counterCache=new Map}static get instance(){return this._instance||=new e,this._instance}start(e){if(!(this.isStarted||e.env===`preview`)){this.config=e,this.initTimeOffset();try{this.resource=r.detectResources({detectors:[new Le]}),this.initLogs(),this.initMetrics(),this.initTraces(),this.initAutoPv(),this.registerLifecycleListeners(),this.isStarted=!0}catch(e){console.error(`Failed to start WebObservableSdk:`,e)}}}initLogs(){if(!this.config?.collectorUrl.log)return;let e=new Je({env:this.config.env,url:this.config.collectorUrl.log,headers:this.config?.headers||{}});this.loggerProvider=new i.LoggerProvider({resource:this.resource,processors:[new i.BatchLogRecordProcessor(e,{scheduledDelayMillis:5e3,maxExportBatchSize:5})].filter(Boolean)}),this.logger=this.loggerProvider.getLogger(`web-logger`)}initMetrics(){if(!this.config?.collectorUrl.metric)return;let e=new Ke({url:this.config?.collectorUrl.metric,headers:this.config?.headers||{}});this.meterProvider=new a.MeterProvider({resource:this.resource,readers:[new a.PeriodicExportingMetricReader({exporter:e,exportIntervalMillis:1e4})]}),this.meter=this.meterProvider.getMeter(`web-meter`)}initTraces(){if(!this.config?.collectorUrl.trace)return;let e=new Ye({url:this.config?.collectorUrl.trace,headers:this.config?.headers||{}});this.tracerProvider=new o.WebTracerProvider({resource:this.resource,spanProcessors:[new s.BatchSpanProcessor(e,{scheduledDelayMillis:5e3,maxExportBatchSize:10})]}),this.tracerProvider.register({contextManager:new n.ZoneContextManager}),this.tracer=this.tracerProvider.getTracer(`web-tracer`)}initAutoPv(){let e=this.meterProvider?.getMeter(`apaas_internal_metrics_pv_uv`);e&&new qe(e).enable()}static adjustHrTime(t){if(e.timeOffset===0)return t;try{let n=BigInt(e.timeOffset),r=BigInt(t[0])*BigInt(1e9)+BigInt(t[1])+n,i=r/BigInt(1e9),a=r%BigInt(1e9);return[Number(i),Number(a)]}catch(e){return console.error(`Failed to adjust HrTime`,e),t}}initTimeOffset(){return x(this,null,function*(){try{if(!this.config?.collectorUrl.time)return;let t=Date.now(),n=yield fetch(this.config.collectorUrl.time),r=Date.now()-t,i=yield n.json(),a=BigInt(i.data.timestampNs);if(a){let n=t+r/2,i=BigInt(Math.round(n))*BigInt(1e6);e.timeOffset=Number(a-i)}}catch(e){console.error(`Failed to init time offset:`,e)}})}flushData(){try{let e=[];this.loggerProvider&&e.push(this.loggerProvider.forceFlush()),this.meterProvider&&e.push(this.meterProvider.forceFlush()),this.tracerProvider&&e.push(this.tracerProvider.forceFlush()),Promise.allSettled(e)}catch(e){console.error(`Failed to flush data:`,e)}}registerLifecycleListeners(){(()=>{if(window.close.__isPatched)return;let e=this,t=window.close;window.close=function(...n){try{e.flushData()}catch{console.error(`Patch window close: flushData error`)}if(typeof t==`function`)return t.apply(window,n)},window.close.__isPatched=!0})(),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&this.flushData()}),window.addEventListener(`pagehide`,()=>{this.flushData()})}static getCalibratedDate(){let t=e.timeOffset/1e6;return new Date(Date.now()+t)}log(t,n,r={},i){let a=[];if(t===`ERROR`){let e=d.default.getSync();e&&e.length>0&&(a=Xe(e),a.length>Ze&&(a=a.slice(0,Ze)))}try{let o=i?Pe.setSpan(Me.active(),i):Me.active();if(!this.logger)return;this.logger.emit({severityText:t,body:n,attributes:b(y({},r),{stack:JSON.stringify(a)}),timestamp:e.getCalibratedDate(),context:o})}catch(e){console.error(`Failed to emit log:`,e)}}addCount(e,t=1,n={}){if(!this.meter)return;let r=this.counterCache.get(e);r||(r=this.meter.createCounter(e),this.counterCache.set(e,r)),r.add(t,n)}startSpan(t,n,r){try{if(!this.tracer)return e.EmptySpan;let i=r||Me.active();return this.tracer.startSpan(t,n,i)}catch(t){return console.error(`Failed to start span:`,t),e.EmptySpan}}trace(t,n,r,i){return x(this,null,function*(){if(!this.tracer)return n(e.EmptySpan);let a=i?Pe.setSpan(Me.active(),i):Me.active();return this.tracer.startActiveSpan(t,r||{},a,e=>x(this,null,function*(){try{return yield n(e)}finally{e.end()}}))})}shutdown(){return x(this,null,function*(){yield Promise.all([this.loggerProvider?.shutdown(),this.meterProvider?.shutdown(),this.tracerProvider?.shutdown()])})}};Qe.EmptySpan=Pe.wrapSpanContext(ue),Qe.timeOffset=0;var $e=Qe,et=$e.instance;e.AppEnv=Ie,e.observable=et}))(),tx=Object.defineProperty,nx=(e,t)=>tx(e,`name`,{value:t,configurable:!0}),rx=`KSlardarWeb`;function ix(){try{if(typeof window>`u`)return null;let e=window[rx];return typeof e==`function`?e:null}catch{return null}}nx(ix,`getSlardarInstance`);var ax={sendLog(e){try{let t=ix();if(!t)return;t(`sendLog`,{content:e.content,level:e.level??`info`,extra:{...e.extra,team:`miaoda-sdk`}})}catch{}},sendEvent(e){try{let t=ix();if(!t)return;t(`sendEvent`,{name:e.name,metrics:e.metrics,categories:{...e.categories,team:`miaoda-sdk`}})}catch{}},captureException(e,t){try{let n=ix();if(!n)return;n(`captureException`,e,{...t,team:`miaoda-sdk`})}catch{}}},ox=e($b(),1),sx;(function(e){e.Call=`call`,e.Reply=`reply`,e.Syn=`syn`,e.SynAck=`synAck`,e.Ack=`ack`})(sx||={});var cx;(function(e){e.Fulfilled=`fulfilled`,e.Rejected=`rejected`})(cx||={});var lx;(function(e){e.ConnectionDestroyed=`ConnectionDestroyed`,e.ConnectionTimeout=`ConnectionTimeout`,e.NoIframeSrc=`NoIframeSrc`})(lx||={});var ux;(function(e){e.DataCloneError=`DataCloneError`})(ux||={});var dx;(function(e){e.Message=`message`})(dx||={});var fx=(e,t)=>{let n=[],r=!1;return{destroy(i){r||(r=!0,t(`${e}: Destroying connection`),n.forEach(e=>{e(i)}))},onDestroy(e){r?e():n.push(e)}}},px=e=>(...t)=>{e&&console.log(`[Penpal]`,...t)},mx=({name:e,message:t,stack:n})=>({name:e,message:t,stack:n}),hx=e=>{let t=Error();return Object.keys(e).forEach(n=>t[n]=e[n]),t},gx=(e,t,n)=>{let{localName:r,local:i,remote:a,originForSending:o,originForReceiving:s}=e,c=!1,l=e=>{if(e.source!==a||e.data.penpal!==sx.Call)return;if(s!==`*`&&e.origin!==s){n(`${r} received message from origin ${e.origin} which did not match expected origin ${s}`);return}let{methodName:i,args:l,id:u}=e.data;n(`${r}: Received ${i}() call`);let d=e=>t=>{if(n(`${r}: Sending ${i}() reply`),c){n(`${r}: Unable to send ${i}() reply due to destroyed connection`);return}let s={penpal:sx.Reply,id:u,resolution:e,returnValue:t};e===cx.Rejected&&t instanceof Error&&(s.returnValue=mx(t),s.returnValueIsError=!0);try{a.postMessage(s,o)}catch(e){if(e.name===ux.DataCloneError){let t={penpal:sx.Reply,id:u,resolution:cx.Rejected,returnValue:mx(e),returnValueIsError:!0};a.postMessage(t,o)}throw e}};new Promise(e=>e(t[i].apply(t,l))).then(d(cx.Fulfilled),d(cx.Rejected))};return i.addEventListener(dx.Message,l),()=>{c=!0,i.removeEventListener(dx.Message,l)}},_x=0,vx=()=>++_x,yx=`.`,bx=e=>e?e.split(yx):[],xx=e=>e.join(yx),Sx=(e,t)=>{let n=bx(t||``);return n.push(e),xx(n)},Cx=(e,t,n)=>{let r=bx(t);return r.reduce((e,t,i)=>(e[t]===void 0&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t]),e),e},wx=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{let i=e[r],a=Sx(r,t);typeof i==`object`&&Object.assign(n,wx(i,a)),typeof i==`function`&&(n[a]=i)}),n},Tx=e=>{let t={};for(let n in e)Cx(t,n,e[n]);return t},Ex=(e,t,n,r,i)=>{let{localName:a,local:o,remote:s,originForSending:c,originForReceiving:l}=t,u=!1;i(`${a}: Connecting call sender`);let d=e=>(...t)=>{i(`${a}: Sending ${e}() call`);let n;try{s.closed&&(n=!0)}catch{n=!0}if(n&&r(),u){let t=Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=lx.ConnectionDestroyed,t}return new Promise((n,r)=>{let u=vx(),d=t=>{if(t.source!==s||t.data.penpal!==sx.Reply||t.data.id!==u)return;if(l!==`*`&&t.origin!==l){i(`${a} received message from origin ${t.origin} which did not match expected origin ${l}`);return}let c=t.data;i(`${a}: Received ${e}() reply`),o.removeEventListener(dx.Message,d);let f=c.returnValue;c.returnValueIsError&&(f=hx(f)),(c.resolution===cx.Fulfilled?n:r)(f)};o.addEventListener(dx.Message,d);let f={penpal:sx.Call,id:u,methodName:e,args:t};s.postMessage(f,c)})},f=n.reduce((e,t)=>(e[t]=d(t),e),{});return Object.assign(e,Tx(f)),()=>{u=!0}},Dx=(e,t)=>{let n;return e!==void 0&&(n=window.setTimeout(()=>{let n=Error(`Connection timed out after ${e}ms`);n.code=lx.ConnectionTimeout,t(n)},e)),()=>{clearTimeout(n)}},Ox=(e,t,n,r)=>{let{destroy:i,onDestroy:a}=n;return n=>{if(!(e instanceof RegExp?e.test(n.origin):e===`*`||e===n.origin)){r(`Child: Handshake - Received SYN-ACK from origin ${n.origin} which did not match expected origin ${e}`);return}r(`Child: Handshake - Received SYN-ACK, responding with ACK`);let o=n.origin===`null`?`*`:n.origin,s={penpal:sx.Ack,methodNames:Object.keys(t)};window.parent.postMessage(s,o);let c={localName:`Child`,local:window,remote:window.parent,originForSending:o,originForReceiving:n.origin};a(gx(c,t,r));let l={};return a(Ex(l,c,n.data.methodNames,i,r)),l}},kx=()=>{try{clearTimeout()}catch{return!1}return!0},Ax=(e={})=>{let{parentOrigin:t=`*`,methods:n={},timeout:r,debug:i=!1}=e,a=px(i),o=fx(`Child`,a),{destroy:s,onDestroy:c}=o,l=Ox(t,wx(n),o,a),u=()=>{a(`Child: Handshake - Sending SYN`);let e={penpal:sx.Syn},n=t instanceof RegExp?`*`:t;window.parent.postMessage(e,n)};return{promise:new Promise((e,t)=>{let n=Dx(r,s),i=t=>{if(kx()&&!(t.source!==parent||!t.data)&&t.data.penpal===sx.SynAck){let r=l(t);r&&(window.removeEventListener(dx.Message,i),n(),e(r))}};window.addEventListener(dx.Message,i),u(),c(e=>{window.removeEventListener(dx.Message,i),e&&t(e)})}),destroy(){s()}}};function jx(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=jx(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Mx(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=jx(e))&&(r&&(r+=` `),r+=t);return r}var Nx=`-`,Px=e=>{let t=Rx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(Nx);return n[0]===``&&n.length!==1&&n.shift(),Fx(n,t)||Lx(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},Fx=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?Fx(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(Nx);return t.validators.find(({validator:e})=>e(a))?.classGroupId},Ix=/^\[(.+)\]$/,Lx=e=>{if(Ix.test(e)){let t=Ix.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},Rx=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Hx(Object.entries(e.classGroups),n).forEach(([e,n])=>{zx(n,r,e,t)}),r},zx=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:Bx(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(Vx(e)){zx(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{zx(i,Bx(t,e),n,r)})})},Bx=(e,t)=>{let n=e;return t.split(Nx).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Vx=e=>e.isThemeGetter,Hx=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>typeof e==`string`?t+e:typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Ux=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},Wx=`!`,Gx=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=e=>{let n=[],o=0,s=0,c;for(let l=0;l<e.length;l++){let u=e[l];if(o===0){if(u===i&&(r||e.slice(l,l+a)===t)){n.push(e.slice(s,l)),s=l+a;continue}if(u===`/`){c=l;continue}}u===`[`?o++:u===`]`&&o--}let l=n.length===0?e:e.substring(s),u=l.startsWith(Wx);return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:c&&c>s?c-s:void 0}};return n?e=>n({className:e,parseClassName:o}):o},Kx=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{e[0]===`[`?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},qx=e=>({cache:Ux(e.cacheSize),parseClassName:Gx(e),...Px(e)}),Jx=/\s+/,Yx=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Jx),s=``;for(let e=o.length-1;e>=0;--e){let t=o[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?` `+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?` `+s:s);continue}f=!1}let m=Kx(c).join(`:`),h=l?m+Wx:m,g=h+p;if(a.includes(g))continue;a.push(g);let _=i(p,f);for(let e=0;e<_.length;++e){let t=_[e];a.push(h+t)}s=t+(s.length>0?` `+s:s)}return s};function Xx(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=Zx(t))&&(r&&(r+=` `),r+=n);return r}var Zx=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Zx(e[r]))&&(n&&(n+=` `),n+=t);return n};function Qx(e,...t){let n,r,i,a=o;function o(o){return n=qx(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=Yx(e,n);return i(e,a),a}return function(){return a(Xx.apply(null,arguments))}}var $x=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},eS=/^\[(?:([a-z-]+):)?(.+)\]$/i,tS=/^\d+\/\d+$/,nS=new Set([`px`,`full`,`screen`]),rS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,aS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cS=e=>uS(e)||nS.has(e)||tS.test(e),lS=e=>SS(e,`length`,CS),uS=e=>!!e&&!Number.isNaN(Number(e)),dS=e=>SS(e,`number`,uS),fS=e=>!!e&&Number.isInteger(Number(e)),pS=e=>e.endsWith(`%`)&&uS(e.slice(0,-1)),Z=e=>eS.test(e),mS=e=>rS.test(e),hS=new Set([`length`,`size`,`percentage`]),gS=e=>SS(e,hS,wS),_S=e=>SS(e,`position`,wS),vS=new Set([`image`,`url`]),yS=e=>SS(e,vS,ES),bS=e=>SS(e,``,TS),xS=()=>!0,SS=(e,t,n)=>{let r=eS.exec(e);return r?r[1]?typeof t==`string`?r[1]===t:t.has(r[1]):n(r[2]):!1},CS=e=>iS.test(e)&&!aS.test(e),wS=()=>!1,TS=e=>oS.test(e),ES=e=>sS.test(e),DS=Qx(()=>{let e=$x(`colors`),t=$x(`spacing`),n=$x(`blur`),r=$x(`brightness`),i=$x(`borderColor`),a=$x(`borderRadius`),o=$x(`borderSpacing`),s=$x(`borderWidth`),c=$x(`contrast`),l=$x(`grayscale`),u=$x(`hueRotate`),d=$x(`invert`),f=$x(`gap`),p=$x(`gradientColorStops`),m=$x(`gradientColorStopPositions`),h=$x(`inset`),g=$x(`margin`),_=$x(`opacity`),v=$x(`padding`),y=$x(`saturate`),b=$x(`scale`),x=$x(`sepia`),S=$x(`skew`),C=$x(`space`),w=$x(`translate`),T=()=>[`auto`,`contain`,`none`],E=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],D=()=>[`auto`,Z,t],O=()=>[Z,t],k=()=>[``,cS,lS],A=()=>[`auto`,uS,Z],j=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],ee=()=>[`solid`,`dashed`,`dotted`,`double`,`none`],M=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],N=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`],P=()=>[``,`0`,Z],F=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],I=()=>[uS,Z];return{cacheSize:500,separator:`:`,theme:{colors:[xS],spacing:[cS,lS],blur:[`none`,``,mS,Z],brightness:I(),borderColor:[e],borderRadius:[`none`,``,`full`,mS,Z],borderSpacing:O(),borderWidth:k(),contrast:I(),grayscale:P(),hueRotate:I(),invert:P(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[pS,lS],inset:D(),margin:D(),opacity:I(),padding:O(),saturate:I(),scale:I(),sepia:P(),skew:I(),space:O(),translate:O()},classGroups:{aspect:[{aspect:[`auto`,`square`,`video`,Z]}],container:[`container`],columns:[{columns:[mS]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...j(),Z]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[`auto`,fS,Z]}],basis:[{basis:D()}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`wrap`,`wrap-reverse`,`nowrap`]}],flex:[{flex:[`1`,`auto`,`initial`,`none`,Z]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:[`first`,`last`,`none`,fS,Z]}],"grid-cols":[{"grid-cols":[xS]}],"col-start-end":[{col:[`auto`,{span:[`full`,fS,Z]},Z]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[xS]}],"row-start-end":[{row:[`auto`,{span:[fS,Z]},Z]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":[`auto`,`min`,`max`,`fr`,Z]}],"auto-rows":[{"auto-rows":[`auto`,`min`,`max`,`fr`,Z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:[`normal`,...N()]}],"justify-items":[{"justify-items":[`start`,`end`,`center`,`stretch`]}],"justify-self":[{"justify-self":[`auto`,`start`,`end`,`center`,`stretch`]}],"align-content":[{content:[`normal`,...N(),`baseline`]}],"align-items":[{items:[`start`,`end`,`center`,`baseline`,`stretch`]}],"align-self":[{self:[`auto`,`start`,`end`,`center`,`stretch`,`baseline`]}],"place-content":[{"place-content":[...N(),`baseline`]}],"place-items":[{"place-items":[`start`,`end`,`center`,`baseline`,`stretch`]}],"place-self":[{"place-self":[`auto`,`start`,`end`,`center`,`stretch`]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":[C]}],"space-y-reverse":[`space-y-reverse`],w:[{w:[`auto`,`min`,`max`,`fit`,`svw`,`lvw`,`dvw`,Z,t]}],"min-w":[{"min-w":[Z,t,`min`,`max`,`fit`]}],"max-w":[{"max-w":[Z,t,`none`,`full`,`min`,`max`,`fit`,`prose`,{screen:[mS]},mS]}],h:[{h:[Z,t,`auto`,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"min-h":[{"min-h":[Z,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"max-h":[{"max-h":[Z,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],size:[{size:[Z,t,`auto`,`min`,`max`,`fit`]}],"font-size":[{text:[`base`,mS,lS]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`,dS]}],"font-family":[{font:[xS]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`,Z]}],"line-clamp":[{"line-clamp":[`none`,uS,dS]}],leading:[{leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`,cS,Z]}],"list-image":[{"list-image":[`none`,Z]}],"list-style-type":[{list:[`none`,`disc`,`decimal`,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ee(),`wavy`]}],"text-decoration-thickness":[{decoration:[`auto`,`from-font`,cS,lS]}],"underline-offset":[{"underline-offset":[`auto`,cS,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:O()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...j(),_S]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`round`,`space`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,gS]}],"bg-image":[{bg:[`none`,{"gradient-to":[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},yS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...ee(),`hidden`]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":[`divide-y-reverse`],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:ee()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[``,...ee()]}],"outline-offset":[{"outline-offset":[cS,Z]}],"outline-w":[{outline:[cS,lS]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[cS,lS]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:[``,`inner`,`none`,mS,bS]}],"shadow-color":[{shadow:[xS]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...M(),`plus-lighter`,`plus-darker`]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:[``,`none`]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":[``,`none`,mS,Z]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":[``,`none`]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[`none`,`all`,``,`colors`,`opacity`,`shadow`,`transform`,Z]}],duration:[{duration:I()}],ease:[{ease:[`linear`,`in`,`out`,`in-out`,Z]}],delay:[{delay:I()}],animate:[{animate:[`none`,`spin`,`ping`,`pulse`,`bounce`,Z]}],transform:[{transform:[``,`gpu`,`none`]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[fS,Z]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,Z]}],accent:[{accent:[`auto`,e]}],appearance:[{appearance:[`none`,`auto`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":[`none`,`auto`]}],resize:[{resize:[`none`,`y`,`x`,``]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Z]}],fill:[{fill:[e,`none`]}],"stroke-w":[{stroke:[cS,lS,dS]}],stroke:[{stroke:[e,`none`]}],sr:[`sr-only`,`not-sr-only`],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]}}});function OS(...e){return DS(Mx(...e))}var kS=`-`,AS=e=>{let t=PS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(kS);return n[0]===``&&n.length!==1&&n.shift(),jS(n,t)||NS(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},jS=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?jS(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(kS);return t.validators.find(({validator:e})=>e(a))?.classGroupId},MS=/^\[(.+)\]$/,NS=e=>{if(MS.test(e)){let t=MS.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},PS=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return RS(Object.entries(e.classGroups),n).forEach(([e,n])=>{FS(n,r,e,t)}),r},FS=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:IS(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(LS(e)){FS(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{FS(i,IS(t,e),n,r)})})},IS=(e,t)=>{let n=e;return t.split(kS).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},LS=e=>e.isThemeGetter,RS=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>typeof e==`string`?t+e:typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,zS=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},BS=`!`,VS=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=e=>{let n=[],o=0,s=0,c;for(let l=0;l<e.length;l++){let u=e[l];if(o===0){if(u===i&&(r||e.slice(l,l+a)===t)){n.push(e.slice(s,l)),s=l+a;continue}if(u===`/`){c=l;continue}}u===`[`?o++:u===`]`&&o--}let l=n.length===0?e:e.substring(s),u=l.startsWith(BS);return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:c&&c>s?c-s:void 0}};return n?e=>n({className:e,parseClassName:o}):o},HS=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{e[0]===`[`?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},US=e=>({cache:zS(e.cacheSize),parseClassName:VS(e),...AS(e)}),WS=/\s+/,GS=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(WS),s=``;for(let e=o.length-1;e>=0;--e){let t=o[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?` `+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?` `+s:s);continue}f=!1}let m=HS(c).join(`:`),h=l?m+BS:m,g=h+p;if(a.includes(g))continue;a.push(g);let _=i(p,f);for(let e=0;e<_.length;++e){let t=_[e];a.push(h+t)}s=t+(s.length>0?` `+s:s)}return s};function KS(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=qS(t))&&(r&&(r+=` `),r+=n);return r}var qS=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=qS(e[r]))&&(n&&(n+=` `),n+=t);return n};function JS(e,...t){let n,r,i,a=o;function o(o){return n=US(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=GS(e,n);return i(e,a),a}return function(){return a(KS.apply(null,arguments))}}var YS=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},XS=/^\[(?:([a-z-]+):)?(.+)\]$/i,ZS=/^\d+\/\d+$/,QS=new Set([`px`,`full`,`screen`]),$S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,iC=e=>oC(e)||QS.has(e)||ZS.test(e),aC=e=>vC(e,`length`,yC),oC=e=>!!e&&!Number.isNaN(Number(e)),sC=e=>vC(e,`number`,oC),cC=e=>!!e&&Number.isInteger(Number(e)),lC=e=>e.endsWith(`%`)&&oC(e.slice(0,-1)),Q=e=>XS.test(e),uC=e=>$S.test(e),dC=new Set([`length`,`size`,`percentage`]),fC=e=>vC(e,dC,bC),pC=e=>vC(e,`position`,bC),mC=new Set([`image`,`url`]),hC=e=>vC(e,mC,SC),gC=e=>vC(e,``,xC),_C=()=>!0,vC=(e,t,n)=>{let r=XS.exec(e);return r?r[1]?typeof t==`string`?r[1]===t:t.has(r[1]):n(r[2]):!1},yC=e=>eC.test(e)&&!tC.test(e),bC=()=>!1,xC=e=>nC.test(e),SC=e=>rC.test(e),CC=JS(()=>{let e=YS(`colors`),t=YS(`spacing`),n=YS(`blur`),r=YS(`brightness`),i=YS(`borderColor`),a=YS(`borderRadius`),o=YS(`borderSpacing`),s=YS(`borderWidth`),c=YS(`contrast`),l=YS(`grayscale`),u=YS(`hueRotate`),d=YS(`invert`),f=YS(`gap`),p=YS(`gradientColorStops`),m=YS(`gradientColorStopPositions`),h=YS(`inset`),g=YS(`margin`),_=YS(`opacity`),v=YS(`padding`),y=YS(`saturate`),b=YS(`scale`),x=YS(`sepia`),S=YS(`skew`),C=YS(`space`),w=YS(`translate`),T=()=>[`auto`,`contain`,`none`],E=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],D=()=>[`auto`,Q,t],O=()=>[Q,t],k=()=>[``,iC,aC],A=()=>[`auto`,oC,Q],j=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],ee=()=>[`solid`,`dashed`,`dotted`,`double`,`none`],M=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],N=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`],P=()=>[``,`0`,Q],F=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],I=()=>[oC,Q];return{cacheSize:500,separator:`:`,theme:{colors:[_C],spacing:[iC,aC],blur:[`none`,``,uC,Q],brightness:I(),borderColor:[e],borderRadius:[`none`,``,`full`,uC,Q],borderSpacing:O(),borderWidth:k(),contrast:I(),grayscale:P(),hueRotate:I(),invert:P(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[lC,aC],inset:D(),margin:D(),opacity:I(),padding:O(),saturate:I(),scale:I(),sepia:P(),skew:I(),space:O(),translate:O()},classGroups:{aspect:[{aspect:[`auto`,`square`,`video`,Q]}],container:[`container`],columns:[{columns:[uC]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...j(),Q]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[`auto`,cC,Q]}],basis:[{basis:D()}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`wrap`,`wrap-reverse`,`nowrap`]}],flex:[{flex:[`1`,`auto`,`initial`,`none`,Q]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:[`first`,`last`,`none`,cC,Q]}],"grid-cols":[{"grid-cols":[_C]}],"col-start-end":[{col:[`auto`,{span:[`full`,cC,Q]},Q]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[_C]}],"row-start-end":[{row:[`auto`,{span:[cC,Q]},Q]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":[`auto`,`min`,`max`,`fr`,Q]}],"auto-rows":[{"auto-rows":[`auto`,`min`,`max`,`fr`,Q]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:[`normal`,...N()]}],"justify-items":[{"justify-items":[`start`,`end`,`center`,`stretch`]}],"justify-self":[{"justify-self":[`auto`,`start`,`end`,`center`,`stretch`]}],"align-content":[{content:[`normal`,...N(),`baseline`]}],"align-items":[{items:[`start`,`end`,`center`,`baseline`,`stretch`]}],"align-self":[{self:[`auto`,`start`,`end`,`center`,`stretch`,`baseline`]}],"place-content":[{"place-content":[...N(),`baseline`]}],"place-items":[{"place-items":[`start`,`end`,`center`,`baseline`,`stretch`]}],"place-self":[{"place-self":[`auto`,`start`,`end`,`center`,`stretch`]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":[C]}],"space-y-reverse":[`space-y-reverse`],w:[{w:[`auto`,`min`,`max`,`fit`,`svw`,`lvw`,`dvw`,Q,t]}],"min-w":[{"min-w":[Q,t,`min`,`max`,`fit`]}],"max-w":[{"max-w":[Q,t,`none`,`full`,`min`,`max`,`fit`,`prose`,{screen:[uC]},uC]}],h:[{h:[Q,t,`auto`,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"min-h":[{"min-h":[Q,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"max-h":[{"max-h":[Q,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],size:[{size:[Q,t,`auto`,`min`,`max`,`fit`]}],"font-size":[{text:[`base`,uC,aC]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`,sC]}],"font-family":[{font:[_C]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`,Q]}],"line-clamp":[{"line-clamp":[`none`,oC,sC]}],leading:[{leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`,iC,Q]}],"list-image":[{"list-image":[`none`,Q]}],"list-style-type":[{list:[`none`,`disc`,`decimal`,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ee(),`wavy`]}],"text-decoration-thickness":[{decoration:[`auto`,`from-font`,iC,aC]}],"underline-offset":[{"underline-offset":[`auto`,iC,Q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:O()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...j(),pC]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`round`,`space`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,fC]}],"bg-image":[{bg:[`none`,{"gradient-to":[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},hC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...ee(),`hidden`]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":[`divide-y-reverse`],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:ee()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[``,...ee()]}],"outline-offset":[{"outline-offset":[iC,Q]}],"outline-w":[{outline:[iC,aC]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[iC,aC]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:[``,`inner`,`none`,uC,gC]}],"shadow-color":[{shadow:[_C]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...M(),`plus-lighter`,`plus-darker`]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:[``,`none`]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":[``,`none`,uC,Q]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":[``,`none`]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[`none`,`all`,``,`colors`,`opacity`,`shadow`,`transform`,Q]}],duration:[{duration:I()}],ease:[{ease:[`linear`,`in`,`out`,`in-out`,Q]}],delay:[{delay:I()}],animate:[{animate:[`none`,`spin`,`ping`,`pulse`,`bounce`,Q]}],transform:[{transform:[``,`gpu`,`none`]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[cC,Q]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,Q]}],accent:[{accent:[`auto`,e]}],appearance:[{appearance:[`none`,`auto`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":[`none`,`auto`]}],resize:[{resize:[`none`,`y`,`x`,``]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q]}],fill:[{fill:[e,`none`]}],"stroke-w":[{stroke:[iC,aC,sC]}],stroke:[{stroke:[e,`none`]}],sr:[`sr-only`,`not-sr-only`],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]}}}),wC=s(),TC=class e{static{this.WINDOW_SIZE=5e3}constructor(t){this.maxRequests=t,this.windowSizeMs=e.WINDOW_SIZE,this.requestCount=0,this.windowStart=Date.now()}checkAndResetWindow(){let e=Date.now();return e-this.windowStart>=this.windowSizeMs?(this.requestCount=0,this.windowStart=e,!0):!1}canRequest(){return this.checkAndResetWindow(),this.requestCount<this.maxRequests?(this.requestCount++,!0):!1}},EC=function(e){return e[e.Unspecified=0]=`Unspecified`,e[e.Inactive=1]=`Inactive`,e[e.Active=2]=`Active`,e[e.Disabled=3]=`Disabled`,e[e.Terminated=4]=`Terminated`,e}({}),DC=function(e){return e[e.active=1]=`active`,e[e.inactive=2]=`inactive`,e}({}),OC=()=>typeof window<`u`&&typeof document<`u`,kC=e=>e===`miaoda`?`1`:`0`,AC=e=>OC()?document.cookie.split(`;`).find(t=>t.trim().startsWith(`${e}=`))?.split(`=`)[1]??``:``,jC=e=>e?.zh_cn||e?.en_us||e?.ja_jp||``,MC=e=>e===EC.Active||e===EC.Inactive?DC.active:e===EC.Disabled||e===EC.Terminated?DC.inactive:DC.active,NC=function(e){return e.DEFAULT=`default`,e.UserService=`user-service`,e.SessionService=`session-service`,e}({}),PC=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>[e,String(t)])),FC=(e,t)=>{try{let n=PC({source:`dataloom`,...t});ax.captureException(e,n)}catch{}},IC=(e,t=`Service`)=>{let{traceId:n,url:r,method:i,body:a}=e,o=Array.from(new URL(r,`http://temp.invalid`).searchParams.entries()).filter(([e])=>![`count`,`tx`,`missing`,`resolution`,`column`].includes(e)).map(([e,t])=>`${e}=${t}`);console.log(`[Dataloom][${t}][Request]`,`trace id:`,n,`method:`,i,`params:`,o.join(`,`),`body:`,a)},LC=(e,t,n=`Service`)=>{let{data:r,error:i,status:a}=t;i?console.error(`[Dataloom][${n}][Response Failed]`,`trace id:`,e,`statusCode:`,a,`error:`,i):console.log(`[Dataloom][${n}][Response Success]`,`trace id:`,e,`statusCode:`,a,`data:`,r)},RC=class e{constructor(){this.counter=1}static getInstance(){return e.instance||=new e,e.instance}next(){return this.counter++}getCurrent(){return this.counter}reset(){this.counter=1}}.getInstance(),zC=class{constructor(e,t){this.baseUrl=e,this.headers={...t.headers,"X-Suda-Csrf-Token":AC(`suda-csrf-token`)},this.logger=t.logger??!1,this.serviceName=NC.DEFAULT,this.brandId=kC(t.brandName),this.bizSource=t.brandName,this.appId=t.appId,this.onRequestError=t.onRequestError,t.fetch?this.fetch=t.fetch:this.fetch=fetch}async fetchData(e,t,n){let r=`${this.baseUrl.toString()}${e}`,i=-1;this.logger&&(i=RC.next(),IC({traceId:i,url:r,method:t.method,body:t.body},n?.psmName));try{let e=await this.fetch(r,{method:t.method,mode:`cors`,redirect:`manual`,credentials:`include`,headers:this.headers,body:JSON.stringify(t.body)}),a=null,o=null,s=e.status,c=e.statusText;if(e.ok){let t=await e.text(),n=JSON.parse(t);n.status_code&&n.error_msg?(o=null,a={code:n.status_code||e.status,details:``,hint:``,message:n.error_msg||t}):(o=n.data,a=null)}else{let t=await e.text(),n=JSON.parse(t);try{a=e.status===429?{code:429,message:`Too many requests received within 5 seconds.`,details:``,hint:`Retry after 5 seconds.`}:{code:n.status_code||e.status,message:n.error_msg||t,details:``,hint:``}}catch{a={code:n.status_code||e.status,message:n.error_msg||t,details:``,hint:``},o=null,s=500,c=`Dataloom Internal Error`}}let l={data:o,error:a,status:s,statusText:c};return a&&this.onRequestError?.({...a,status:s,statusText:c}),this.logger&&LC(i,l,n?.psmName),l}catch(e){let t={error:{code:500,message:e instanceof Error?e.message:String(e),details:``,hint:``},status:500,statusText:`Dataloom Internal Error`};this.onRequestError?.({...t.error,status:t.status,statusText:t.statusText});let r={data:null,...t};return this.logger&&LC(i,r,n?.psmName),r}}},BC={data:null,error:{code:400,message:`Incompatible runtime environment`,hint:`Please check if the current environment is browser.`,details:`This method can only be invoked in browser environment.`},status:400,statusText:`Bad Request`},VC=class extends zC{redirectToLogin(e){if(!OC())return FC(BC.error,{module:`session-service`,method:`redirectToLogin`,type:`runtime`}),console.log(`[Dataloom][SessionService.RedirectToLogin] dataloom.service.session.redirectToLogin can only be invoked in browser environment.`),BC;let{returnUrl:t,newTab:n=!1}=e??{},r=encodeURIComponent(decodeURIComponent(t||window.location.href)),i=`${window.location.pathname.startsWith(`/spark`)?`/spark/faas/${this.appId}/runtime/page/login`:`/app/${this.appId}/runtime/page/login`}?biz_source=${this.bizSource}&redirect_uri=${r}`;return n?window.open(i,`_blank`):window.location.href=i,{data:`success`,error:null,status:200,statusText:`OK`}}async signOut(){if(!OC())return FC(BC.error,{module:`session-service`,method:`signOut`,type:`runtime`}),console.log(`[Dataloom][SessionService.SignOut] dataloom.service.session.signOut can only be invoked in browser environment.`),BC;let e=this.getUrlWithBizSource();return this.fetchData(`/af/runtime/api/v1/account/logout`,{method:`POST`,body:{appID:this.appId,redirectURI:e}})}getUrlWithBizSource(){if(!OC())return FC(BC.error,{module:`session-service`,method:`getUrlWithBizSource`,type:`runtime`}),console.log(`[Dataloom][SessionService.GetUrlWithBizSource] dataloom.service.session.getUrlWithBizSource can only be invoked in browser environment.`),``;let e=new URL(window.location.href);return e.searchParams.set(`biz_source`,this.bizSource),e.toString()}async getUserInfo(){if(!OC())return FC(BC.error,{module:`session-service`,method:`getUserInfo`,type:`runtime`}),console.log(`[Dataloom][SessionService.GetUserInfo] dataloom.service.session.getUserInfo can only be invoked in browser environment.`),Promise.resolve(BC);let e=`/app/${this.appId}/__runtime__/api/v1/account/login/user`,t=new URL(globalThis.location.href).hostname.split(`.`)[0]??``,n=await this.fetchData(e,{method:`POST`,body:{appID:this.appId,tenantDomainName:t}});return{data:{user_info:{user_id:n.data?.userInfo?.userID,name:n.data?.userInfo?.name,avatar:n.data?.userInfo?.avatar,email:n.data?.userInfo?.email,phone_number:n.data?.userInfo?.desensitizedPhoneNumber}},error:null,status:n.status,statusText:n.statusText}}navigateToUserProfile(e){if(!OC())return FC(BC.error,{module:`session-service`,method:`navigateToUserProfile`,type:`runtime`}),console.log(`[Dataloom][SessionService.NavigateToUserProfile] dataloom.service.session.navigateToUserProfile can only be invoked in browser environment.`),BC;let{newTab:t=!1}=e??{},n=encodeURIComponent(window.location.href),r=`/suda/user?brand=${this.brandId}&returnUrl=${n}&appId=${this.appId}`;return t?window.open(r,`_blank`):window.location.href=r,{data:`success`,error:null,status:200,statusText:`OK`}}constructor(...e){super(...e),this.serviceName=NC.SessionService}},HC=class extends zC{async search(e){let{name:t,pageSize:n}=e,r=await this.fetchData(`/app/${this.appId}/__runtime__/api/v1/account/search_user`,{method:`POST`,body:{query:t,page_size:n}},{psmName:`UserService.Search`});return r.error?r:{...r,data:{user_list:r.data?.userList?.map(e=>({avatar:e.avatar??``,email:e.email??``,name:jC(e.name)??``,status:MC(e.userStatus),user_id:e.userID??``}))??[]}}}async getByIds(e){let t=await this.fetchData(`/app/${this.appId}/__runtime__/api/v1/account/list_users`,{method:`POST`,body:{userIDList:e}},{psmName:`UserService.GetByIds`});return t.error?t:{...t,data:{user_list:e.map(e=>{let n=t.data?.userInfoMap?.[e];return{avatar:n?.avatar?.image?.large??``,email:n?.email??``,name:jC(n?.name)??``,status:MC(n?.userStatus),user_id:n?.userID?String(n.userID):``}})}}}constructor(...e){super(...e),this.serviceName=NC.UserService}},UC=class{constructor(e){let t=OC()?window.location.origin:``;this.user=new HC(t,e),this.session=new VC(t,e)}},WC={"X-Client-Info":`storage-js/0.0.0`},GC=2592e3,KC=e=>{let t;return t=e||fetch,(e,n)=>t(e,n)},qC=async()=>Response,JC=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},YC=e=>typeof File<`u`&&e instanceof File||e instanceof Blob||e instanceof URLSearchParams?e.size.toString():typeof e==`string`?e.length.toString():ArrayBuffer.isView(e)||e instanceof ArrayBuffer?e.byteLength.toString():`0`,XC=e=>e<1?1:e>GC?GC:e,ZC=e=>{let t=e??{},n=t.buckets;return{name:t.name??``,bucket_id:t.bucket_id??``,owner:t.owner??``,id:t.id??``,updated_at:t.updated_at??``,created_at:t.created_at??``,created_by:t.created_by??``,updated_by:t.updated_by??``,last_accessed_at:t.last_accessed_at,metadata:t.metadata??{},buckets:{allowed_mime_types:n?.allowed_mime_types??[],created_at:n?.created_at??``,file_size_limit:n?.file_size_limit??0,id:n?.id??``,name:n?.name??``,public:n?.public??!1,updated_at:n?.updated_at??``,updated_by:n?.updated_by??``,owner:n?.created_by??``}}},QC=e=>encodeURIComponent(e.replace(/[\x00-\x1F\x7F:"\\/*?<>|,;]/g,``))||`download_file`,$C=/^https:\/\/[\w-]+\.tos-cn-beijing\.volces\.com\/.+/,ew=e=>$C.test(e),tw=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name=`StorageError`}};function nw(e){return typeof e==`object`&&!!e&&`__isStorageError`in e}var rw=class extends tw{constructor(e,t,n){super(e),this.name=`StorageApiError`,this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},iw=class extends tw{constructor(e,t){super(e),this.name=`StorageUnknownError`,this.originalError=t}},aw=(e,t)=>t&&e?.headers?.get(`server`)!==`TosServer`?!0:e?.error_msg,ow=e=>e?.status===429&&e?.statusText===`Too Many Requests`,sw=e=>aw(e)||ow(e),cw=(e,t=`Storage`)=>{let{traceId:n,url:r,method:i,body:a}=e,o=Array.from(new URL(r).searchParams.entries()).filter(([e])=>![`count`,`tx`,`missing`,`resolution`,`column`].includes(e)).map(([e,t])=>`${e}=${t}`);console.log(`[Dataloom][${t}][Request]`,`trace id:`,n,`method:`,i,`params:`,o.join(`,`),`body:`,a)},lw=(e,t,n=`Storage`)=>{let{data:r,error:i,status:a}=t;i?console.error(`[Dataloom][${n}][Response Failed]`,`trace id:`,e,`statusCode:`,a,`error:`,i):console.log(`[Dataloom][${n}][Response Success]`,`trace id:`,e,`statusCode:`,a,`data:`,r)},uw=class e{constructor(){this.counter=1}static getInstance(){return e.instance||=new e,e.instance}next(){return this.counter++}getCurrent(){return this.counter}reset(){this.counter=1}}.getInstance(),dw=e=>{if(typeof e==`object`&&e){let t=e;return String(t.msg??t.message??t.error_description??t.error??JSON.stringify(e))}return String(e)},fw=async(e,t,n)=>{let r=await qC();if(ow(e)){let e={code:429,message:`Too many requests received within 5 seconds.`,details:``,hint:`Retry after 5 seconds.`};return n?.onRequestError?.({status:429,statusText:`Too Many Requests`,...e}),t(e)}e instanceof r&&!n?.noResolveJson?e.json().then(r=>{let i=e.status||500,a=r?.statusCode||`${i}`;n?.onRequestError?.({status:i,statusText:a,code:r?.status_code||i,message:r?.error_msg||``,details:``,hint:``}),t(new rw(dw(r),i,a))}).catch(e=>{FC(e,{module:`storage-fetch`,phase:`response-json-parse`,type:`unknown`}),t(new iw(dw(e),e))}):(FC(e,{module:`storage-fetch`,phase:`request`,type:`unknown`}),t(new iw(dw(e),e)))},pw=(e,t,n,r)=>{let i={method:e,headers:t?.headers||{}};return e===`GET`||!r?i:(JC(r)?(i.headers={"Content-Type":`application/json`,...t?.headers},i.body=JSON.stringify(r)):i.body=r,t?.duplex&&(i.duplex=t.duplex),{...i,...n})};async function mw(e,t,n,r,i,a,o){let s=-1,c=200,l=o?.psmName;return r?.logFetch&&(s=uw.next(),cw({traceId:s,url:n,method:t,body:a},l)),new Promise((o,u)=>{e(n,pw(t,r,i,a)).then(e=>{if(c=e.status,!e.ok)throw e;return r?.noResolveJson?e:e.json()}).then(async e=>{if(aw(e))return r?.onRequestError?.({status:200,statusText:``,code:e?.status_code||200,message:e?.error_msg||``,details:``,hint:``}),r?.logFetch&&lw(s,{data:null,error:e,status:c},l),u(e);if(r?.logFetch){let t=null,n=null;if(r?.noResolveJson)try{e.headers.get(`server`)===`TosServer`||e.headers.get(`etag`)?t=await e.clone().text():n=await e.clone().json()}catch(e){n=dw(e)}else t=e;lw(s,{data:t,error:n,status:c},l)}return o(e)}).catch(e=>{r?.logFetch&&lw(s,{data:null,error:dw(e),status:e?.status},l),fw(e,u,r)})})}async function hw(e,t,n,r,i){return mw(e,`GET`,t,n,r,void 0,i)}async function gw(e,t,n,r,i,a){return mw(e,`POST`,t,r,i,n,a)}async function _w(e,t,n,r,i,a){return mw(e,`PUT`,t,r,i,n,a)}async function vw(e,t,n,r,i,a){return mw(e,`DELETE`,t,r,i,n,a)}var yw={limit:100,offset:0,sortBy:{column:`name`,order:`asc`}},bw={upsert:!1},xw=class{constructor(e,t={},n,r,i,a,o){this.url=e,this.headers=t,this.bucketId=n,this.appId=r,this.fetch=KC(i),this.loggerEnabled=a,this.onRequestError=o}async uploadOrUpdate(e,t,n){try{let r={...bw,...n},i=this._removeEmptyFolders(e),a=null;r?.contentDisposition?a=r?.contentDisposition:t instanceof File&&(a=t?.name);let o={bucket_id:this.bucketId??``,file_size:YC(t),upsert:r.upsert??!1,file_path:i,file_name:t instanceof File?t?.name:``},{upload_id:s,upload_url:c}=(await gw(this.fetch,`${this.url}/object/${this.bucketId}/pre_upload`,o,{headers:this.headers,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.Upload.PreUpload`}))?.data??{};if(!c||!s)return{data:null,error:new tw(`upload_url or upload_id is empty`)};{let e={};a&&(e[`content-disposition`]=`attachment; filename="${QC(a)}"`),(r.cacheControl||r.cacheControl===0)&&(e[`cache-control`]=`max-age=${r.cacheControl}`),r.contentType&&(e[`content-type`]=r.contentType);let n=(await _w(this.fetch,c,t,{noResolveJson:!0,headers:e,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.Upload.TosUpload`}))?.headers?.get(`Etag`)??``;return{data:(await gw(this.fetch,`${this.url}/object/callback`,{upload_id:s,etag:n,app_id:this.appId},{headers:this.headers,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.Upload.Callback`}))?.data??{id:``,file_path:``,bucket_id:``,download_url:``},error:null}}}catch(e){return sw(e)||nw(e)?{data:null,error:e}:{data:null,error:new iw(`upload file error`,e)}}}async upload(e,t,n){let r=t instanceof Blob||t instanceof ArrayBuffer||typeof File<`u`&&t instanceof File||t instanceof FormData||t instanceof URLSearchParams||typeof ReadableStream<`u`&&t instanceof ReadableStream||ArrayBuffer.isView(t)||typeof t==`string`;if(typeof e==`string`&&r)return this.uploadOrUpdate(e,t,n);let i=t;return this.uploadOrUpdate(i?.filePath??``,e,i)}async uploadFile(e,t){return this.uploadOrUpdate(t?.filePath??``,e,t)}async update(e,t,n){return this.uploadOrUpdate(e,t,n)}async createSignedUrl(e,t,n){try{let n=this._getFinalPath(e);return{data:(await gw(this.fetch,`${this.url}/object/sign/${n}`,{expires_in:XC(t)},{headers:this.headers,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.CreateSignedUrl`})).data,error:null}}catch(e){return sw(e)||nw(e)?{data:null,error:e}:{data:null,error:new iw(`create signed url error`,e)}}}async createSignedUrls(e,t,n){try{let n=e.map(e=>this._retrieveFilePathFromDownloadUrl(e));return{data:(await gw(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expires_in:XC(t),paths:n},{headers:this.headers,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.CreateSignedUrls`})).data,error:null}}catch(e){return sw(e)||nw(e)?{data:null,error:e}:{data:null,error:new iw(`create signed urls error`,e)}}}async download(e,t){try{let t=this._retrieveFilePathFromDownloadUrl(e),n=await hw(this.fetch,`${this.url}/object/${this.bucketId}/${t}`,{headers:this.headers,noResolveJson:!0,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.Download`});return n.redirected?{data:await n.blob(),error:null}:{data:null,error:await n.json()}}catch(e){if(e&&typeof e==`object`&&`originalError`in e){let t=e.originalError;if(t instanceof Response&&t.redirected)try{return{data:null,error:new tw(await t.text())}}catch{return{data:null,error:new iw(`download file error`,e)}}}return sw(e)||nw(e)?{data:null,error:e}:{data:null,error:new iw(`download file error`,e)}}}async remove(e){try{let t=e.map(e=>this._retrieveFilePathFromDownloadUrl(e));return{data:(await vw(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.Remove`})).data.map(e=>ZC(e)),error:null}}catch(e){return sw(e)||nw(e)?{data:null,error:e}:{data:null,error:new iw(`remove file error`,e)}}}async uploadFromUrl(e){try{let t;try{t=new URL(e)}catch{return{data:null,error:new tw(`Invalid URL provided`)}}if(t.protocol!==`http:`&&t.protocol!==`https:`)return{data:null,error:new tw(`Only http and https protocols are supported`)};if(ew(e))return{data:await this._copyWithinVolcEngine(e),error:null};let n=await this.fetch(e);if(!n.ok)return{data:null,error:new tw(`Failed to download file from URL: ${n.status} ${n.statusText}`)};let r=(n.headers.get(`content-type`)||``).split(`;`)[0].trim().toLowerCase(),i=n.headers.get(`content-disposition`),a=n.headers.get(`cache-control`),o=await n.blob();if(o.size===0)return{data:null,error:new tw(`Downloaded file is empty`)};let s={};if(r&&(s.contentType=r),i&&(s.contentDisposition=i),a){let e=a.match(/max-age=(\d+)/i);e&&(s.cacheControl=Number.parseInt(e[1],10))}return this.uploadOrUpdate(``,o,s)}catch(e){return sw(e)||nw(e)?{data:null,error:e}:{data:null,error:new iw(`copy from url error`,e)}}}async list(e,t,n){try{let r={...yw,...t,prefix:e||``};return{data:(await gw(this.fetch,`${this.url}/object/list/${this.bucketId}`,r,{headers:this.headers,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},n,{psmName:`Storage.List`})).data.map(e=>ZC(e)),error:null}}catch(e){return sw(e)||nw(e)?{data:null,error:e}:{data:null,error:new iw(`list file error`,e)}}}generateDownloadUrlFromFilePath(e){return`/app/${this.appId}/runtime/api/v1/storage/object/${this.bucketId}/${encodeURIComponent(this._removeEmptyFolders(e))}`}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<`u`?Buffer.from(e).toString(`base64`):btoa(e)}_getFinalPath(e){let t=this._retrieveFilePathFromDownloadUrl(e);return`${this.bucketId}/${t.replace(/^\/+/,``)}`}_removeEmptyFolders(e){return e&&e.replace(/^\/|\/$/g,``).replace(/\/+/g,`/`)}_isValidDownloadUrl(e){return/^(\/spark)?\/app\/app_[\w]+\/runtime\/api\/v1\/storage\/object\//.test(e)}_retrieveFilePathFromDownloadUrl(e){if(!this._isValidDownloadUrl(e))return e;let t=e.indexOf(`/object/`);if(t===-1)return``;let n=e.slice(t+8),r=n.indexOf(`/`);if(r!==-1){let e=n.slice(r+1);return decodeURIComponent(e)}return``}async _copyWithinVolcEngine(e){let{metadata:t}=(await gw(this.fetch,`${this.url}/runtime/app/${this.appId}/object/${this.bucketId}/copy`,{source:{type:`externalTOS`,externalURL:e}},{headers:this.headers,logFetch:this.loggerEnabled,onRequestError:this.onRequestError},void 0,{psmName:`Storage.Copy`}))?.data??{};return{id:t?.id??``,file_path:t?.filePath??``,bucket_id:t?.bucketID??``,download_url:t?.downloadURL??``}}},Sw=class{constructor(e,t={},n,r){this.url=e,this.headers={...WC,...t},this.fetch=KC(n),this.onRequestError=r?.onRequestError,this.appId=r?.appId,r?.enableLogger&&(this.loggerEnabled=!0)}from(e){return new xw(this.url,this.headers,e,this.appId,this.fetch,this.loggerEnabled,this.onRequestError)}};function Cw(e){return e.replace(/\/$/,``)}var ww=()=>typeof window<`u`;function Tw(e,t){let{global:n}=e,{global:r}=t;return{global:{brandName:``,appId:``,...r,...n}}}var Ew=`0.0.0-automated`,Dw=``;Dw=typeof Deno<`u`?`deno`:typeof document<`u`?`web`:typeof navigator<`u`&&navigator.product===`ReactNative`?`react-native`:`node`;var Ow={headers:{"X-Client-Info":`dataloom-js-${Dw}/${Ew}`,"X-Suda-Token":(()=>{if(!ww())return``;let e=window.location.host.replace(/\./g,`-`),t=new URLSearchParams(window.location.search).get(`suda_token`);if(t){localStorage.setItem(`suda_token_${e}`,`${t}`);let n=new URL(window.location.href),r=new URLSearchParams(n.search);return r.delete(`suda_token`),n.search=r.toString(),history.replaceState(null,``,n.toString()),t}return localStorage.getItem(`suda_token_${e}`)||``})(),"X-Suda-Referer":ww()?window.location.href:``},brandName:``,appId:``},kw=e=>{let t;return t=e||fetch,(e,n)=>t(e,n)},Aw=(e,t,n)=>{let r=kw(n);return async(n,i)=>{if(t&&!t.canRequest())return Promise.resolve(new Response(`{"limit": ${t.maxRequests}}`,{status:429,statusText:`Too Many Requests`}));let a=new Headers(i?.headers);return!a.has(`apikey`)&&e&&a.set(`apikey`,e),r(n,{...i,headers:a})}},jw=class{constructor(e,t,n){this.dataloomUrl=e,this.dataloomKey=t;let r=Cw(e);this.storageUrl=`${r}/storage`;let i=Tw(n??{},{global:Ow});this.headers=i.global.headers??{},this.onRequestError=e=>{FC(e,{module:`client`,phase:`request`,appId:i.global.appId}),i.global.onError&&i.global.onError(e,this)},i.global.requestRateLimit&&i.global.requestRateLimit>0&&(this.rateLimiter=new TC(i.global.requestRateLimit)),this.fetch=Aw(t,this.rateLimiter,i.global.fetch),this.service=new UC({headers:this.headers,fetch:this.fetch,logger:i.global.enableDataloomLog,brandName:i.global.brandName,appId:i.global.appId,onRequestError:this.onRequestError}),this.storage=new Sw(this.storageUrl,this.headers,this.fetch,{enableLogger:i.global.enableDataloomLog,onRequestError:this.onRequestError,appId:i.global.appId})}},Mw=(e,t,n)=>new jw(e,t,n),Nw=i(((e,t)=>{(function(){var n,r=`4.18.1`,i=200,a=`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`,o=`Expected a function`,s="Invalid `variable` option passed into `_.template`",c="Invalid `imports` option passed into `_.template`",l=`__lodash_hash_undefined__`,u=500,d=`__lodash_placeholder__`,f=1,p=2,m=4,h=1,g=2,_=1,v=2,y=4,b=8,x=16,S=32,C=64,w=128,T=256,E=512,D=30,O=`...`,k=800,A=16,j=1,ee=2,M=3,N=1/0,P=9007199254740991,F=17976931348623157e292,I=NaN,te=4294967295,ne=te-1,re=te>>>1,ie=[[`ary`,w],[`bind`,_],[`bindKey`,v],[`curry`,b],[`curryRight`,x],[`flip`,E],[`partial`,S],[`partialRight`,C],[`rearg`,T]],ae=`[object Arguments]`,oe=`[object Array]`,se=`[object AsyncFunction]`,ce=`[object Boolean]`,le=`[object Date]`,ue=`[object DOMException]`,de=`[object Error]`,fe=`[object Function]`,pe=`[object GeneratorFunction]`,me=`[object Map]`,he=`[object Number]`,ge=`[object Null]`,_e=`[object Object]`,ve=`[object Promise]`,ye=`[object Proxy]`,be=`[object RegExp]`,xe=`[object Set]`,Se=`[object String]`,Ce=`[object Symbol]`,we=`[object Undefined]`,Te=`[object WeakMap]`,Ee=`[object WeakSet]`,De=`[object ArrayBuffer]`,Oe=`[object DataView]`,ke=`[object Float32Array]`,Ae=`[object Float64Array]`,je=`[object Int8Array]`,Me=`[object Int16Array]`,Ne=`[object Int32Array]`,Pe=`[object Uint8Array]`,Fe=`[object Uint8ClampedArray]`,Ie=`[object Uint16Array]`,Le=`[object Uint32Array]`,Re=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,Be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ve=/&(?:amp|lt|gt|quot|#39);/g,He=/[&<>"']/g,Ue=RegExp(Ve.source),We=RegExp(He.source),Ge=/<%-([\s\S]+?)%>/g,Ke=/<%([\s\S]+?)%>/g,qe=/<%=([\s\S]+?)%>/g,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ye=/^\w*$/,Xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ze=/[\\^$.*+?()[\]{}|]/g,Qe=RegExp(Ze.source),$e=/^\s+/,et=/\s/,tt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nt=/\{\n\/\* \[wrapped with (.+)\] \*/,rt=/,? & /,it=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ot=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,lt=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,dt=/^\[object .+?Constructor\]$/,ft=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ht=/($^)/,gt=/['\n\r\u2028\u2029\\]/g,_t=`\\ud800-\\udfff`,vt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,yt=`\\u2700-\\u27bf`,bt=`a-z\\xdf-\\xf6\\xf8-\\xff`,xt=`\\xac\\xb1\\xd7\\xf7`,St=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Ct=`\\u2000-\\u206f`,wt=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Tt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Et=`\\ufe0e\\ufe0f`,Dt=xt+St+Ct+wt,Ot=`['’]`,kt=`[`+_t+`]`,At=`[`+Dt+`]`,jt=`[`+vt+`]`,Mt=`\\d+`,Nt=`[`+yt+`]`,Pt=`[`+bt+`]`,Ft=`[^`+_t+Dt+Mt+yt+bt+Tt+`]`,It=`\\ud83c[\\udffb-\\udfff]`,Lt=`(?:`+jt+`|`+It+`)`,Rt=`[^`+_t+`]`,zt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Bt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Vt=`[`+Tt+`]`,Ht=`\\u200d`,Ut=`(?:`+Pt+`|`+Ft+`)`,Wt=`(?:`+Vt+`|`+Ft+`)`,Gt=`(?:`+Ot+`(?:d|ll|m|re|s|t|ve))?`,Kt=`(?:`+Ot+`(?:D|LL|M|RE|S|T|VE))?`,qt=Lt+`?`,Jt=`[`+Et+`]?`,Yt=`(?:`+Ht+`(?:`+[Rt,zt,Bt].join(`|`)+`)`+Jt+qt+`)*`,Xt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Zt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Qt=Jt+qt+Yt,$t=`(?:`+[Nt,zt,Bt].join(`|`)+`)`+Qt,en=`(?:`+[Rt+jt+`?`,jt,zt,Bt,kt].join(`|`)+`)`,tn=RegExp(Ot,`g`),nn=RegExp(jt,`g`),rn=RegExp(It+`(?=`+It+`)|`+en+Qt,`g`),an=RegExp([Vt+`?`+Pt+`+`+Gt+`(?=`+[At,Vt,`$`].join(`|`)+`)`,Wt+`+`+Kt+`(?=`+[At,Vt+Ut,`$`].join(`|`)+`)`,Vt+`?`+Ut+`+`+Gt,Vt+`+`+Kt,Zt,Xt,Mt,$t].join(`|`),`g`),on=RegExp(`[`+Ht+_t+vt+Et+`]`),sn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cn=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),ln=-1,un={};un[ke]=un[Ae]=un[je]=un[Me]=un[Ne]=un[Pe]=un[Fe]=un[Ie]=un[Le]=!0,un[ae]=un[oe]=un[De]=un[ce]=un[Oe]=un[le]=un[de]=un[fe]=un[me]=un[he]=un[_e]=un[be]=un[xe]=un[Se]=un[Te]=!1;var dn={};dn[ae]=dn[oe]=dn[De]=dn[Oe]=dn[ce]=dn[le]=dn[ke]=dn[Ae]=dn[je]=dn[Me]=dn[Ne]=dn[me]=dn[he]=dn[_e]=dn[be]=dn[xe]=dn[Se]=dn[Ce]=dn[Pe]=dn[Fe]=dn[Ie]=dn[Le]=!0,dn[de]=dn[fe]=dn[Te]=!1;var fn={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},pn={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},mn={"&":`&`,"<":`<`,">":`>`,""":`"`,"'":`'`},hn={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},gn=parseFloat,_n=parseInt,vn=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis,yn=typeof self==`object`&&self&&self.Object===Object&&self,bn=vn||yn||Function(`return this`)(),xn=typeof e==`object`&&e&&!e.nodeType&&e,Sn=xn&&typeof t==`object`&&t&&!t.nodeType&&t,Cn=Sn&&Sn.exports===xn,wn=Cn&&vn.process,Tn=function(){try{return Sn&&Sn.require&&Sn.require(`util`).types||wn&&wn.binding&&wn.binding(`util`)}catch{}}(),En=Tn&&Tn.isArrayBuffer,Dn=Tn&&Tn.isDate,On=Tn&&Tn.isMap,kn=Tn&&Tn.isRegExp,An=Tn&&Tn.isSet,jn=Tn&&Tn.isTypedArray;function Mn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Nn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Pn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Fn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function In(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ln(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Rn(e,t){return!!(e!=null&&e.length)&&Xn(e,t,0)>-1}function zn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Bn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Vn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Hn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Un(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Wn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Gn=er(`length`);function Kn(e){return e.split(``)}function qn(e){return e.match(it)||[]}function Jn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Yn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Xn(e,t,n){return t===t?Er(e,t,n):Yn(e,Qn,n)}function Zn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Qn(e){return e!==e}function $n(e,t){var n=e==null?0:e.length;return n?ir(e,t)/n:I}function er(e){return function(t){return t==null?n:t[e]}}function tr(e){return function(t){return e==null?n:e[t]}}function nr(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function rr(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ir(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function ar(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function or(e,t){return Bn(t,function(t){return[t,e[t]]})}function sr(e){return e&&e.slice(0,Ar(e)+1).replace($e,``)}function cr(e){return function(t){return e(t)}}function lr(e,t){return Bn(t,function(t){return e[t]})}function ur(e,t){return e.has(t)}function dr(e,t){for(var n=-1,r=e.length;++n<r&&Xn(t,e[n],0)>-1;);return n}function fr(e,t){for(var n=e.length;n--&&Xn(t,e[n],0)>-1;);return n}function pr(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var mr=tr(fn),hr=tr(pn);function gr(e){return`\\`+hn[e]}function _r(e,t){return e==null?n:e[t]}function vr(e){return on.test(e)}function yr(e){return sn.test(e)}function br(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function xr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Sr(e,t){return function(n){return e(t(n))}}function Cr(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];(o===t||o===d)&&(e[n]=d,a[i++]=n)}return a}function wr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Er(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Dr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function Or(e){return vr(e)?Mr(e):Gn(e)}function kr(e){return vr(e)?Nr(e):Kn(e)}function Ar(e){for(var t=e.length;t--&&et.test(e.charAt(t)););return t}var jr=tr(mn);function Mr(e){for(var t=rn.lastIndex=0;rn.test(e);)++t;return t}function Nr(e){return e.match(rn)||[]}function Pr(e){return e.match(an)||[]}var Fr=(function e(t){t=t==null?bn:Fr.defaults(bn.Object(),t,Fr.pick(bn,cn));var et=t.Array,it=t.Date,_t=t.Error,vt=t.Function,yt=t.Math,bt=t.Object,xt=t.RegExp,St=t.String,Ct=t.TypeError,wt=et.prototype,Tt=vt.prototype,Et=bt.prototype,Dt=t[`__core-js_shared__`],Ot=Tt.toString,kt=Et.hasOwnProperty,At=0,jt=function(){var e=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Mt=Et.toString,Nt=Ot.call(bt),Pt=bn._,Ft=xt(`^`+Ot.call(kt).replace(Ze,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),It=Cn?t.Buffer:n,Lt=t.Symbol,Rt=t.Uint8Array,zt=It?It.allocUnsafe:n,Bt=Sr(bt.getPrototypeOf,bt),Vt=bt.create,Ht=Et.propertyIsEnumerable,Ut=wt.splice,Wt=Lt?Lt.isConcatSpreadable:n,Gt=Lt?Lt.iterator:n,Kt=Lt?Lt.toStringTag:n,qt=function(){try{var e=is(bt,`defineProperty`);return e({},``,{}),e}catch{}}(),Jt=t.clearTimeout!==bn.clearTimeout&&t.clearTimeout,Yt=it&&it.now!==bn.Date.now&&it.now,Xt=t.setTimeout!==bn.setTimeout&&t.setTimeout,Zt=yt.ceil,Qt=yt.floor,$t=bt.getOwnPropertySymbols,en=It?It.isBuffer:n,rn=t.isFinite,an=wt.join,on=Sr(bt.keys,bt),sn=yt.max,fn=yt.min,pn=it.now,mn=t.parseInt,hn=yt.random,vn=wt.reverse,yn=is(t,`DataView`),xn=is(t,`Map`),Sn=is(t,`Promise`),wn=is(t,`Set`),Tn=is(t,`WeakMap`),Gn=is(bt,`create`),Kn=Tn&&new Tn,tr={},Er=Us(yn),Mr=Us(xn),Nr=Us(Sn),Ir=Us(wn),Lr=Us(Tn),Rr=Lt?Lt.prototype:n,zr=Rr?Rr.valueOf:n,Br=Rr?Rr.toString:n;function L(e){if(ju(e)&&!J(e)&&!(e instanceof R)){if(e instanceof Ur)return e;if(kt.call(e,`__wrapped__`))return Gs(e)}return new Ur(e)}var Vr=function(){function e(){}return function(t){if(!Au(t))return{};if(Vt)return Vt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Hr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}L.templateSettings={escape:Ge,evaluate:Ke,interpolate:qe,variable:``,imports:{_:L}},L.prototype=Hr.prototype,L.prototype.constructor=L,Ur.prototype=Vr(Hr.prototype),Ur.prototype.constructor=Ur;function R(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function Wr(){var e=new R(this.__wrapped__);return e.__actions__=go(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=go(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=go(this.__views__),e}function Gr(){if(this.__filtered__){var e=new R(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Kr(){var e=this.__wrapped__.value(),t=this.__dir__,n=J(e),r=t<0,i=n?e.length:0,a=ls(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=fn(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Xa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==ee)g=b;else if(!b){if(y==j)continue outer;break outer}}m[f++]=g}return m}R.prototype=Vr(Hr.prototype),R.prototype.constructor=R;function qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jr(){this.__data__=Gn?Gn(null):{},this.size=0}function Yr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function Xr(e){var t=this.__data__;if(Gn){var r=t[e];return r===l?n:r}return kt.call(t,e)?t[e]:n}function Zr(e){var t=this.__data__;return Gn?t[e]!==n:kt.call(t,e)}function Qr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Gn&&t===n?l:t,this}qr.prototype.clear=Jr,qr.prototype.delete=Yr,qr.prototype.get=Xr,qr.prototype.has=Zr,qr.prototype.set=Qr;function z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $r(){this.__data__=[],this.size=0}function ei(e){var t=this.__data__,n=wi(t,e);return n<0?!1:(n==t.length-1?t.pop():Ut.call(t,n,1),--this.size,!0)}function ti(e){var t=this.__data__,r=wi(t,e);return r<0?n:t[r][1]}function ni(e){return wi(this.__data__,e)>-1}function ri(e,t){var n=this.__data__,r=wi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}z.prototype.clear=$r,z.prototype.delete=ei,z.prototype.get=ti,z.prototype.has=ni,z.prototype.set=ri;function ii(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ai(){this.size=0,this.__data__={hash:new qr,map:new(xn||z),string:new qr}}function oi(e){var t=ns(this,e).delete(e);return this.size-=+!!t,t}function si(e){return ns(this,e).get(e)}function ci(e){return ns(this,e).has(e)}function li(e,t){var n=ns(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}ii.prototype.clear=ai,ii.prototype.delete=oi,ii.prototype.get=si,ii.prototype.has=ci,ii.prototype.set=li;function ui(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ii;++t<n;)this.add(e[t])}function di(e){return this.__data__.set(e,l),this}function fi(e){return this.__data__.has(e)}ui.prototype.add=ui.prototype.push=di,ui.prototype.has=fi;function pi(e){var t=this.__data__=new z(e);this.size=t.size}function mi(){this.__data__=new z,this.size=0}function hi(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function gi(e){return this.__data__.get(e)}function _i(e){return this.__data__.has(e)}function vi(e,t){var n=this.__data__;if(n instanceof z){var r=n.__data__;if(!xn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ii(r)}return n.set(e,t),this.size=n.size,this}pi.prototype.clear=mi,pi.prototype.delete=hi,pi.prototype.get=gi,pi.prototype.has=_i,pi.prototype.set=vi;function yi(e,t){var n=J(e),r=!n&&mu(e),i=!n&&!r&&yu(e),a=!n&&!r&&!i&&Ku(e),o=n||r||i||a,s=o?ar(e.length,St):[],c=s.length;for(var l in e)(t||kt.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||_s(l,c)))&&s.push(l);return s}function B(e){var t=e.length;return t?e[ja(0,t-1)]:n}function bi(e,t){return Bs(go(e),Ai(t,0,e.length))}function xi(e){return Bs(go(e))}function Si(e,t,r){(r!==n&&!du(e[t],r)||r===n&&!(t in e))&&Oi(e,t,r)}function Ci(e,t,r){var i=e[t];(!(kt.call(e,t)&&du(i,r))||r===n&&!(t in e))&&Oi(e,t,r)}function wi(e,t){for(var n=e.length;n--;)if(du(e[n][0],t))return n;return-1}function Ti(e,t,n,r){return Ii(e,function(e,i,a){t(r,e,n(e),a)}),r}function Ei(e,t){return e&&_o(t,Dd(t),e)}function Di(e,t){return e&&_o(t,Od(t),e)}function Oi(e,t,n){t==`__proto__`&&qt?qt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ki(e,t){for(var r=-1,i=t.length,a=et(i),o=e==null;++r<i;)a[r]=o?n:xd(e,t[r]);return a}function Ai(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ji(e,t,r,i,a,o){var s,c=t&f,l=t&p,u=t&m;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Au(e))return e;var d=J(e);if(d){if(s=fs(e),!c)return go(e,s)}else{var h=cs(e),g=h==fe||h==pe;if(yu(e))return ao(e,c);if(h==_e||h==ae||g&&!a){if(s=l||g?{}:ps(e),!c)return l?yo(e,Di(s,e)):vo(e,Ei(s,e))}else{if(!dn[h])return a?e:{};s=ms(e,h,c)}}o||=new pi;var _=o.get(e);if(_)return _;o.set(e,s),Uu(e)?e.forEach(function(n){s.add(ji(n,t,r,n,e,o))}):Mu(e)&&e.forEach(function(n,i){s.set(i,ji(n,t,r,i,e,o))});var v=d?n:(u?l?Qo:Zo:l?Od:Dd)(e);return Pn(v||e,function(n,i){v&&(i=n,n=e[i]),Ci(s,i,ji(n,t,r,i,e,o))}),s}function Mi(e){var t=Dd(e);return function(n){return Ni(n,e,t)}}function Ni(e,t,r){var i=r.length;if(e==null)return!i;for(e=bt(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function Pi(e,t,r){if(typeof e!=`function`)throw new Ct(o);return Is(function(){e.apply(n,r)},t)}function Fi(e,t,n,r){var a=-1,o=Rn,s=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Bn(t,cr(n))),r?(o=zn,s=!1):t.length>=i&&(o=ur,s=!1,t=new ui(t));outer:for(;++a<c;){var d=e[a],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue outer;l.push(d)}else o(t,f,r)||l.push(d)}return l}var Ii=So(Gi),Li=So(Ki,!0);function Ri(e,t){var n=!0;return Ii(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function zi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Gu(s):r(s,c)))var c=s,l=o}return l}function Bi(e,t,r,i){var a=e.length;for(r=Y(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Y(i),i<0&&(i+=a),i=r>i?0:ed(i);r<i;)e[r++]=t;return e}function Vi(e,t){var n=[];return Ii(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Hi(e,t,n,r,i){var a=-1,o=e.length;for(n||=gs,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Hi(s,t-1,n,r,i):Vn(i,s):r||(i[i.length]=s)}return i}var Ui=Co(),Wi=Co(!0);function Gi(e,t){return e&&Ui(e,t,Dd)}function Ki(e,t){return e&&Wi(e,t,Dd)}function qi(e,t){return Ln(t,function(t){return Du(e[t])})}function Ji(e,t){t=to(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Hs(t[r++])];return r&&r==i?e:n}function Yi(e,t,n){var r=t(e);return J(e)?r:Vn(r,n(e))}function Xi(e){return e==null?e===n?we:ge:Kt&&Kt in bt(e)?as(e):As(e)}function Zi(e,t){return e>t}function Qi(e,t){return e!=null&&kt.call(e,t)}function $i(e,t){return e!=null&&t in bt(e)}function ea(e,t,n){return e>=fn(t,n)&&e<sn(t,n)}function ta(e,t,r){for(var i=r?zn:Rn,a=e[0].length,o=e.length,s=o,c=et(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Bn(d,cr(t))),l=fn(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new ui(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?ur(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?ur(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function na(e,t,n,r){return Gi(e,function(e,i,a){t(r,n(e),i,a)}),r}function ra(e,t,r){t=to(t,e),e=Ms(e,t);var i=e==null?e:e[Hs(mc(t))];return i==null?n:Mn(i,e,r)}function ia(e){return ju(e)&&Xi(e)==ae}function aa(e){return ju(e)&&Xi(e)==De}function oa(e){return ju(e)&&Xi(e)==le}function sa(e,t,n,r,i){return e===t?!0:e==null||t==null||!ju(e)&&!ju(t)?e!==e&&t!==t:ca(e,t,n,r,sa,i)}function ca(e,t,n,r,i,a){var o=J(e),s=J(t),c=o?oe:cs(e),l=s?oe:cs(t);c=c==ae?_e:c,l=l==ae?_e:l;var u=c==_e,d=l==_e,f=c==l;if(f&&yu(e)){if(!yu(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new pi,o||Ku(e)?qo(e,t,n,r,i,a):Jo(e,t,c,n,r,i,a);if(!(n&h)){var p=u&&kt.call(e,`__wrapped__`),m=d&&kt.call(t,`__wrapped__`);if(p||m){var g=p?e.value():e,_=m?t.value():t;return a||=new pi,i(g,_,n,r,a)}}return f?(a||=new pi,Yo(e,t,n,r,i,a)):!1}function la(e){return ju(e)&&cs(e)==me}function ua(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=bt(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new pi;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?sa(d,u,h|g,i,f):p))return!1}}return!0}function da(e){return!Au(e)||Ss(e)?!1:(Du(e)?Ft:dt).test(Us(e))}function fa(e){return ju(e)&&Xi(e)==be}function pa(e){return ju(e)&&cs(e)==xe}function ma(e){return ju(e)&&ku(e.length)&&!!un[Xi(e)]}function ha(e){return typeof e==`function`?e:e==null?If:typeof e==`object`?J(e)?xa(e[0],e[1]):ba(e):Yf(e)}function ga(e){if(!ws(e))return on(e);var t=[];for(var n in bt(e))kt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function _a(e){if(!Au(e))return ks(e);var t=ws(e),n=[];for(var r in e)r==`constructor`&&(t||!kt.call(e,r))||n.push(r);return n}function va(e,t){return e<t}function ya(e,t){var n=-1,r=gu(e)?et(e.length):[];return Ii(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function ba(e){var t=rs(e);return t.length==1&&t[0][2]?Es(t[0][0],t[0][1]):function(n){return n===e||ua(n,e,t)}}function xa(e,t){return ys(e)&&Ts(t)?Es(Hs(e),t):function(r){var i=xd(r,e);return i===n&&i===t?Cd(r,e):sa(t,i,h|g)}}function Sa(e,t,r,i,a){e!==t&&Ui(t,function(o,s){if(a||=new pi,Au(o))Ca(e,t,s,r,Sa,i,a);else{var c=i?i(Ps(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Si(e,s,c)}},Od)}function Ca(e,t,r,i,a,o,s){var c=Ps(e,r),l=Ps(t,r),u=s.get(l);if(u){Si(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=J(l),m=!p&&yu(l),h=!p&&!m&&Ku(l);d=l,p||m||h?J(c)?d=c:_u(c)?d=go(c):m?(f=!1,d=ao(l,!0)):h?(f=!1,d=uo(l,!0)):d=[]:Bu(l)||mu(l)?(d=c,mu(c)?d=nd(c):(!Au(c)||Du(c))&&(d=ps(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Si(e,r,d)}function wa(e,t){var r=e.length;if(r)return t+=t<0?r:0,_s(t,r)?e[t]:n}function Ta(e,t,n){t=t.length?Bn(t,function(e){return J(e)?function(t){return Ji(t,e.length===1?e[0]:e)}:e}):[If];var r=-1;return t=Bn(t,cr(U())),rr(ya(e,function(e,n,i){return{criteria:Bn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return po(e,t,n)})}function Ea(e,t){return Da(e,t,function(t,n){return Cd(e,n)})}function Da(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ji(e,o);n(s,o)&&Ia(a,to(o,e),s)}return a}function Oa(e){return function(t){return Ji(t,e)}}function ka(e,t,n,r){var i=r?Zn:Xn,a=-1,o=t.length,s=e;for(e===t&&(t=go(t)),n&&(s=Bn(e,cr(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Ut.call(s,c,1),Ut.call(e,c,1);return e}function Aa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;_s(i)?Ut.call(e,i,1):qa(e,i)}}return e}function ja(e,t){return e+Qt(hn()*(t-e+1))}function Ma(e,t,n,r){for(var i=-1,a=sn(Zt((t-e)/(n||1)),0),o=et(a);a--;)o[r?a:++i]=e,e+=n;return o}function Na(e,t){var n=``;if(!e||t<1||t>P)return n;do t%2&&(n+=e),t=Qt(t/2),t&&(e+=e);while(t);return n}function V(e,t){return Ls(js(e,t,If),e+``)}function Pa(e){return B(Kd(e))}function Fa(e,t){var n=Kd(e);return Bs(n,Ai(t,0,n.length))}function Ia(e,t,r,i){if(!Au(e))return e;t=to(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=Hs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=Au(d)?d:_s(t[a+1])?[]:{})}Ci(c,l,u),c=c[l]}return e}var La=Kn?function(e,t){return Kn.set(e,t),e}:If,Ra=qt?function(e,t){return qt(e,`toString`,{configurable:!0,enumerable:!1,value:Mf(t),writable:!0})}:If;function za(e){return Bs(Kd(e))}function Ba(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=et(i);++r<i;)a[r]=e[r+t];return a}function Va(e,t){var n;return Ii(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Ha(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=re){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Gu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Ua(e,t,If,n)}function Ua(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Gu(t),u=t===n;a<o;){var d=Qt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Gu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return fn(o,ne)}function Wa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!du(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function Ga(e){return typeof e==`number`?e:Gu(e)?I:+e}function H(e){if(typeof e==`string`)return e;if(J(e))return Bn(e,H)+``;if(Gu(e))return Br?Br.call(e):``;var t=e+``;return t==`0`&&1/e==-N?`-0`:t}function Ka(e,t,n){var r=-1,a=Rn,o=e.length,s=!0,c=[],l=c;if(n)s=!1,a=zn;else if(o>=i){var u=t?null:Vo(e);if(u)return wr(u);s=!1,a=ur,l=new ui}else l=t?[]:c;outer:for(;++r<o;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),c.push(d)}else a(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function qa(e,t){t=to(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Hs(t[n]);if(i===`__proto__`&&!kt.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=Ms(e,t);return a==null||delete a[Hs(mc(t))]}function Ja(e,t,n,r){return Ia(e,t,n(Ji(e,t)),r)}function Ya(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?Ba(e,r?0:a,r?a+1:i):Ba(e,r?a+1:0,r?i:a)}function Xa(e,t){var n=e;return n instanceof R&&(n=n.value()),Hn(t,function(e,t){return t.func.apply(t.thisArg,Vn([e],t.args))},n)}function Za(e,t,n){var r=e.length;if(r<2)return r?Ka(e[0]):[];for(var i=-1,a=et(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=Fi(a[i]||o,e[s],t,n));return Ka(Hi(a,1),t,n)}function Qa(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function $a(e){return _u(e)?e:[]}function eo(e){return typeof e==`function`?e:If}function to(e,t){return J(e)?e:ys(e,t)?[e]:Vs(id(e))}var no=V;function ro(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Ba(e,t,r)}var io=Jt||function(e){return bn.clearTimeout(e)};function ao(e,t){if(t)return e.slice();var n=e.length,r=zt?zt(n):new e.constructor(n);return e.copy(r),r}function oo(e){var t=new e.constructor(e.byteLength);return new Rt(t).set(new Rt(e)),t}function so(e,t){var n=t?oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function co(e){var t=new e.constructor(e.source,ct.exec(e));return t.lastIndex=e.lastIndex,t}function lo(e){return zr?bt(zr.call(e)):{}}function uo(e,t){var n=t?oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fo(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Gu(e),s=t!==n,c=t===null,l=t===t,u=Gu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function po(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=fo(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function mo(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=sn(a-o,0),u=et(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function ho(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=sn(a-s,0),d=et(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function go(e,t){var n=-1,r=e.length;for(t||=et(r);++n<r;)t[n]=e[n];return t}function _o(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?Oi(r,c,l):Ci(r,c,l)}return r}function vo(e,t){return _o(e,os(e),t)}function yo(e,t){return _o(e,ss(e),t)}function bo(e,t){return function(n,r){var i=J(n)?Nn:Ti,a=t?t():{};return i(n,e,U(r,2),a)}}function xo(e){return V(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&vs(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=bt(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function So(e,t){return function(n,r){if(n==null)return n;if(!gu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=bt(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Co(e){return function(t,n,r){for(var i=-1,a=bt(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function wo(e,t,n){var r=t&_,i=Do(e);function a(){return(this&&this!==bn&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function To(e){return function(t){t=id(t);var r=vr(t)?kr(t):n,i=r?r[0]:t.charAt(0),a=r?ro(r,1).join(``):t.slice(1);return i[e]()+a}}function Eo(e){return function(t){return Hn(Df($d(t).replace(tn,``)),e,``)}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vr(e.prototype),r=e.apply(n,t);return Au(r)?r:n}}function Oo(e,t,r){var i=Do(e);function a(){for(var o=arguments.length,s=et(o),c=o,l=ts(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Cr(s,l);return o-=u.length,o<r?zo(e,t,jo,a.placeholder,n,s,u,n,n,r-o):Mn(this&&this!==bn&&this instanceof a?i:e,this,s)}return a}function ko(e){return function(t,r,i){var a=bt(t);if(!gu(t)){var o=U(r,3);t=Dd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function Ao(e){return Xo(function(t){var r=t.length,i=r,a=Ur.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!=`function`)throw new Ct(o);if(a&&!c&&es(s)==`wrapper`)var c=new Ur([],!0)}for(i=c?i:r;++i<r;){s=t[i];var l=es(s),u=l==`wrapper`?$o(s):n;c=u&&xs(u[0])&&u[1]==(w|b|S|T)&&!u[4].length&&u[9]==1?c[es(u[0])].apply(c,u[3]):s.length==1&&xs(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&e.length==1&&J(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}})}function jo(e,t,r,i,a,o,s,c,l,u){var d=t&w,f=t&_,p=t&v,m=t&(b|x),h=t&E,g=p?n:Do(e);function y(){for(var n=arguments.length,_=et(n),v=n;v--;)_[v]=arguments[v];if(m)var b=ts(y),x=pr(_,b);if(i&&(_=mo(_,i,a,m)),o&&(_=ho(_,o,s,m)),n-=x,m&&n<u){var S=Cr(_,b);return zo(e,t,jo,y.placeholder,r,_,S,c,l,u-n)}var C=f?r:this,w=p?C[e]:e;return n=_.length,c?_=Ns(_,c):h&&n>1&&_.reverse(),d&&l<n&&(_.length=l),this&&this!==bn&&this instanceof y&&(w=g||Do(w)),w.apply(C,_)}return y}function Mo(e,t){return function(n,r){return na(n,e,t(r),{})}}function No(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=H(r),i=H(i)):(r=Ga(r),i=Ga(i)),a=e(r,i)}return a}}function Po(e){return Xo(function(t){return t=Bn(t,cr(U())),V(function(n){var r=this;return e(t,function(e){return Mn(e,r,n)})})})}function Fo(e,t){t=t===n?` `:H(t);var r=t.length;if(r<2)return r?Na(t,e):t;var i=Na(t,Zt(e/Or(t)));return vr(t)?ro(kr(i),0,e).join(``):i.slice(0,e)}function Io(e,t,n,r){var i=t&_,a=Do(e);function o(){for(var t=-1,s=arguments.length,c=-1,l=r.length,u=et(l+s),d=this&&this!==bn&&this instanceof o?a:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++t];return Mn(d,i?n:this,u)}return o}function Lo(e){return function(t,r,i){return i&&typeof i!=`number`&&vs(t,r,i)&&(r=i=n),t=$u(t),r===n?(r=t,t=0):r=$u(r),i=i===n?t<r?1:-1:$u(i),Ma(t,r,i,e)}}function Ro(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=td(t),n=td(n)),e(t,n)}}function zo(e,t,r,i,a,o,s,c,l,u){var d=t&b,f=d?s:n,p=d?n:s,m=d?o:n,h=d?n:o;t|=d?S:C,t&=~(d?C:S),t&y||(t&=~(_|v));var g=[e,t,a,m,f,h,p,c,l,u],x=r.apply(n,g);return xs(e)&&Fs(x,g),x.placeholder=i,Rs(x,e,t)}function Bo(e){var t=yt[e];return function(e,n){if(e=td(e),n=n==null?0:fn(Y(n),292),n&&rn(e)){var r=(id(e)+`e`).split(`e`);return r=(id(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Vo=wn&&1/wr(new wn([,-0]))[1]==N?function(e){return new wn(e)}:Wf;function Ho(e){return function(t){var n=cs(t);return n==me?xr(t):n==xe?Tr(t):or(t,e(t))}}function Uo(e,t,r,i,a,s,c,l){var u=t&v;if(!u&&typeof e!=`function`)throw new Ct(o);var d=i?i.length:0;if(d||(t&=~(S|C),i=a=n),c=c===n?c:sn(Y(c),0),l=l===n?l:Y(l),d-=a?a.length:0,t&C){var f=i,p=a;i=a=n}var m=u?n:$o(e),h=[e,t,r,i,a,f,p,s,c,l];if(m&&Os(h,m),e=h[0],t=h[1],r=h[2],i=h[3],a=h[4],l=h[9]=h[9]===n?u?0:e.length:sn(h[9]-d,0),!l&&t&(b|x)&&(t&=~(b|x)),!t||t==_)var g=wo(e,t,r);else g=t==b||t==x?Oo(e,t,l):(t==S||t==(_|S))&&!a.length?Io(e,t,r,i):jo.apply(n,h);return Rs((m?La:Fs)(g,h),e,t)}function Wo(e,t,r,i){return e===n||du(e,Et[r])&&!kt.call(i,r)?t:e}function Go(e,t,r,i,a,o){return Au(e)&&Au(t)&&(o.set(t,e),Sa(e,t,n,Go,o),o.delete(t)),e}function Ko(e){return Bu(e)?n:e}function qo(e,t,r,i,a,o){var s=r&h,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&g?new ui:n;for(o.set(e,t),o.set(t,e);++f<c;){var _=e[f],v=t[f];if(i)var y=s?i(v,_,f,t,e,o):i(_,v,f,e,t,o);if(y!==n){if(y)continue;p=!1;break}if(m){if(!Wn(t,function(e,t){if(!ur(m,t)&&(_===e||a(_,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(_===v||a(_,v,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Jo(e,t,n,r,i,a,o){switch(n){case Oe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case De:return!(e.byteLength!=t.byteLength||!a(new Rt(e),new Rt(t)));case ce:case le:case he:return du(+e,+t);case de:return e.name==t.name&&e.message==t.message;case be:case Se:return e==t+``;case me:var s=xr;case xe:var c=r&h;if(s||=wr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=g,o.set(e,t);var u=qo(s(e),s(t),r,i,a,o);return o.delete(e),u;case Ce:if(zr)return zr.call(e)==zr.call(t)}return!1}function Yo(e,t,r,i,a,o){var s=r&h,c=Zo(e),l=c.length;if(l!=Zo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:kt.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=s;++u<l;){d=c[u];var _=e[d],v=t[d];if(i)var y=s?i(v,_,d,t,e,o):i(_,v,d,e,t,o);if(!(y===n?_===v||a(_,v,r,i,o):y)){m=!1;break}g||=d==`constructor`}if(m&&!g){var b=e.constructor,x=t.constructor;b!=x&&`constructor`in e&&`constructor`in t&&!(typeof b==`function`&&b instanceof b&&typeof x==`function`&&x instanceof x)&&(m=!1)}return o.delete(e),o.delete(t),m}function Xo(e){return Ls(js(e,n,ic),e+``)}function Zo(e){return Yi(e,Dd,os)}function Qo(e){return Yi(e,Od,ss)}var $o=Kn?function(e){return Kn.get(e)}:Wf;function es(e){for(var t=e.name+``,n=tr[t],r=kt.call(tr,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function ts(e){return(kt.call(L,`placeholder`)?L:e).placeholder}function U(){var e=L.iteratee||Lf;return e=e===Lf?ha:e,arguments.length?e(arguments[0],arguments[1]):e}function ns(e,t){var n=e.__data__;return bs(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function rs(e){for(var t=Dd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ts(i)]}return t}function is(e,t){var r=_r(e,t);return da(r)?r:n}function as(e){var t=kt.call(e,Kt),r=e[Kt];try{e[Kt]=n;var i=!0}catch{}var a=Mt.call(e);return i&&(t?e[Kt]=r:delete e[Kt]),a}var os=$t?function(e){return e==null?[]:(e=bt(e),Ln($t(e),function(t){return Ht.call(e,t)}))}:$f,ss=$t?function(e){for(var t=[];e;)Vn(t,os(e)),e=Bt(e);return t}:$f,cs=Xi;(yn&&cs(new yn(new ArrayBuffer(1)))!=Oe||xn&&cs(new xn)!=me||Sn&&cs(Sn.resolve())!=ve||wn&&cs(new wn)!=xe||Tn&&cs(new Tn)!=Te)&&(cs=function(e){var t=Xi(e),r=t==_e?e.constructor:n,i=r?Us(r):``;if(i)switch(i){case Er:return Oe;case Mr:return me;case Nr:return ve;case Ir:return xe;case Lr:return Te}return t});function ls(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=fn(t,e+o);break;case`takeRight`:e=sn(e,t-o);break}}return{start:e,end:t}}function us(e){var t=e.match(nt);return t?t[1].split(rt):[]}function ds(e,t,n){t=to(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Hs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ku(i)&&_s(o,i)&&(J(e)||mu(e)))}function fs(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&kt.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function ps(e){return typeof e.constructor==`function`&&!ws(e)?Vr(Bt(e)):{}}function ms(e,t,n){var r=e.constructor;switch(t){case De:return oo(e);case ce:case le:return new r(+e);case Oe:return so(e,n);case ke:case Ae:case je:case Me:case Ne:case Pe:case Fe:case Ie:case Le:return uo(e,n);case me:return new r;case he:case Se:return new r(e);case be:return co(e);case xe:return new r;case Ce:return lo(e)}}function hs(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(tt,`{
|
|
32
|
-
/* [wrapped with `+t+`] */
|
|
33
|
-
`)}function gs(e){return J(e)||mu(e)||!!(Wt&&e&&e[Wt])}function _s(e,t){var n=typeof e;return t??=P,!!t&&(n==`number`||n!=`symbol`&&pt.test(e))&&e>-1&&e%1==0&&e<t}function vs(e,t,n){if(!Au(n))return!1;var r=typeof t;return(r==`number`?gu(n)&&_s(t,n.length):r==`string`&&t in n)?du(n[t],e):!1}function ys(e,t){if(J(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Gu(e)?!0:Ye.test(e)||!Je.test(e)||t!=null&&e in bt(t)}function bs(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function xs(e){var t=es(e),n=L[t];if(typeof n!=`function`||!(t in R.prototype))return!1;if(e===n)return!0;var r=$o(n);return!!r&&e===r[0]}function Ss(e){return!!jt&&jt in e}var Cs=Dt?Du:ep;function ws(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Et)}function Ts(e){return e===e&&!Au(e)}function Es(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in bt(r))}}function Ds(e){var t=ql(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}function Os(e,t){var n=e[1],r=t[1],i=n|r,a=i<(_|v|w),o=r==w&&n==b||r==w&&n==T&&e[7].length<=t[8]||r==(w|T)&&t[7].length<=t[8]&&n==b;if(!(a||o))return e;r&_&&(e[2]=t[2],i|=n&_?0:y);var s=t[3];if(s){var c=e[3];e[3]=c?mo(c,s,t[4]):s,e[4]=c?Cr(e[3],d):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?ho(c,s,t[6]):s,e[6]=c?Cr(e[5],d):t[6]),s=t[7],s&&(e[7]=s),r&w&&(e[8]=e[8]==null?t[8]:fn(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ks(e){var t=[];if(e!=null)for(var n in bt(e))t.push(n);return t}function As(e){return Mt.call(e)}function js(e,t,r){return t=sn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=sn(n.length-t,0),o=et(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=et(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Mn(e,this,s)}}function Ms(e,t){return t.length<2?e:Ji(e,Ba(t,0,-1))}function Ns(e,t){for(var r=e.length,i=fn(t.length,r),a=go(e);i--;){var o=t[i];e[i]=_s(o,r)?a[o]:n}return e}function Ps(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Fs=zs(La),Is=Xt||function(e,t){return bn.setTimeout(e,t)},Ls=zs(Ra);function Rs(e,t,n){var r=t+``;return Ls(e,hs(r,Ws(us(r),n)))}function zs(e){var t=0,r=0;return function(){var i=pn(),a=A-(i-r);if(r=i,a>0){if(++t>=k)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Bs(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ja(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Vs=Ds(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Xe,function(e,n,r,i){t.push(r?i.replace(ot,`$1`):n||e)}),t});function Hs(e){if(typeof e==`string`||Gu(e))return e;var t=e+``;return t==`0`&&1/e==-N?`-0`:t}function Us(e){if(e!=null){try{return Ot.call(e)}catch{}try{return e+``}catch{}}return``}function Ws(e,t){return Pn(ie,function(n){var r=`_.`+n[0];t&n[1]&&!Rn(e,r)&&e.push(r)}),e.sort()}function Gs(e){if(e instanceof R)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=go(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ks(e,t,r){t=(r?vs(e,t,r):t===n)?1:sn(Y(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=et(Zt(i/t));a<i;)s[o++]=Ba(e,a,a+=t);return s}function qs(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function W(){var e=arguments.length;if(!e)return[];for(var t=et(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Vn(J(n)?go(n):[n],Hi(t,1))}var Js=V(function(e,t){return _u(e)?Fi(e,Hi(t,1,_u,!0)):[]}),Ys=V(function(e,t){var r=mc(t);return _u(r)&&(r=n),_u(e)?Fi(e,Hi(t,1,_u,!0),U(r,2)):[]}),Xs=V(function(e,t){var r=mc(t);return _u(r)&&(r=n),_u(e)?Fi(e,Hi(t,1,_u,!0),n,r):[]});function Zs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Y(t),Ba(e,t<0?0:t,i)):[]}function Qs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Y(t),t=i-t,Ba(e,0,t<0?0:t)):[]}function $s(e,t){return e&&e.length?Ya(e,U(t,3),!0,!0):[]}function ec(e,t){return e&&e.length?Ya(e,U(t,3),!0):[]}function tc(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&vs(e,t,n)&&(n=0,r=i),Bi(e,t,n,r)):[]}function nc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Y(n);return i<0&&(i=sn(r+i,0)),Yn(e,U(t,3),i)}function rc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Y(r),a=r<0?sn(i+a,0):fn(a,i-1)),Yn(e,U(t,3),a,!0)}function ic(e){return e!=null&&e.length?Hi(e,1):[]}function ac(e){return e!=null&&e.length?Hi(e,N):[]}function oc(e,t){return e!=null&&e.length?(t=t===n?1:Y(t),Hi(e,t)):[]}function sc(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];Oi(r,i[0],i[1])}return r}function cc(e){return e&&e.length?e[0]:n}function lc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Y(n);return i<0&&(i=sn(r+i,0)),Xn(e,t,i)}function uc(e){return e!=null&&e.length?Ba(e,0,-1):[]}var dc=V(function(e){var t=Bn(e,$a);return t.length&&t[0]===e[0]?ta(t):[]}),fc=V(function(e){var t=mc(e),r=Bn(e,$a);return t===mc(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ta(r,U(t,2)):[]}),pc=V(function(e){var t=mc(e),r=Bn(e,$a);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ta(r,n,t):[]});function G(e,t){return e==null?``:an.call(e,t)}function mc(e){var t=e==null?0:e.length;return t?e[t-1]:n}function hc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Y(r),a=a<0?sn(i+a,0):fn(a,i-1)),t===t?Dr(e,t,a):Yn(e,Qn,a,!0)}function gc(e,t){return e&&e.length?wa(e,Y(t)):n}var _c=V(vc);function vc(e,t){return e&&e.length&&t&&t.length?ka(e,t):e}function yc(e,t,n){return e&&e.length&&t&&t.length?ka(e,t,U(n,2)):e}function bc(e,t,r){return e&&e.length&&t&&t.length?ka(e,t,n,r):e}var xc=Xo(function(e,t){var n=e==null?0:e.length,r=ki(e,t);return Aa(e,Bn(t,function(e){return _s(e,n)?+e:e}).sort(fo)),r});function Sc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=U(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Aa(e,i),n}function Cc(e){return e==null?e:vn.call(e)}function wc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&vs(e,t,r)?(t=0,r=i):(t=t==null?0:Y(t),r=r===n?i:Y(r)),Ba(e,t,r)):[]}function Tc(e,t){return Ha(e,t)}function Ec(e,t,n){return Ua(e,t,U(n,2))}function Dc(e,t){var n=e==null?0:e.length;if(n){var r=Ha(e,t);if(r<n&&du(e[r],t))return r}return-1}function Oc(e,t){return Ha(e,t,!0)}function kc(e,t,n){return Ua(e,t,U(n,2),!0)}function Ac(e,t){if(e!=null&&e.length){var n=Ha(e,t,!0)-1;if(du(e[n],t))return n}return-1}function jc(e){return e&&e.length?Wa(e):[]}function Mc(e,t){return e&&e.length?Wa(e,U(t,2)):[]}function Nc(e){var t=e==null?0:e.length;return t?Ba(e,1,t):[]}function Pc(e,t,r){return e&&e.length?(t=r||t===n?1:Y(t),Ba(e,0,t<0?0:t)):[]}function Fc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Y(t),t=i-t,Ba(e,t<0?0:t,i)):[]}function Ic(e,t){return e&&e.length?Ya(e,U(t,3),!1,!0):[]}function Lc(e,t){return e&&e.length?Ya(e,U(t,3)):[]}var Rc=V(function(e){return Ka(Hi(e,1,_u,!0))}),zc=V(function(e){var t=mc(e);return _u(t)&&(t=n),Ka(Hi(e,1,_u,!0),U(t,2))}),Bc=V(function(e){var t=mc(e);return t=typeof t==`function`?t:n,Ka(Hi(e,1,_u,!0),n,t)});function Vc(e){return e&&e.length?Ka(e):[]}function Hc(e,t){return e&&e.length?Ka(e,U(t,2)):[]}function Uc(e,t){return t=typeof t==`function`?t:n,e&&e.length?Ka(e,n,t):[]}function Wc(e){if(!(e&&e.length))return[];var t=0;return e=Ln(e,function(e){if(_u(e))return t=sn(e.length,t),!0}),ar(t,function(t){return Bn(e,er(t))})}function Gc(e,t){if(!(e&&e.length))return[];var r=Wc(e);return t==null?r:Bn(r,function(e){return Mn(t,n,e)})}var Kc=V(function(e,t){return _u(e)?Fi(e,t):[]}),qc=V(function(e){return Za(Ln(e,_u))}),Jc=V(function(e){var t=mc(e);return _u(t)&&(t=n),Za(Ln(e,_u),U(t,2))}),Yc=V(function(e){var t=mc(e);return t=typeof t==`function`?t:n,Za(Ln(e,_u),n,t)}),Xc=V(Wc);function Zc(e,t){return Qa(e||[],t||[],Ci)}function Qc(e,t){return Qa(e||[],t||[],Ia)}var $c=V(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,Gc(e,r)});function el(e){var t=L(e);return t.__chain__=!0,t}function tl(e,t){return t(e),e}function nl(e,t){return t(e)}var rl=Xo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ki(t,e)};return t>1||this.__actions__.length||!(i instanceof R)||!_s(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:nl,args:[a],thisArg:n}),new Ur(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function il(){return el(this)}function al(){return new Ur(this.value(),this.__chain__)}function ol(){this.__values__===n&&(this.__values__=Qu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function sl(){return this}function cl(e){for(var t,r=this;r instanceof Hr;){var i=Gs(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function ll(){var e=this.__wrapped__;if(e instanceof R){var t=e;return this.__actions__.length&&(t=new R(this)),t=t.reverse(),t.__actions__.push({func:nl,args:[Cc],thisArg:n}),new Ur(t,this.__chain__)}return this.thru(Cc)}function ul(){return Xa(this.__wrapped__,this.__actions__)}var K=bo(function(e,t,n){kt.call(e,n)?++e[n]:Oi(e,n,1)});function dl(e,t,r){var i=J(e)?In:Ri;return r&&vs(e,t,r)&&(t=n),i(e,U(t,3))}function fl(e,t){return(J(e)?Ln:Vi)(e,U(t,3))}var pl=ko(nc),ml=ko(rc);function hl(e,t){return Hi(q(e,t),1)}function gl(e,t){return Hi(q(e,t),N)}function _l(e,t,r){return r=r===n?1:Y(r),Hi(q(e,t),r)}function vl(e,t){return(J(e)?Pn:Ii)(e,U(t,3))}function yl(e,t){return(J(e)?Fn:Li)(e,U(t,3))}var bl=bo(function(e,t,n){kt.call(e,n)?e[n].push(t):Oi(e,n,[t])});function xl(e,t,n,r){e=gu(e)?e:Kd(e),n=n&&!r?Y(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Wu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Xn(e,t,n)>-1}var Sl=V(function(e,t,n){var r=-1,i=typeof t==`function`,a=gu(e)?et(e.length):[];return Ii(e,function(e){a[++r]=i?Mn(t,e,n):ra(e,t,n)}),a}),Cl=bo(function(e,t,n){Oi(e,n,t)});function q(e,t){return(J(e)?Bn:ya)(e,U(t,3))}function wl(e,t,r,i){return e==null?[]:(J(t)||(t=t==null?[]:[t]),r=i?n:r,J(r)||(r=r==null?[]:[r]),Ta(e,t,r))}var Tl=bo(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function El(e,t,n){var r=J(e)?Hn:nr,i=arguments.length<3;return r(e,U(t,4),n,i,Ii)}function Dl(e,t,n){var r=J(e)?Un:nr,i=arguments.length<3;return r(e,U(t,4),n,i,Li)}function Ol(e,t){return(J(e)?Ln:Vi)(e,Jl(U(t,3)))}function kl(e){return(J(e)?B:Pa)(e)}function Al(e,t,r){return t=(r?vs(e,t,r):t===n)?1:Y(t),(J(e)?bi:Fa)(e,t)}function jl(e){return(J(e)?xi:za)(e)}function Ml(e){if(e==null)return 0;if(gu(e))return Wu(e)?Or(e):e.length;var t=cs(e);return t==me||t==xe?e.size:ga(e).length}function Nl(e,t,r){var i=J(e)?Wn:Va;return r&&vs(e,t,r)&&(t=n),i(e,U(t,3))}var Pl=V(function(e,t){if(e==null)return[];var n=t.length;return n>1&&vs(e,t[0],t[1])?t=[]:n>2&&vs(t[0],t[1],t[2])&&(t=[t[0]]),Ta(e,Hi(t,1),[])}),Fl=Yt||function(){return bn.Date.now()};function Il(e,t){if(typeof t!=`function`)throw new Ct(o);return e=Y(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ll(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Uo(e,w,n,n,n,n,t)}function Rl(e,t){var r;if(typeof t!=`function`)throw new Ct(o);return e=Y(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var zl=V(function(e,t,n){var r=_;if(n.length){var i=Cr(n,ts(zl));r|=S}return Uo(e,r,t,n,i)}),Bl=V(function(e,t,n){var r=_|v;if(n.length){var i=Cr(n,ts(Bl));r|=S}return Uo(t,r,e,n,i)});function Vl(e,t,r){t=r?n:t;var i=Uo(e,b,n,n,n,n,n,t);return i.placeholder=Vl.placeholder,i}function Hl(e,t,r){t=r?n:t;var i=Uo(e,x,n,n,n,n,n,t);return i.placeholder=Hl.placeholder,i}function Ul(e,t,r){var i,a,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new Ct(o);t=td(t)||0,Au(r)&&(f=!!r.leading,p=`maxWait`in r,s=p?sn(td(r.maxWait)||0,t):s,m=`trailing`in r?!!r.trailing:m);function h(t){var r=i,o=a;return i=a=n,d=t,c=e.apply(o,r),c}function g(e){return d=e,l=Is(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?fn(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Fl();if(v(e))return b(e);l=Is(y,_(e))}function b(e){return l=n,m&&i?h(e):(i=a=n,c)}function x(){l!==n&&io(l),d=0,i=u=a=l=n}function S(){return l===n?c:b(Fl())}function C(){var e=Fl(),r=v(e);if(i=arguments,a=this,u=e,r){if(l===n)return g(u);if(p)return io(l),l=Is(y,t),h(u)}return l===n&&(l=Is(y,t)),c}return C.cancel=x,C.flush=S,C}var Wl=V(function(e,t){return Pi(e,1,t)}),Gl=V(function(e,t,n){return Pi(e,td(t)||0,n)});function Kl(e){return Uo(e,E)}function ql(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new Ct(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(ql.Cache||ii),n}ql.Cache=ii;function Jl(e){if(typeof e!=`function`)throw new Ct(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Yl(e){return Rl(2,e)}var Xl=no(function(e,t){t=t.length==1&&J(t[0])?Bn(t[0],cr(U())):Bn(Hi(t,1),cr(U()));var n=t.length;return V(function(r){for(var i=-1,a=fn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Mn(e,this,r)})}),Zl=V(function(e,t){return Uo(e,S,n,t,Cr(t,ts(Zl)))}),Ql=V(function(e,t){return Uo(e,C,n,t,Cr(t,ts(Ql)))}),$l=Xo(function(e,t){return Uo(e,T,n,n,n,t)});function eu(e,t){if(typeof e!=`function`)throw new Ct(o);return t=t===n?t:Y(t),V(e,t)}function tu(e,t){if(typeof e!=`function`)throw new Ct(o);return t=t==null?0:sn(Y(t),0),V(function(n){var r=n[t],i=ro(n,0,t);return r&&Vn(i,r),Mn(e,this,i)})}function nu(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw new Ct(o);return Au(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ul(e,t,{leading:r,maxWait:t,trailing:i})}function ru(e){return Ll(e,1)}function iu(e,t){return Zl(eo(t),e)}function au(){if(!arguments.length)return[];var e=arguments[0];return J(e)?e:[e]}function ou(e){return ji(e,m)}function su(e,t){return t=typeof t==`function`?t:n,ji(e,m,t)}function cu(e){return ji(e,f|m)}function lu(e,t){return t=typeof t==`function`?t:n,ji(e,f|m,t)}function uu(e,t){return t==null||Ni(e,t,Dd(t))}function du(e,t){return e===t||e!==e&&t!==t}var fu=Ro(Zi),pu=Ro(function(e,t){return e>=t}),mu=ia(function(){return arguments}())?ia:function(e){return ju(e)&&kt.call(e,`callee`)&&!Ht.call(e,`callee`)},J=et.isArray,hu=En?cr(En):aa;function gu(e){return e!=null&&ku(e.length)&&!Du(e)}function _u(e){return ju(e)&&gu(e)}function vu(e){return e===!0||e===!1||ju(e)&&Xi(e)==ce}var yu=en||ep,bu=Dn?cr(Dn):oa;function xu(e){return ju(e)&&e.nodeType===1&&!Bu(e)}function Su(e){if(e==null)return!0;if(gu(e)&&(J(e)||typeof e==`string`||typeof e.splice==`function`||yu(e)||Ku(e)||mu(e)))return!e.length;var t=cs(e);if(t==me||t==xe)return!e.size;if(ws(e))return!ga(e).length;for(var n in e)if(kt.call(e,n))return!1;return!0}function Cu(e,t){return sa(e,t)}function wu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?sa(e,t,n,r):!!i}function Tu(e){if(!ju(e))return!1;var t=Xi(e);return t==de||t==ue||typeof e.message==`string`&&typeof e.name==`string`&&!Bu(e)}function Eu(e){return typeof e==`number`&&rn(e)}function Du(e){if(!Au(e))return!1;var t=Xi(e);return t==fe||t==pe||t==se||t==ye}function Ou(e){return typeof e==`number`&&e==Y(e)}function ku(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=P}function Au(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function ju(e){return typeof e==`object`&&!!e}var Mu=On?cr(On):la;function Nu(e,t){return e===t||ua(e,t,rs(t))}function Pu(e,t,r){return r=typeof r==`function`?r:n,ua(e,t,rs(t),r)}function Fu(e){return zu(e)&&e!=+e}function Iu(e){if(Cs(e))throw new _t(a);return da(e)}function Lu(e){return e===null}function Ru(e){return e==null}function zu(e){return typeof e==`number`||ju(e)&&Xi(e)==he}function Bu(e){if(!ju(e)||Xi(e)!=_e)return!1;var t=Bt(e);if(t===null)return!0;var n=kt.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Ot.call(n)==Nt}var Vu=kn?cr(kn):fa;function Hu(e){return Ou(e)&&e>=-P&&e<=P}var Uu=An?cr(An):pa;function Wu(e){return typeof e==`string`||!J(e)&&ju(e)&&Xi(e)==Se}function Gu(e){return typeof e==`symbol`||ju(e)&&Xi(e)==Ce}var Ku=jn?cr(jn):ma;function qu(e){return e===n}function Ju(e){return ju(e)&&cs(e)==Te}function Yu(e){return ju(e)&&Xi(e)==Ee}var Xu=Ro(va),Zu=Ro(function(e,t){return e<=t});function Qu(e){if(!e)return[];if(gu(e))return Wu(e)?kr(e):go(e);if(Gt&&e[Gt])return br(e[Gt]());var t=cs(e);return(t==me?xr:t==xe?wr:Kd)(e)}function $u(e){return e?(e=td(e),e===N||e===-N?(e<0?-1:1)*F:e===e?e:0):e===0?e:0}function Y(e){var t=$u(e),n=t%1;return t===t?n?t-n:t:0}function ed(e){return e?Ai(Y(e),0,te):0}function td(e){if(typeof e==`number`)return e;if(Gu(e))return I;if(Au(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Au(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=sr(e);var n=ut.test(e);return n||ft.test(e)?_n(e.slice(2),n?2:8):lt.test(e)?I:+e}function nd(e){return _o(e,Od(e))}function rd(e){return e?Ai(Y(e),-P,P):e===0?e:0}function id(e){return e==null?``:H(e)}var ad=xo(function(e,t){if(ws(t)||gu(t)){_o(t,Dd(t),e);return}for(var n in t)kt.call(t,n)&&Ci(e,n,t[n])}),od=xo(function(e,t){_o(t,Od(t),e)}),sd=xo(function(e,t,n,r){_o(t,Od(t),e,r)}),cd=xo(function(e,t,n,r){_o(t,Dd(t),e,r)}),ld=Xo(ki);function ud(e,t){var n=Vr(e);return t==null?n:Ei(n,t)}var dd=V(function(e,t){e=bt(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&vs(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=Od(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||du(d,Et[u])&&!kt.call(e,u))&&(e[u]=o[u])}return e}),fd=V(function(e){return e.push(n,Go),Mn(Md,n,e)});function pd(e,t){return Jn(e,U(t,3),Gi)}function md(e,t){return Jn(e,U(t,3),Ki)}function hd(e,t){return e==null?e:Ui(e,U(t,3),Od)}function gd(e,t){return e==null?e:Wi(e,U(t,3),Od)}function _d(e,t){return e&&Gi(e,U(t,3))}function vd(e,t){return e&&Ki(e,U(t,3))}function yd(e){return e==null?[]:qi(e,Dd(e))}function bd(e){return e==null?[]:qi(e,Od(e))}function xd(e,t,r){var i=e==null?n:Ji(e,t);return i===n?r:i}function Sd(e,t){return e!=null&&ds(e,t,Qi)}function Cd(e,t){return e!=null&&ds(e,t,$i)}var wd=Mo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=Mt.call(t)),e[t]=n},Mf(If)),Td=Mo(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=Mt.call(t)),kt.call(e,t)?e[t].push(n):e[t]=[n]},U),Ed=V(ra);function Dd(e){return gu(e)?yi(e):ga(e)}function Od(e){return gu(e)?yi(e,!0):_a(e)}function kd(e,t){var n={};return t=U(t,3),Gi(e,function(e,r,i){Oi(n,t(e,r,i),e)}),n}function Ad(e,t){var n={};return t=U(t,3),Gi(e,function(e,r,i){Oi(n,r,t(e,r,i))}),n}var jd=xo(function(e,t,n){Sa(e,t,n)}),Md=xo(function(e,t,n,r){Sa(e,t,n,r)}),Nd=Xo(function(e,t){var n={};if(e==null)return n;var r=!1;t=Bn(t,function(t){return t=to(t,e),r||=t.length>1,t}),_o(e,Qo(e),n),r&&(n=ji(n,f|p|m,Ko));for(var i=t.length;i--;)qa(n,t[i]);return n});function Pd(e,t){return Id(e,Jl(U(t)))}var Fd=Xo(function(e,t){return e==null?{}:Ea(e,t)});function Id(e,t){if(e==null)return{};var n=Bn(Qo(e),function(e){return[e]});return t=U(t),Da(e,n,function(e,n){return t(e,n[0])})}function Ld(e,t,r){t=to(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[Hs(t[i])];o===n&&(i=a,o=r),e=Du(o)?o.call(e):o}return e}function Rd(e,t,n){return e==null?e:Ia(e,t,n)}function zd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ia(e,t,r,i)}var Bd=Ho(Dd),Vd=Ho(Od);function Hd(e,t,n){var r=J(e),i=r||yu(e)||Ku(e);if(t=U(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:Au(e)&&Du(a)?Vr(Bt(e)):{}}return(i?Pn:Gi)(e,function(e,r,i){return t(n,e,r,i)}),n}function Ud(e,t){return e==null?!0:qa(e,t)}function Wd(e,t,n){return e==null?e:Ja(e,t,eo(n))}function Gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ja(e,t,eo(r),i)}function Kd(e){return e==null?[]:lr(e,Dd(e))}function qd(e){return e==null?[]:lr(e,Od(e))}function Jd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=td(r),r=r===r?r:0),t!==n&&(t=td(t),t=t===t?t:0),Ai(td(e),t,r)}function Yd(e,t,r){return t=$u(t),r===n?(r=t,t=0):r=$u(r),e=td(e),ea(e,t,r)}function Xd(e,t,r){if(r&&typeof r!=`boolean`&&vs(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=$u(e),t===n?(t=e,e=0):t=$u(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=hn();return fn(e+a*(t-e+gn(`1e-`+((a+``).length-1))),t)}return ja(e,t)}var Zd=Eo(function(e,t,n){return t=t.toLowerCase(),e+(n?Qd(t):t)});function Qd(e){return Ef(id(e).toLowerCase())}function $d(e){return e=id(e),e&&e.replace(mt,mr).replace(nn,``)}function ef(e,t,r){e=id(e),t=H(t);var i=e.length;r=r===n?i:Ai(Y(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function tf(e){return e=id(e),e&&We.test(e)?e.replace(He,hr):e}function nf(e){return e=id(e),e&&Qe.test(e)?e.replace(Ze,`\\$&`):e}var rf=Eo(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),af=Eo(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),of=To(`toLowerCase`);function sf(e,t,n){e=id(e),t=Y(t);var r=t?Or(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Fo(Qt(i),n)+e+Fo(Zt(i),n)}function cf(e,t,n){e=id(e),t=Y(t);var r=t?Or(e):0;return t&&r<t?e+Fo(t-r,n):e}function lf(e,t,n){e=id(e),t=Y(t);var r=t?Or(e):0;return t&&r<t?Fo(t-r,n)+e:e}function uf(e,t,n){return n||t==null?t=0:t&&=+t,mn(id(e).replace($e,``),t||0)}function df(e,t,r){return t=(r?vs(e,t,r):t===n)?1:Y(t),Na(id(e),t)}function ff(){var e=arguments,t=id(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var pf=Eo(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function mf(e,t,r){return r&&typeof r!=`number`&&vs(e,t,r)&&(t=r=n),r=r===n?te:r>>>0,r?(e=id(e),e&&(typeof t==`string`||t!=null&&!Vu(t))&&(t=H(t),!t&&vr(e))?ro(kr(e),0,r):e.split(t,r)):[]}var hf=Eo(function(e,t,n){return e+(n?` `:``)+Ef(t)});function gf(e,t,n){return e=id(e),n=n==null?0:Ai(Y(n),0,e.length),t=H(t),e.slice(n,n+t.length)==t}function _f(e,t,r){var i=L.templateSettings;r&&vs(e,t,r)&&(t=n),e=id(e),t=cd({},t,i,Wo);var a=cd({},t.imports,i.imports,Wo),o=Dd(a),l=lr(a,o);Pn(o,function(e){if(at.test(e))throw new _t(c)});var u,d,f=0,p=t.interpolate||ht,m=`__p += '`,h=xt((t.escape||ht).source+`|`+p.source+`|`+(p===qe?st:ht).source+`|`+(t.evaluate||ht).source+`|$`,`g`),g=`//# sourceURL=`+(kt.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++ln+`]`)+`
|
|
34
|
-
`;e.replace(h,function(t,n,r,i,a,o){return r||=i,m+=e.slice(f,o).replace(gt,gr),n&&(u=!0,m+=`' +
|
|
35
|
-
__e(`+n+`) +
|
|
36
|
-
'`),a&&(d=!0,m+=`';
|
|
37
|
-
`+a+`;
|
|
38
|
-
__p += '`),r&&(m+=`' +
|
|
39
|
-
((__t = (`+r+`)) == null ? '' : __t) +
|
|
40
|
-
'`),f=o+t.length,t}),m+=`';
|
|
41
|
-
`;var _=kt.call(t,`variable`)&&t.variable;if(!_)m=`with (obj) {
|
|
42
|
-
`+m+`
|
|
43
|
-
}
|
|
44
|
-
`;else if(at.test(_))throw new _t(s);m=(d?m.replace(Re,``):m).replace(ze,`$1`).replace(Be,`$1;`),m=`function(`+(_||`obj`)+`) {
|
|
45
|
-
`+(_?``:`obj || (obj = {});
|
|
46
|
-
`)+`var __t, __p = ''`+(u?`, __e = _.escape`:``)+(d?`, __j = Array.prototype.join;
|
|
47
|
-
function print() { __p += __j.call(arguments, '') }
|
|
48
|
-
`:`;
|
|
49
|
-
`)+m+`return __p
|
|
50
|
-
}`;var v=Of(function(){return vt(o,g+`return `+m).apply(n,l)});if(v.source=m,Tu(v))throw v;return v}function vf(e){return id(e).toLowerCase()}function yf(e){return id(e).toUpperCase()}function bf(e,t,r){if(e=id(e),e&&(r||t===n))return sr(e);if(!e||!(t=H(t)))return e;var i=kr(e),a=kr(t);return ro(i,dr(i,a),fr(i,a)+1).join(``)}function xf(e,t,r){if(e=id(e),e&&(r||t===n))return e.slice(0,Ar(e)+1);if(!e||!(t=H(t)))return e;var i=kr(e);return ro(i,0,fr(i,kr(t))+1).join(``)}function Sf(e,t,r){if(e=id(e),e&&(r||t===n))return e.replace($e,``);if(!e||!(t=H(t)))return e;var i=kr(e);return ro(i,dr(i,kr(t))).join(``)}function Cf(e,t){var r=D,i=O;if(Au(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Y(t.length):r,i=`omission`in t?H(t.omission):i}e=id(e);var o=e.length;if(vr(e)){var s=kr(e);o=s.length}if(r>=o)return e;var c=r-Or(i);if(c<1)return i;var l=s?ro(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Vu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=xt(a.source,id(ct.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(H(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function wf(e){return e=id(e),e&&Ue.test(e)?e.replace(Ve,jr):e}var Tf=Eo(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Ef=To(`toUpperCase`);function Df(e,t,r){return e=id(e),t=r?n:t,t===n?yr(e)?Pr(e):qn(e):e.match(t)||[]}var Of=V(function(e,t){try{return Mn(e,n,t)}catch(e){return Tu(e)?e:new _t(e)}}),kf=Xo(function(e,t){return Pn(t,function(t){t=Hs(t),Oi(e,t,zl(e[t],e))}),e});function Af(e){var t=e==null?0:e.length,n=U();return e=t?Bn(e,function(e){if(typeof e[1]!=`function`)throw new Ct(o);return[n(e[0]),e[1]]}):[],V(function(n){for(var r=-1;++r<t;){var i=e[r];if(Mn(i[0],this,n))return Mn(i[1],this,n)}})}function jf(e){return Mi(ji(e,f))}function Mf(e){return function(){return e}}function Nf(e,t){return e==null||e!==e?t:e}var Pf=Ao(),Ff=Ao(!0);function If(e){return e}function Lf(e){return ha(typeof e==`function`?e:ji(e,f))}function Rf(e){return ba(ji(e,f))}function zf(e,t){return xa(e,ji(t,f))}var Bf=V(function(e,t){return function(n){return ra(n,e,t)}}),Vf=V(function(e,t){return function(n){return ra(e,n,t)}});function Hf(e,t,n){var r=Dd(t),i=qi(t,r);n==null&&!(Au(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=qi(t,Dd(t)));var a=!(Au(n)&&`chain`in n)||!!n.chain,o=Du(e);return Pn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=go(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Vn([this.value()],arguments))})}),e}function Uf(){return bn._===this&&(bn._=Pt),this}function Wf(){}function Gf(e){return e=Y(e),V(function(t){return wa(t,e)})}var Kf=Po(Bn),qf=Po(In),Jf=Po(Wn);function Yf(e){return ys(e)?er(Hs(e)):Oa(e)}function Xf(e){return function(t){return e==null?n:Ji(e,t)}}var Zf=Lo(),Qf=Lo(!0);function $f(){return[]}function ep(){return!1}function tp(){return{}}function np(){return``}function rp(){return!0}function ip(e,t){if(e=Y(e),e<1||e>P)return[];var n=te,r=fn(e,te);t=U(t),e-=te;for(var i=ar(r,t);++n<e;)t(n);return i}function ap(e){return J(e)?Bn(e,Hs):Gu(e)?[e]:go(Vs(id(e)))}function op(e){var t=++At;return id(e)+t}var sp=No(function(e,t){return e+t},0),cp=Bo(`ceil`),lp=No(function(e,t){return e/t},1),up=Bo(`floor`);function dp(e){return e&&e.length?zi(e,If,Zi):n}function fp(e,t){return e&&e.length?zi(e,U(t,2),Zi):n}function pp(e){return $n(e,If)}function mp(e,t){return $n(e,U(t,2))}function hp(e){return e&&e.length?zi(e,If,va):n}function gp(e,t){return e&&e.length?zi(e,U(t,2),va):n}var _p=No(function(e,t){return e*t},1),vp=Bo(`round`),yp=No(function(e,t){return e-t},0);function bp(e){return e&&e.length?ir(e,If):0}function xp(e,t){return e&&e.length?ir(e,U(t,2)):0}return L.after=Il,L.ary=Ll,L.assign=ad,L.assignIn=od,L.assignInWith=sd,L.assignWith=cd,L.at=ld,L.before=Rl,L.bind=zl,L.bindAll=kf,L.bindKey=Bl,L.castArray=au,L.chain=el,L.chunk=Ks,L.compact=qs,L.concat=W,L.cond=Af,L.conforms=jf,L.constant=Mf,L.countBy=K,L.create=ud,L.curry=Vl,L.curryRight=Hl,L.debounce=Ul,L.defaults=dd,L.defaultsDeep=fd,L.defer=Wl,L.delay=Gl,L.difference=Js,L.differenceBy=Ys,L.differenceWith=Xs,L.drop=Zs,L.dropRight=Qs,L.dropRightWhile=$s,L.dropWhile=ec,L.fill=tc,L.filter=fl,L.flatMap=hl,L.flatMapDeep=gl,L.flatMapDepth=_l,L.flatten=ic,L.flattenDeep=ac,L.flattenDepth=oc,L.flip=Kl,L.flow=Pf,L.flowRight=Ff,L.fromPairs=sc,L.functions=yd,L.functionsIn=bd,L.groupBy=bl,L.initial=uc,L.intersection=dc,L.intersectionBy=fc,L.intersectionWith=pc,L.invert=wd,L.invertBy=Td,L.invokeMap=Sl,L.iteratee=Lf,L.keyBy=Cl,L.keys=Dd,L.keysIn=Od,L.map=q,L.mapKeys=kd,L.mapValues=Ad,L.matches=Rf,L.matchesProperty=zf,L.memoize=ql,L.merge=jd,L.mergeWith=Md,L.method=Bf,L.methodOf=Vf,L.mixin=Hf,L.negate=Jl,L.nthArg=Gf,L.omit=Nd,L.omitBy=Pd,L.once=Yl,L.orderBy=wl,L.over=Kf,L.overArgs=Xl,L.overEvery=qf,L.overSome=Jf,L.partial=Zl,L.partialRight=Ql,L.partition=Tl,L.pick=Fd,L.pickBy=Id,L.property=Yf,L.propertyOf=Xf,L.pull=_c,L.pullAll=vc,L.pullAllBy=yc,L.pullAllWith=bc,L.pullAt=xc,L.range=Zf,L.rangeRight=Qf,L.rearg=$l,L.reject=Ol,L.remove=Sc,L.rest=eu,L.reverse=Cc,L.sampleSize=Al,L.set=Rd,L.setWith=zd,L.shuffle=jl,L.slice=wc,L.sortBy=Pl,L.sortedUniq=jc,L.sortedUniqBy=Mc,L.split=mf,L.spread=tu,L.tail=Nc,L.take=Pc,L.takeRight=Fc,L.takeRightWhile=Ic,L.takeWhile=Lc,L.tap=tl,L.throttle=nu,L.thru=nl,L.toArray=Qu,L.toPairs=Bd,L.toPairsIn=Vd,L.toPath=ap,L.toPlainObject=nd,L.transform=Hd,L.unary=ru,L.union=Rc,L.unionBy=zc,L.unionWith=Bc,L.uniq=Vc,L.uniqBy=Hc,L.uniqWith=Uc,L.unset=Ud,L.unzip=Wc,L.unzipWith=Gc,L.update=Wd,L.updateWith=Gd,L.values=Kd,L.valuesIn=qd,L.without=Kc,L.words=Df,L.wrap=iu,L.xor=qc,L.xorBy=Jc,L.xorWith=Yc,L.zip=Xc,L.zipObject=Zc,L.zipObjectDeep=Qc,L.zipWith=$c,L.entries=Bd,L.entriesIn=Vd,L.extend=od,L.extendWith=sd,Hf(L,L),L.add=sp,L.attempt=Of,L.camelCase=Zd,L.capitalize=Qd,L.ceil=cp,L.clamp=Jd,L.clone=ou,L.cloneDeep=cu,L.cloneDeepWith=lu,L.cloneWith=su,L.conformsTo=uu,L.deburr=$d,L.defaultTo=Nf,L.divide=lp,L.endsWith=ef,L.eq=du,L.escape=tf,L.escapeRegExp=nf,L.every=dl,L.find=pl,L.findIndex=nc,L.findKey=pd,L.findLast=ml,L.findLastIndex=rc,L.findLastKey=md,L.floor=up,L.forEach=vl,L.forEachRight=yl,L.forIn=hd,L.forInRight=gd,L.forOwn=_d,L.forOwnRight=vd,L.get=xd,L.gt=fu,L.gte=pu,L.has=Sd,L.hasIn=Cd,L.head=cc,L.identity=If,L.includes=xl,L.indexOf=lc,L.inRange=Yd,L.invoke=Ed,L.isArguments=mu,L.isArray=J,L.isArrayBuffer=hu,L.isArrayLike=gu,L.isArrayLikeObject=_u,L.isBoolean=vu,L.isBuffer=yu,L.isDate=bu,L.isElement=xu,L.isEmpty=Su,L.isEqual=Cu,L.isEqualWith=wu,L.isError=Tu,L.isFinite=Eu,L.isFunction=Du,L.isInteger=Ou,L.isLength=ku,L.isMap=Mu,L.isMatch=Nu,L.isMatchWith=Pu,L.isNaN=Fu,L.isNative=Iu,L.isNil=Ru,L.isNull=Lu,L.isNumber=zu,L.isObject=Au,L.isObjectLike=ju,L.isPlainObject=Bu,L.isRegExp=Vu,L.isSafeInteger=Hu,L.isSet=Uu,L.isString=Wu,L.isSymbol=Gu,L.isTypedArray=Ku,L.isUndefined=qu,L.isWeakMap=Ju,L.isWeakSet=Yu,L.join=G,L.kebabCase=rf,L.last=mc,L.lastIndexOf=hc,L.lowerCase=af,L.lowerFirst=of,L.lt=Xu,L.lte=Zu,L.max=dp,L.maxBy=fp,L.mean=pp,L.meanBy=mp,L.min=hp,L.minBy=gp,L.stubArray=$f,L.stubFalse=ep,L.stubObject=tp,L.stubString=np,L.stubTrue=rp,L.multiply=_p,L.nth=gc,L.noConflict=Uf,L.noop=Wf,L.now=Fl,L.pad=sf,L.padEnd=cf,L.padStart=lf,L.parseInt=uf,L.random=Xd,L.reduce=El,L.reduceRight=Dl,L.repeat=df,L.replace=ff,L.result=Ld,L.round=vp,L.runInContext=e,L.sample=kl,L.size=Ml,L.snakeCase=pf,L.some=Nl,L.sortedIndex=Tc,L.sortedIndexBy=Ec,L.sortedIndexOf=Dc,L.sortedLastIndex=Oc,L.sortedLastIndexBy=kc,L.sortedLastIndexOf=Ac,L.startCase=hf,L.startsWith=gf,L.subtract=yp,L.sum=bp,L.sumBy=xp,L.template=_f,L.times=ip,L.toFinite=$u,L.toInteger=Y,L.toLength=ed,L.toLower=vf,L.toNumber=td,L.toSafeInteger=rd,L.toString=id,L.toUpper=yf,L.trim=bf,L.trimEnd=xf,L.trimStart=Sf,L.truncate=Cf,L.unescape=wf,L.uniqueId=op,L.upperCase=Tf,L.upperFirst=Ef,L.each=vl,L.eachRight=yl,L.first=cc,Hf(L,function(){var e={};return Gi(L,function(t,n){kt.call(L.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),L.VERSION=r,Pn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){L[e].placeholder=L}),Pn([`drop`,`take`],function(e,t){R.prototype[e]=function(r){r=r===n?1:sn(Y(r),0);var i=this.__filtered__&&!t?new R(this):this.clone();return i.__filtered__?i.__takeCount__=fn(r,i.__takeCount__):i.__views__.push({size:fn(r,te),type:e+(i.__dir__<0?`Right`:``)}),i},R.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),Pn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==j||n==M;R.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:U(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Pn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);R.prototype[e]=function(){return this[n](1).value()[0]}}),Pn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);R.prototype[e]=function(){return this.__filtered__?new R(this):this[n](1)}}),R.prototype.compact=function(){return this.filter(If)},R.prototype.find=function(e){return this.filter(e).head()},R.prototype.findLast=function(e){return this.reverse().find(e)},R.prototype.invokeMap=V(function(e,t){return typeof e==`function`?new R(this):this.map(function(n){return ra(n,e,t)})}),R.prototype.reject=function(e){return this.filter(Jl(U(e)))},R.prototype.slice=function(e,t){e=Y(e);var r=this;return r.__filtered__&&(e>0||t<0)?new R(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Y(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},R.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},R.prototype.toArray=function(){return this.take(te)},Gi(R.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=L[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(L.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof R,l=s[0],u=c||J(t),d=function(e){var t=a.apply(L,Vn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new R(this);var g=e.apply(t,s);return g.__actions__.push({func:nl,args:[d],thisArg:n}),new Ur(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),Pn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=wt[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);L.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(J(i)?i:[],e)}return this[n](function(n){return t.apply(J(n)?n:[],e)})}}),Gi(R.prototype,function(e,t){var n=L[t];if(n){var r=n.name+``;kt.call(tr,r)||(tr[r]=[]),tr[r].push({name:t,func:n})}}),tr[jo(n,v).name]=[{name:`wrapper`,func:n}],R.prototype.clone=Wr,R.prototype.reverse=Gr,R.prototype.value=Kr,L.prototype.at=rl,L.prototype.chain=il,L.prototype.commit=al,L.prototype.next=ol,L.prototype.plant=cl,L.prototype.reverse=ll,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=ul,L.prototype.first=L.prototype.head,Gt&&(L.prototype[Gt]=sl),L})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(bn._=Fr,define(function(){return Fr})):Sn?((Sn.exports=Fr)._=Fr,xn._=Fr):bn._=Fr}).call(e)})),Pw=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fw=new class extends Pw{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Iw={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Lw=new class{#e=Iw;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Rw(e){setTimeout(e,0)}var zw=typeof window>`u`||`Deno`in globalThis;function Bw(){}function Vw(e,t){return typeof e==`function`?e(t):e}function Hw(e){return typeof e==`number`&&e>=0&&e!==1/0}function Uw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ww(e,t){return typeof e==`function`?e(t):e}function Gw(e,t){return typeof e==`function`?e(t):e}function Kw(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Jw(o,t.options))return!1}else if(!Xw(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function qw(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Yw(t.options.mutationKey)!==Yw(a))return!1}else if(!Xw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Jw(e,t){return(t?.queryKeyHashFn||Yw)(e)}function Yw(e){return JSON.stringify(e,(e,t)=>eT(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Xw(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Xw(e[n],t[n])):!1}var Zw=Object.prototype.hasOwnProperty;function Qw(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=$w(e)&&$w(t);if(!r&&!(eT(e)&&eT(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Zw.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=Qw(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function $w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function eT(e){if(!tT(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!tT(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function tT(e){return Object.prototype.toString.call(e)===`[object Object]`}function nT(e){return new Promise(t=>{Lw.setTimeout(t,e)})}function rT(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Qw(e,t)}function iT(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function aT(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var oT=Symbol();function sT(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===oT?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function cT(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var lT=(()=>{let e=()=>zw;return{isServer(){return e()},setIsServer(t){e=t}}})();function uT(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var dT=Rw;function fT(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=dT,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var pT=fT(),mT=new class extends Pw{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function hT(e){return Math.min(1e3*2**e,3e4)}function gT(e){return(e??`online`)===`online`?mT.isOnline():!0}var _T=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function vT(e){let t=!1,n=0,r,i=uT(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new _T(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Fw.isFocused()&&(e.networkMode===`always`||mT.isOnline())&&e.canRun(),u=()=>gT(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(lT.isServer()?0:3),o=e.retryDelay??hT,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),nT(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var yT=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hw(this.gcTime)&&(this.#e=Lw.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(lT.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Lw.clearTimeout(this.#e),this.#e=void 0)}};function bT(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{cT(e,()=>t.signal,()=>n=!0)},u=sT(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?aT:iT;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?ST:xT,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:xT(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function xT(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ST(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var CT=class extends yT{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ET(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ET(this.options);e.data!==void 0&&(this.setState(TT(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=rT(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Bw).catch(Bw):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Gw(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===oT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ww(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:!Uw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=sT(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?bT(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=vT({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof _T&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof _T){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...wT(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...TT(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),pT.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function wT(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gT(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function TT(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ET(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,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 DT=class extends yT{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||OT(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=vT({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,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{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),pT.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function OT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var kT=class extends Pw{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new DT({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=AT(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=AT(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=AT(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=AT(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){pT.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>qw(t,e))}findAll(e={}){return this.getAll().filter(t=>qw(e,t))}notify(e){pT.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return pT.batch(()=>Promise.all(e.map(e=>e.continue().catch(Bw))))}};function AT(e){return e.options.scope?.id}var jT=class extends Pw{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Jw(r,t),a=this.get(i);return a||(a=new CT({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){pT.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Kw(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Kw(e,t)):t}notify(e){pT.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){pT.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pT.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},MT=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new jT,this.#t=e.mutationCache||new kT,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Fw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=mT.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ww(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Vw(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return pT.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;pT.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return pT.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=pT.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Bw).catch(Bw)}invalidateQueries(e,t={}){return pT.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=pT.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Bw)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Bw)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Ww(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Bw).catch(Bw)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Bw).catch(Bw)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return mT.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Yw(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{Xw(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Yw(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{Xw(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Jw(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===oT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},NT=_.createContext(void 0),PT=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,wC.jsx)(NT.Provider,{value:e,children:t})),FT=i(((e,t)=>{(function(e){function n(e,t){var n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}function r(e,t){return e<<t|e>>>32-t}function i(e,t,i,a,o,s){return n(r(n(n(t,e),n(a,s)),o),i)}function a(e,t,n,r,a,o,s){return i(t&n|~t&r,e,t,a,o,s)}function o(e,t,n,r,a,o,s){return i(t&r|n&~r,e,t,a,o,s)}function s(e,t,n,r,a,o,s){return i(t^n^r,e,t,a,o,s)}function c(e,t,n,r,a,o,s){return i(n^(t|~r),e,t,a,o,s)}function l(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;var r,i,l,u,d,f=1732584193,p=-271733879,m=-1732584194,h=271733878;for(r=0;r<e.length;r+=16)i=f,l=p,u=m,d=h,f=a(f,p,m,h,e[r],7,-680876936),h=a(h,f,p,m,e[r+1],12,-389564586),m=a(m,h,f,p,e[r+2],17,606105819),p=a(p,m,h,f,e[r+3],22,-1044525330),f=a(f,p,m,h,e[r+4],7,-176418897),h=a(h,f,p,m,e[r+5],12,1200080426),m=a(m,h,f,p,e[r+6],17,-1473231341),p=a(p,m,h,f,e[r+7],22,-45705983),f=a(f,p,m,h,e[r+8],7,1770035416),h=a(h,f,p,m,e[r+9],12,-1958414417),m=a(m,h,f,p,e[r+10],17,-42063),p=a(p,m,h,f,e[r+11],22,-1990404162),f=a(f,p,m,h,e[r+12],7,1804603682),h=a(h,f,p,m,e[r+13],12,-40341101),m=a(m,h,f,p,e[r+14],17,-1502002290),p=a(p,m,h,f,e[r+15],22,1236535329),f=o(f,p,m,h,e[r+1],5,-165796510),h=o(h,f,p,m,e[r+6],9,-1069501632),m=o(m,h,f,p,e[r+11],14,643717713),p=o(p,m,h,f,e[r],20,-373897302),f=o(f,p,m,h,e[r+5],5,-701558691),h=o(h,f,p,m,e[r+10],9,38016083),m=o(m,h,f,p,e[r+15],14,-660478335),p=o(p,m,h,f,e[r+4],20,-405537848),f=o(f,p,m,h,e[r+9],5,568446438),h=o(h,f,p,m,e[r+14],9,-1019803690),m=o(m,h,f,p,e[r+3],14,-187363961),p=o(p,m,h,f,e[r+8],20,1163531501),f=o(f,p,m,h,e[r+13],5,-1444681467),h=o(h,f,p,m,e[r+2],9,-51403784),m=o(m,h,f,p,e[r+7],14,1735328473),p=o(p,m,h,f,e[r+12],20,-1926607734),f=s(f,p,m,h,e[r+5],4,-378558),h=s(h,f,p,m,e[r+8],11,-2022574463),m=s(m,h,f,p,e[r+11],16,1839030562),p=s(p,m,h,f,e[r+14],23,-35309556),f=s(f,p,m,h,e[r+1],4,-1530992060),h=s(h,f,p,m,e[r+4],11,1272893353),m=s(m,h,f,p,e[r+7],16,-155497632),p=s(p,m,h,f,e[r+10],23,-1094730640),f=s(f,p,m,h,e[r+13],4,681279174),h=s(h,f,p,m,e[r],11,-358537222),m=s(m,h,f,p,e[r+3],16,-722521979),p=s(p,m,h,f,e[r+6],23,76029189),f=s(f,p,m,h,e[r+9],4,-640364487),h=s(h,f,p,m,e[r+12],11,-421815835),m=s(m,h,f,p,e[r+15],16,530742520),p=s(p,m,h,f,e[r+2],23,-995338651),f=c(f,p,m,h,e[r],6,-198630844),h=c(h,f,p,m,e[r+7],10,1126891415),m=c(m,h,f,p,e[r+14],15,-1416354905),p=c(p,m,h,f,e[r+5],21,-57434055),f=c(f,p,m,h,e[r+12],6,1700485571),h=c(h,f,p,m,e[r+3],10,-1894986606),m=c(m,h,f,p,e[r+10],15,-1051523),p=c(p,m,h,f,e[r+1],21,-2054922799),f=c(f,p,m,h,e[r+8],6,1873313359),h=c(h,f,p,m,e[r+15],10,-30611744),m=c(m,h,f,p,e[r+6],15,-1560198380),p=c(p,m,h,f,e[r+13],21,1309151649),f=c(f,p,m,h,e[r+4],6,-145523070),h=c(h,f,p,m,e[r+11],10,-1120210379),m=c(m,h,f,p,e[r+2],15,718787259),p=c(p,m,h,f,e[r+9],21,-343485551),f=n(f,i),p=n(p,l),m=n(m,u),h=n(h,d);return[f,p,m,h]}function u(e){var t,n=``,r=e.length*32;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function d(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=e.length*8;for(t=0;t<r;t+=8)n[t>>5]|=(e.charCodeAt(t/8)&255)<<t%32;return n}function f(e){return u(l(d(e),e.length*8))}function p(e,t){var n,r=d(e),i=[],a=[],o;for(i[15]=a[15]=void 0,r.length>16&&(r=l(r,e.length*8)),n=0;n<16;n+=1)i[n]=r[n]^909522486,a[n]=r[n]^1549556828;return o=l(i.concat(d(t)),512+t.length*8),u(l(a.concat(o),640))}function m(e){var t=`0123456789abcdef`,n=``,r,i;for(i=0;i<e.length;i+=1)r=e.charCodeAt(i),n+=t.charAt(r>>>4&15)+t.charAt(r&15);return n}function h(e){return unescape(encodeURIComponent(e))}function g(e){return f(h(e))}function _(e){return m(g(e))}function v(e,t){return p(h(e),h(t))}function y(e,t){return m(v(e,t))}function b(e,t,n){return t?n?v(t,e):y(t,e):n?g(e):_(e)}typeof define==`function`&&define.amd?define(function(){return b}):typeof t==`object`&&t.exports?t.exports=b:e.md5=b})(e)})),IT=i(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r():typeof define==`function`&&define.amd?define([],r):n.CryptoJS=r()})(e,function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},a=i.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),(!t.hasOwnProperty(`init`)||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(`toString`)&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=a.extend({init:function(e,n){e=this.words=e||[],n==t?this.sigBytes=e.length*4:this.sigBytes=n},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=(function(t){var t=t,n=987654321,r=4294967295;return function(){n=36969*(n&65535)+(n>>16)&r,t=18e3*(t&65535)+(t>>16)&r;var i=(n<<16)+t&r;return i/=4294967296,i+=.5,i*(e.random()>.5?1:-1)}}),i=0,a;i<t;i+=4){var s=r((a||e.random())*4294967296);a=s()*987654071,n.push(s()*4294967296|0)}return new o.init(n,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((a&15).toString(16))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch{throw Error(`Malformed UTF-8 data`)}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){typeof e==`string`&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(a*4);s=t?e.ceil(s):e.max((s|0)-this._minBufferSize,0);var c=s*a,l=e.min(c*4,i);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(r,u);var d=r.splice(0,c);n.sigBytes-=l}return new o.init(d,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:512/32,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=r.algo={};return r}(Math);return e})})),LT=i(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(IT()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)o[l]=e[t+l]|0;else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var d=(r<<5|r>>>27)+c+o[l];l<20?d+=(i&a|~i&s)+1518500249:l<40?d+=(i^a^s)+1859775393:l<60?d+=(i&a|i&s|a&s)-1894007588:d+=(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)})(),e.SHA1})})),RT=Nw(),zT=e(FT(),1),BT=e(LT(),1),VT={},HT=Object.defineProperty,UT=(e,t,n)=>t in e?HT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WT=(e,t)=>HT(e,`name`,{value:t,configurable:!0}),GT=(e,t,n)=>UT(e,typeof t==`symbol`?t:t+``,n),KT={SUCCESS:`0`,CAPABILITY_NOT_FOUND:`k_ec_cap_001`,PLUGIN_NOT_FOUND:`k_ec_cap_002`,ACTION_NOT_FOUND:`k_ec_cap_003`,PARAMS_VALIDATION_ERROR:`k_ec_cap_004`,EXECUTION_ERROR:`k_ec_cap_005`,RATE_LIMIT_EXCEEDED:`k_ec_cap_006`},qT=class extends Error{constructor(e,t,n){super(e),GT(this,`code`),GT(this,`statusCode`),this.name=`CapabilityError`,this.code=t,this.statusCode=n}};WT(qT,`CapabilityError`);var JT=qT,YT=class extends JT{constructor(e,t){super(`Capability not found: ${e}`,`CAPABILITY_NOT_FOUND`,t),this.name=`CapabilityNotFoundError`}};WT(YT,`CapabilityNotFoundError`);var XT=YT,ZT=class extends JT{constructor(e,t){super(e,`ACTION_NOT_FOUND`,t),this.name=`ActionNotFoundError`}};WT(ZT,`ActionNotFoundError`);var QT=ZT,$T=class extends JT{constructor(e){super(e,`NETWORK_ERROR`),this.name=`NetworkError`}};WT($T,`NetworkError`);var eE=$T,tE=class extends JT{constructor(e,t){super(e,`EXECUTION_ERROR`,t),this.name=`ExecutionError`}};WT(tE,`ExecutionError`);var nE=tE,rE=class extends JT{constructor(e,t){super(e,`FILE_UPLOAD_ERROR`,t),this.name=`FileUploadError`}};WT(rE,`FileUploadError`);var iE=rE,aE=class extends JT{constructor(e,t,n){super(t,`RATE_LIMIT_EXCEEDED`,n),GT(this,`rateLimitCode`),GT(this,`rateLimitMessage`),this.name=`RateLimitError`,this.rateLimitCode=e,this.rateLimitMessage=t}};WT(aE,`RateLimitError`);var oE=aE,sE=class{constructor(e){GT(this,`options`),this.options=e}async upload(e){let t=e instanceof File?e.name:`blob-${Date.now()}`,{uploadURL:n,objectKey:r}=await this.fetchUploadUrl(t);return await this.uploadToTos(n,e),await this.fetchDownloadUrl(r)}async uploadAll(e){return await Promise.all(e.map(async({path:e,file:t})=>({path:e,downloadUrl:await this.upload(t)})))}async fetchUploadUrl(e){let{acquireUploadUrl:t,fetchOptions:n}=this.options,r;try{r=await fetch(t,{method:`POST`,...n,headers:{"Content-Type":`application/json`,...n?.headers},body:JSON.stringify({fileName:e})})}catch(e){throw ax.captureException(e,{source:`client-capability`,module:`file-upload`,step:`fetch-upload-url`}),new iE(`Failed to acquire upload URL: ${e instanceof Error?e.message:String(e)}`)}if(!r.ok)throw new iE(`Failed to acquire upload URL: HTTP ${r.status}`,r.status);let i=await r.json();if(i.status_code!==`0`)throw new iE(`Failed to acquire upload URL: ${i.status_code}`);return i.data}async uploadToTos(e,t){let n;try{n=await fetch(e,{method:`PUT`,body:t})}catch(e){throw ax.captureException(e,{source:`client-capability`,module:`file-upload`,step:`upload-to-tos`}),new iE(`Failed to upload file to TOS: ${e instanceof Error?e.message:String(e)}`)}if(!n.ok)throw new iE(`Failed to upload file to TOS: HTTP ${n.status}`,n.status)}async fetchDownloadUrl(e){let{acquireDownloadUrl:t,fetchOptions:n}=this.options,r;try{r=await fetch(t,{method:`POST`,...n,headers:{"Content-Type":`application/json`,...n?.headers},body:JSON.stringify({objectKey:e})})}catch(e){throw ax.captureException(e,{source:`client-capability`,module:`file-upload`,step:`fetch-download-url`}),new iE(`Failed to acquire download URL: ${e instanceof Error?e.message:String(e)}`)}if(!r.ok)throw new iE(`Failed to acquire download URL: HTTP ${r.status}`,r.status);let i=await r.json();if(i.status_code!==`0`)throw new iE(`Failed to acquire download URL: ${i.status_code}`);return i.data.downloadURL}};WT(sE,`FileUploader`);var cE=sE;function lE(e){return e instanceof File||e instanceof Blob}WT(lE,`isFile`);function uE(e){let t=[];function n(e,r){lE(e)?t.push({path:[...r],file:e}):Array.isArray(e)?e.forEach((e,t)=>n(e,[...r,t])):typeof e==`object`&&e&&Object.entries(e).forEach(([e,t])=>{n(t,[...r,e])})}return WT(n,`traverse`),n(e,[]),t}WT(uE,`extractFiles`);function dE(e,t){let n=new Map;for(let{path:e,downloadUrl:r}of t)n.set(JSON.stringify(e),r);function r(e,t){let i=JSON.stringify(t);if(n.has(i))return n.get(i);if(lE(e))return null;if(Array.isArray(e))return e.map((e,n)=>r(e,[...t,n]));if(typeof e==`object`&&e){let n={};for(let[i,a]of Object.entries(e))n[i]=r(a,[...t,i]);return n}return e}return WT(r,`cloneAndReplace`),r(e,[])}WT(dE,`replaceFilesWithUrls`);var fE=`[CapabilityClient]`,pE={debug:console.debug.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console)},mE=class{constructor(e){GT(this,`options`),GT(this,`baseURL`),GT(this,`logger`),GT(this,`onRateLimitError`),GT(this,`central`),this.options=e,this.baseURL=(e?.baseURL??``).replace(/\/+$/,``),this.logger=e?.logger??pE,this.onRateLimitError=e?.onRateLimitError,e?.central?.enabled&&(this.central=e.central)}resolveCentralBaseURL(e){if(e.baseURL)return e.baseURL.replace(/\/+$/,``);if(typeof window<`u`&&window.location?.origin)return window.location.origin;throw Error(`CapabilityClient: central.baseURL is required when running outside browser (window.location unavailable)`)}resolveMode(){return(typeof process<`u`?`development`:void 0)===`development`?`preview`:`runtime`}buildExecuteUrl(e,t){if(!this.central)return`${this.baseURL}/api/capability/${e}${t?`/stream`:``}`;let n=this.resolveCentralBaseURL(this.central),r=this.resolveMode()===`preview`?`/preview/execute`:`/execute`;return`${n}/app/${this.central.appId}/__runtime__/api/v1/plugin_server/capability/${e}${r}${t?`/stream`:``}`}buildRequestBody(e,t,n){if(this.central&&this.resolveMode()===`preview`){let r=VT[e];if(!r)throw new XT(e);return JSON.stringify({capability:r,action:t,params:n})}return JSON.stringify({action:t,params:n})}load(e){if(this.central&&this.resolveMode()===`preview`&&!(e in VT))throw new XT(e);return this.createExecutor(e)}createExecutor(e){return{call:WT((t,n)=>this.executeCall(e,t,n),`call`),callStream:WT((t,n)=>this.executeCallStream(e,t,n),`callStream`)}}async executeCall(e,t,n){let r=this.buildExecuteUrl(e,!1),i=n??{},a=uE(i);if(a.length>0){this.logger.info(fE,`uploading ${a.length} file(s)...`);let e=await new cE(this.options).uploadAll(a);i=dE(i,e),this.logger.info(fE,`file upload completed`)}this.logger.info(fE,`call start: capabilityId=${e}, action=${t}`,{params:i});try{let n=await fetch(r,{method:`POST`,...this.options.fetchOptions,headers:{"Content-Type":`application/json`,...this.options.fetchOptions?.headers},body:this.buildRequestBody(e,t,i)}),a=await n.json();if(!n.ok||a.status_code!==KT.SUCCESS){let t=a,r=t.status_code;if(t.is_rate_limit_error){let e=new oE(r,t.error_msg,n.status);throw await this.onRateLimitError?.(e),e}switch(r){case KT.CAPABILITY_NOT_FOUND:throw new XT(e,n.status);case KT.ACTION_NOT_FOUND:throw new QT(t.error_msg,n.status);case KT.PLUGIN_NOT_FOUND:case KT.EXECUTION_ERROR:default:throw new nE(t.error_msg,n.status)}}let o=a.data.output;return this.logger.info(fE,`call success: capabilityId=${e}, action=${t}`,{result:o}),o}catch(n){throw this.logger.error(fE,`call failed: capabilityId=${e}, action=${t}`,{params:i,error:n}),ax.captureException(n,{source:`client-capability`,module:`execute-call`,capabilityId:e,action:t}),n instanceof JT?n:new eE(n instanceof Error?n.message:String(n))}}async*executeCallStream(e,t,n){let r=this.buildExecuteUrl(e,!0),i=n??{},a=uE(i);if(a.length>0){this.logger.info(fE,`uploading ${a.length} file(s)...`);let e=await new cE(this.options).uploadAll(a);i=dE(i,e),this.logger.info(fE,`file upload completed`)}this.logger.info(fE,`callStream start: capabilityId=${e}, action=${t}`,{params:i});let o=this.buildRequestBody(e,t,i),s;try{s=await fetch(r,{method:`POST`,...this.options.fetchOptions,headers:{"Content-Type":`application/json`,...this.options.fetchOptions?.headers},body:o})}catch(n){throw this.logger.error(fE,`callStream failed: capabilityId=${e}, action=${t}`,{params:i,error:n}),ax.captureException(n,{source:`client-capability`,module:`execute-call-stream`,capabilityId:e,action:t,phase:`fetch`}),new eE(n instanceof Error?n.message:String(n))}if(!s.ok){let n=`HTTP ${s.status} ${s.statusText}`;throw this.logger.error(fE,`callStream failed: capabilityId=${e}, action=${t}`,{params:i,error:n}),new eE(n)}if(!s.body){let n=`Response body is null`;throw this.logger.error(fE,`callStream failed: capabilityId=${e}, action=${t}`,{params:i,error:n}),new eE(n)}let c=s.body.getReader(),l=new TextDecoder,u=``,d=0,f=``,p=!0;try{for(;;){let{done:n,value:r}=await c.read();if(n)break;u+=l.decode(r,{stream:!0});let a=u.split(`
|
|
51
|
-
`);u=a.pop()??``;for(let n of a)if(n.startsWith(`data: `)){let r=n.slice(6);try{let n=JSON.parse(r);if(n.status_code===KT.SUCCESS&&n.data){if(n.data.type===`content`){d++;let r=n.data.delta;if(p){let e=r?.content;typeof e==`string`?f+=e:p=!1}if(yield r,n.data.finished){let n=p?{chunkCount:d,result:f}:{chunkCount:d,resultLength:f.length||d};this.logger.info(fE,`callStream end: capabilityId=${e}, action=${t}`,n);return}}else if(n.data.type===`error`){let e=n.data.error;if(e.isRateLimitError){let t=new oE(e.code,e.message);throw await this.onRateLimitError?.(t),t}throw new nE(e.message)}}}catch(n){if(n instanceof JT)throw this.logger.error(fE,`callStream failed: capabilityId=${e}, action=${t}`,{params:i,error:n,chunkCount:d}),n}}}let n=p?{chunkCount:d,result:f}:{chunkCount:d,resultLength:f.length||d};this.logger.info(fE,`callStream end: capabilityId=${e}, action=${t}`,n)}catch(n){throw this.logger.error(fE,`callStream failed: capabilityId=${e}, action=${t}`,{params:i,error:n,chunkCount:d}),ax.captureException(n,{source:`client-capability`,module:`execute-call-stream`,capabilityId:e,action:t,phase:`read`}),n instanceof JT?n:new eE(n instanceof Error?n.message:String(n))}finally{c.releaseLock()}}};WT(mE,`CapabilityClient`);var hE=mE;function gE(e){return new hE(e)}WT(gE,`createClient`);var _E=Object.defineProperty,$=(e,t)=>_E(e,`name`,{value:t,configurable:!0}),vE=(e,t)=>{for(var n in t)_E(e,n,{get:t[n],enumerable:!0})};function yE(){let e=document.cookie.split(`; `);for(let t of e){let[e,n]=t.split(`=`);if(e===`suda-csrf-token`)return decodeURIComponent(n)}return window.csrfToken??null}$(yE,`getCsrfToken`);function bE(e){e||=H,e.interceptors.request.use(e=>{let t=yE();return t&&(e.headers[`X-Suda-Csrf-Token`]=t),typeof window<`u`&&(e.headers[`X-Page-Route`]=window.location.pathname),e},e=>Promise.reject(e)),e.interceptors.response.use(e=>e,e=>Promise.reject(e))}$(bE,`initAxiosConfig`);function xE(e){return{onSuccess(t){let n=null,r=$(e=>{if(e===`idle`&&n===`apply`)try{t()}catch(e){console.error(`[HMR] Success callback error:`,e)}n=e},`handler`);return e.addStatusHandler(r),()=>e.removeStatusHandler(r)},onError(t){let n=$(e=>{if(e===`fail`||e===`abort`)try{t(Error(`HMR ${e}`))}catch(e){console.error(`[HMR] Error callback error:`,e)}},`handler`);return e.addStatusHandler(n),()=>e.removeStatusHandler(n)}}}$(xE,`createWebpackHmrApi`);function SE(){return null}$(SE,`getHmrApi`);var CE=`__parentOrigin`;function wE(){try{let e=new URLSearchParams(window.location.search).get(CE);if(e)return sessionStorage.setItem(CE,e),e}catch{}try{return sessionStorage.getItem(CE)||void 0}catch{return}}$(wE,`getParentOriginFromParams`);function TE(){let{origin:e}=window.location;return e.includes(`force.feishuapp.net`)?`https://force.feishu.cn`:e.includes(`force-pre.feishuapp.net`)?`https://force.feishu-pre.cn`:e.includes(`force.byted.org`)?`https://force.feishu-boe.cn`:e.includes(`feishuapp.cn`)||e.includes(`miaoda.feishuapp.net`)?`https://miaoda.feishu.cn`:e.includes(`fsapp.kundou.cn`)||e.includes(`miaoda-pre.feishuapp.net`)?`https://miaoda.feishu-pre.cn`:`https://miaoda.feishu-boe.cn`}$(TE,`getLegacyParentOrigin`);function EE(){try{if(document.referrer){let e=new URL(document.referrer).origin;if(e.startsWith(`http://localhost`)||e.startsWith(`http://127.0.0.1`))return e}}catch{}return wE()||TE()}$(EE,`resolveParentOrigin`);function DE(e,t){try{let n=EE(),r=t??n;if(!r)return;window.parent.postMessage(e,r)}catch(e){console.error(`postMessage error`,e)}}$(DE,`submitPostMessage`);var OE=[`debug`,`info`,`warn`,`error`,`success`];function kE(e){return typeof e==`string`&&OE.includes(e)}$(kE,`isLogLevel`);var AE=null,jE=0;function ME(e){if(!e)return;let t=e.includes(`[webpack-dev-server]`)||e.includes(`[vite]`);if(t&&e.includes(`Disconnected`)){let e=Date.now();AE={time:e},DE({type:`DevServerMessage`,data:{type:`devServer-status`,status:`disconnected`}}),ax.sendEvent({name:`sandbox-devServer`,metrics:{time:e},categories:{type:`disconnected`}});return}if(AE){if(t&&e.includes(`Trying to reconnect`)){jE&&ax.sendEvent({name:`sandbox-devServer`,metrics:{retryCount:jE+1},categories:{type:`reconnect-failed`}}),jE++;return}if(e.includes(`[HMR]`)||t&&(e.includes(`Socket connected`)||e.includes(`App updated`)||e.includes(`App hot update`)||e.includes(`connected`))){DE({type:`DevServerMessage`,data:{type:`devServer-status`,status:`connected`}});let e=AE.time,t=Date.now()-e;ax.sendEvent({name:`sandbox-devServer`,metrics:{startTime:e,duration:t},categories:{type:`devServer-reconnected`}}),AE=null,jE=0}}}$(ME,`processDevServerLog`);function NE(){let e=SE();e&&(e.onSuccess(()=>{DE({type:`DevServerMessage`,data:{type:`devServer-status`,status:`hmr-apply-success`}})}),e.onError(e=>{console.warn(`hmr apply failed`,e),ax.sendEvent({name:`sandbox-devServer`,categories:{type:`hmr-apply-failed`,error:String(e)}})}))}$(NE,`listenModuleHmr`);var PE=[`log`,`info`,`warn`,`error`];function FE(){window.addEventListener(`error`,e=>{rD.error(e.error)}),window.addEventListener(`unhandledrejection`,e=>{rD.error(e.reason)}),NE(),PE.forEach(e=>{let t=window.console[e];window.console[e]=(...n)=>{t(...n);let r=e===`log`?`info`:e,i=n[0];typeof i==`string`&&ME(i),typeof i==`string`&&i.startsWith(`[Dataloom]`)&&kE(r)&&(rD.log({level:r,args:n}),DE({type:`Console`,method:e,data:n}))}})}$(FE,`interceptErrors`);function IE(e){let t=new Set;try{return JSON.stringify(e,(e,n)=>{if(typeof n==`object`&&n){if(t.has(n))return`[Circular]`;t.add(n)}return typeof n==`bigint`?n.toString():n instanceof Date?n.toISOString():n instanceof Map?Object.fromEntries(n):n instanceof Set?Array.from(n):n instanceof Error?{name:n.name,message:n.message,stack:n.stack}:n===void 0?`undefined`:typeof n==`symbol`?n.toString():n})}catch{return``}finally{t.clear()}}$(IE,`safeStringify`);function LE(e){return e.map(e=>typeof e==`string`?e:e instanceof Error?`${e.name}: ${e.message}
|
|
52
|
-
${e.stack??``}`:typeof e==`object`&&e?IE(e):String(e))}$(LE,`processLogParams`);function RE(e){return e===`warn`?`WARN`:e===`error`?`ERROR`:`INFO`}$(RE,`mapLogLevel`),class{static{$(this,`BatchLogger`)}config;logQueue=[];flushTimer=null;isProcessing=!1;originConsole;constructor(e,t){this.originConsole={...e};let{userId:n=``,tenantId:r=``,appId:i=``}=window||{};this.config={userId:n,tenantId:r,appId:i,endpoint:`/app/demo/dev/logs/collect-batch`,sizeThreshold:20,flushInterval:1e3,maxRetries:3,retryDelay:500,headers:{"Content-Type":`application/json`},...t||{}},this.startFlushTimer(),this.setupBeforeUnloadHandler()}batchLog(e,t,n){let r={id:this.generateId(),level:e,message:t,source:n,timestamp:Date.now()};this.logQueue.push(r),this.logQueue.length>=this.config.sizeThreshold&&this.flush()}async flush(){if(this.isProcessing||this.logQueue.length===0)return;this.isProcessing=!0;let e=this.logQueue.splice(0,this.logQueue.length);try{await this.sendBatch(e)}catch{this.logQueue.unshift(...e)}finally{this.isProcessing=!1}}async sendBatch(e){let t=e.map(e=>({level:e.level,message:e.message,time:new Date(e.timestamp).toISOString(),source:e.source,user_id:this.config.userId,tenant_id:this.config.tenantId,app_id:this.config.appId})),n=0;for(;n<=this.config.maxRetries;)try{await this.execFetch(this.config.endpoint,{method:`POST`,headers:this.config.headers,body:JSON.stringify(t)});return}catch{n++,n>this.config.maxRetries?this.originConsole.error(`Failed to send logs (attempt ${n}), retrying in ${this.config.retryDelay}ms...`):this.originConsole.warn(`Failed to send logs (attempt ${n}), retrying in ${this.config.retryDelay}ms...`),await this.delay(this.config.retryDelay*n)}}async execFetch(e,t){return fetch(e,t)}startFlushTimer(){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>{this.logQueue.length>0&&this.flush()},this.config.flushInterval)}setupBeforeUnloadHandler(){typeof window<`u`&&window.addEventListener(`beforeunload`,()=>{this.flush().finally(()=>{this.destroy()})})}delay(e){return new Promise(t=>setTimeout(t,e))}generateId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}async destroy(){this.flushTimer&&=(clearInterval(this.flushTimer),null),this.logQueue.length>0&&await this.flush()}getQueueSize(){return this.logQueue.length}updateConfig(e){this.config={...this.config,...e},this.startFlushTimer()}};var zE=null;function BE(e,t,n){zE&&zE.batchLog(e,t,n)}$(BE,`batchLogInfo`);function VE(e){return e.map(e=>({functionName:e.functionName||``,fileName:e.fileName||``,lineNumber:e.lineNumber||0,columnNumber:e.columnNumber||0}))}$(VE,`mapStacktrace`);function HE(e,t){if(window.parent!==window)try{DE({type:`STACKTRACE_PARSE_ERROR`,payload:{error:e instanceof Error?e.message:String(e),context:t}})}catch{}}$(HE,`reportStacktraceParseError`);async function UE(){return VE(await ox.default.get())}$(UE,`getStacktrace`);function WE(e,t){return t instanceof Error?{message:t.message,stack:t.stack,name:t.name}:t}$(WE,`errorReplacer`);function GE(){try{if(typeof crypto<`u`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID()}catch{}return`${Date.now()}-${Math.random().toString(36).slice(2)}`}$(GE,`generateLogId`);var KE=null;async function qE(e){try{let t={...e,id:GE()},n=[];for(let e=0;e<t.args.length;e++){let r=t.args[e];if(r instanceof Error){let e={message:r.message,stack:r.stack,name:r.name};if(!t.meta.stacktrace)try{let e=await ox.default.fromError(r);t.meta.stacktrace=VE(e)}catch(e){HE(e,`StackTrace.fromError`)}n.push(e.message,e)}else n.push(r)}if(t.args=n,!t.meta.stacktrace)try{let e=await UE(),n=e.findIndex(e=>!e.fileName.includes(`client-toolkit-lite/dist/logger`));t.meta.stacktrace=n===-1?[]:e.slice(n)}catch(e){HE(e,`getStacktrace`)}t.meta.skipFrame===void 0&&(t.meta.skipFrame=2);let r=JSON.stringify(t,WE),i={...t};delete i.id;let a=JSON.stringify(i,WE);if(KE&&KE.content===a){KE.count++,t.meta.isDuplicate=!0,t.meta.duplicateCount=KE.count,t.meta.duplicateOfId=KE.id;let e=JSON.stringify(t,WE);try{BE(`info`,e)}catch{}if(window.parent!==window)try{DE({type:`SELECTED_LOG`,payload:e})}catch{}return}KE={content:a,id:t.id,count:1};try{BE(`info`,r)}catch{}if(window.parent!==window)try{DE({type:`SELECTED_LOG`,payload:r})}catch{}}catch{}}$(qE,`sendSelectedLog`);function JE(e){qE({type:`typedLogV2`,level:e.level,args:e.args,meta:e.meta??{}})}$(JE,`sendTypedLogV2`);var YE=[$(e=>({debug:$((t,...n)=>{try{e.debug(t,...n)}catch{}JE({level:`info`,args:[t,...n],meta:{}})},`debug`),info:$((t,...n)=>{try{e.info(t,...n)}catch{}JE({level:`info`,args:[t,...n],meta:{}})},`info`),warn:$((t,...n)=>{try{e.warn(t,...n)}catch{}JE({level:`warn`,args:[t,...n],meta:{}})},`warn`),error:$((t,...n)=>{try{e.error(t,...n)}catch{}JE({level:`error`,args:[t,...n],meta:{}})},`error`),success:$((t,...n)=>{try{e.success(t,...n)}catch{}JE({level:`success`,args:[t,...n],meta:{}})},`success`),log:$(({level:t,args:n,meta:r})=>{try{e.log({level:t,args:n,meta:r})}catch{}JE({level:t,args:n,meta:r??{}})},`log`)}),`typedLogInterceptor`)],XE=!0,ZE=[`debug`,`info`,`warn`,`error`],QE={showLevel:!1,showTimestamp:!1,level:`info`,prefix:``},$E={...QE};function eD(e){$E={...QE,...e}}$(eD,`configureLogger`);function tD(e){return ZE.indexOf(e)>=ZE.indexOf($E.level)}$(tD,`shouldLog`);function nD(e){let t=[];return $E.prefix&&t.push(`[${$E.prefix}]`),$E.showLevel&&t.push(`[${e.toUpperCase()}]`),t}$(nD,`getFormattedPrefix`),eD({showLevel:!0,showTimestamp:!1,level:`error`,prefix:`MiaoDa`});var rD={debug(e,...t){tD(`debug`)&&console.log(...nD(`debug`),e,...t)},info(e,...t){tD(`info`)&&console.log(...nD(`info`),e,...t),XE&&ex.observable.log(`INFO`,LE([e,...t]).join(` `))},warn(e,...t){tD(`warn`)&&console.log(...nD(`warn`),e,...t),XE&&ex.observable.log(`WARN`,LE([e,...t]).join(` `))},error(e,...t){tD(`error`)&&console.error(...nD(`error`),e,...t),XE&&ex.observable.log(`ERROR`,LE([e,...t]).join(` `))},success(e,...t){tD(`info`)&&console.log(...nD(`success`),e,...t),XE&&ex.observable.log(`INFO`,LE([e,...t]).join(` `))},log({level:e,args:t}){tD(e)&&console.log(...nD(e),...t),XE&&e!==`debug`&&ex.observable.log(RE(e),LE(t).join(` `))}};for(let e of YE)rD=e(rD);function iD(...e){return CC(OS(e))}$(iD,`clsxWithTw`);function aD(){return window.IS_MIAODA_PREVIEW}$(aD,`isPreview`);function oD(e){return!e||e===`/`?``:e.replace(/\/+$/,``)}$(oD,`normalizeBasePath`);function sD(){let e=`/app/demo`,t=e.startsWith(`/`)?e:`/${e}`;return`${t.endsWith(`/`)?t.slice(0,-1):t}/ws`}$(sD,`getWsPath`);function cD(){return window._IS_Spark_RUNTIME??!0}$(cD,`isSparkRuntime`);async function lD(){let e=[{path:`/`}];try{let t=oD(`/app/demo`);e=await(await fetch(`${t}/routes.json`)).json()}catch(e){console.warn(`get routes.json error`,e)}return e}$(lD,`getRoutes`);var uD={getRoutes:lD,updateAppInfo:$(e=>{dispatchEvent(new CustomEvent(`MiaoDaMetaInfoChanged`,{detail:e}))},`updateAppInfo`)};async function dD(){DE({type:`PreviewReady`,data:{}}),BE(`info`,JSON.stringify({type:`PreviewReady`,timestamp:Date.now(),url:window.location.href}));let e=EE();e&&await Ax({parentOrigin:e,methods:{...uD}}).promise}$(dD,`connectParent`);function fD(){window.parent!==window&&dD()}$(fD,`initIframeBridge`),window.__FULLSTACK_RUNTIME_INITIALIZED__||(window.__FULLSTACK_RUNTIME_INITIALIZED__=!0,bE());function pD(){return window.appId||null}$(pD,`getAppId`);function mD(){return/^\/app\/[^/]/.test(`/app/demo`)}$(mD,`isNewPathEnabled`);async function hD(){try{let e={"Content-Type":`application/json`,"X-Kunlun-Token":window.token,"x-miaoda-token":window.MIAODA_BUILTIN_TTT,"X-Suda-Csrf-Token":yE()},t=pD(),n=mD()?`/app/${t}/__runtime__/api/v1/studio/get_published`:`/spark/b/${t}/get_published`,r=`${window.location.origin}${n}`,i=await(await fetch(r,{method:`GET`,headers:e,credentials:`include`})).json();if(i.code===0||i.status_code===`0`)return i.data;console.error(`Error fetching published app info:`,i)}catch(e){console.error(`Error fetching published app info:`,e)}}$(hD,`getAppPublished`);var gD,_D=null;function vD(e=!1){return gD&&!e?Promise.resolve(gD):(_D&&!e||(_D=hD().then(e=>(gD=e,gD&&(window._bucket_id=gD.app_runtime_extra?.bucket?.default_bucket_id),gD)).finally(()=>{_D=null})),_D)}$(vD,`getInitialInfo`);async function yD(e=!1){let t=typeof window<`u`?window._appInfo:void 0;if((!t||e)&&cD()){let n=(await vD(e))?.app_info;t={name:n?.app_name||``,avatar:n?.app_avatar||``,description:n?.app_description||``},t.name&&=t.name.trim(),typeof window<`u`&&(window._appInfo=t)}return t??{}}$(yD,`getAppInfo`);var bD=$(()=>{let[e,t]=(0,_.useState)({});return(0,_.useEffect)(()=>{let e=$(e=>{if(e.name){document.title=e.name;let t=document.querySelector(`meta[property='og:title']`);t&&(t.content=e.name)}if(e.avatar){let t=document.querySelector(`link[rel~='icon']`);t||(t=document.createElement(`link`),t.rel=`icon`,document.head.appendChild(t)),t.href=e.avatar;let n=document.querySelector(`meta[property='og:image']`);n&&(n.content=e.avatar)}if(e.description){let t=document.querySelector(`meta[property='og:description']`);t&&(t.content=e.description);let n=document.querySelector(`meta[name='description']`);n&&(n.content=e.description)}},`updateDomInfo`),n=$(async(n,r=!0)=>{n||=await yD(r),e(n),t(e=>({...e,...n}))},`handleMetaInfoChanged`);n(void 0,!1);let r=$(e=>{let t=e.detail;n(t)},`onUpdate`);return window.addEventListener(`MiaoDaMetaInfoChanged`,r),()=>{window.removeEventListener(`MiaoDaMetaInfoChanged`,r)}},[]),{...e,appName:e.name,appLogo:e.avatar}},`useAppInfo`);function xD(){return window._userInfo||{}}$(xD,`getCurrentUserProfile`);function SD(e){try{let t=new URL(e),n=t.pathname.split(`/`),r=n.findIndex(e=>e===`workspaces`);if(r===-1)throw Error(`Invalid workspace URL format`);let i=n.slice(0,r),a=n[r+1];return{baseUrl:`${t.origin}${i.join(`/`)}`,workspace:a}}catch(e){console.error(`Error splitting workspace URL:`,e)}return{baseUrl:e,workspace:`workspace`}}$(SD,`splitWorkspaceUrl`);var CD=$((e,t)=>{let{baseUrl:n}=e?SD(e):{baseUrl:``},r=pD()??``;return Mw(n,t??``,{global:{enableDataloomLog:!1,requestRateLimit:void 0,brandName:`miaoda`,appId:r}})},`createDataLoomClient`),wD=null,TD=null;function ED(){return wD?Promise.resolve(wD):TD||(TD=vD().then(e=>{let t=e?.app_runtime_extra?.url,n=e?.app_runtime_extra?.token;return wD=CD(t,n),wD}).finally(()=>{TD=null}),TD)}$(ED,`getDataloom`);function DD(e){if(!(!e||e.length===0))return e.find(e=>e.language_code===2052)?.text??e[0]?.text}$(DD,`getNameFromArray`);function OD(){let e=xD();return{...e,userName:e.name,userAvatar:e.avatar}}$(OD,`getCompatibilityUserProfile`);var kD=768;function AD(){let[e,t]=_.useState(window.innerWidth<kD);return _.useEffect(()=>{let e=$(()=>{t(window.innerWidth<kD)},`handleResize`),n=(0,RT.debounce)(e,200);return window.addEventListener(`resize`,n),e(),()=>{window.removeEventListener(`resize`,n),n.cancel()}},[]),e}$(AD,`useIsMobile`);function jD(){let[e,t]=(0,_.useState)(!1);async function n(){t(!0);try{await(await ED()).service.session.signOut()}catch(e){console.error(`登出失败`,e)}finally{t(!1)}}return $(n,`handlerLogout`),{handlerLogout:n,isLoading:e}}$(jD,`useLogout`);var MD={"safety.badge.label":{zh:`妙搭`,en:`Spark`},"safety.badge.builtWith":{zh:`由妙搭搭建`,en:`Built with Spark`},"safety.ai.disclaimer":{zh:`包含 AI 生成内容,请注意甄别`,en:`AI-generated content. Use with care.`},"safety.tenant.operated":{zh:`{name}运营`,en:`Operated by {name}`},"safety.button.dontShowAgain":{zh:`不再展示`,en:`Don't show again`},"safety.button.learnMore":{zh:`了解更多`,en:`Learn more`},"safety.cover.pc":{zh:`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/miaodacover.png`,en:`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/miaodacover-weben.png`},"safety.cover.mobile":{zh:`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/miaodacover-mobile.png`,en:`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/miaodacover-mobileen.png`}},ND=`miaoda:preview-locale`;function PD(e){return(e??`zh`).toLowerCase().startsWith(`zh`)?`zh`:`en`}$(PD,`toLocale`);function FD(){if(typeof window>`u`)return null;try{let e=new URLSearchParams(window.location.search).get(`locale`);return e&&e.length>0?e:null}catch{return null}}$(FD,`readLocaleFromQuery`);function ID(){if(typeof window>`u`)return null;try{let e=window.localStorage?.getItem(ND);return e&&e.length>0?e:null}catch{return null}}$(ID,`readLocaleFromStorage`);function LD(e){if(!(typeof window>`u`))try{window.localStorage?.setItem(ND,e)}catch{}}$(LD,`writeLocaleToStorage`);function RD(){return PD(navigator.language)}$(RD,`getLocale`);function zD(e,t){let n=RD(),r=MD[e],i=r?.[n]??r?.zh??e;if(t)for(let[e,n]of Object.entries(t))i=i.replace(`{${e}}`,n);return i}$(zD,`t`);var BD={boxSizing:`border-box`,margin:0,padding:0,border:`none`,background:`none`,font:`inherit`,color:`inherit`,textAlign:`left`,textDecoration:`none`,textTransform:`none`,letterSpacing:`normal`,wordSpacing:`normal`,lineHeight:`normal`,verticalAlign:`baseline`,listStyle:`none`},VD=`'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,HD=1e7,UD=10000001,WD=`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/miaodalogo.svg`,GD=$(()=>zD(`safety.cover.pc`),`getCoverUrl`),KD=$(()=>zD(`safety.cover.mobile`),`getCoverMobileUrl`),qD=`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/icon_company_outlined.svg`,JD=`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/icon/icon_efficiency-ai_outlined.svg`,YD=`https://miaoda.feishu.cn/landing`,XD={...BD,position:`fixed`,display:`inline-flex`,alignItems:`center`,gap:4,border:`1px solid rgba(255,255,255,0.1)`,padding:`6px 10px`,background:`#1f2329`,boxShadow:`0 6px 12px 0 rgba(65,68,74,0.04), 0 8px 24px 8px rgba(65,68,74,0.04)`,borderRadius:6,fontFamily:VD,fontSize:12,lineHeight:`20px`,zIndex:HD,cursor:`pointer`},ZD={...XD,right:12,bottom:12},QD={...XD,right:12,bottom:80},$D={flexShrink:0,width:16,height:16},eO={flexShrink:0,margin:0,color:`#EBEBEB`},tO={...BD,overflow:`hidden`,borderRadius:12,width:286,boxShadow:`0 6px 12px 0 rgba(65,68,74,0.04), 0 8px 24px 0 rgba(65,68,74,0.04)`,zIndex:UD},nO={...BD,display:`flex`,flexDirection:`column`,background:`#1A1A1A`},rO={width:286,height:128,cursor:`pointer`,display:`block`},iO={...BD,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`flex-end`,gap:12,border:`1px solid rgba(255,255,255,0.05)`,padding:`11px 15px 15px 14px`,borderRadius:`12px 12px 0 0`,fontFamily:VD,fontSize:12,lineHeight:`20px`,color:`#a6a6a6`,background:`#1f2021`},aO={display:`flex`,alignItems:`center`,gap:6,alignSelf:`stretch`},oO={flexShrink:0,width:12,height:12},sO={flexShrink:0,width:14,height:14},cO={margin:0,color:`#a6a6a6`,flexShrink:0},lO={display:`flex`,alignItems:`flex-start`,gap:8,width:`100%`,alignSelf:`stretch`},uO={...BD,flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,height:34,borderRadius:8,borderWidth:`0.5px`,borderStyle:`solid`,borderColor:`rgba(255,255,255,0.11)`,background:`rgba(255,255,255,0.03)`,color:`#ebebeb`,cursor:`pointer`,fontSize:12,fontFamily:VD,transition:`background 0.15s ease, border-color 0.15s ease`},dO={background:`rgba(255,255,255,0.08)`,borderColor:`rgba(255,255,255,0.2)`},fO={position:`fixed`,inset:0,zIndex:UD,background:`rgba(0,0,0,0.5)`},pO={position:`fixed`,inset:`auto 0 0 0`,zIndex:UD+1,outline:`none`},mO={...BD,display:`flex`,flexDirection:`column`,background:`#fff`,overflow:`hidden`,borderRadius:`16px 16px 0 0`,position:`relative`},hO={position:`absolute`,top:8,left:16,width:24,height:24,color:`#2B2F36`,cursor:`pointer`,background:`none`,border:`none`,padding:0},gO={width:`100%`,display:`block`,cursor:`pointer`},_O={...BD,display:`flex`,flexDirection:`column`,width:`100%`,justifyContent:`center`,alignItems:`flex-end`,gap:16,padding:`16px 20px 48px`,fontFamily:VD,fontSize:12,lineHeight:`20px`,color:`#a6a6a6`},vO={margin:0,color:`#646A73`,fontSize:14,flexShrink:0},yO={display:`flex`,alignItems:`flex-start`,gap:16,alignSelf:`stretch`},bO={...BD,flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,borderRadius:99,fontSize:18,fontFamily:VD,padding:`12px 0`,cursor:`pointer`},xO={...bO,border:`0.5px solid #D0D3D6`,background:`#fff`,color:`#1F2329`},SO={...bO,border:`0.5px solid #000`,background:`#000`,color:`#fff`},CO=$(({style:e,onClick:t,children:n,...r})=>{let[i,a]=(0,_.useState)(!1);return _.createElement(`div`,{style:{...e,...i?dO:{}},onMouseEnter:$(()=>a(!0),`onMouseEnter`),onMouseLeave:$(()=>a(!1),`onMouseLeave`),onClick:t,...r},n)},`HoverButton`),wO=$(({style:e,onClick:t})=>_.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,style:e,onClick:t},_.createElement(`path`,{d:`M18 6 6 18`}),_.createElement(`path`,{d:`m6 6 12 12`})),`XIcon`),TO=$(()=>{let e=`miaoda-creatByMiaodo-has-closed-${pD()}`,[t,n]=(0,_.useState)(!window.localStorage?.getItem(e)),[r,i]=(0,_.useState)(!1),s=AD(),[f,v]=(0,_.useState)(null),[y,b]=(0,_.useState)(!1),[x,S]=(0,_.useState)(!0),[C,w]=(0,_.useState)(!1),T=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let e=pD(),t={"X-Suda-Csrf-Token":yE()??``},n=mD()?`/app/${e}/__runtime__/api/v1/studio/tenant_info`:`/spark/b/${e}/tenant_info`;fetch(n,{headers:t}).then(e=>e.json()).then(e=>{v(e?.data?.tenant_info),b(e?.data?.is_internet_visible)}).catch(()=>{});let r=mD()?`/app/${e}/__runtime__/api/v1/studio/get_published`:`/spark/b/${e}/get_published`;fetch(r,{headers:t}).then(e=>e.json()).then(e=>{let t=e?.data?.app_info?.show_badge;S(t!==!1)}).catch(()=>{S(!0)}).finally(()=>{w(!0)})},[]),(0,_.useEffect)(()=>{if(s){let e=document.createElement(`link`);e.rel=`preload`,e.as=`image`,e.href=KD(),document.head.appendChild(e)}},[s]),!C||!x||!t?null:s?_.createElement(c,{open:r,onOpenChange:i},_.createElement(d,{asChild:!0},_.createElement(`div`,{style:QD,onClick:$(()=>i(!0),`onClick`)},_.createElement(`img`,{src:WD,style:$D}),_.createElement(`p`,{style:{...eO,minWidth:28}},zD(`safety.badge.label`)))),_.createElement(p,null,_.createElement(u,{style:fO}),_.createElement(h,{style:pO,"aria-describedby":void 0},_.createElement(a,{style:{position:`absolute`,clip:`rect(0 0 0 0)`}},zD(`safety.badge.builtWith`)),_.createElement(`div`,{style:mO},_.createElement(wO,{style:hO,onClick:$(()=>i(!1),`onClick`)}),_.createElement(`img`,{src:KD(),alt:``,style:gO,onClick:$(()=>window.open(YD,`_blank`),`onClick`)}),_.createElement(`div`,{style:_O},_.createElement(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4,alignSelf:`stretch`}},y&&_.createElement(`div`,{style:aO},_.createElement(`img`,{src:qD,style:sO}),_.createElement(`p`,{style:vO},zD(`safety.tenant.operated`,{name:f?.name??``}))),_.createElement(`div`,{style:aO},_.createElement(`img`,{src:JD,style:sO}),_.createElement(`p`,{style:vO},zD(`safety.ai.disclaimer`)))),_.createElement(`div`,{style:yO},_.createElement(`div`,{style:xO,onClick:$(t=>{t.stopPropagation(),t.preventDefault(),i(!1),setTimeout(()=>n(!1),200),window.localStorage?.setItem(e,`true`)},`onClick`)},zD(`safety.button.dontShowAgain`)),_.createElement(`div`,{style:SO,onClick:$(()=>window.open(YD,`_blank`),`onClick`)},zD(`safety.button.learnMore`)))))))):_.createElement(l,{open:r,onOpenChange:i},_.createElement(g,{asChild:!0},_.createElement(`div`,{style:ZD,onMouseEnter:$(()=>{T.current&&clearTimeout(T.current),i(!0)},`onMouseEnter`),onMouseLeave:$(()=>{T.current=setTimeout(()=>i(!1),100)},`onMouseLeave`)},_.createElement(`img`,{src:WD,style:$D}),_.createElement(`p`,{style:{...eO,minWidth:60}},zD(`safety.badge.builtWith`)))),_.createElement(o,null,_.createElement(m,{style:tO,side:`top`,align:`end`,sideOffset:8,onMouseEnter:$(()=>{T.current&&clearTimeout(T.current),i(!0)},`onMouseEnter`),onMouseLeave:$(()=>{T.current=setTimeout(()=>i(!1),100)},`onMouseLeave`)},_.createElement(`div`,{style:nO},_.createElement(`img`,{src:GD(),alt:``,style:rO,onClick:$(()=>window.open(YD,`_blank`),`onClick`)}),_.createElement(`div`,{style:iO},_.createElement(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4,alignSelf:`stretch`}},y&&_.createElement(`div`,{style:aO},_.createElement(`img`,{src:qD,style:oO}),_.createElement(`p`,{style:cO},zD(`safety.tenant.operated`,{name:f?.name??``}))),_.createElement(`div`,{style:aO},_.createElement(`img`,{src:JD,style:oO}),_.createElement(`p`,{style:cO},zD(`safety.ai.disclaimer`)))),_.createElement(`div`,{style:lO},_.createElement(CO,{style:uO,"data-custom-element":`safety-close`,onClick:$(t=>{t.stopPropagation(),t.preventDefault(),n(!1),window.localStorage?.setItem(e,`true`)},`onClick`)},zD(`safety.button.dontShowAgain`)),_.createElement(CO,{style:uO,"data-custom-element":`safety-more`,onClick:$(()=>window.open(YD,`_blank`),`onClick`)},zD(`safety.button.learnMore`))))))))},`Safety`),EO=null,DO=$(()=>(EO||=new MT({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1},mutations:{retry:1}}}),EO),`getDefaultQueryClient`),OO=$(({children:e,client:t})=>{let n=t??DO();return _.createElement(PT,{client:n},e)},`QueryProvider`);function kO(e){let t=(0,_.useRef)(e);return t.current=e,t}$(kO,`useUpdatingRef`);var AO=(function(e){return e.RouteChange=`RouteChange`,e.RouteBack=`RouteBack`,e.RouteForward=`RouteForward`,e})(AO||{});function jO(e){return Object.values(AO).includes(e)}$(jO,`isRouteMessageType`);function MO(){let e=nt(),t=kO(at()),n=(0,_.useRef)(!1),r=(0,_.useCallback)(e=>{t.current(-1),n.current=!0},[t]),i=(0,_.useCallback)(e=>{t.current(1),n.current=!0},[t]),a=(0,_.useMemo)(()=>({RouteBack:r,RouteForward:i,RouteChange:t.current}),[r,i,t]);(0,_.useEffect)(()=>{if(n.current){n.current=!1;return}DE({type:`ChildLocationChange`,data:e})},[e]);let o=(0,_.useCallback)(e=>{let t=e.data??{};typeof t.type==`string`&&jO(t.type)&&a[t.type](t.data)},[a]);return(0,_.useEffect)(()=>(window.addEventListener(`message`,o),()=>{window.removeEventListener(`message`,o)}),[o]),(0,_.createElement)(`div`,{style:{display:`none`}})}$(MO,`IframeBridge`);var NO=$(()=>!!(/iPad|Tab|Tablet/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1),`isIpad`),PO=$(()=>/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(navigator.userAgent)||NO(),`isMobile`);function FO(){switch(globalThis.ENVIRONMENT){case`staging`:return`BOE`;case`gray`:return`PRE`;case`online`:return`ONLINE`;default:break}let{origin:e}=window.location;return e.includes(`feishuapp.cn`)||e.includes(`miaoda.feishuapp.net`)||e.includes(`aiforce.cloud`)||e.includes(`aiforce.run`)?`ONLINE`:e.includes(`fsapp.kundou.cn`)||e.includes(`miaoda-pre.feishuapp.net`)||e.includes(`aiforce-pre.bytedance.net`)||e.includes(`aiforce-pre-preview.bytedance.net`)||e.includes(`aiforce-pre.cloud`)||e.includes(`aiforce-pre.run`)?`PRE`:`BOE`}$(FO,`getEnv`);async function IO(){let e=pD();if(!e)return{code:1,msg:`appId is required`,data:{}};let t=mD()?`/app/${e}/__runtime__/api/v1/studio/lark/user_info`:`/spark/b/${e}/lark/user_info`;return await(await fetch(t,{headers:{"X-Suda-Csrf-Token":yE()??``}})).json()}$(IO,`getLarkUserInfo`);var LO=`08a441`,RO=`42b91e`,zO=$(e=>(0,BT.default)(LO+(0,zT.default)(String(e)+RO)).toString(),`encryptTea`),BO=!1;async function VO(){let{data:e}=await IO(),{tenantID:t,userID:n}=e||{},r=n&&n!==`0`?zO(n):void 0,i=t&&t!==`0`?zO(t):void 0;window.collectEvent?.(`init`,{app_id:788827,channel:`cn`,disable_auto_pv:!1,enable_ab_test:!1,enable_debug:!1,enable_stay_duration:!0,reportTime:1e3}),window.collectEvent?.(`config`,{user_unique_id:r,device_type:PO()?`mobile`:`pc`,evtParams:{open_from:new URLSearchParams(window.location.search).get(`open-from`)??void 0,env:FO(),user_id:r,tenant_id:i}}),BO=!0,window.collectEvent?.(`start`)}$(VO,`createTracker`);var HO=$(async({trackKey:e,trackParams:t={}})=>{try{BO||(BO=!0,await VO()),window.collectEvent?.(e,t)}catch(e){console.error(e)}},`reportTeaEvent`),UO=$(()=>{try{let e=window.appId;ex.observable.start({serviceName:`app`,env:ex.AppEnv.Prod,collectorUrl:mD()?{log:`/app/${e}/__runtime__/api/v1/observability/logs/collect`,trace:`/app/${e}/__runtime__/api/v1/observability/traces/collect`,metric:`/app/${e}/__runtime__/api/v1/observability/metrics/collect`,time:`/app/${e}/__runtime__/api/v1/observability/current_server_timestamp`}:{log:`/spark/app/${e}/runtime/api/v1/observability/logs/collect`,trace:`/spark/app/${e}/runtime/api/v1/observability/traces/collect`,metric:`/spark/app/${e}/runtime/api/v1/observability/metrics/collect`,time:`/spark/api/v1/observability/app/${e}/current_server_timestamp`}})}catch(e){console.error(`Failed to start WebObservableSdk:`,e)}},`initObservable`),WO=(function(e){return e.VIEW=`aily_agent_artifact_page_view`,e})({}),GO=$(({children:e})=>(bD(),(0,_.useEffect)(()=>{UO()},[]),(0,_.useEffect)(()=>{HO({trackKey:WO.VIEW,trackParams:{artifact_uid:pD(),agent_id:`agent_miaoda`,url:window.location.href}})},[]),_.createElement(_.Fragment,null,_.createElement(TO,null),!1,!1,_.createElement(OO,null,e))),`AppContainer`),KO=$(({title:e=`页面待开发`,description:t=`页面暂未开发,请耐心等待...`})=>_.createElement(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,width:`100%`,height:`calc(100vh - 64px)`,padding:`0 24px`,textAlign:`center`}},_.createElement(`img`,{style:{borderRadius:6,marginBottom:24},width:`320`,height:`200`,src:`https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/miao/welcome.svg`,alt:`Welcome`}),_.createElement(`div`,{style:{fontSize:16,fontWeight:500,lineHeight:`24px`,marginBottom:4,color:`#1f2329`}},e),_.createElement(`div`,{style:{fontSize:16,lineHeight:`24px`,color:`#8f959e`,maxWidth:480}},t)),`Welcome`),qO=$(e=>{let{error:t,resetErrorBoundary:n}=e;return(0,_.useEffect)(()=>{t&&(DE({type:`RenderError`,data:t}),rD.log({level:`error`,args:[`Render Error`,t],meta:{type:`render-error`,repairMessage:`页面渲染时报错,请根据错误信息修复对应页面的代码`}}))},[t]),(0,_.useEffect)(()=>{if(!n)return;let e=SE();if(e)return e.onSuccess(()=>{typeof window<`u`&&window.__VITE_HMR__?window.location.reload():n()})},[n]),_.createElement(`div`,{className:`min-h-screen flex items-center justify-center bg-white`},_.createElement(`div`,{className:`flex flex-col justify-center items-center text-center`},_.createElement(`img`,{src:`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/template/illustration_empty_negative_error.svg`,alt:`render error`,className:`mb-3 w-[100px]`}),_.createElement(`p`,{className:`text-l/[22px] text-[14px] text-[#1F2329] font-medium`},`页面出错了`)))},`ErrorRender`),JO=(0,_.forwardRef)(({to:e,onClick:t,className:n,style:r,children:i,...a},o)=>{let[s,c]=(0,_.useState)(()=>typeof window<`u`?window.location.hash:``),l=typeof e==`string`&&e.startsWith(`#`);(0,_.useEffect)(()=>{if(!l)return;let e=$(()=>{c(window.location.hash)},`handleHashChange`);return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[l]);let u=l&&s===e;if(!l)return _.createElement(Dn,{ref:o,to:e,onClick:t,className:n,style:r,...a},i);let d=$(n=>{if(t?.(n),n.defaultPrevented)return;n.preventDefault();let r=e.slice(1),i=document.getElementById(r);history.pushState(null,``,e),c(e),window.dispatchEvent(new Event(`hashchange`)),i&&typeof i.scrollIntoView==`function`&&i.scrollIntoView({behavior:`smooth`})},`handleHashClick`),f=typeof n==`function`?n({isActive:u,isPending:!1,isTransitioning:!1}):n,p=typeof r==`function`?r({isActive:u,isPending:!1,isTransitioning:!1}):r,m=typeof i==`function`?i({isActive:u,isPending:!1,isTransitioning:!1}):i;return _.createElement(`a`,{ref:o,href:e,onClick:d,className:f,style:p,...a},m)});JO.displayName=`ActiveLink`;var YO=_.forwardRef(({to:e,children:t,className:n,style:r,...i},a)=>{let o=typeof e==`string`&&e.startsWith(`#`),s=nt(),c=at();if(o){let o=$(t=>{t.preventDefault();let n=document.querySelector(e);n&&n.scrollIntoView({behavior:`smooth`}),c(e)},`handleClick`),l={isActive:s.hash===e,isPending:!1,isTransitioning:!1},u=typeof n==`function`?n(l):n,d=typeof r==`function`?r(l):r,{caseSensitive:f,end:p,replace:m,state:h,preventScrollReset:g,relative:v,viewTransition:y,...b}=i;return _.createElement(`a`,{href:e,onClick:o,ref:a,className:u,style:d,...b},typeof t==`function`?t(l):t)}return _.createElement(Dn,{to:e,ref:a,className:n,style:r,onClick:$(()=>(document.getElementById(`rootContainer`)||window)?.scrollTo({top:0,behavior:`smooth`}),`onClick`),...i},t)});YO.displayName=`NavLink`;function XO(e){return!e.startsWith(`#`)&&!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&!e.startsWith(`//`)}$(XO,`isInternalRoute`);function ZO(e){return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`)}$(ZO,`isExternalLink`);function QO(){return`__miaoda_${pD()||`__global__`}__:`}$(QO,`getPrefix`);function $O(){let e=QO(),t=[];for(let n=0;n<localStorage.length;n++){let r=localStorage.key(n);r&&r.startsWith(e)&&t.push(r.substring(e.length))}return t}$($O,`getScopedKeys`);async function ek(e){try{return navigator.clipboard&&window.isSecureContext?(await navigator.clipboard.writeText(e),!0):tk(e)}catch{return tk(e)}}$(ek,`copyToClipboard`);function tk(e){try{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.left=`-999999px`,t.style.top=`-999999px`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.focus(),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch(e){return console.error(`降级复制方案失败:`,e),!1}}$(tk,`fallbackCopyToClipboard`);function nk(e,t){return!t||e.startsWith(t)?e:`${t}${e.startsWith(`/`)?``:`/`}${e}`}$(nk,`ensureBasePath`);function rk(e){let t=oD(`/app/demo`);try{let n=new URL(e);return n.origin===window.location.origin?(n.pathname=nk(n.pathname,t),n.toString()):e}catch{}let n=nk(e.startsWith(`/`)?e:`/${e}`,t);return`${window.location.origin}${n}`}$(rk,`resolveAppUrl`);function ik(){return window.IS_MIAODA_PREVIEW?`feida_preview`:`feida_runtime`}$(ik,`getEnvPath`);var ak;function ok(e,t=3e3){return new Promise(n=>{let r=document.createElement(`div`),i=document.createElement(`span`);i.innerHTML=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
53
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.333a6.667 6.667 0 1 1 0 13.334A6.667 6.667 0 0 1 8 1.333ZM8 10a.667.667 0 1 0 0 1.333A.667.667 0 0 0 8 10Zm0-5.333a.667.667 0 0 0-.667.666v3.334a.667.667 0 0 0 1.334 0V5.333A.667.667 0 0 0 8 4.667Z" fill="#ff811a"/>
|
|
54
|
-
</svg>`,Object.assign(i.style,{display:`flex`,alignItems:`center`,marginRight:`8px`,flexShrink:`0`});let a=document.createElement(`span`);a.textContent=e,r.appendChild(i),r.appendChild(a),Object.assign(r.style,{position:`fixed`,top:`20%`,left:`50%`,transform:`translate(-50%, -50%)`,display:`flex`,alignItems:`center`,padding:`12px 16px`,backgroundColor:`#fff`,color:`#1f2329`,border:`1px solid #dee0e3`,borderRadius:`6px`,fontSize:`14px`,lineHeight:`1.5`,zIndex:`99999`,maxWidth:`80vw`,wordBreak:`break-word`,boxShadow:`0 4px 8px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 0, 0, 0.03)`,opacity:`0`,transition:`opacity 0.3s ease`}),document.body.appendChild(r),requestAnimationFrame(()=>{r.style.opacity=`1`}),setTimeout(()=>{r.style.opacity=`0`,setTimeout(()=>{document.body.removeChild(r),n()},300)},t)})}$(ok,`showToast`);function sk(){return ak||(ak=H.create({baseURL:`/app/demo`}),ak.interceptors.response.use(null,e=>{if(e.config.meta?.autoJumpToLogin!==!1){let t=e.response?.headers?.[`x-login-url`];t&&ok(`需要登录后才能执行操作,将自动跳转登录页`,3e3).then(()=>{window.location.href=t})}return Promise.reject(e)}),bE(ak)),ak}$(sk,`getAxiosForBackend`),sk();var ck=pD(),lk=mD()?`/app/${ck}/__runtime__/api/v1/studio/plugins/tmp_files/acquire_upload_url`:`/af/api/v1/studio/plugins/tmp_files/acquire_upload_url`,uk=mD()?`/app/${ck}/__runtime__/api/v1/studio/plugins/tmp_files/acquire_download_url`:`/af/api/v1/studio/plugins/tmp_files/acquire_download_url`;gE({baseURL:oD(`/app/demo`),acquireUploadUrl:lk,acquireDownloadUrl:uk,fetchOptions:{headers:{"X-Suda-Csrf-Token":window.csrfToken??``}},central:{enabled:!0,appId:ck??``}}),vE({},{avatarImg1:()=>dk,avatarImg10:()=>bk,avatarImg11:()=>xk,avatarImg2:()=>fk,avatarImg3:()=>pk,avatarImg4:()=>mk,avatarImg5:()=>hk,avatarImg6:()=>gk,avatarImg7:()=>_k,avatarImg8:()=>vk,avatarImg9:()=>yk});var dk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/1.jpg`,fk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/2.jpg`,pk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/3.jpg`,mk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/4.jpg`,hk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/5.jpg`,gk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/6.jpg`,_k=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/7.jpg`,vk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/8.jpg`,yk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/9.jpg`,bk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/10.jpg`,xk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/avatar/base/11.jpg`;vE({},{minimalismBannerImg1:()=>Rk,minimalismBannerImg2:()=>zk,minimalismBannerImg3:()=>Bk,minimalismBannerImg4:()=>Vk,minimalismBannerImg5:()=>Hk,minimalismBannerImg6:()=>Uk,minimalismBannerImg7:()=>Wk,minimalismBannerImg8:()=>Gk,professionalBannerImg1:()=>Ak,professionalBannerImg2:()=>jk,professionalBannerImg3:()=>Mk,professionalBannerImg4:()=>Nk,professionalBannerImg5:()=>Pk,professionalBannerImg6:()=>Fk,professionalBannerImg7:()=>Ik,professionalBannerImg8:()=>Lk,techBannerImg1:()=>Sk,techBannerImg2:()=>Ck,techBannerImg3:()=>wk,techBannerImg4:()=>Tk,techBannerImg5:()=>Ek,techBannerImg6:()=>Dk,techBannerImg7:()=>Ok,techBannerImg8:()=>kk});var Sk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/1.jpg`,Ck=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/2.jpg`,wk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/3.jpg`,Tk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/4.jpg`,Ek=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/5.jpg`,Dk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/6.jpg`,Ok=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/7.jpg`,kk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/technology/8.jpg`,Ak=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/1.jpg`,jk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/2.jpg`,Mk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/3.jpg`,Nk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/4.jpg`,Pk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/5.jpg`,Fk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/6.jpg`,Ik=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/7.jpg`,Lk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/professional/8.jpg`,Rk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/1.jpg`,zk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/2.jpg`,Bk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/3.jpg`,Vk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/4.jpg`,Hk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/5.jpg`,Uk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/6.jpg`,Wk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/7.jpg`,Gk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/banner/minimalism/8.jpg`;vE({},{abstractArt3dRenderingCoverImg1:()=>SA,abstractArt3dRenderingCoverImg2:()=>CA,abstractArt3dRenderingCoverImg3:()=>wA,abstractArt3dRenderingCoverImg4:()=>TA,abstractArt3dRenderingCoverImg5:()=>EA,abstractArt3dRenderingCoverImg6:()=>DA,appealClothingCoverImg1:()=>iA,appealClothingCoverImg2:()=>aA,appealClothingCoverImg3:()=>oA,appealClothingCoverImg4:()=>sA,appealClothingCoverImg5:()=>cA,appealClothingCoverImg6:()=>lA,architectureCoverImg1:()=>Qk,architectureCoverImg2:()=>$k,architectureCoverImg3:()=>eA,architectureCoverImg4:()=>tA,architectureCoverImg5:()=>nA,architectureCoverImg6:()=>rA,officeCoverImg1:()=>Kk,officeCoverImg2:()=>qk,officeCoverImg3:()=>Jk,officeCoverImg4:()=>Yk,officeCoverImg5:()=>Xk,officeCoverImg6:()=>Zk,sceneryCoverImg1:()=>uA,sceneryCoverImg2:()=>dA,sceneryCoverImg3:()=>fA,sceneryCoverImg4:()=>pA,sceneryCoverImg5:()=>mA,sceneryCoverImg6:()=>hA,technologyInternetCoverImg1:()=>gA,technologyInternetCoverImg2:()=>_A,technologyInternetCoverImg3:()=>vA,technologyInternetCoverImg4:()=>yA,technologyInternetCoverImg5:()=>bA,technologyInternetCoverImg6:()=>xA});var Kk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/office/1.jpg`,qk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/office/2.jpg`,Jk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/office/3.jpg`,Yk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/office/4.jpg`,Xk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/office/5.jpg`,Zk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/office/6.jpg`,Qk=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/architecture/1.jpg`,$k=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/architecture/2.jpg`,eA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/architecture/3.jpg`,tA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/architecture/4.jpg`,nA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/architecture/5.jpg`,rA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/architecture/6.jpg`,iA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/appeal-clothing/1.jpg`,aA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/appeal-clothing/2.jpg`,oA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/appeal-clothing/3.jpg`,sA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/appeal-clothing/4.jpg`,cA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/appeal-clothing/5.jpg`,lA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/appeal-clothing/6.jpg`,uA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/scenery/1.jpg`,dA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/scenery/2.jpg`,fA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/scenery/3.jpg`,pA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/scenery/4.jpg`,mA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/scenery/5.jpg`,hA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/scenery/6.jpg`,gA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/technology-internet/1.jpg`,_A=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/technology-internet/2.jpg`,vA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/technology-internet/3.jpg`,yA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/technology-internet/4.jpg`,bA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/technology-internet/5.jpg`,xA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/technology-internet/6.jpg`,SA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/abstract-art-3d-rendering/1.jpg`,CA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/abstract-art-3d-rendering/2.jpg`,wA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/abstract-art-3d-rendering/3.jpg`,TA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/abstract-art-3d-rendering/4.jpg`,EA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/abstract-art-3d-rendering/5.jpg`,DA=`https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/cover/abstract-art-3d-rendering/6.jpg`;export{En as a,Ft as c,Cn as i,qO as n,Mt as o,KO as r,Nt as s,GO as t};
|