@local-logic/sdks-app 1.0.0-beta.64 → 1.0.0-beta.65

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.
Files changed (33) hide show
  1. package/dist/assets/{auto-track-legacy.269efe9b.js → auto-track-legacy.bcbecbf8.js} +1 -1
  2. package/dist/assets/{auto-track.c37e0d3b.js → auto-track.243da627.js} +1 -1
  3. package/dist/assets/{chevron_right-legacy.033240dd.js → chevron_right-legacy.c94205d1.js} +1 -1
  4. package/dist/assets/{chevron_right.8fd46579.js → chevron_right.ed021687.js} +1 -1
  5. package/dist/assets/index-legacy.0b1c2bb2.js +1 -0
  6. package/dist/assets/{index-legacy.0a49913a.js → index-legacy.12dc81c1.js} +1 -1
  7. package/dist/assets/{index-legacy.454d6b85.js → index-legacy.3055f688.js} +1 -1
  8. package/dist/assets/index-legacy.415cee9b.js +1 -0
  9. package/dist/assets/{index-legacy.66c83248.js → index-legacy.625673e9.js} +1 -1
  10. package/dist/assets/{index-legacy.0c2f7789.js → index-legacy.6eb621a2.js} +1 -1
  11. package/dist/assets/{index-legacy.7eeeaae3.js → index-legacy.8c3f4d82.js} +1 -1
  12. package/dist/assets/{index-legacy.aea891d0.js → index-legacy.9b2b6e12.js} +1 -1
  13. package/dist/assets/{index-legacy.4f4a4e33.js → index-legacy.c489e13e.js} +1 -1
  14. package/dist/assets/{index.cfad1558.js → index.3b922ccc.js} +1 -1
  15. package/dist/assets/{index.52dad948.js → index.59699164.js} +2 -2
  16. package/dist/assets/{index.1ac1c1e5.js → index.59c286d1.js} +1 -1
  17. package/dist/assets/{index.ec9a25d9.js → index.661181da.js} +1 -1
  18. package/dist/assets/{index.83934545.js → index.78e59a55.js} +1 -1
  19. package/dist/assets/index.95642d9d.js +1 -0
  20. package/dist/assets/{index.29eac88c.js → index.a829928a.js} +1 -1
  21. package/dist/assets/{index.2237f849.js → index.d07e0117.js} +1 -1
  22. package/dist/assets/{index.c619070b.js → index.fcbca47f.js} +1 -1
  23. package/dist/assets/index.umd-legacy.ea5626e0.js +1 -0
  24. package/dist/assets/{index.umd.b87321db.js → index.umd.6358a889.js} +1 -1
  25. package/dist/index.html +2 -2
  26. package/dist/types/sdks/LocalContent/Map/index.d.ts.map +1 -1
  27. package/dist/types/sdks/LocalContent/Map/index.js +4 -2
  28. package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/assets/index-legacy.551562bd.js +0 -1
  31. package/dist/assets/index-legacy.d79d4f3f.js +0 -1
  32. package/dist/assets/index.8aa5be65.js +0 -1
  33. package/dist/assets/index.umd-legacy.bba28c1f.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a8 as or,d as $}from"./index.83934545.js";import{d as Sr}from"./index.52dad948.js";import"./chevron_right.8fd46579.js";var m={},R={};for(var lr=[],p=0;p<64;)lr[p]=0|4294967296*Math.sin(++p%Math.PI);function Or(r){var a,e,t,n=[a=1732584193,e=4023233417,~a,~e],i=[],l=unescape(encodeURI(r))+"\x80",o=l.length;for(r=--o/4+2|15,i[--r]=8*o;~o;)i[o>>2]|=l.charCodeAt(o)<<8*o--;for(p=l=0;p<r;p+=16){for(o=n;l<64;o=[t=o[3],a+((t=o[0]+[a&e|~a&t,t&a|~t&e,a^e^t,e^(a|~t)][o=l>>4]+lr[l]+~~i[p|15&[l,5*l+1,3*l+5,7*l][o]])<<(o=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*o+l++%4])|t>>>-o),a,e])a=0|o[1],e=o[2];for(l=4;l;)n[--l]+=o[l]}for(r="";l<32;)r+=(n[l>>3]>>4*(1^l++)&15).toString(16);return r}const Ir=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),Ur=or(Ir);var _={exports:{}};(function(r,a){(function(e,t){r.exports=function(n,i,l,o,f){for(i=i.split?i.split("."):i,o=0;o<i.length;o++)n=n?n[i[o]]:f;return n===f?l:n}})()})(_);/**
1
+ import{a8 as or,d as $}from"./index.78e59a55.js";import{d as Sr}from"./index.59699164.js";import"./chevron_right.ed021687.js";var m={},R={};for(var lr=[],p=0;p<64;)lr[p]=0|4294967296*Math.sin(++p%Math.PI);function Or(r){var a,e,t,n=[a=1732584193,e=4023233417,~a,~e],i=[],l=unescape(encodeURI(r))+"\x80",o=l.length;for(r=--o/4+2|15,i[--r]=8*o;~o;)i[o>>2]|=l.charCodeAt(o)<<8*o--;for(p=l=0;p<r;p+=16){for(o=n;l<64;o=[t=o[3],a+((t=o[0]+[a&e|~a&t,t&a|~t&e,a^e^t,e^(a|~t)][o=l>>4]+lr[l]+~~i[p|15&[l,5*l+1,3*l+5,7*l][o]])<<(o=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*o+l++%4])|t>>>-o),a,e])a=0|o[1],e=o[2];for(l=4;l;)n[--l]+=o[l]}for(r="";l<32;)r+=(n[l>>3]>>4*(1^l++)&15).toString(16);return r}const Ir=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),Ur=or(Ir);var _={exports:{}};(function(r,a){(function(e,t){r.exports=function(n,i,l,o,f){for(i=i.split?i.split("."):i,o=0;o<i.length;o++)n=n?n[i[o]]:f;return n===f?l:n}})()})(_);/**
2
2
  * @license Apache-2.0
3
3
  *
4
4
  * Copyright (c) 2018 The Stdlib Authors.
@@ -1 +1 @@
1
- import{o as y}from"./index.52dad948.js";import"./chevron_right.8fd46579.js";import"./index.83934545.js";function _(a,i){return Object.keys(i).reduce(function(e,s){if(s.startsWith(a)){var r=s.substr(a.length);e[r]=i[s]}return e},{})}function P(a,i){var e=document.createElement("a");e.href=i;var s=e.search.slice(1),r=s.split("&").reduce(function(n,l){var u=l.split("="),A=u[0],h=u[1];return n[A]=y(h),n},{}),t=[],v=r.ajs_uid,d=r.ajs_event,j=r.ajs_aid;if(j){var o=Array.isArray(r.ajs_aid)?r.ajs_aid[0]:r.ajs_aid;a.setAnonymousId(o)}if(v){var p=Array.isArray(r.ajs_uid)?r.ajs_uid[0]:r.ajs_uid,f=_("ajs_trait_",r);t.push(a.identify(p,f))}if(d){var m=Array.isArray(r.ajs_event)?r.ajs_event[0]:r.ajs_event,c=_("ajs_prop_",r);t.push(a.track(m,c))}return Promise.all(t)}export{P as queryString};
1
+ import{o as y}from"./index.59699164.js";import"./chevron_right.ed021687.js";import"./index.78e59a55.js";function _(a,i){return Object.keys(i).reduce(function(e,s){if(s.startsWith(a)){var r=s.substr(a.length);e[r]=i[s]}return e},{})}function P(a,i){var e=document.createElement("a");e.href=i;var s=e.search.slice(1),r=s.split("&").reduce(function(n,l){var u=l.split("="),A=u[0],h=u[1];return n[A]=y(h),n},{}),t=[],v=r.ajs_uid,d=r.ajs_event,j=r.ajs_aid;if(j){var o=Array.isArray(r.ajs_aid)?r.ajs_aid[0]:r.ajs_aid;a.setAnonymousId(o)}if(v){var p=Array.isArray(r.ajs_uid)?r.ajs_uid[0]:r.ajs_uid,f=_("ajs_trait_",r);t.push(a.identify(p,f))}if(d){var m=Array.isArray(r.ajs_event)?r.ajs_event[0]:r.ajs_event,c=_("ajs_prop_",r);t.push(a.track(m,c))}return Promise.all(t)}export{P as queryString};
@@ -481,7 +481,7 @@ Url: ${Rc(e)}`),!0)}function u9(e,t){return!t||!t.length?!1:f9(e).some(n=>t.some
481
481
  * LICENSE.md file in the root directory of this source tree.
482
482
  *
483
483
  * @license MIT
484
- */function bn(){return bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function uv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function VF(e,t){var n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return(t||"")+i}function Pw(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function HF(e){for(var t,n,r={},o=e.split("&");t=o.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],Pw(t.shift())):r[n]=Pw(t.shift());return r}const UF=["children","location","__experimental__snapshot"],GF=["location","__experimental__snapshot"],YF=["basepath","routes"],dT=f.exports.createContext(null),fT=f.exports.createContext(null),pT=f.exports.createContext(null),hT=Boolean(typeof window<"u"&&window.document&&window.document.createElement),cv=hT?f.exports.useLayoutEffect:f.exports.useEffect,WF=()=>hT?zF():BF();class Zg{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class qF extends Zg{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||WF(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:s7,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:a7,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(o=>{this.current=this.parseLocation(o.location,this.current),this.notify()})}buildNext(t,n){var r,o,i,a;t===void 0&&(t="/"),n===void 0&&(n={});const s=bn({},this.current,n.from),l=i7(t,s.pathname,""+((r=n.to)!=null?r:".")),u=(o=n.__searchFilters)!=null&&o.length?n.__searchFilters.reduce((v,m)=>m(v),s.search):s.search,c=n.search===!0?u:n.search?(i=Mw(n.search,u))!=null?i:{}:(a=n.__searchFilters)!=null&&a.length?u:{},d=dv(s.search,c),p=this.stringifySearch(d);let h=n.hash===!0?s.hash:Mw(n.hash,s.hash);return h=h?"#"+h:"",{pathname:l,search:d,searchStr:p,hash:h,href:""+l+p+h,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const o=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:dv(n==null?void 0:n.search,o),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function mT(e){return D(fT.Provider,{...e})}function KF(e){let{children:t,location:n,__experimental__snapshot:r}=e,o=uv(e,UF);const i=f.exports.useRef(null);i.current||(i.current=new ZF({location:n,__experimental__snapshot:r,routes:o.routes}));const a=i.current,[s,l]=f.exports.useReducer(()=>({}),{});return a.update(o),cv(()=>a.subscribe(()=>{l()}),[]),cv(()=>a.updateLocation(n.current).unsubscribe,[n.current.key]),f.exports.createElement(dT.Provider,{value:{location:n}},f.exports.createElement(pT.Provider,{value:{router:a}},D(XF,{}),D(mT,{value:[a.rootMatch,...a.state.matches],children:t!=null?t:D(Qg,{})})))}function XF(){const e=Sa(),t=_T(),n=wT();return cv(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class ZF extends Zg{constructor(t){var n;let{location:r,__experimental__snapshot:o}=t,i=uv(t,GF);super(),this.routesById={},this.update=s=>{let{basepath:l,routes:u}=s,c=uv(s,YF);Object.assign(this,c),this.basepath=_f("/"+(l!=null?l:"")),this.routesById={};const d=(p,h)=>p.map(v=>{var m,w,g,y;const x=(m=v.path)!=null?m:"*",_=la([(h==null?void 0:h.id)==="root"?"":h==null?void 0:h.id,""+(x==null?void 0:x.replace(/(.)\/$/,"$1"))+(v.id?"-"+v.id:"")]);if(v=bn({},v,{pendingMs:(w=v.pendingMs)!=null?w:c==null?void 0:c.defaultPendingMs,pendingMinMs:(g=v.pendingMinMs)!=null?g:c==null?void 0:c.defaultPendingMinMs,id:_}),this.routesById[_])throw new Error;return this.routesById[_]=v,v.children=(y=v.children)!=null&&y.length?d(v.children,v):void 0,v});this.routes=d(u),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=s=>{const l=s({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var s,l,u;const c=[...(s=this==null?void 0:this.state.matches)!=null?s:[],...(l=this==null||(u=this.pending)==null?void 0:u.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var p;if(!d.updatedAt||c.includes(d.id))return;const h=Date.now()-((p=d.updatedAt)!=null?p:0);(!d.maxAge||h>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=s=>{let l;return{promise:new Promise(c=>{const d=new Ow(this,s);this.setState(p=>bn({},p,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const p=this.state.matches;p.filter(h=>!d.matches.find(v=>v.id===h.id)).forEach(h=>{h.onExit==null||h.onExit(h)}),p.filter(h=>d.matches.find(v=>v.id===h.id)).forEach(h=>{h.route.onTransition==null||h.route.onTransition(h)}),d.matches.filter(h=>!p.find(v=>v.id===h.id)).forEach(h=>{h.onExit=h.route.onMatch==null?void 0:h.route.onMatch(h)}),this.setState(h=>bn({},h,{state:{location:d.location,matches:d.matches},pending:void 0})),c()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(s=>{let{ownData:l,id:u}=s;return{id:u,ownData:l}})}),this.update(i);let a=[];if(o){const s=new Ow(this,r.current);s.matches.forEach((l,u)=>{var c,d,p;if(l.id!==((c=o.matches[u])==null?void 0:c.id)){var h;throw new Error("Router hydration mismatch: "+l.id+" !== "+((h=o.matches[u])==null?void 0:h.id))}l.ownData=(d=(p=o.matches[u])==null?void 0:p.ownData)!=null?d:{}}),vT(s.matches),a=s.matches}this.state={location:(n=o==null?void 0:o.location)!=null?n:r.current,matches:a},r.subscribe(()=>this.notify())}}function Sa(){const e=f.exports.useContext(dT);return ET(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class QF{constructor(t){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=n=>{var r;(r=this.matchLoader)==null||r.preNotify(n?this:void 0)},this.assignMatchLoader=n=>{this.matchLoader=n},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),this.route.pendingMs!==void 0&&(this.pendingTimeout=setTimeout(()=>{var n;this.status==="loading"&&(this.status="pending"),(n=this.notify)==null||n.call(this),typeof this.route.pendingMinMs<"u"&&(this.pendingMinPromise=new Promise(r=>setTimeout(r,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=n=>{var r,o;if(this.maxAge=(r=(o=n.maxAge)!=null?o:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const i=this.route.import;this.loaderPromise=(i?(()=>(this.isLoading=!0,i({params:this.params,search:this.search}).then(a=>{this.route=bn({},this.route,a)})))():Promise.resolve()).then(()=>{const a=[];["element","errorElement","pendingElement"].forEach(c=>{const d=this.route[c];this[c]||(typeof d=="function"?(this.isLoading=!0,a.push(d(this).then(p=>{this[c]=p}))):this[c]=this.route[c])});const l=this.route.loader,u=l?new Promise(async c=>{this.isLoading=!0;const d=v=>{this.updatedAt=Date.now(),c(this.ownData),this.status=v},p=v=>{this.ownData=v,this.error=void 0,d("resolved")},h=v=>{console.error(v),this.error=v,d("rejected")};try{p(await l(this,{parentMatch:n.parentMatch,dispatch:async v=>{var m;v.type==="resolve"?p(v.data):v.type==="reject"?h(v.error):v.type==="loading"?this.isLoading=!0:v.type==="maxAge"&&(this.maxAge=v.maxAge),this.updatedAt=Date.now(),(m=this.notify)==null||m.call(this,!0)}}))}catch(v){h(v)}}):Promise.resolve();return Promise.all([...a,u]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var c;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(c=this.notify)==null||c.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,t)}}class Ow extends Zg{constructor(t,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=i=>{i&&(this.preNotifiedMatches.includes(i)||this.preNotifiedMatches.push(i)),(!i||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",vT(this.matches),this.notify())},this.loadData=async function(i){var a;let{maxAge:s}=i===void 0?{}:i;if(r.router.cleanMatchCache(),!((a=r.matches)!=null&&a.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,u)=>{var c,d;const p=(c=r.matches)==null?void 0:c[u-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:s,parentMatch:p,router:r.router}),(d=r.firstRenderPromises)==null||d.push(l.loaderPromise)}),await Promise.all(r.firstRenderPromises).then(()=>(r.preNotify(),r.matches))},this.load=async function(i){let{maxAge:a}=i===void 0?{}:i;return await r.loadData({maxAge:a})},this.startPending=async()=>{this.matches.forEach(i=>i.startPending==null?void 0:i.startPending())},this.router=t,this.location=n,this.matches=[];const o=yT(this.router,this.location);this.matches=o==null?void 0:o.map(i=>(this.router.matchCache[i.id]||(this.router.matchCache[i.id]=new QF(i)),this.router.matchCache[i.id]))}}function vT(e){e==null||e.forEach((t,n)=>{var r;const o=e==null?void 0:e[n-1];t.data=bn({},(r=o==null?void 0:o.data)!=null?r:{},t.ownData)})}function gT(){const e=f.exports.useContext(pT);if(!e)throw ET(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function yT(e,t){if(!e.routes.length)return[];const n=[],r=async(o,i)=>{var a;let{pathname:s,params:l}=i;const c=(e!=null&&e.filterRoutes?e==null?void 0:e.filterRoutes(o):o).find(v=>{var m,w;const g=la([s,v.path]),y=!!(v.path!=="/"||(m=v.children)!=null&&m.length),x=t7(t,{to:g,search:v.search,fuzzy:y,caseSensitive:(w=v.caseSensitive)!=null?w:e.caseSensitive});return x&&(l=bn({},l,x)),!!x});if(!c)return;const d=Lw(c.path,l);s=la([s,d]);const h={id:Lw(c.id,l,!0),route:c,params:l,pathname:s,search:t.search};n.push(h),(a=c.children)!=null&&a.length&&r(c.children,h)};return r(e.routes,e.rootMatch),n}function Lw(e,t,n){const r=Qs(e);return la(r.map(o=>{if(o.value==="*"&&!n)return"";if(o.type==="param"){var i;return(i=t[o.value.substring(1)])!=null?i:""}return o.value}))}function xT(){return f.exports.useContext(fT)}function JF(){var e;return(e=xT())==null?void 0:e[0]}function wT(){const e=Sa(),t=JF(),n=_T();function r(o){var i;let{search:a,hash:s,replace:l,from:u,to:c,fromCurrent:d}=o;d=(i=d)!=null?i:typeof c>"u";const p=n({to:c,search:a,hash:s,from:d?e.current:u!=null?u:{pathname:t.pathname}});e.navigate(p,l)}return bT(r)}function _T(){const e=Sa(),t=gT();return bT(r=>{const o=e.buildNext(t.basepath,r),a=yT(t,o).map(s=>{var l;return(l=s.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,bn({},r,{__searchFilters:a}))})}function Qg(){var e;const t=gT(),[n,...r]=xT(),o=r[0];if(!o)return null;const i=(e=o.errorElement)!=null?e:t.defaultErrorElement,a=(()=>{var s,l;if(o.status==="rejected"){if(i)return i;if(!t.useErrorBoundary)return"An unknown error occured!";throw o.error}const u=(s=o.pendingElement)!=null?s:t.defaultPendingElement;if(o.status==="loading")return null;if(o.status==="pending"&&(o.route.pendingMs||u))return u!=null?u:null;const c=(l=o.element)!=null?l:t.defaultElement;return c!=null?c:D(Qg,{})})();return D(mT,{value:r,children:a})}function e7(){return Sa().current.search}function t7(e,t){const n=r7(e,t),r=o7(e,t);if(!(t.to&&!n)&&!(t.search&&!r))return n!=null?n:{}}function ET(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function n7(e){return typeof e=="function"}function Mw(e,t){return n7(e)?e(t):e}function la(e){return _f(e.filter(Boolean).join("/"))}function _f(e){return(""+e).replace(/\/{2,}/g,"/")}function r7(e,t){var n;const r=Qs(e.pathname),o=Qs(""+((n=t.to)!=null?n:"*")),i={};return(()=>{for(let s=0;s<Math.max(r.length,o.length);s++){const l=r[s],u=o[s],c=s===o.length-1,d=s===r.length-1;if(u){if(u.type==="wildcard")return l!=null&&l.value?(i["*"]=la(r.slice(s).map(p=>p.value)),!0):!1;if(u.type==="pathname"){if(u.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(t.caseSensitive){if(u.value!==l.value)return!1}else if(u.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;u.type==="param"&&(i[u.value.substring(1)]=l.value)}if(c&&!d)return!!t.fuzzy}return!0})()?i:void 0}function o7(e,t){return!!(t.search&&t.search(e.search))}function Qs(e){if(!e)return[];e=_f(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function i7(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=Qs(t);const o=Qs(n);o.forEach((a,s)=>{if(a.value==="/")s?s===o.length-1&&r.push(a):r=[a];else if(a.value==="..")r.pop();else{if(a.value===".")return;r.push(a)}});const i=la([e,...r.map(a=>a.value)]);return _f(i)}function bT(e){const t=f.exports.useRef(),n=f.exports.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function dv(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Dw(e)&&Dw(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=dv(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function Dw(e){if(!Nw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Nw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Nw(e){return Object.prototype.toString.call(e)==="[object Object]"}const a7=l7(JSON.parse),s7=u7(JSON.stringify);function l7(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));let n=HF(t);for(let r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch(i){}}return n}}function u7(e){return t=>{t=bn({},t),t&&Object.keys(t).forEach(r=>{const o=t[r];if(typeof o>"u"||o===void 0)delete t[r];else if(o&&typeof o=="object"&&o!==null)try{t[r]=e(o)}catch(i){}});const n=VF(t).toString();return n?"?"+n:""}}function fv(e,t){return fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fv(e,t)}function c7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fv(e,t)}var d7=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},Fw={error:null},f7=function(e){c7(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=Fw,r.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(Fw)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&d7(o.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,l=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(f.exports.isValidElement(l))return l;if(typeof a=="function")return a(u);if(s)return D(s,{...u});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(f.exports.Component);class Ef{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Jg=typeof window>"u";function mn(){}function p7(e,t){return typeof e=="function"?e(t):e}function h7(e){return typeof e=="number"&&e>=0&&e!==1/0}function m7(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Up(e,t,n){return bf(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lr(e,t,n){return bf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Iw(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(bf(a)){if(r){if(t.queryHash!==e1(a,t.options))return!1}else if(!Uc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function jw(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(bf(i)){if(!t.options.mutationKey)return!1;if(n){if(No(t.options.mutationKey)!==No(i))return!1}else if(!Uc(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function e1(e,t){return((t==null?void 0:t.queryKeyHashFn)||No)(e)}function No(e){return JSON.stringify(e,(t,n)=>pv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Uc(e,t){return ST(e,t)}function ST(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ST(e[n],t[n])):!1}function CT(e,t){if(e===t)return e;const n=zw(e)&&zw(t);if(n||pv(e)&&pv(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=CT(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function dee(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pv(e){if(!Bw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Bw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Bw(e){return Object.prototype.toString.call(e)==="[object Object]"}function bf(e){return Array.isArray(e)}function AT(e){return new Promise(t=>{setTimeout(t,e)})}function Vw(e){AT(0).then(e)}function v7(){if(typeof AbortController=="function")return new AbortController}function g7(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?CT(e,t):t}class y7 extends Ef{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const hv=new y7;class x7 extends Ef{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Gc=new x7;function w7(e){return Math.min(1e3*2**e,3e4)}function t1(e){return(e!=null?e:"online")==="online"?Gc.isOnline():!0}class TT{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Gp(e){return e instanceof TT}function $T(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((w,g)=>{i=w,a=g}),l=w=>{r||(h(new TT(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!hv.isFocused()||e.networkMode!=="always"&&!Gc.isOnline(),p=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),a(w))},v=()=>new Promise(w=>{o=g=>{if(r||!d())return w(g)},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let w;try{w=e.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(p).catch(g=>{var y,x;if(r)return;const _=(y=e.retry)!=null?y:3,E=(x=e.retryDelay)!=null?x:w7,b=typeof E=="function"?E(n,g):E,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,g);if(t||!S){h(g);return}n++,e.onFail==null||e.onFail(n,g),AT(b).then(()=>{if(d())return v()}).then(()=>{t?h(g):m()})})};return t1(e.networkMode)?m():v().then(m),{promise:s,cancel:l,continue:()=>{o==null||o()},cancelRetry:u,continueRetry:c}}const n1=console;function _7(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},i=c=>{t?e.push(c):Vw(()=>{n(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&Vw(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Tt=_7();class kT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),h7(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Jg?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class E7 extends kT{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||n1,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||b7(this.options),this.state=this.initialState,this.meta=t.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.meta=t==null?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=g7(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(mn).catch(mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!m7(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const a=v7(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u,meta:this.meta};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(Gp(h)&&h.silent||this.dispatch({type:"error",error:h}),!Gp(h)){var v,m;(v=(m=this.cache.config).onError)==null||v.call(m,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=$T({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:h=>{var v,m;if(typeof h>"u"){p(new Error("Query data cannot be undefined"));return}this.setData(h),(v=(m=this.cache.config).onSuccess)==null||v.call(m,h,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:r.fetchFailureCount+1};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:t1(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const a=t.error;return Gp(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function b7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof e.initialData<"u"?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o=typeof t<"u";return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:o?"success":"loading",fetchStatus:"idle"}}class S7 extends Ef{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:e1(i,n);let s=this.get(a);return s||(s=new E7({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i),meta:n.meta}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Lr(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>Iw(r,o))}findAll(t,n){const[r]=Lr(t,n);return Object.keys(r).length>0?this.queries.filter(o=>Iw(r,o)):this.queries}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class C7 extends kT{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||n1,this.observers=[],this.state=t.state||A7(),this.meta=t.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var x;return this.retryer=$T({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l;if(!n){var u,c,d,p;this.dispatch({type:"loading",variables:this.options.variables}),(u=(c=this.mutationCache.config).onMutate)==null||u.call(c,this.state.variables,this);const _=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));_!==this.state.context&&this.dispatch({type:"loading",context:_,variables:this.state.variables})}const x=await t();return(r=(o=this.mutationCache.config).onSuccess)==null||r.call(o,x,this.state.variables,this.state.context,this),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,x,this.state.variables,this.state.context)),await((s=(l=this.options).onSettled)==null?void 0:s.call(l,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var h,v,m,w,g,y;throw(h=(v=this.mutationCache.config).onError)==null||h.call(v,x,this.state.variables,this.state.context,this),await((m=(w=this.options).onError)==null?void 0:m.call(w,x,this.state.variables,this.state.context)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:r.failureCount+1};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,error:null,isPaused:!t1(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function A7(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class T7 extends Ef{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new C7({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Tt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>jw(t,n))}findAll(t){return this.mutations.filter(n=>jw(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return Tt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(mn)),Promise.resolve()))}}function $7(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=h,m=!1;const w=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)m=!0;else{var C;(C=e.signal)==null||C.addEventListener("abort",()=>{m=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),y=(b,S,C,$)=>(v=$?[S,...v]:[...v,S],$?[C,...b]:[...b,C]),x=(b,S,C,$)=>{if(m)return Promise.reject("Cancelled");if(typeof C>"u"&&!S&&b.length)return Promise.resolve(b);const T={queryKey:e.queryKey,pageParam:C,meta:e.meta};w(T);const F=g(T);return Promise.resolve(F).then(U=>y(b,C,U,$))};let _;if(!p.length)_=x([]);else if(c){const b=typeof u<"u",S=b?u:Hw(e.options,p);_=x(p,b,S)}else if(d){const b=typeof u<"u",S=b?u:k7(e.options,p);_=x(p,b,S,!0)}else{v=[];const b=typeof e.options.getNextPageParam>"u";_=(s&&p[0]?s(p[0],0,p):!0)?x([],b,h[0]):Promise.resolve(y([],h[0],p[0]));for(let C=1;C<p.length;C++)_=_.then($=>{if(s&&p[C]?s(p[C],C,p):!0){const F=b?h[C]:Hw(e.options,$);return x($,b,F)}return Promise.resolve(y($,h[C],p[C]))})}return _.then(b=>({pages:b,pageParams:v}))}}}}function Hw(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function k7(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class R7{constructor(t={}){this.queryCache=t.queryCache||new S7,this.mutationCache=t.mutationCache||new T7,this.logger=t.logger||n1,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=hv.subscribe(()=>{hv.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Gc.subscribe(()=>{Gc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var t,n;(t=this.unsubscribeFocus)==null||t.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(t,n){const[r]=Lr(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=p7(n,i);if(typeof a>"u")return;const s=Up(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Tt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Lr(t,n),o=this.queryCache;Tt.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Lr(t,n,r),a=this.queryCache,s={type:"active",...o};return Tt.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Lr(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Tt.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(mn).catch(mn)}invalidateQueries(t,n,r){const[o,i]=Lr(t,n,r);return Tt.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=Lr(t,n,r),a=Tt.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(mn);return i!=null&&i.throwOnError||(s=s.catch(mn)),s}fetchQuery(t,n,r){const o=Up(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(mn).catch(mn)}fetchInfiniteQuery(t,n,r){const o=Up(t,n,r);return o.behavior=$7(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(mn).catch(mn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>No(t)===No(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Uc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>No(t)===No(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Uc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=e1(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const Uw=f.exports.createContext(void 0),RT=f.exports.createContext(!1);function PT(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Uw),window.ReactQueryClientContext):Uw)}const fee=({context:e}={})=>{const t=f.exports.useContext(PT(e,f.exports.useContext(RT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},P7=({client:e,children:t,context:n,contextSharing:r=!1})=>{f.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=PT(n,r);return D(RT.Provider,{value:!n&&r,children:D(o.Provider,{value:e,children:t})})},O7="modulepreload",L7=function(e){return"/sdks-app/v1/"+e},Gw={},ua=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=L7(o),o in Gw)return;Gw[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${a}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":O7,i||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),i)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};var mv=(e=>(e.LOCAL_CONTENT="local-content",e.DATA_EXPLORER="data-explorer",e))(mv||{});const M7=new qF,D7=J.lazy(()=>ua(()=>import("./index.52dad948.js").then(e=>e.q),["assets/index.52dad948.js","assets/chevron_right.8fd46579.js","assets/chevron_right.08649806.css"])),N7=J.lazy(()=>ua(()=>import("./index.c619070b.js"),["assets/index.c619070b.js","assets/chevron_right.8fd46579.js","assets/chevron_right.08649806.css"])),F7=({children:e})=>{const t=[{path:`/sdks-app/v1/${mv.LOCAL_CONTENT}`,element:D(D7,{})},{path:`/sdks-app/v1/${mv.DATA_EXPLORER}`,element:D(N7,{})}];return D(KF,{location:M7,routes:t,children:e})};var I7=Object.defineProperty,j7=(e,t,n)=>t in e?I7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t,n)=>(j7(e,typeof t!="symbol"?t+"":t,n),n);const z7="CONNECT",B7="DEFAULT";function V7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var OT={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(w,g,y)=>g in w?n(w,g,{enumerable:!0,configurable:!0,writable:!0,value:y}):w[g]=y,s=(w,g)=>{for(var y in g||(g={}))o.call(g,y)&&a(w,y,g[y]);if(r)for(var y of r(g))i.call(g,y)&&a(w,y,g[y]);return w},l=w=>n(w,"__esModule",{value:!0}),u=(w,g)=>{l(w);for(var y in g)n(w,y,{get:g[y],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>p,default:()=>m});var d="4.4.4",p=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:p},v=class extends Function{constructor(w={}){super(),this.dictIndex=0,this.dictRange=[],this.lowerBound=0,this.upperBound=0,this.dictLength=0,this._digit_first_ascii=48,this._digit_last_ascii=58,this._alpha_lower_first_ascii=97,this._alpha_lower_last_ascii=123,this._hex_last_ascii=103,this._alpha_upper_first_ascii=65,this._alpha_upper_last_ascii=91,this._number_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii]},this._alpha_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alpha_lower_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alpha_upper_dict_ranges={upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_lower_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alphanum_upper_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._hex_dict_ranges={decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]},this.log=(...E)=>{const b=[...E];if(b[0]=`[short-unique-id] ${E[0]}`,this.debug===!0&&typeof console<"u"&&console!==null)return console.log(...b)},this.setDictionary=(E,b)=>{let S;if(E&&Array.isArray(E)&&E.length>1)S=E;else{S=[];let C;this.dictIndex=C=0;const $=`_${E}_dict_ranges`,T=this[$];Object.keys(T).forEach(F=>{const N=F;for(this.dictRange=T[N],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=C=this.lowerBound;this.lowerBound<=this.upperBound?C<this.upperBound:C>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?C+=1:C-=1)S.push(String.fromCharCode(this.dictIndex))})}b&&(S=S.sort(()=>Math.random()-.5)),this.dict=S,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let E,b,S="";E=this.counter;do b=E%this.dictLength,E=Math.trunc(E/this.dictLength),S+=this.dict[b];while(E!==0);return this.counter+=1,S},this.randomUUID=(E=this.uuidLength||p)=>{let b,S,C;if(E===null||typeof E>"u"||E<1)throw new Error("Invalid UUID Length Provided");for(b="",C=0;C<E;C+=1)S=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,b+=this.dict[S];return b},this.availableUUIDs=(E=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,E).toFixed(0)),this.approxMaxBeforeCollision=(E=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*E).toFixed(20)),this.collisionProbability=(E=this.availableUUIDs(this.uuidLength),b=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(E)/this.availableUUIDs(b)).toFixed(20)),this.uniqueness=(E=this.availableUUIDs(this.uuidLength))=>{const b=parseFloat((1-this.approxMaxBeforeCollision(E)/E).toFixed(20));return b>1?1:b<0?0:b},this.getVersion=()=>this.version,this.stamp=E=>{if(typeof E!="number"||E<10)throw new Error("Param finalLength must be number greater than 10");const b=Math.floor(+new Date/1e3).toString(16),S=E-9,C=Math.round(Math.random()*(S>15?15:S)),$=this.randomUUID(S);return`${$.substr(0,C)}${b}${$.substr(C)}${C.toString(16)}`},this.parseStamp=E=>{if(E.length<10)throw new Error("Stamp length invalid");const b=parseInt(E.substr(E.length-1,1),16);return new Date(parseInt(E.substr(b,8),16)*1e3)};const g=s(s({},h),w);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:y,shuffle:x,length:_}=g;return this.uuidLength=_,this.setDictionary(y,x),this.debug=g.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},m=v;return m.default=v,c})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(OT);const H7=V7(OT.exports),Yw=new H7({length:10});class r1{constructor(t,n){Sr(this,"connection"),Sr(this,"channelId"),Sr(this,"boundMessageHandler"),Sr(this,"onMessageHandlers",[]),Sr(this,"resolveConnection"),Sr(this,"channelNodeId"),Sr(this,"crossOrigin"),Sr(this,"message",(r,o,i)=>this.crossOrigin?this.postMessage(r,o,i):this.customEventMessage(r,o,i)),this.channelId=t!=null?t:B7,this.channelNodeId=`channel-node-${Yw()}`,this.crossOrigin=n,this.connection=new Promise(r=>{this.resolveConnection=r}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(t=>{this.resolveConnection=t})}onMessage(t){this.onMessageHandlers.push(t)}removeMessageHandler(t){const n=this.onMessageHandlers.findIndex(r=>r===t);this.onMessageHandlers.splice(n,1)}customEventMessage(t,n,r){const o=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(o)}postMessage(t,n,r){var o,i,a;(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(i=this.crossOrigin)==null?void 0:i.targetOrigin)}async eventRequest(t,n){const r=Yw();return new Promise(o=>{const i=a=>{const{eventId:s}=a;r===s&&(this.removeMessageHandler(i),o(a))};this.onMessage(i),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=o=>{const{name:i}=o;t===i&&(this.removeMessageHandler(r),n(o))};this.onMessage(r)})}handleMessage(t){var n;let r;if(r1.isCustomEvent(t))r=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=t.data}const{channelId:o,channelNodeId:i}=r;this.channelId===o&&this.channelNodeId!==i&&this.onMessageHandlers.forEach(a=>{a(r)})}static isCustomEvent(t){return t.detail!==void 0}}class U7 extends r1{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(z7).then(t=>{this.resolveConnection(t)}),this.connection}}var G7="Expected a function",Ww=1/0,Y7=17976931348623157e292,qw=0/0,W7="[object Symbol]",q7=/^\s+|\s+$/g,K7=/^[-+]0x[0-9a-f]+$/i,X7=/^0b[01]+$/i,Z7=/^0o[0-7]+$/i,Q7=parseInt,J7=Object.prototype,eI=J7.toString;function tI(e,t){var n;if(typeof t!="function")throw new TypeError(G7);return e=aI(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function nI(e){return tI(2,e)}function Kw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function rI(e){return!!e&&typeof e=="object"}function oI(e){return typeof e=="symbol"||rI(e)&&eI.call(e)==W7}function iI(e){if(!e)return e===0?e:0;if(e=sI(e),e===Ww||e===-Ww){var t=e<0?-1:1;return t*Y7}return e===e?e:0}function aI(e){var t=iI(e),n=t%1;return t===t?n?t-n:t:0}function sI(e){if(typeof e=="number")return e;if(oI(e))return qw;if(Kw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(q7,"");var n=X7.test(e);return n||Z7.test(e)?Q7(e.slice(2),n?2:8):K7.test(e)?qw:+e}var LT=nI;const Yp=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function vv(e,...t){if(!t.length)return e;const n=t.shift();return Yp(e)&&Yp(n)&&Object.keys(n).forEach(r=>{Yp(n[r])?(e[r]||Object.assign(e,{[r]:{}}),vv(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),vv(e,...t)}const lI=e=>{const t=f.exports.useRef(e),n=f.exports.useRef(),r=f.exports.useRef(!1),o=f.exports.useRef(!1),[,i]=f.exports.useState(0);r.current&&(o.current=!0),f.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),i(a=>a+1),()=>{!o.current||n.current&&n.current()}),[])},uI=(e,t)=>{const[n,r]=f.exports.useState(e);return f.exports.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n};var Qa=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(Qa||{});const cI={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},dI={},Xw={locale:"en"},fI={"local-content":{globalOptions:Xw,options:cI},"data-explorer":{globalOptions:Xw,options:dI}},MT=LT(()=>J.createContext({})),DT=()=>{const e=J.useContext(MT());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},NT=J.memo(({children:e})=>{const t=MT(),n=e7(),r=J.useRef(n),i=Sa().current.pathname.split("/"),a=i[i.length-1],s=fI[a],l=J.useRef(),[u,c]=f.exports.useState(!1),[d,p]=f.exports.useState(s),h=uI(d,500),v=wT(),m=x=>{r.current=x,p(x)},w=x=>{var _;x.name===Qa.GET_STATE&&((_=l.current)==null||_.message(Qa.GET_STATE_RESPONSE,r.current,x.eventId)),x.name===Qa.SET_STATE&&m(x.data)};lI(()=>{const x=new U7(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=x,x==null||x.onMessage(w),x==null||x.connect().then(_=>{const E=vv(d,_.data);m(E),c(!0)})});const g=x=>{var _;(_=l.current)==null||_.message(Qa.ON_CHANGE,x)};f.exports.useEffect(()=>{v({search:()=>h})},[h]),f.exports.useEffect(()=>{d.options&&g({type:"options",data:d.options})},[d.options]);const y=f.exports.useMemo(()=>({sdkState:d,setSdkState:m,onChange:g}),[d,m,g]);return u?D(t.Provider,{value:y,children:e}):null});NT.displayName="StateManagerProvider";const pI={en:()=>ua(()=>import("./index.9276bc44.js"),[]),fr:()=>ua(()=>import("./index.4b180792.js"),[])},hI={en:()=>ua(()=>import("./index.fe0fe532.js"),[]),fr:()=>ua(()=>import("./index.e82abb8d.js"),[])},mI={"local-content":e=>hI[e](),"data-explorer":e=>pI[e]()},FT=LT(()=>J.createContext({})),pee=()=>{const e=f.exports.useContext(FT());if(!e)throw new Error("useLangauges must be used under LanguagesProvider");return e},vI=({children:e})=>{var p;const[t,n]=f.exports.useState(!0),[r,o]=f.exports.useState(),{sdkState:i}=DT(),a=((p=i.globalOptions)==null?void 0:p.locale)||"en",s=FT(),u=Sa().current.pathname.split("/"),c=u[u.length-1],d=mI[c];if(f.exports.useEffect(()=>{n(!0),d(a).then(h=>{o(h.translations)}).finally(()=>{n(!1)})},[a,d]),t)return null;if(!r)throw new Error("No translations were found.");return D(s.Provider,{value:{translations:r},children:e})};var IT={exports:{}},o1={exports:{}},jT=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}},gI=jT,yo=Object.prototype.toString;function i1(e){return Array.isArray(e)}function gv(e){return typeof e>"u"}function yI(e){return e!==null&&!gv(e)&&e.constructor!==null&&!gv(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function zT(e){return yo.call(e)==="[object ArrayBuffer]"}function xI(e){return yo.call(e)==="[object FormData]"}function wI(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zT(e.buffer),t}function _I(e){return typeof e=="string"}function EI(e){return typeof e=="number"}function BT(e){return e!==null&&typeof e=="object"}function Gu(e){if(yo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function bI(e){return yo.call(e)==="[object Date]"}function SI(e){return yo.call(e)==="[object File]"}function CI(e){return yo.call(e)==="[object Blob]"}function VT(e){return yo.call(e)==="[object Function]"}function AI(e){return BT(e)&&VT(e.pipe)}function TI(e){return yo.call(e)==="[object URLSearchParams]"}function $I(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kI(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function a1(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),i1(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function yv(){var e={};function t(o,i){Gu(e[i])&&Gu(o)?e[i]=yv(e[i],o):Gu(o)?e[i]=yv({},o):i1(o)?e[i]=o.slice():e[i]=o}for(var n=0,r=arguments.length;n<r;n++)a1(arguments[n],t);return e}function RI(e,t,n){return a1(t,function(o,i){n&&typeof o=="function"?e[i]=gI(o,n):e[i]=o}),e}function PI(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Bt={isArray:i1,isArrayBuffer:zT,isBuffer:yI,isFormData:xI,isArrayBufferView:wI,isString:_I,isNumber:EI,isObject:BT,isPlainObject:Gu,isUndefined:gv,isDate:bI,isFile:SI,isBlob:CI,isFunction:VT,isStream:AI,isURLSearchParams:TI,isStandardBrowserEnv:kI,forEach:a1,merge:yv,extend:RI,trim:$I,stripBOM:PI},ai=Bt;function Zw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var HT=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(ai.isURLSearchParams(n))o=n.toString();else{var i=[];ai.forEach(n,function(l,u){l===null||typeof l>"u"||(ai.isArray(l)?u=u+"[]":l=[l],ai.forEach(l,function(d){ai.isDate(d)?d=d.toISOString():ai.isObject(d)&&(d=JSON.stringify(d)),i.push(Zw(u)+"="+Zw(d))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},OI=Bt;function Sf(){this.handlers=[]}Sf.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Sf.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Sf.prototype.forEach=function(t){OI.forEach(this.handlers,function(r){r!==null&&t(r)})};var LI=Sf,MI=Bt,DI=function(t,n){MI.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},UT=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},GT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wp,Qw;function YT(){if(Qw)return Wp;Qw=1;var e=UT;return Wp=function(n,r,o,i,a){var s=new Error(n);return e(s,r,o,i,a)},Wp}var qp,Jw;function NI(){if(Jw)return qp;Jw=1;var e=YT();return qp=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},qp}var Kp,e_;function FI(){if(e_)return Kp;e_=1;var e=Bt;return Kp=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,a,s,l){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Kp}var Xp,t_;function II(){return t_||(t_=1,Xp=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Xp}var Zp,n_;function jI(){return n_||(n_=1,Zp=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Zp}var Qp,r_;function zI(){if(r_)return Qp;r_=1;var e=II(),t=jI();return Qp=function(r,o){return r&&!e(o)?t(r,o):o},Qp}var Jp,o_;function BI(){if(o_)return Jp;o_=1;var e=Bt,t=["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"];return Jp=function(r){var o={},i,a,s;return r&&e.forEach(r.split(`
484
+ */function bn(){return bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function uv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function VF(e,t){var n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return(t||"")+i}function Pw(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function HF(e){for(var t,n,r={},o=e.split("&");t=o.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],Pw(t.shift())):r[n]=Pw(t.shift());return r}const UF=["children","location","__experimental__snapshot"],GF=["location","__experimental__snapshot"],YF=["basepath","routes"],dT=f.exports.createContext(null),fT=f.exports.createContext(null),pT=f.exports.createContext(null),hT=Boolean(typeof window<"u"&&window.document&&window.document.createElement),cv=hT?f.exports.useLayoutEffect:f.exports.useEffect,WF=()=>hT?zF():BF();class Zg{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class qF extends Zg{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||WF(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:s7,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:a7,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(o=>{this.current=this.parseLocation(o.location,this.current),this.notify()})}buildNext(t,n){var r,o,i,a;t===void 0&&(t="/"),n===void 0&&(n={});const s=bn({},this.current,n.from),l=i7(t,s.pathname,""+((r=n.to)!=null?r:".")),u=(o=n.__searchFilters)!=null&&o.length?n.__searchFilters.reduce((v,m)=>m(v),s.search):s.search,c=n.search===!0?u:n.search?(i=Mw(n.search,u))!=null?i:{}:(a=n.__searchFilters)!=null&&a.length?u:{},d=dv(s.search,c),p=this.stringifySearch(d);let h=n.hash===!0?s.hash:Mw(n.hash,s.hash);return h=h?"#"+h:"",{pathname:l,search:d,searchStr:p,hash:h,href:""+l+p+h,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const o=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:dv(n==null?void 0:n.search,o),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function mT(e){return D(fT.Provider,{...e})}function KF(e){let{children:t,location:n,__experimental__snapshot:r}=e,o=uv(e,UF);const i=f.exports.useRef(null);i.current||(i.current=new ZF({location:n,__experimental__snapshot:r,routes:o.routes}));const a=i.current,[s,l]=f.exports.useReducer(()=>({}),{});return a.update(o),cv(()=>a.subscribe(()=>{l()}),[]),cv(()=>a.updateLocation(n.current).unsubscribe,[n.current.key]),f.exports.createElement(dT.Provider,{value:{location:n}},f.exports.createElement(pT.Provider,{value:{router:a}},D(XF,{}),D(mT,{value:[a.rootMatch,...a.state.matches],children:t!=null?t:D(Qg,{})})))}function XF(){const e=Sa(),t=_T(),n=wT();return cv(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class ZF extends Zg{constructor(t){var n;let{location:r,__experimental__snapshot:o}=t,i=uv(t,GF);super(),this.routesById={},this.update=s=>{let{basepath:l,routes:u}=s,c=uv(s,YF);Object.assign(this,c),this.basepath=_f("/"+(l!=null?l:"")),this.routesById={};const d=(p,h)=>p.map(v=>{var m,w,g,y;const x=(m=v.path)!=null?m:"*",_=la([(h==null?void 0:h.id)==="root"?"":h==null?void 0:h.id,""+(x==null?void 0:x.replace(/(.)\/$/,"$1"))+(v.id?"-"+v.id:"")]);if(v=bn({},v,{pendingMs:(w=v.pendingMs)!=null?w:c==null?void 0:c.defaultPendingMs,pendingMinMs:(g=v.pendingMinMs)!=null?g:c==null?void 0:c.defaultPendingMinMs,id:_}),this.routesById[_])throw new Error;return this.routesById[_]=v,v.children=(y=v.children)!=null&&y.length?d(v.children,v):void 0,v});this.routes=d(u),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=s=>{const l=s({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var s,l,u;const c=[...(s=this==null?void 0:this.state.matches)!=null?s:[],...(l=this==null||(u=this.pending)==null?void 0:u.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var p;if(!d.updatedAt||c.includes(d.id))return;const h=Date.now()-((p=d.updatedAt)!=null?p:0);(!d.maxAge||h>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=s=>{let l;return{promise:new Promise(c=>{const d=new Ow(this,s);this.setState(p=>bn({},p,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const p=this.state.matches;p.filter(h=>!d.matches.find(v=>v.id===h.id)).forEach(h=>{h.onExit==null||h.onExit(h)}),p.filter(h=>d.matches.find(v=>v.id===h.id)).forEach(h=>{h.route.onTransition==null||h.route.onTransition(h)}),d.matches.filter(h=>!p.find(v=>v.id===h.id)).forEach(h=>{h.onExit=h.route.onMatch==null?void 0:h.route.onMatch(h)}),this.setState(h=>bn({},h,{state:{location:d.location,matches:d.matches},pending:void 0})),c()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(s=>{let{ownData:l,id:u}=s;return{id:u,ownData:l}})}),this.update(i);let a=[];if(o){const s=new Ow(this,r.current);s.matches.forEach((l,u)=>{var c,d,p;if(l.id!==((c=o.matches[u])==null?void 0:c.id)){var h;throw new Error("Router hydration mismatch: "+l.id+" !== "+((h=o.matches[u])==null?void 0:h.id))}l.ownData=(d=(p=o.matches[u])==null?void 0:p.ownData)!=null?d:{}}),vT(s.matches),a=s.matches}this.state={location:(n=o==null?void 0:o.location)!=null?n:r.current,matches:a},r.subscribe(()=>this.notify())}}function Sa(){const e=f.exports.useContext(dT);return ET(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class QF{constructor(t){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=n=>{var r;(r=this.matchLoader)==null||r.preNotify(n?this:void 0)},this.assignMatchLoader=n=>{this.matchLoader=n},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),this.route.pendingMs!==void 0&&(this.pendingTimeout=setTimeout(()=>{var n;this.status==="loading"&&(this.status="pending"),(n=this.notify)==null||n.call(this),typeof this.route.pendingMinMs<"u"&&(this.pendingMinPromise=new Promise(r=>setTimeout(r,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=n=>{var r,o;if(this.maxAge=(r=(o=n.maxAge)!=null?o:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const i=this.route.import;this.loaderPromise=(i?(()=>(this.isLoading=!0,i({params:this.params,search:this.search}).then(a=>{this.route=bn({},this.route,a)})))():Promise.resolve()).then(()=>{const a=[];["element","errorElement","pendingElement"].forEach(c=>{const d=this.route[c];this[c]||(typeof d=="function"?(this.isLoading=!0,a.push(d(this).then(p=>{this[c]=p}))):this[c]=this.route[c])});const l=this.route.loader,u=l?new Promise(async c=>{this.isLoading=!0;const d=v=>{this.updatedAt=Date.now(),c(this.ownData),this.status=v},p=v=>{this.ownData=v,this.error=void 0,d("resolved")},h=v=>{console.error(v),this.error=v,d("rejected")};try{p(await l(this,{parentMatch:n.parentMatch,dispatch:async v=>{var m;v.type==="resolve"?p(v.data):v.type==="reject"?h(v.error):v.type==="loading"?this.isLoading=!0:v.type==="maxAge"&&(this.maxAge=v.maxAge),this.updatedAt=Date.now(),(m=this.notify)==null||m.call(this,!0)}}))}catch(v){h(v)}}):Promise.resolve();return Promise.all([...a,u]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var c;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(c=this.notify)==null||c.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,t)}}class Ow extends Zg{constructor(t,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=i=>{i&&(this.preNotifiedMatches.includes(i)||this.preNotifiedMatches.push(i)),(!i||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",vT(this.matches),this.notify())},this.loadData=async function(i){var a;let{maxAge:s}=i===void 0?{}:i;if(r.router.cleanMatchCache(),!((a=r.matches)!=null&&a.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,u)=>{var c,d;const p=(c=r.matches)==null?void 0:c[u-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:s,parentMatch:p,router:r.router}),(d=r.firstRenderPromises)==null||d.push(l.loaderPromise)}),await Promise.all(r.firstRenderPromises).then(()=>(r.preNotify(),r.matches))},this.load=async function(i){let{maxAge:a}=i===void 0?{}:i;return await r.loadData({maxAge:a})},this.startPending=async()=>{this.matches.forEach(i=>i.startPending==null?void 0:i.startPending())},this.router=t,this.location=n,this.matches=[];const o=yT(this.router,this.location);this.matches=o==null?void 0:o.map(i=>(this.router.matchCache[i.id]||(this.router.matchCache[i.id]=new QF(i)),this.router.matchCache[i.id]))}}function vT(e){e==null||e.forEach((t,n)=>{var r;const o=e==null?void 0:e[n-1];t.data=bn({},(r=o==null?void 0:o.data)!=null?r:{},t.ownData)})}function gT(){const e=f.exports.useContext(pT);if(!e)throw ET(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function yT(e,t){if(!e.routes.length)return[];const n=[],r=async(o,i)=>{var a;let{pathname:s,params:l}=i;const c=(e!=null&&e.filterRoutes?e==null?void 0:e.filterRoutes(o):o).find(v=>{var m,w;const g=la([s,v.path]),y=!!(v.path!=="/"||(m=v.children)!=null&&m.length),x=t7(t,{to:g,search:v.search,fuzzy:y,caseSensitive:(w=v.caseSensitive)!=null?w:e.caseSensitive});return x&&(l=bn({},l,x)),!!x});if(!c)return;const d=Lw(c.path,l);s=la([s,d]);const h={id:Lw(c.id,l,!0),route:c,params:l,pathname:s,search:t.search};n.push(h),(a=c.children)!=null&&a.length&&r(c.children,h)};return r(e.routes,e.rootMatch),n}function Lw(e,t,n){const r=Qs(e);return la(r.map(o=>{if(o.value==="*"&&!n)return"";if(o.type==="param"){var i;return(i=t[o.value.substring(1)])!=null?i:""}return o.value}))}function xT(){return f.exports.useContext(fT)}function JF(){var e;return(e=xT())==null?void 0:e[0]}function wT(){const e=Sa(),t=JF(),n=_T();function r(o){var i;let{search:a,hash:s,replace:l,from:u,to:c,fromCurrent:d}=o;d=(i=d)!=null?i:typeof c>"u";const p=n({to:c,search:a,hash:s,from:d?e.current:u!=null?u:{pathname:t.pathname}});e.navigate(p,l)}return bT(r)}function _T(){const e=Sa(),t=gT();return bT(r=>{const o=e.buildNext(t.basepath,r),a=yT(t,o).map(s=>{var l;return(l=s.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,bn({},r,{__searchFilters:a}))})}function Qg(){var e;const t=gT(),[n,...r]=xT(),o=r[0];if(!o)return null;const i=(e=o.errorElement)!=null?e:t.defaultErrorElement,a=(()=>{var s,l;if(o.status==="rejected"){if(i)return i;if(!t.useErrorBoundary)return"An unknown error occured!";throw o.error}const u=(s=o.pendingElement)!=null?s:t.defaultPendingElement;if(o.status==="loading")return null;if(o.status==="pending"&&(o.route.pendingMs||u))return u!=null?u:null;const c=(l=o.element)!=null?l:t.defaultElement;return c!=null?c:D(Qg,{})})();return D(mT,{value:r,children:a})}function e7(){return Sa().current.search}function t7(e,t){const n=r7(e,t),r=o7(e,t);if(!(t.to&&!n)&&!(t.search&&!r))return n!=null?n:{}}function ET(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function n7(e){return typeof e=="function"}function Mw(e,t){return n7(e)?e(t):e}function la(e){return _f(e.filter(Boolean).join("/"))}function _f(e){return(""+e).replace(/\/{2,}/g,"/")}function r7(e,t){var n;const r=Qs(e.pathname),o=Qs(""+((n=t.to)!=null?n:"*")),i={};return(()=>{for(let s=0;s<Math.max(r.length,o.length);s++){const l=r[s],u=o[s],c=s===o.length-1,d=s===r.length-1;if(u){if(u.type==="wildcard")return l!=null&&l.value?(i["*"]=la(r.slice(s).map(p=>p.value)),!0):!1;if(u.type==="pathname"){if(u.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(t.caseSensitive){if(u.value!==l.value)return!1}else if(u.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;u.type==="param"&&(i[u.value.substring(1)]=l.value)}if(c&&!d)return!!t.fuzzy}return!0})()?i:void 0}function o7(e,t){return!!(t.search&&t.search(e.search))}function Qs(e){if(!e)return[];e=_f(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function i7(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=Qs(t);const o=Qs(n);o.forEach((a,s)=>{if(a.value==="/")s?s===o.length-1&&r.push(a):r=[a];else if(a.value==="..")r.pop();else{if(a.value===".")return;r.push(a)}});const i=la([e,...r.map(a=>a.value)]);return _f(i)}function bT(e){const t=f.exports.useRef(),n=f.exports.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function dv(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Dw(e)&&Dw(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=dv(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function Dw(e){if(!Nw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Nw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Nw(e){return Object.prototype.toString.call(e)==="[object Object]"}const a7=l7(JSON.parse),s7=u7(JSON.stringify);function l7(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));let n=HF(t);for(let r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch(i){}}return n}}function u7(e){return t=>{t=bn({},t),t&&Object.keys(t).forEach(r=>{const o=t[r];if(typeof o>"u"||o===void 0)delete t[r];else if(o&&typeof o=="object"&&o!==null)try{t[r]=e(o)}catch(i){}});const n=VF(t).toString();return n?"?"+n:""}}function fv(e,t){return fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},fv(e,t)}function c7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fv(e,t)}var d7=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},Fw={error:null},f7=function(e){c7(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=Fw,r.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(Fw)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&d7(o.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,l=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(f.exports.isValidElement(l))return l;if(typeof a=="function")return a(u);if(s)return D(s,{...u});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(f.exports.Component);class Ef{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Jg=typeof window>"u";function mn(){}function p7(e,t){return typeof e=="function"?e(t):e}function h7(e){return typeof e=="number"&&e>=0&&e!==1/0}function m7(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Up(e,t,n){return bf(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lr(e,t,n){return bf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Iw(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(bf(a)){if(r){if(t.queryHash!==e1(a,t.options))return!1}else if(!Uc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function jw(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(bf(i)){if(!t.options.mutationKey)return!1;if(n){if(No(t.options.mutationKey)!==No(i))return!1}else if(!Uc(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function e1(e,t){return((t==null?void 0:t.queryKeyHashFn)||No)(e)}function No(e){return JSON.stringify(e,(t,n)=>pv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Uc(e,t){return ST(e,t)}function ST(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ST(e[n],t[n])):!1}function CT(e,t){if(e===t)return e;const n=zw(e)&&zw(t);if(n||pv(e)&&pv(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=CT(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function dee(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pv(e){if(!Bw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Bw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Bw(e){return Object.prototype.toString.call(e)==="[object Object]"}function bf(e){return Array.isArray(e)}function AT(e){return new Promise(t=>{setTimeout(t,e)})}function Vw(e){AT(0).then(e)}function v7(){if(typeof AbortController=="function")return new AbortController}function g7(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?CT(e,t):t}class y7 extends Ef{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const hv=new y7;class x7 extends Ef{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Gc=new x7;function w7(e){return Math.min(1e3*2**e,3e4)}function t1(e){return(e!=null?e:"online")==="online"?Gc.isOnline():!0}class TT{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Gp(e){return e instanceof TT}function $T(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((w,g)=>{i=w,a=g}),l=w=>{r||(h(new TT(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!hv.isFocused()||e.networkMode!=="always"&&!Gc.isOnline(),p=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),a(w))},v=()=>new Promise(w=>{o=g=>{if(r||!d())return w(g)},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let w;try{w=e.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(p).catch(g=>{var y,x;if(r)return;const _=(y=e.retry)!=null?y:3,E=(x=e.retryDelay)!=null?x:w7,b=typeof E=="function"?E(n,g):E,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,g);if(t||!S){h(g);return}n++,e.onFail==null||e.onFail(n,g),AT(b).then(()=>{if(d())return v()}).then(()=>{t?h(g):m()})})};return t1(e.networkMode)?m():v().then(m),{promise:s,cancel:l,continue:()=>{o==null||o()},cancelRetry:u,continueRetry:c}}const n1=console;function _7(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},i=c=>{t?e.push(c):Vw(()=>{n(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&Vw(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Tt=_7();class kT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),h7(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Jg?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class E7 extends kT{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||n1,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||b7(this.options),this.state=this.initialState,this.meta=t.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.meta=t==null?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=g7(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(mn).catch(mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!m7(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const a=v7(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u,meta:this.meta};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(Gp(h)&&h.silent||this.dispatch({type:"error",error:h}),!Gp(h)){var v,m;(v=(m=this.cache.config).onError)==null||v.call(m,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=$T({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:h=>{var v,m;if(typeof h>"u"){p(new Error("Query data cannot be undefined"));return}this.setData(h),(v=(m=this.cache.config).onSuccess)==null||v.call(m,h,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:r.fetchFailureCount+1};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:t1(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const a=t.error;return Gp(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function b7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof e.initialData<"u"?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o=typeof t<"u";return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:o?"success":"loading",fetchStatus:"idle"}}class S7 extends Ef{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:e1(i,n);let s=this.get(a);return s||(s=new E7({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i),meta:n.meta}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Lr(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>Iw(r,o))}findAll(t,n){const[r]=Lr(t,n);return Object.keys(r).length>0?this.queries.filter(o=>Iw(r,o)):this.queries}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class C7 extends kT{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||n1,this.observers=[],this.state=t.state||A7(),this.meta=t.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var x;return this.retryer=$T({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l;if(!n){var u,c,d,p;this.dispatch({type:"loading",variables:this.options.variables}),(u=(c=this.mutationCache.config).onMutate)==null||u.call(c,this.state.variables,this);const _=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));_!==this.state.context&&this.dispatch({type:"loading",context:_,variables:this.state.variables})}const x=await t();return(r=(o=this.mutationCache.config).onSuccess)==null||r.call(o,x,this.state.variables,this.state.context,this),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,x,this.state.variables,this.state.context)),await((s=(l=this.options).onSettled)==null?void 0:s.call(l,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var h,v,m,w,g,y;throw(h=(v=this.mutationCache.config).onError)==null||h.call(v,x,this.state.variables,this.state.context,this),await((m=(w=this.options).onError)==null?void 0:m.call(w,x,this.state.variables,this.state.context)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:r.failureCount+1};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,error:null,isPaused:!t1(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function A7(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class T7 extends Ef{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new C7({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Tt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>jw(t,n))}findAll(t){return this.mutations.filter(n=>jw(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return Tt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(mn)),Promise.resolve()))}}function $7(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=h,m=!1;const w=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)m=!0;else{var C;(C=e.signal)==null||C.addEventListener("abort",()=>{m=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),y=(b,S,C,$)=>(v=$?[S,...v]:[...v,S],$?[C,...b]:[...b,C]),x=(b,S,C,$)=>{if(m)return Promise.reject("Cancelled");if(typeof C>"u"&&!S&&b.length)return Promise.resolve(b);const T={queryKey:e.queryKey,pageParam:C,meta:e.meta};w(T);const F=g(T);return Promise.resolve(F).then(U=>y(b,C,U,$))};let _;if(!p.length)_=x([]);else if(c){const b=typeof u<"u",S=b?u:Hw(e.options,p);_=x(p,b,S)}else if(d){const b=typeof u<"u",S=b?u:k7(e.options,p);_=x(p,b,S,!0)}else{v=[];const b=typeof e.options.getNextPageParam>"u";_=(s&&p[0]?s(p[0],0,p):!0)?x([],b,h[0]):Promise.resolve(y([],h[0],p[0]));for(let C=1;C<p.length;C++)_=_.then($=>{if(s&&p[C]?s(p[C],C,p):!0){const F=b?h[C]:Hw(e.options,$);return x($,b,F)}return Promise.resolve(y($,h[C],p[C]))})}return _.then(b=>({pages:b,pageParams:v}))}}}}function Hw(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function k7(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class R7{constructor(t={}){this.queryCache=t.queryCache||new S7,this.mutationCache=t.mutationCache||new T7,this.logger=t.logger||n1,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=hv.subscribe(()=>{hv.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Gc.subscribe(()=>{Gc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var t,n;(t=this.unsubscribeFocus)==null||t.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(t,n){const[r]=Lr(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=p7(n,i);if(typeof a>"u")return;const s=Up(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Tt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Lr(t,n),o=this.queryCache;Tt.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Lr(t,n,r),a=this.queryCache,s={type:"active",...o};return Tt.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Lr(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Tt.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(mn).catch(mn)}invalidateQueries(t,n,r){const[o,i]=Lr(t,n,r);return Tt.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=Lr(t,n,r),a=Tt.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(mn);return i!=null&&i.throwOnError||(s=s.catch(mn)),s}fetchQuery(t,n,r){const o=Up(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(mn).catch(mn)}fetchInfiniteQuery(t,n,r){const o=Up(t,n,r);return o.behavior=$7(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(mn).catch(mn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>No(t)===No(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Uc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>No(t)===No(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Uc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=e1(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const Uw=f.exports.createContext(void 0),RT=f.exports.createContext(!1);function PT(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Uw),window.ReactQueryClientContext):Uw)}const fee=({context:e}={})=>{const t=f.exports.useContext(PT(e,f.exports.useContext(RT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},P7=({client:e,children:t,context:n,contextSharing:r=!1})=>{f.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=PT(n,r);return D(RT.Provider,{value:!n&&r,children:D(o.Provider,{value:e,children:t})})},O7="modulepreload",L7=function(e){return"/sdks-app/v1/"+e},Gw={},ua=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=L7(o),o in Gw)return;Gw[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${a}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":O7,i||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),i)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};var mv=(e=>(e.LOCAL_CONTENT="local-content",e.DATA_EXPLORER="data-explorer",e))(mv||{});const M7=new qF,D7=J.lazy(()=>ua(()=>import("./index.59699164.js").then(e=>e.q),["assets/index.59699164.js","assets/chevron_right.ed021687.js","assets/chevron_right.08649806.css"])),N7=J.lazy(()=>ua(()=>import("./index.fcbca47f.js"),["assets/index.fcbca47f.js","assets/chevron_right.ed021687.js","assets/chevron_right.08649806.css"])),F7=({children:e})=>{const t=[{path:`/sdks-app/v1/${mv.LOCAL_CONTENT}`,element:D(D7,{})},{path:`/sdks-app/v1/${mv.DATA_EXPLORER}`,element:D(N7,{})}];return D(KF,{location:M7,routes:t,children:e})};var I7=Object.defineProperty,j7=(e,t,n)=>t in e?I7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t,n)=>(j7(e,typeof t!="symbol"?t+"":t,n),n);const z7="CONNECT",B7="DEFAULT";function V7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var OT={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(w,g,y)=>g in w?n(w,g,{enumerable:!0,configurable:!0,writable:!0,value:y}):w[g]=y,s=(w,g)=>{for(var y in g||(g={}))o.call(g,y)&&a(w,y,g[y]);if(r)for(var y of r(g))i.call(g,y)&&a(w,y,g[y]);return w},l=w=>n(w,"__esModule",{value:!0}),u=(w,g)=>{l(w);for(var y in g)n(w,y,{get:g[y],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>p,default:()=>m});var d="4.4.4",p=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:p},v=class extends Function{constructor(w={}){super(),this.dictIndex=0,this.dictRange=[],this.lowerBound=0,this.upperBound=0,this.dictLength=0,this._digit_first_ascii=48,this._digit_last_ascii=58,this._alpha_lower_first_ascii=97,this._alpha_lower_last_ascii=123,this._hex_last_ascii=103,this._alpha_upper_first_ascii=65,this._alpha_upper_last_ascii=91,this._number_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii]},this._alpha_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alpha_lower_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alpha_upper_dict_ranges={upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_lower_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alphanum_upper_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._hex_dict_ranges={decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]},this.log=(...E)=>{const b=[...E];if(b[0]=`[short-unique-id] ${E[0]}`,this.debug===!0&&typeof console<"u"&&console!==null)return console.log(...b)},this.setDictionary=(E,b)=>{let S;if(E&&Array.isArray(E)&&E.length>1)S=E;else{S=[];let C;this.dictIndex=C=0;const $=`_${E}_dict_ranges`,T=this[$];Object.keys(T).forEach(F=>{const N=F;for(this.dictRange=T[N],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=C=this.lowerBound;this.lowerBound<=this.upperBound?C<this.upperBound:C>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?C+=1:C-=1)S.push(String.fromCharCode(this.dictIndex))})}b&&(S=S.sort(()=>Math.random()-.5)),this.dict=S,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let E,b,S="";E=this.counter;do b=E%this.dictLength,E=Math.trunc(E/this.dictLength),S+=this.dict[b];while(E!==0);return this.counter+=1,S},this.randomUUID=(E=this.uuidLength||p)=>{let b,S,C;if(E===null||typeof E>"u"||E<1)throw new Error("Invalid UUID Length Provided");for(b="",C=0;C<E;C+=1)S=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,b+=this.dict[S];return b},this.availableUUIDs=(E=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,E).toFixed(0)),this.approxMaxBeforeCollision=(E=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*E).toFixed(20)),this.collisionProbability=(E=this.availableUUIDs(this.uuidLength),b=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(E)/this.availableUUIDs(b)).toFixed(20)),this.uniqueness=(E=this.availableUUIDs(this.uuidLength))=>{const b=parseFloat((1-this.approxMaxBeforeCollision(E)/E).toFixed(20));return b>1?1:b<0?0:b},this.getVersion=()=>this.version,this.stamp=E=>{if(typeof E!="number"||E<10)throw new Error("Param finalLength must be number greater than 10");const b=Math.floor(+new Date/1e3).toString(16),S=E-9,C=Math.round(Math.random()*(S>15?15:S)),$=this.randomUUID(S);return`${$.substr(0,C)}${b}${$.substr(C)}${C.toString(16)}`},this.parseStamp=E=>{if(E.length<10)throw new Error("Stamp length invalid");const b=parseInt(E.substr(E.length-1,1),16);return new Date(parseInt(E.substr(b,8),16)*1e3)};const g=s(s({},h),w);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:y,shuffle:x,length:_}=g;return this.uuidLength=_,this.setDictionary(y,x),this.debug=g.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},m=v;return m.default=v,c})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(OT);const H7=V7(OT.exports),Yw=new H7({length:10});class r1{constructor(t,n){Sr(this,"connection"),Sr(this,"channelId"),Sr(this,"boundMessageHandler"),Sr(this,"onMessageHandlers",[]),Sr(this,"resolveConnection"),Sr(this,"channelNodeId"),Sr(this,"crossOrigin"),Sr(this,"message",(r,o,i)=>this.crossOrigin?this.postMessage(r,o,i):this.customEventMessage(r,o,i)),this.channelId=t!=null?t:B7,this.channelNodeId=`channel-node-${Yw()}`,this.crossOrigin=n,this.connection=new Promise(r=>{this.resolveConnection=r}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(t=>{this.resolveConnection=t})}onMessage(t){this.onMessageHandlers.push(t)}removeMessageHandler(t){const n=this.onMessageHandlers.findIndex(r=>r===t);this.onMessageHandlers.splice(n,1)}customEventMessage(t,n,r){const o=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(o)}postMessage(t,n,r){var o,i,a;(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(i=this.crossOrigin)==null?void 0:i.targetOrigin)}async eventRequest(t,n){const r=Yw();return new Promise(o=>{const i=a=>{const{eventId:s}=a;r===s&&(this.removeMessageHandler(i),o(a))};this.onMessage(i),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=o=>{const{name:i}=o;t===i&&(this.removeMessageHandler(r),n(o))};this.onMessage(r)})}handleMessage(t){var n;let r;if(r1.isCustomEvent(t))r=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=t.data}const{channelId:o,channelNodeId:i}=r;this.channelId===o&&this.channelNodeId!==i&&this.onMessageHandlers.forEach(a=>{a(r)})}static isCustomEvent(t){return t.detail!==void 0}}class U7 extends r1{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(z7).then(t=>{this.resolveConnection(t)}),this.connection}}var G7="Expected a function",Ww=1/0,Y7=17976931348623157e292,qw=0/0,W7="[object Symbol]",q7=/^\s+|\s+$/g,K7=/^[-+]0x[0-9a-f]+$/i,X7=/^0b[01]+$/i,Z7=/^0o[0-7]+$/i,Q7=parseInt,J7=Object.prototype,eI=J7.toString;function tI(e,t){var n;if(typeof t!="function")throw new TypeError(G7);return e=aI(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function nI(e){return tI(2,e)}function Kw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function rI(e){return!!e&&typeof e=="object"}function oI(e){return typeof e=="symbol"||rI(e)&&eI.call(e)==W7}function iI(e){if(!e)return e===0?e:0;if(e=sI(e),e===Ww||e===-Ww){var t=e<0?-1:1;return t*Y7}return e===e?e:0}function aI(e){var t=iI(e),n=t%1;return t===t?n?t-n:t:0}function sI(e){if(typeof e=="number")return e;if(oI(e))return qw;if(Kw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(q7,"");var n=X7.test(e);return n||Z7.test(e)?Q7(e.slice(2),n?2:8):K7.test(e)?qw:+e}var LT=nI;const Yp=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function vv(e,...t){if(!t.length)return e;const n=t.shift();return Yp(e)&&Yp(n)&&Object.keys(n).forEach(r=>{Yp(n[r])?(e[r]||Object.assign(e,{[r]:{}}),vv(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),vv(e,...t)}const lI=e=>{const t=f.exports.useRef(e),n=f.exports.useRef(),r=f.exports.useRef(!1),o=f.exports.useRef(!1),[,i]=f.exports.useState(0);r.current&&(o.current=!0),f.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),i(a=>a+1),()=>{!o.current||n.current&&n.current()}),[])},uI=(e,t)=>{const[n,r]=f.exports.useState(e);return f.exports.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n};var Qa=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(Qa||{});const cI={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},dI={},Xw={locale:"en"},fI={"local-content":{globalOptions:Xw,options:cI},"data-explorer":{globalOptions:Xw,options:dI}},MT=LT(()=>J.createContext({})),DT=()=>{const e=J.useContext(MT());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},NT=J.memo(({children:e})=>{const t=MT(),n=e7(),r=J.useRef(n),i=Sa().current.pathname.split("/"),a=i[i.length-1],s=fI[a],l=J.useRef(),[u,c]=f.exports.useState(!1),[d,p]=f.exports.useState(s),h=uI(d,500),v=wT(),m=x=>{r.current=x,p(x)},w=x=>{var _;x.name===Qa.GET_STATE&&((_=l.current)==null||_.message(Qa.GET_STATE_RESPONSE,r.current,x.eventId)),x.name===Qa.SET_STATE&&m(x.data)};lI(()=>{const x=new U7(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=x,x==null||x.onMessage(w),x==null||x.connect().then(_=>{const E=vv(d,_.data);m(E),c(!0)})});const g=x=>{var _;(_=l.current)==null||_.message(Qa.ON_CHANGE,x)};f.exports.useEffect(()=>{v({search:()=>h})},[h]),f.exports.useEffect(()=>{d.options&&g({type:"options",data:d.options})},[d.options]);const y=f.exports.useMemo(()=>({sdkState:d,setSdkState:m,onChange:g}),[d,m,g]);return u?D(t.Provider,{value:y,children:e}):null});NT.displayName="StateManagerProvider";const pI={en:()=>ua(()=>import("./index.9276bc44.js"),[]),fr:()=>ua(()=>import("./index.4b180792.js"),[])},hI={en:()=>ua(()=>import("./index.fe0fe532.js"),[]),fr:()=>ua(()=>import("./index.e82abb8d.js"),[])},mI={"local-content":e=>hI[e](),"data-explorer":e=>pI[e]()},FT=LT(()=>J.createContext({})),pee=()=>{const e=f.exports.useContext(FT());if(!e)throw new Error("useLangauges must be used under LanguagesProvider");return e},vI=({children:e})=>{var p;const[t,n]=f.exports.useState(!0),[r,o]=f.exports.useState(),{sdkState:i}=DT(),a=((p=i.globalOptions)==null?void 0:p.locale)||"en",s=FT(),u=Sa().current.pathname.split("/"),c=u[u.length-1],d=mI[c];if(f.exports.useEffect(()=>{n(!0),d(a).then(h=>{o(h.translations)}).finally(()=>{n(!1)})},[a,d]),t)return null;if(!r)throw new Error("No translations were found.");return D(s.Provider,{value:{translations:r},children:e})};var IT={exports:{}},o1={exports:{}},jT=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}},gI=jT,yo=Object.prototype.toString;function i1(e){return Array.isArray(e)}function gv(e){return typeof e>"u"}function yI(e){return e!==null&&!gv(e)&&e.constructor!==null&&!gv(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function zT(e){return yo.call(e)==="[object ArrayBuffer]"}function xI(e){return yo.call(e)==="[object FormData]"}function wI(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zT(e.buffer),t}function _I(e){return typeof e=="string"}function EI(e){return typeof e=="number"}function BT(e){return e!==null&&typeof e=="object"}function Gu(e){if(yo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function bI(e){return yo.call(e)==="[object Date]"}function SI(e){return yo.call(e)==="[object File]"}function CI(e){return yo.call(e)==="[object Blob]"}function VT(e){return yo.call(e)==="[object Function]"}function AI(e){return BT(e)&&VT(e.pipe)}function TI(e){return yo.call(e)==="[object URLSearchParams]"}function $I(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kI(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function a1(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),i1(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function yv(){var e={};function t(o,i){Gu(e[i])&&Gu(o)?e[i]=yv(e[i],o):Gu(o)?e[i]=yv({},o):i1(o)?e[i]=o.slice():e[i]=o}for(var n=0,r=arguments.length;n<r;n++)a1(arguments[n],t);return e}function RI(e,t,n){return a1(t,function(o,i){n&&typeof o=="function"?e[i]=gI(o,n):e[i]=o}),e}function PI(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Bt={isArray:i1,isArrayBuffer:zT,isBuffer:yI,isFormData:xI,isArrayBufferView:wI,isString:_I,isNumber:EI,isObject:BT,isPlainObject:Gu,isUndefined:gv,isDate:bI,isFile:SI,isBlob:CI,isFunction:VT,isStream:AI,isURLSearchParams:TI,isStandardBrowserEnv:kI,forEach:a1,merge:yv,extend:RI,trim:$I,stripBOM:PI},ai=Bt;function Zw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var HT=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(ai.isURLSearchParams(n))o=n.toString();else{var i=[];ai.forEach(n,function(l,u){l===null||typeof l>"u"||(ai.isArray(l)?u=u+"[]":l=[l],ai.forEach(l,function(d){ai.isDate(d)?d=d.toISOString():ai.isObject(d)&&(d=JSON.stringify(d)),i.push(Zw(u)+"="+Zw(d))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},OI=Bt;function Sf(){this.handlers=[]}Sf.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Sf.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Sf.prototype.forEach=function(t){OI.forEach(this.handlers,function(r){r!==null&&t(r)})};var LI=Sf,MI=Bt,DI=function(t,n){MI.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},UT=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},GT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wp,Qw;function YT(){if(Qw)return Wp;Qw=1;var e=UT;return Wp=function(n,r,o,i,a){var s=new Error(n);return e(s,r,o,i,a)},Wp}var qp,Jw;function NI(){if(Jw)return qp;Jw=1;var e=YT();return qp=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},qp}var Kp,e_;function FI(){if(e_)return Kp;e_=1;var e=Bt;return Kp=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,a,s,l){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Kp}var Xp,t_;function II(){return t_||(t_=1,Xp=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Xp}var Zp,n_;function jI(){return n_||(n_=1,Zp=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Zp}var Qp,r_;function zI(){if(r_)return Qp;r_=1;var e=II(),t=jI();return Qp=function(r,o){return r&&!e(o)?t(r,o):o},Qp}var Jp,o_;function BI(){if(o_)return Jp;o_=1;var e=Bt,t=["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"];return Jp=function(r){var o={},i,a,s;return r&&e.forEach(r.split(`
485
485
  `),function(u){if(s=u.indexOf(":"),i=e.trim(u.substr(0,s)).toLowerCase(),a=e.trim(u.substr(s+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a}}),o},Jp}var eh,i_;function VI(){if(i_)return eh;i_=1;var e=Bt;return eh=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),eh}var th,a_;function Cf(){if(a_)return th;a_=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,th=e,th}var nh,s_;function l_(){if(s_)return nh;s_=1;var e=Bt,t=NI(),n=FI(),r=HT,o=zI(),i=BI(),a=VI(),s=YT(),l=GT,u=Cf();return nh=function(d){return new Promise(function(h,v){var m=d.data,w=d.headers,g=d.responseType,y;function x(){d.cancelToken&&d.cancelToken.unsubscribe(y),d.signal&&d.signal.removeEventListener("abort",y)}e.isFormData(m)&&delete w["Content-Type"];var _=new XMLHttpRequest;if(d.auth){var E=d.auth.username||"",b=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";w.Authorization="Basic "+btoa(E+":"+b)}var S=o(d.baseURL,d.url);_.open(d.method.toUpperCase(),r(S,d.params,d.paramsSerializer),!0),_.timeout=d.timeout;function C(){if(!!_){var T="getAllResponseHeaders"in _?i(_.getAllResponseHeaders()):null,F=!g||g==="text"||g==="json"?_.responseText:_.response,N={data:F,status:_.status,statusText:_.statusText,headers:T,config:d,request:_};t(function(B){h(B),x()},function(B){v(B),x()},N),_=null}}if("onloadend"in _?_.onloadend=C:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(C)},_.onabort=function(){!_||(v(s("Request aborted",d,"ECONNABORTED",_)),_=null)},_.onerror=function(){v(s("Network Error",d,null,_)),_=null},_.ontimeout=function(){var F=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",N=d.transitional||l;d.timeoutErrorMessage&&(F=d.timeoutErrorMessage),v(s(F,d,N.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},e.isStandardBrowserEnv()){var $=(d.withCredentials||a(S))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;$&&(w[d.xsrfHeaderName]=$)}"setRequestHeader"in _&&e.forEach(w,function(F,N){typeof m>"u"&&N.toLowerCase()==="content-type"?delete w[N]:_.setRequestHeader(N,F)}),e.isUndefined(d.withCredentials)||(_.withCredentials=!!d.withCredentials),g&&g!=="json"&&(_.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&_.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(y=function(T){!_||(v(!T||T&&T.type?new u("canceled"):T),_.abort(),_=null)},d.cancelToken&&d.cancelToken.subscribe(y),d.signal&&(d.signal.aborted?y():d.signal.addEventListener("abort",y))),m||(m=null),_.send(m)})},nh}var ft=Bt,u_=DI,HI=UT,UI=GT,GI={"Content-Type":"application/x-www-form-urlencoded"};function c_(e,t){!ft.isUndefined(e)&&ft.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function YI(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=l_()),e}function WI(e,t,n){if(ft.isString(e))try{return(t||JSON.parse)(e),ft.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Af={transitional:UI,adapter:YI(),transformRequest:[function(t,n){return u_(n,"Accept"),u_(n,"Content-Type"),ft.isFormData(t)||ft.isArrayBuffer(t)||ft.isBuffer(t)||ft.isStream(t)||ft.isFile(t)||ft.isBlob(t)?t:ft.isArrayBufferView(t)?t.buffer:ft.isURLSearchParams(t)?(c_(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):ft.isObject(t)||n&&n["Content-Type"]==="application/json"?(c_(n,"application/json"),WI(t)):t}],transformResponse:[function(t){var n=this.transitional||Af.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&ft.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?HI(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ft.forEach(["delete","get","head"],function(t){Af.headers[t]={}});ft.forEach(["post","put","patch"],function(t){Af.headers[t]=ft.merge(GI)});var s1=Af,qI=Bt,KI=s1,XI=function(t,n,r){var o=this||KI;return qI.forEach(r,function(a){t=a.call(o,t,n)}),t},rh,d_;function WT(){return d_||(d_=1,rh=function(t){return!!(t&&t.__CANCEL__)}),rh}var f_=Bt,oh=XI,ZI=WT(),QI=s1,JI=Cf();function ih(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new JI("canceled")}var ej=function(t){ih(t),t.headers=t.headers||{},t.data=oh.call(t,t.data,t.headers,t.transformRequest),t.headers=f_.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),f_.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||QI.adapter;return n(t).then(function(o){return ih(t),o.data=oh.call(t,o.data,o.headers,t.transformResponse),o},function(o){return ZI(o)||(ih(t),o&&o.response&&(o.response.data=oh.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},Vt=Bt,qT=function(t,n){n=n||{};var r={};function o(c,d){return Vt.isPlainObject(c)&&Vt.isPlainObject(d)?Vt.merge(c,d):Vt.isPlainObject(d)?Vt.merge({},d):Vt.isArray(d)?d.slice():d}function i(c){if(Vt.isUndefined(n[c])){if(!Vt.isUndefined(t[c]))return o(void 0,t[c])}else return o(t[c],n[c])}function a(c){if(!Vt.isUndefined(n[c]))return o(void 0,n[c])}function s(c){if(Vt.isUndefined(n[c])){if(!Vt.isUndefined(t[c]))return o(void 0,t[c])}else return o(void 0,n[c])}function l(c){if(c in n)return o(t[c],n[c]);if(c in t)return o(void 0,t[c])}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return Vt.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var p=u[d]||i,h=p(d);Vt.isUndefined(h)&&p!==l||(r[d]=h)}),r},ah,p_;function KT(){return p_||(p_=1,ah={version:"0.26.1"}),ah}var tj=KT().version,l1={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){l1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var h_={};l1.transitional=function(t,n,r){function o(i,a){return"[Axios v"+tj+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new Error(o(a," has been removed"+(n?" in "+n:"")));return n&&!h_[a]&&(h_[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function nj(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+i)}}var rj={assertOptions:nj,validators:l1},XT=Bt,oj=HT,m_=LI,v_=ej,Tf=qT,ZT=rj,si=ZT.validators;function _l(e){this.defaults=e,this.interceptors={request:new m_,response:new m_}}_l.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tf(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&ZT.assertOptions(r,{silentJSONParsing:si.transitional(si.boolean),forcedJSONParsing:si.transitional(si.boolean),clarifyTimeoutError:si.transitional(si.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(i=i&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});var a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected)});var s;if(!i){var l=[v_,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var u=n;o.length;){var c=o.shift(),d=o.shift();try{u=c(u)}catch(p){d(p);break}}try{s=v_(u)}catch(p){return Promise.reject(p)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};_l.prototype.getUri=function(t){return t=Tf(this.defaults,t),oj(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};XT.forEach(["delete","get","head","options"],function(t){_l.prototype[t]=function(n,r){return this.request(Tf(r||{},{method:t,url:n,data:(r||{}).data}))}});XT.forEach(["post","put","patch"],function(t){_l.prototype[t]=function(n,r,o){return this.request(Tf(o||{},{method:t,url:n,data:r}))}});var ij=_l,sh,g_;function aj(){if(g_)return sh;g_=1;var e=Cf();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a});var o=this;this.promise.then(function(i){if(!!o._listeners){var a,s=o._listeners.length;for(a=0;a<s;a++)o._listeners[a](i);o._listeners=null}}),this.promise.then=function(i){var a,s=new Promise(function(l){o.subscribe(l),a=l}).then(i);return s.cancel=function(){o.unsubscribe(a)},s},n(function(a){o.reason||(o.reason=new e(a),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(!!this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(a){r=a});return{token:o,cancel:r}},sh=t,sh}var lh,y_;function sj(){return y_||(y_=1,lh=function(t){return function(r){return t.apply(null,r)}}),lh}var uh,x_;function lj(){if(x_)return uh;x_=1;var e=Bt;return uh=function(n){return e.isObject(n)&&n.isAxiosError===!0},uh}var w_=Bt,uj=jT,Yu=ij,cj=qT,dj=s1;function QT(e){var t=new Yu(e),n=uj(Yu.prototype.request,t);return w_.extend(n,Yu.prototype,t),w_.extend(n,t),n.create=function(o){return QT(cj(e,o))},n}var Gn=QT(dj);Gn.Axios=Yu;Gn.Cancel=Cf();Gn.CancelToken=aj();Gn.isCancel=WT();Gn.VERSION=KT().version;Gn.all=function(t){return Promise.all(t)};Gn.spread=sj();Gn.isAxiosError=lj();o1.exports=Gn;o1.exports.default=Gn;(function(e){e.exports=o1.exports})(IT);const JT=u0(IT.exports),fj=(e,t)=>JT.create({baseURL:"https://api.locallogic.co/v3/",headers:{Accept:"application/json",Authorization:e},params:t});var xv;(function(e){e[e.groceries=0]="groceries",e[e.groceries_specialized=1]="groceries_specialized",e[e.shopping=2]="shopping",e[e.nightlife=3]="nightlife",e[e.restaurants=4]="restaurants",e[e.cafes=5]="cafes",e[e.daycares=6]="daycares",e[e.bus_stops=7]="bus_stops",e[e.rapid_transit_stations=8]="rapid_transit_stations",e[e.train_stations=9]="train_stations",e[e.parks=10]="parks",e[e.healthy_restaurants=11]="healthy_restaurants",e[e.fitness=12]="fitness",e[e.sport_facilities=13]="sport_facilities",e[e.health_care=14]="health_care",e[e.pet_care=15]="pet_care",e[e.car_fueling_stations=16]="car_fueling_stations",e[e.art_culture_science=17]="art_culture_science",e[e.home_improvement=18]="home_improvement",e[e.personal_care=19]="personal_care"})(xv||(xv={}));const pj="/pois";function Qo(e){this._maxSize=e,this.clear()}Qo.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Qo.prototype.get=function(e){return this._values[e]};Qo.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var hj=/[^.^\]^[]+|(?=\[\]|\.\.)/g,e5=/^\d+$/,mj=/^\d/,vj=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,gj=/^\s*(['"]?)(.*?)(\1)\s*$/,u1=512,__=new Qo(u1),E_=new Qo(u1),b_=new Qo(u1),Bo={Cache:Qo,split:wv,normalizePath:ch,setter:function(e){var t=ch(e);return E_.get(e)||E_.set(e,function(r,o){for(var i=0,a=t.length,s=r;i<a-1;){var l=t[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;s=s[t[i++]]}s[t[i]]=o})},getter:function(e,t){var n=ch(e);return b_.get(e)||b_.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(c1(n)||e5.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){yj(Array.isArray(e)?e:wv(e),t,n)}};function ch(e){return __.get(e)||__.set(e,wv(e).map(function(t){return t.replace(gj,"$2")}))}function wv(e){return e.match(hj)||[""]}function yj(e,t,n){var r=e.length,o,i,a,s;for(i=0;i<r;i++)o=e[i],o&&(_j(o)&&(o='"'+o+'"'),s=c1(o),a=!s&&/^\d+$/.test(o),t.call(n,o,s,a,i,e))}function c1(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function xj(e){return e.match(mj)&&!e.match(e5)}function wj(e){return vj.test(e)}function _j(e){return!c1(e)&&(xj(e)||wj(e))}const Ej=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,$f=e=>e.match(Ej)||[],kf=e=>e[0].toUpperCase()+e.slice(1),d1=(e,t)=>$f(e).join(t).toLowerCase(),t5=e=>$f(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),bj=e=>kf(t5(e)),Sj=e=>d1(e,"_"),Cj=e=>d1(e,"-"),Aj=e=>kf(d1(e," ")),Tj=e=>$f(e).map(kf).join(" ");var dh={words:$f,upperFirst:kf,camelCase:t5,pascalCase:bj,snakeCase:Sj,kebabCase:Cj,sentenceCase:Aj,titleCase:Tj},f1={exports:{}};f1.exports=function(e){return n5($j(e),e)};f1.exports.array=n5;function n5(e,t){var n=e.length,r=new Array(n),o={},i=n,a=kj(t),s=Rj(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(u,c,d){if(d.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch(m){p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[c]){o[c]=!0;var h=a.get(u)||new Set;if(h=Array.from(h),c=h.length){d.add(u);do{var v=h[--c];l(v,s.get(v),d)}while(c);d.delete(u)}r[--n]=u}}}function $j(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function kj(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function Rj(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}const Pj=Object.prototype.toString,Oj=Error.prototype.toString,Lj=RegExp.prototype.toString,Mj=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Dj=/^Symbol\((.*)\)(.*)$/;function Nj(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function S_(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Nj(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Mj.call(e).replace(Dj,"Symbol($1)");const r=Pj.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Oj.call(e)+"]":r==="RegExp"?Lj.call(e):null}function Vo(e,t){let n=S_(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=S_(this[r],t);return i!==null?i:o},2)}function r5(e){return e==null?[]:[].concat(e)}let Fj=/\$\{\s*(\w+)\s*\}/g;class Mt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(Fj,(o,i)=>Vo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],r5(t).forEach(i=>{Mt.isError(i)?(this.errors.push(...i.errors),this.inner=this.inner.concat(i.inner.length?i.inner:i)):this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Mt)}}let Xn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Vo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Vo(n,!0)}\``+o}},pn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ar={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},_v={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Ev={isValue:"${path} field must be ${value}"},bv={noUnknown:"${path} field has unspecified keys: ${unknown}"},Wu={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Xn,string:pn,number:Ar,date:_v,object:bv,array:Wu,boolean:Ev});const Rf=e=>e&&e.__isYupSchema__;class Yc{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new Yc(t,(s,l)=>{var u;let c=a(...s)?o:i;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!Rf(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}function Ij(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const fu={context:"$",value:"."};class nr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===fu.context,this.isValue=this.key[0]===fu.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?fu.context:this.isValue?fu.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Bo.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}nr.prototype.__isYupRef=!0;const nn=e=>e==null,jj=["value","path","label","options","originalValue","spec","sync"];function li(e){function t(n,r,o){let{value:i,path:a="",label:s,options:l,originalValue:u,spec:c,sync:d}=n,p=Ij(n,jj);const{name:h,test:v,params:m,message:w,skipAbsent:g}=e;let{parent:y,context:x,abortEarly:_=p.schema.spec.abortEarly}=l;function E(B){return nr.isRef(B)?B.getValue(i,y,x):B}function b(B={}){const te=Object.assign({value:i,originalValue:u,label:s,path:B.path||a,spec:c},m,B.params);for(const ie of Object.keys(te))te[ie]=E(te[ie]);const ue=new Mt(Mt.formatError(B.message||w,te),i,te.path,B.type||h);return ue.params=te,ue}const S=_?r:o;let C=Object.assign({path:a,parent:y,type:h,createError:b,resolve:E,options:l,originalValue:u},p);const $=B=>{Mt.isError(B)?S(B):B?o(null):S(b())},T=B=>{Mt.isError(B)?S(B):r(B)},F=g&&nn(i);if(!d){try{Promise.resolve(F?!0:v.call(C,i,C)).then($,T)}catch(B){T(B)}return}let N;try{var U;if(N=F?!0:v.call(C,i,C),typeof((U=N)==null?void 0:U.then)=="function")throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(B){T(B);return}$(N)}return t.OPTIONS=e,t}let zj=e=>e.substr(0,e.length-1).substr(1);function Bj(e,t,n,r=n){let o,i,a;return t?(Bo.forEach(t,(s,l,u)=>{let c=l?zj(s):s;e=e.resolve({context:r,parent:o,value:n});let d=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class Wc{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const n of this.list)t.push(n);for(const[,n]of this.refs)t.push(n.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((n,r)=>n.concat(nr.isRef(r)?t(r):r),[])}add(t){nr.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){nr.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new Wc;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,n){const r=this.clone();return t.list.forEach(o=>r.add(o)),t.refs.forEach(o=>r.add(o)),n.list.forEach(o=>r.delete(o)),n.refs.forEach(o=>r.delete(o)),r}}function Pi(e,t=new Map){if(Rf(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Pi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Pi(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Pi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Pi(o,t)}else throw Error(`Unable to clone ${e}`);return n}class qt{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Wc,this._blacklist=new Wc,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Xn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Pi(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&nn(i))return i;let a=Vo(t),s=Vo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
486
486
 
487
487
  attempted value: ${a}
@@ -0,0 +1 @@
1
+ import{b as n,c as o,g as a}from"./index.78e59a55.js";function u(i){return n(this,void 0,void 0,function(){var t;return o(this,function(e){switch(e.label){case 0:return[4,a(()=>import("./index.umd.6358a889.js").then(r=>r.i),["assets/index.umd.6358a889.js","assets/index.78e59a55.js"])];case 1:return t=e.sent(),i._plugins=t,[2]}})})}export{u as loadLegacyVideoPlugins};
@@ -1 +1 @@
1
- import{a}from"./index.83934545.js";import{i as l}from"./is-plan-event-enabled.681b46ca.js";function c(r,u){var i,n;if(!r||!Object.keys(r))return{};var o=Object.keys(r.integrations).filter(function(e){return r.integrations[e]===!1}),s=[];return((i=u.remotePlugins)!==null&&i!==void 0?i:[]).forEach(function(e){o.forEach(function(t){(e.name.includes(t)||t.includes(e.name))&&s.push(e.name)})}),((n=u.remotePlugins)!==null&&n!==void 0?n:[]).reduce(function(e,t){return t.settings.subscriptions&&s.includes(t.name)&&t.settings.subscriptions.forEach(function(f){return e["".concat(t.name," ").concat(f.partnerAction)]=!1}),e},{})}function v(r,u){function i(n){var o=r,s=n.event.event;if(o&&s){var e=o[s];if(l(o,e)){var t=c(e,u);n.updateEvent("integrations",a(a(a({},n.event.integrations),e==null?void 0:e.integrations),t))}else return n.updateEvent("integrations",a(a({},n.event.integrations),{All:!1,"Segment.io":!0})),n}return n}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:i,alias:i,track:i,identify:i,group:i}}export{v as schemaFilter};
1
+ import{a}from"./index.78e59a55.js";import{i as l}from"./is-plan-event-enabled.681b46ca.js";function c(r,u){var i,n;if(!r||!Object.keys(r))return{};var o=Object.keys(r.integrations).filter(function(e){return r.integrations[e]===!1}),s=[];return((i=u.remotePlugins)!==null&&i!==void 0?i:[]).forEach(function(e){o.forEach(function(t){(e.name.includes(t)||t.includes(e.name))&&s.push(e.name)})}),((n=u.remotePlugins)!==null&&n!==void 0?n:[]).reduce(function(e,t){return t.settings.subscriptions&&s.includes(t.name)&&t.settings.subscriptions.forEach(function(f){return e["".concat(t.name," ").concat(f.partnerAction)]=!1}),e},{})}function v(r,u){function i(n){var o=r,s=n.event.event;if(o&&s){var e=o[s];if(l(o,e)){var t=c(e,u);n.updateEvent("integrations",a(a(a({},n.event.integrations),e==null?void 0:e.integrations),t))}else return n.updateEvent("integrations",a(a({},n.event.integrations),{All:!1,"Segment.io":!0})),n}return n}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:i,alias:i,track:i,identify:i,group:i}}export{v as schemaFilter};
@@ -1 +1 @@
1
- import{b as c,c as f,f as L,a as m}from"./index.83934545.js";import{l as P,g as z,u as M,i as k,a as R,C as S,b as C,c as y,e as A,m as B,p as F,P as O,f as Q,h as W,j as G,k as T}from"./index.52dad948.js";import{i as U}from"./is-plan-event-enabled.681b46ca.js";import"./chevron_right.8fd46579.js";function N(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function j(e,t){return t===void 0&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function V(e,t,n){var i,r;try{var a=((r=(i=window==null?void 0:window.performance)===null||i===void 0?void 0:i.getEntriesByName(e,"resource"))!==null&&r!==void 0?r:[])[0];a&&t.stats.gauge("legacy_destination_time",Math.round(a.duration),L([n],a.duration<100?["cached"]:[],!0))}catch(o){}}function H(e,t,n,i,r,a){return c(this,void 0,void 0,function(){var o,s,u,h,l,v,d,w,g;return f(this,function(p){switch(p.label){case 0:o=N(n),s=j(o,a),u=z(),h="".concat(u,"/integrations/").concat(s!=null?s:o,"/").concat(i,"/").concat(s!=null?s:o,".dynamic.js.gz"),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,P(h)];case 2:return p.sent(),V(h,e,n),[3,4];case 3:throw l=p.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(n),"failed"]),l;case 4:return v=window["".concat(o,"Deps")],[4,Promise.all(v.map(function(_){return P(u+_+".gz")}))];case 5:return p.sent(),window["".concat(o,"Loader")](),d=window["".concat(o,"Integration")],d.Integration&&(w={user:function(){return t.user()},addIntegration:function(){}},d(w),d=d.Integration),g=new d(r),g.analytics=t,[2,g]}})})}function J(e,t,n){return c(this,void 0,void 0,function(){var i,r,a,o;return f(this,function(s){return i=z(),r=N(e),a=j(e,n),o="".concat(i,"/integrations/").concat(a!=null?a:r,"/").concat(t,"/").concat(a!=null?a:r,".dynamic.js.gz"),[2,M(o)]})})}function K(e){var t,n,i,r;return(r=(n=(t=e.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(i=e.versionSettings)===null||i===void 0?void 0:i.version)!==null&&r!==void 0?r:"latest"}function X(e,t){return c(this,void 0,void 0,function(){var n,i=this;return f(this,function(r){switch(r.label){case 0:return n=[],k()?[2,t]:[4,F(function(){return t.length>0&&G()},function(){return c(i,void 0,void 0,function(){var a,o,s;return f(this,function(u){switch(u.label){case 0:return a=t.pop(),a?[4,W(a,e)]:[2];case 1:return o=u.sent(),s=o instanceof T,s||n.push(a),[2]}})})})];case 1:return r.sent(),n.map(function(a){return t.pushWithBackoff(a)}),[2,t]}})})}var Y=function(){function e(t,n,i,r){i===void 0&&(i={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=m({},i),this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.options=r,this.buffer=r.disableClientPersistence?new O(4,[]):new Q(4,"dest-".concat(t)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return this._ready},e.prototype.ready=function(){var t;return(t=this.onReady)!==null&&t!==void 0?t:Promise.resolve()},e.prototype.load=function(t,n){return c(this,void 0,void 0,function(){var i,r=this;return f(this,function(a){switch(a.label){case 0:return this._ready||this.onReady!==void 0?[2]:(i=this,[4,H(t,n,this.name,this.version,this.settings,this.options.obfuscate)]);case 1:i.integration=a.sent(),this.onReady=new Promise(function(o){var s=function(){r._ready=!0,o(!0)};r.integration.once("ready",s)}),this.onInitialize=new Promise(function(o){var s=function(){r._initialized=!0,o(!0)};r.integration.on("initialize",s)});try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(o){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),o}return[2]}})})},e.prototype.unload=function(t,n){return J(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},e.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(k()||this._ready===!1||this._initialized===!1)},e.prototype.send=function(t,n,i){var r,a;return c(this,void 0,void 0,function(){var o,s,u,h,l,v;return f(this,function(d){switch(d.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(o=(a=(r=this.options)===null||r===void 0?void 0:r.plan)===null||a===void 0?void 0:a.track,s=t.event.event,o&&s&&this.name!=="Segment.io"){if(u=o[s],U(o,u))t.updateEvent("integrations",m(m({},t.event.integrations),u==null?void 0:u.integrations));else return t.updateEvent("integrations",m(m({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new S({retry:!1,reason:"Event ".concat(s," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if((u==null?void 0:u.enabled)&&(u==null?void 0:u.integrations[this.name])===!1)return t.cancel(new S({retry:!1,reason:"Event ".concat(s," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,C(this.name,t.event,this.middleware)];case 1:if(h=d.sent(),h===null)return[2,t];l=new n(h,{}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(i),"integration_name:".concat(this.name)]),d.label=2;case 2:return d.trys.push([2,5,,6]),this.integration?[4,R(this.integration.invoke.call(this.integration,i,l))]:[3,4];case 3:d.sent(),d.label=4;case 4:return[3,6];case 5:throw v=d.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(i),"integration_name:".concat(this.name)]),v;case 6:return[2,t]}})})},e.prototype.track=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Track,"track")]})})},e.prototype.page=function(t){var n;return c(this,void 0,void 0,function(){var i=this;return f(this,function(r){return((n=this.integration)===null||n===void 0?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then(function(){return i.send(t,y.Page,"page")})]})})},e.prototype.identify=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Identify,"identify")]})})},e.prototype.alias=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Alias,"alias")]})})},e.prototype.group=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Group,"group")]})})},e.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return c(t,void 0,void 0,function(){var n;return f(this,function(i){switch(i.label){case 0:return this.flushing=!0,n=this,[4,X(this,this.buffer)];case 1:return n.buffer=i.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},e}();function tt(e,t,n,i){var r,a;if(t===void 0&&(t={}),n===void 0&&(n={}),A())return[];e.plan&&(n=n!=null?n:{},n.plan=e.plan);var o=(a=(r=e.middlewareSettings)===null||r===void 0?void 0:r.routingRules)!==null&&a!==void 0?a:[],s=B(e,n!=null?n:{});return Object.entries(e.integrations).map(function(u){var h,l=u[0],v=u[1];if(!l.startsWith("Segment")){var d=t.All===!1&&t[l]===void 0;if(!(t[l]===!1||d)){var w=v.type,g=v.bundlingStatus,p=v.versionSettings,_=g!=="unbundled"&&(w==="browser"||((h=p==null?void 0:p.componentTypes)===null||h===void 0?void 0:h.includes("browser")));if(!(!_&&l!=="Segment.io"||l==="Iterable")){var D=K(v),b=new Y(l,D,s[l],n),E=o.filter(function(I){return I.destinationName===l});return E.length>0&&i&&b.addMiddleware(i),b}}}}).filter(function(u){return u!==void 0})}export{Y as LegacyDestination,tt as ajsDestinations};
1
+ import{b as c,c as f,f as L,a as m}from"./index.78e59a55.js";import{l as P,g as z,u as M,i as k,a as R,C as S,b as C,c as y,e as A,m as B,p as F,P as O,f as Q,h as W,j as G,k as T}from"./index.59699164.js";import{i as U}from"./is-plan-event-enabled.681b46ca.js";import"./chevron_right.ed021687.js";function N(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function j(e,t){return t===void 0&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function V(e,t,n){var i,r;try{var a=((r=(i=window==null?void 0:window.performance)===null||i===void 0?void 0:i.getEntriesByName(e,"resource"))!==null&&r!==void 0?r:[])[0];a&&t.stats.gauge("legacy_destination_time",Math.round(a.duration),L([n],a.duration<100?["cached"]:[],!0))}catch(o){}}function H(e,t,n,i,r,a){return c(this,void 0,void 0,function(){var o,s,u,h,l,v,d,w,g;return f(this,function(p){switch(p.label){case 0:o=N(n),s=j(o,a),u=z(),h="".concat(u,"/integrations/").concat(s!=null?s:o,"/").concat(i,"/").concat(s!=null?s:o,".dynamic.js.gz"),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,P(h)];case 2:return p.sent(),V(h,e,n),[3,4];case 3:throw l=p.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(n),"failed"]),l;case 4:return v=window["".concat(o,"Deps")],[4,Promise.all(v.map(function(_){return P(u+_+".gz")}))];case 5:return p.sent(),window["".concat(o,"Loader")](),d=window["".concat(o,"Integration")],d.Integration&&(w={user:function(){return t.user()},addIntegration:function(){}},d(w),d=d.Integration),g=new d(r),g.analytics=t,[2,g]}})})}function J(e,t,n){return c(this,void 0,void 0,function(){var i,r,a,o;return f(this,function(s){return i=z(),r=N(e),a=j(e,n),o="".concat(i,"/integrations/").concat(a!=null?a:r,"/").concat(t,"/").concat(a!=null?a:r,".dynamic.js.gz"),[2,M(o)]})})}function K(e){var t,n,i,r;return(r=(n=(t=e.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(i=e.versionSettings)===null||i===void 0?void 0:i.version)!==null&&r!==void 0?r:"latest"}function X(e,t){return c(this,void 0,void 0,function(){var n,i=this;return f(this,function(r){switch(r.label){case 0:return n=[],k()?[2,t]:[4,F(function(){return t.length>0&&G()},function(){return c(i,void 0,void 0,function(){var a,o,s;return f(this,function(u){switch(u.label){case 0:return a=t.pop(),a?[4,W(a,e)]:[2];case 1:return o=u.sent(),s=o instanceof T,s||n.push(a),[2]}})})})];case 1:return r.sent(),n.map(function(a){return t.pushWithBackoff(a)}),[2,t]}})})}var Y=function(){function e(t,n,i,r){i===void 0&&(i={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=m({},i),this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.options=r,this.buffer=r.disableClientPersistence?new O(4,[]):new Q(4,"dest-".concat(t)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return this._ready},e.prototype.ready=function(){var t;return(t=this.onReady)!==null&&t!==void 0?t:Promise.resolve()},e.prototype.load=function(t,n){return c(this,void 0,void 0,function(){var i,r=this;return f(this,function(a){switch(a.label){case 0:return this._ready||this.onReady!==void 0?[2]:(i=this,[4,H(t,n,this.name,this.version,this.settings,this.options.obfuscate)]);case 1:i.integration=a.sent(),this.onReady=new Promise(function(o){var s=function(){r._ready=!0,o(!0)};r.integration.once("ready",s)}),this.onInitialize=new Promise(function(o){var s=function(){r._initialized=!0,o(!0)};r.integration.on("initialize",s)});try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(o){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),o}return[2]}})})},e.prototype.unload=function(t,n){return J(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},e.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(k()||this._ready===!1||this._initialized===!1)},e.prototype.send=function(t,n,i){var r,a;return c(this,void 0,void 0,function(){var o,s,u,h,l,v;return f(this,function(d){switch(d.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(o=(a=(r=this.options)===null||r===void 0?void 0:r.plan)===null||a===void 0?void 0:a.track,s=t.event.event,o&&s&&this.name!=="Segment.io"){if(u=o[s],U(o,u))t.updateEvent("integrations",m(m({},t.event.integrations),u==null?void 0:u.integrations));else return t.updateEvent("integrations",m(m({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new S({retry:!1,reason:"Event ".concat(s," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if((u==null?void 0:u.enabled)&&(u==null?void 0:u.integrations[this.name])===!1)return t.cancel(new S({retry:!1,reason:"Event ".concat(s," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,C(this.name,t.event,this.middleware)];case 1:if(h=d.sent(),h===null)return[2,t];l=new n(h,{}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(i),"integration_name:".concat(this.name)]),d.label=2;case 2:return d.trys.push([2,5,,6]),this.integration?[4,R(this.integration.invoke.call(this.integration,i,l))]:[3,4];case 3:d.sent(),d.label=4;case 4:return[3,6];case 5:throw v=d.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(i),"integration_name:".concat(this.name)]),v;case 6:return[2,t]}})})},e.prototype.track=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Track,"track")]})})},e.prototype.page=function(t){var n;return c(this,void 0,void 0,function(){var i=this;return f(this,function(r){return((n=this.integration)===null||n===void 0?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then(function(){return i.send(t,y.Page,"page")})]})})},e.prototype.identify=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Identify,"identify")]})})},e.prototype.alias=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Alias,"alias")]})})},e.prototype.group=function(t){return c(this,void 0,void 0,function(){return f(this,function(n){return[2,this.send(t,y.Group,"group")]})})},e.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return c(t,void 0,void 0,function(){var n;return f(this,function(i){switch(i.label){case 0:return this.flushing=!0,n=this,[4,X(this,this.buffer)];case 1:return n.buffer=i.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},e}();function tt(e,t,n,i){var r,a;if(t===void 0&&(t={}),n===void 0&&(n={}),A())return[];e.plan&&(n=n!=null?n:{},n.plan=e.plan);var o=(a=(r=e.middlewareSettings)===null||r===void 0?void 0:r.routingRules)!==null&&a!==void 0?a:[],s=B(e,n!=null?n:{});return Object.entries(e.integrations).map(function(u){var h,l=u[0],v=u[1];if(!l.startsWith("Segment")){var d=t.All===!1&&t[l]===void 0;if(!(t[l]===!1||d)){var w=v.type,g=v.bundlingStatus,p=v.versionSettings,_=g!=="unbundled"&&(w==="browser"||((h=p==null?void 0:p.componentTypes)===null||h===void 0?void 0:h.includes("browser")));if(!(!_&&l!=="Segment.io"||l==="Iterable")){var D=K(v),b=new Y(l,D,s[l],n),E=o.filter(function(I){return I.destinationName===l});return E.length>0&&i&&b.addMiddleware(i),b}}}}).filter(function(u){return u!==void 0})}export{Y as LegacyDestination,tt as ajsDestinations};
@@ -1,4 +1,4 @@
1
- import{e as pa,b as da,h as ga,d as ma,S as ya,u as _e,a as va,s as wa,p as xa,f as Sa,g as ba,m as _a,N as Ea,P as Ra}from"./chevron_right.8fd46579.js";import{R as Ta,u as qn,r as M,j as w,s as C,y as b,U as Wn,k as B,v as Jt,a0 as Ca,O as Aa,d as Me,h as Ue,q as je,t as Oa,a1 as pt,o as Kt,a2 as Yn,i as La,a3 as Fa,n as Da,a4 as ka,F as Xt,m as jn,a5 as Ba,a6 as $n,a7 as Ne}from"./index.83934545.js";const Hn=Ta.createContext({}),Ee=()=>M.exports.useContext(Hn),Ia=({children:l})=>{var c,S;const{sdkState:g}=qn(),[p,m]=M.exports.useReducer((F,N)=>({...F,...N}),{location:{lat:((c=g.options)==null?void 0:c.lat)||43.661337,lng:((S=g.options)==null?void 0:S.lng)||-79.401903},scores:{checked:!1,include:[]},pois:{checked:!1,include:[],radius:5e3,limit:15},schools:{checked:!1,radius:5e3,limit:15},demographics:{checked:!1,radius:2500},profiles:{checked:!1}}),y=M.exports.useMemo(()=>({dataExplorerState:p,setDataExplorerState:m}),[p,m]);return w(Hn.Provider,{value:y,children:l})},Pa=C.div`
1
+ import{e as pa,b as da,h as ga,d as ma,S as ya,u as _e,a as va,s as wa,p as xa,f as Sa,g as ba,m as _a,N as Ea,P as Ra}from"./chevron_right.ed021687.js";import{R as Ta,u as qn,r as M,j as w,s as C,y as b,U as Wn,k as B,v as Jt,a0 as Ca,O as Aa,d as Me,h as Ue,q as je,t as Oa,a1 as pt,o as Kt,a2 as Yn,i as La,a3 as Fa,n as Da,a4 as ka,F as Xt,m as jn,a5 as Ba,a6 as $n,a7 as Ne}from"./index.78e59a55.js";const Hn=Ta.createContext({}),Ee=()=>M.exports.useContext(Hn),Ia=({children:l})=>{var c,S;const{sdkState:g}=qn(),[p,m]=M.exports.useReducer((F,N)=>({...F,...N}),{location:{lat:((c=g.options)==null?void 0:c.lat)||43.661337,lng:((S=g.options)==null?void 0:S.lng)||-79.401903},scores:{checked:!1,include:[]},pois:{checked:!1,include:[],radius:5e3,limit:15},schools:{checked:!1,radius:5e3,limit:15},demographics:{checked:!1,radius:2500},profiles:{checked:!1}}),y=M.exports.useMemo(()=>({dataExplorerState:p,setDataExplorerState:m}),[p,m]);return w(Hn.Provider,{value:y,children:l})},Pa=C.div`
2
2
  height: 100vh;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}System.register(["./index-legacy.8c3f4d82.js"],(function(e,a){"use strict";var n;return{setters:[function(t){n=t.a9}],execute:function(){function a(t,e){for(var a=function(){var a=e[n];if("string"!=typeof a&&!Array.isArray(a)){var i=function(e){if("default"!==e&&!(e in t)){var n=Object.getOwnPropertyDescriptor(a,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return a[e]}})}};for(var r in a)i(r)}},n=0;n<e.length;n++)a();return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i={exports:{}};!function(e,a){window,e.exports=function(e){var a={};function n(t){if(a[t])return a[t].exports;var i=a[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=a,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,a){if(1&a&&(e=n(e)),8&a)return e;if(4&a&&"object"==t(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,a){a.r(e);var n="function"==typeof fetch?fetch.bind():function(t,e){return e=e||{},new Promise((function(a,n){var i=new XMLHttpRequest;for(var r in i.open(e.method||"get",t,!0),e.headers)i.setRequestHeader(r,e.headers[r]);function o(){var t,e=[],a=[],n={};return i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(i,r,o){e.push(r=r.toLowerCase()),a.push([r,o]),t=n[r],n[r]=t?t+","+o:o})),{ok:2==(i.status/100|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:o,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},headers:{keys:function(){return e},entries:function(){return a},get:function(t){return n[t.toLowerCase()]},has:function(t){return t.toLowerCase()in n}}}}i.withCredentials="include"==e.credentials,i.onload=function(){a(o())},i.onerror=n,i.send(e.body)}))};e.default=n},function(t,e,a){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),i=function(){function t(e,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.pluginName=e}return n(t,[{key:"track",value:function(t,e){window.analytics.track(t,e,{integration:{name:this.pluginName}})}}]),t}();e.default=i},function(t,e,a){Object.defineProperty(e,"__esModule",{value:!0}),e.YouTubeAnalytics=e.VimeoAnalytics=void 0;var n=r(a(3)),i=r(a(4));function r(t){return t&&t.__esModule?t:{default:t}}e.VimeoAnalytics=n.default,e.YouTubeAnalytics=i.default},function(e,a,n){Object.defineProperty(a,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=o(n(0));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(e){function a(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=t(a)&&"function"!=typeof a?e:a}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,"VimeoAnalytics"));return i.authToken=n,i.player=e,i.metadata={content:{},playback:{videoPlayer:"Vimeo"}},i.mostRecentHeartbeat=0,i.isPaused=!1,i}return function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+t(a));e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}(a,e),i(a,[{key:"initialize",value:function(){var t=this,e={loaded:this.retrieveMetadata,play:this.trackPlay,pause:this.trackPause,ended:this.trackEnded,timeupdate:this.trackHeartbeat};for(var a in e)this.registerHandler(a,e[a]);this.player.getVideoId().then((function(e){t.retrieveMetadata({id:e})})).catch(console.error)}},{key:"registerHandler",value:function(t,e){var a=this;this.player.on(t,(function(t){a.updateMetadata(t),e.call(a,t)}))}},{key:"trackPlay",value:function(){this.isPaused?(this.track("Video Playback Resumed",this.metadata.playback),this.isPaused=!1):(this.track("Video Playback Started",this.metadata.playback),this.track("Video Content Started",this.metadata.content))}},{key:"trackEnded",value:function(){this.track("Video Playback Completed",this.metadata.playback),this.track("Video Content Completed",this.metadata.content)}},{key:"trackHeartbeat",value:function(){var t=this.mostRecentHeartbeat,e=this.metadata.playback.position;e!==t&&e-t>=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(e))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(t){var e=this;return new Promise((function(a,n){var i=t.id;(0,r.default)("https://api.vimeo.com/videos/"+i,{headers:{Authorization:"Bearer "+e.authToken}}).then((function(t){return t.ok?t.json():n(t)})).then((function(t){e.metadata.content.title=t.name,e.metadata.content.description=t.description,e.metadata.content.publisher=t.user.name,e.metadata.playback.position=0,e.metadata.playback.totalLength=t.duration})).catch((function(t){return console.error("Request to Vimeo API Failed with: ",t),n(t)}))}))}},{key:"updateMetadata",value:function(t){var e=this;return new Promise((function(a,n){e.player.getVolume().then((function(n){n&&(e.metadata.playback.sound=100*n),e.metadata.playback.position=t.seconds,a()})).catch(n)}))}}]),a}(o(n(1)).default);a.default=s},function(e,a,n){Object.defineProperty(a,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=o(n(0));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(e){function a(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=t(a)&&"function"!=typeof a?e:a}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,"YoutubeAnalytics"));return i.player=e,i.apiKey=n,i.playerLoaded=!1,i.playbackStarted=!1,i.contentStarted=!1,i.isPaused=!1,i.isBuffering=!1,i.isSeeking=!1,i.lastRecordedTime={timeReported:Date.now(),timeElapsed:0},i.metadata=[{playback:{video_player:"youtube"},content:{}}],i.playlistIndex=0,i}return function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+t(a));e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}(a,e),i(a,[{key:"initialize",value:function(){window.segmentYoutubeOnStateChange=this.onPlayerStateChange.bind(this),window.segmentYoutubeOnReady=this.onPlayerReady.bind(this),this.player.addEventListener("onReady","segmentYoutubeOnReady"),this.player.addEventListener("onStateChange","segmentYoutubeOnStateChange")}},{key:"onPlayerReady",value:function(t){this.retrieveMetadata()}},{key:"onPlayerStateChange",value:function(t){var e=this.player.getCurrentTime();switch(this.metadata[this.playlistIndex]&&(this.metadata[this.playlistIndex].playback.position=this.metadata[this.playlistIndex].content.position=e,this.metadata[this.playlistIndex].playback.quality=this.player.getPlaybackQuality(),this.metadata[this.playlistIndex].playback.sound=this.player.isMuted()?0:this.player.getVolume()),t.data){case-1:if(this.playerLoaded)break;this.retrieveMetadata(),this.playerLoaded=!0;break;case YT.PlayerState.BUFFERING:this.handleBuffer();break;case YT.PlayerState.PLAYING:this.handlePlay();break;case YT.PlayerState.PAUSED:this.handlePause();break;case YT.PlayerState.ENDED:this.handleEnd()}this.lastRecordedTime={timeReported:Date.now(),timeElapsed:1e3*this.player.getCurrentTime()}}},{key:"retrieveMetadata",value:function(){var t=this;return new Promise((function(e,a){var n=t.player.getVideoData(),i=t.player.getPlaylist()||[n.video_id],o=i.join();(0,r.default)("https://www.googleapis.com/youtube/v3/videos?id="+o+"&part=snippet,contentDetails&key="+t.apiKey).then((function(t){if(!t.ok){var e=new Error("Segment request to Youtube API failed (likely due to a bad API Key. Events will still be sent but will not contain video metadata)");throw e.response=t,e}return t.json()})).then((function(a){t.metadata=[];for(var n=0,r=0;r<i.length;r++){var o=a.items[r];t.metadata.push({content:{title:o.snippet.title,description:o.snippet.description,keywords:o.snippet.tags,channel:o.snippet.channelTitle,airdate:o.snippet.publishedAt}}),n+=l(o.contentDetails.duration)}for(r=0;r<i.length;r++)t.metadata[r].playback={total_length:n,video_player:"youtube"};e()})).catch((function(e){t.metadata=i.map((function(t){return{playback:{video_player:"youtube"},content:{}}})),a(e)}))}))}},{key:"handleBuffer",value:function(){var t=this.determineSeek();this.playbackStarted||(this.playbackStarted=!0,this.track("Video Playback Started",this.metadata[this.playlistIndex].playback)),t&&!this.isSeeking&&(this.isSeeking=!0,this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback)),this.isSeeking&&(this.track("Video Playback Seek Completed",this.metadata[this.playlistIndex].playback),this.isSeeking=!1);var e=this.player.getPlaylist();e&&0===this.player.getCurrentTime()&&this.player.getPlaylistIndex()!==this.playlistIndex&&(this.contentStarted=!1,this.playlistIndex===e.length-1&&0===this.player.getPlaylistIndex()&&(this.track("Video Playback Completed",this.metadata[this.player.getPlaylistIndex()].playback),this.track("Video Playback Started",this.metadata[this.player.getPlaylistIndex()].playback))),this.track("Video Playback Buffer Started",this.metadata[this.playlistIndex].playback),this.isBuffering=!0}},{key:"handlePlay",value:function(){this.contentStarted||(this.playlistIndex=this.player.getPlaylistIndex(),-1===this.playlistIndex&&(this.playlistIndex=0),this.track("Video Content Started",this.metadata[this.playlistIndex].content),this.contentStarted=!0),this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused&&(this.track("Video Playback Resumed",this.metadata[this.playlistIndex].playback),this.isPaused=!1)}},{key:"handlePause",value:function(){var t=this.determineSeek();this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused||(t?(this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback),this.isSeeking=!0):(this.track("Video Playback Paused",this.metadata[this.playlistIndex].playback),this.isPaused=!0))}},{key:"handleEnd",value:function(){this.track("Video Content Completed",this.metadata[this.playlistIndex].content),this.contentStarted=!1;var t=this.player.getPlaylistIndex(),e=this.player.getPlaylist();(e&&t===e.length-1||-1===t)&&(this.track("Video Playback Completed",this.metadata[this.playlistIndex].playback),this.playbackStarted=!1)}},{key:"determineSeek",value:function(){var t=this.isPaused||this.isBuffering?0:Date.now()-this.lastRecordedTime.timeReported,e=1e3*this.player.getCurrentTime()-this.lastRecordedTime.timeElapsed;return Math.abs(t-e)>2e3}}]),a}(o(n(1)).default);function l(t){var e=t.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return e=e.slice(1).map((function(t){if(null!=t)return t.replace(/\D/,"")})),3600*(parseInt(e[0])||0)+60*(parseInt(e[1])||0)+(parseInt(e[2])||0)}a.default=s}])}(i),e("i",a({__proto__:null,default:n(i.exports)},[i.exports]))}}}))}();
@@ -1 +1 @@
1
- import{a9 as x}from"./index.83934545.js";function _(g,S){for(var f=0;f<S.length;f++){const l=S[f];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in g)){const i=Object.getOwnPropertyDescriptor(l,s);i&&Object.defineProperty(g,s,i.get?i:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(g,S){(function(f,l){g.exports=l()})(window,function(){return function(f){var l={};function s(i){if(l[i])return l[i].exports;var u=l[i]={i,l:!1,exports:{}};return f[i].call(u.exports,u,u.exports,s),u.l=!0,u.exports}return s.m=f,s.c=l,s.d=function(i,u,c){s.o(i,u)||Object.defineProperty(i,u,{enumerable:!0,get:c})},s.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},s.t=function(i,u){if(1&u&&(i=s(i)),8&u||4&u&&typeof i=="object"&&i&&i.__esModule)return i;var c=Object.create(null);if(s.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:i}),2&u&&typeof i!="string")for(var d in i)s.d(c,d,function(p){return i[p]}.bind(null,d));return c},s.n=function(i){var u=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(u,"a",u),u},s.o=function(i,u){return Object.prototype.hasOwnProperty.call(i,u)},s.p="",s(s.s=2)}([function(f,l,s){s.r(l);var i=typeof fetch=="function"?fetch.bind():function(u,c){return c=c||{},new Promise(function(d,p){var r=new XMLHttpRequest;for(var a in r.open(c.method||"get",u,!0),c.headers)r.setRequestHeader(a,c.headers[a]);function t(){var e,n=[],o=[],h={};return r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,m,b){n.push(m=m.toLowerCase()),o.push([m,b]),e=h[m],h[m]=e?e+","+b:b}),{ok:(r.status/100|0)==2,status:r.status,statusText:r.statusText,url:r.responseURL,clone:t,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(r.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([r.response]))},headers:{keys:function(){return n},entries:function(){return o},get:function(y){return h[y.toLowerCase()]},has:function(y){return y.toLowerCase()in h}}}}r.withCredentials=c.credentials=="include",r.onload=function(){d(t())},r.onerror=p,r.send(c.body)})};l.default=i},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function c(d,p){for(var r=0;r<p.length;r++){var a=p[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,p,r){return p&&c(d.prototype,p),r&&c(d,r),d}}(),u=function(){function c(d,p){(function(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")})(this,c),this.pluginName=d}return i(c,[{key:"track",value:function(d,p){window.analytics.track(d,p,{integration:{name:this.pluginName}})}}]),c}();l.default=u},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0}),l.YouTubeAnalytics=l.VimeoAnalytics=void 0;var i=c(s(3)),u=c(s(4));function c(d){return d&&d.__esModule?d:{default:d}}l.VimeoAnalytics=i.default,l.YouTubeAnalytics=u.default},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function p(r,a){for(var t=0;t<a.length;t++){var e=a[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}return function(r,a,t){return a&&p(r.prototype,a),t&&p(r,t),r}}(),u=c(s(0));function c(p){return p&&p.__esModule?p:{default:p}}var d=function(p){function r(a,t){(function(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")})(this,r);var e=function(n,o){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?n:o}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,"VimeoAnalytics"));return e.authToken=t,e.player=a,e.metadata={content:{},playback:{videoPlayer:"Vimeo"}},e.mostRecentHeartbeat=0,e.isPaused=!1,e}return function(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);a.prototype=Object.create(t&&t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(a,t):a.__proto__=t)}(r,p),i(r,[{key:"initialize",value:function(){var a=this,t={loaded:this.retrieveMetadata,play:this.trackPlay,pause:this.trackPause,ended:this.trackEnded,timeupdate:this.trackHeartbeat};for(var e in t)this.registerHandler(e,t[e]);this.player.getVideoId().then(function(n){a.retrieveMetadata({id:n})}).catch(console.error)}},{key:"registerHandler",value:function(a,t){var e=this;this.player.on(a,function(n){e.updateMetadata(n),t.call(e,n)})}},{key:"trackPlay",value:function(){this.isPaused?(this.track("Video Playback Resumed",this.metadata.playback),this.isPaused=!1):(this.track("Video Playback Started",this.metadata.playback),this.track("Video Content Started",this.metadata.content))}},{key:"trackEnded",value:function(){this.track("Video Playback Completed",this.metadata.playback),this.track("Video Content Completed",this.metadata.content)}},{key:"trackHeartbeat",value:function(){var a=this.mostRecentHeartbeat,t=this.metadata.playback.position;t!==a&&t-a>=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(t))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(a){var t=this;return new Promise(function(e,n){var o=a.id;(0,u.default)("https://api.vimeo.com/videos/"+o,{headers:{Authorization:"Bearer "+t.authToken}}).then(function(h){return h.ok?h.json():n(h)}).then(function(h){t.metadata.content.title=h.name,t.metadata.content.description=h.description,t.metadata.content.publisher=h.user.name,t.metadata.playback.position=0,t.metadata.playback.totalLength=h.duration}).catch(function(h){return console.error("Request to Vimeo API Failed with: ",h),n(h)})})}},{key:"updateMetadata",value:function(a){var t=this;return new Promise(function(e,n){t.player.getVolume().then(function(o){o&&(t.metadata.playback.sound=100*o),t.metadata.playback.position=a.seconds,e()}).catch(n)})}}]),r}(c(s(1)).default);l.default=d},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}}(),u=d(s(0)),c=d(s(1));function d(a){return a&&a.__esModule?a:{default:a}}var p=function(a){function t(e,n){(function(h,y){if(!(h instanceof y))throw new TypeError("Cannot call a class as a function")})(this,t);var o=function(h,y){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?h:y}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"YoutubeAnalytics"));return o.player=e,o.apiKey=n,o.playerLoaded=!1,o.playbackStarted=!1,o.contentStarted=!1,o.isPaused=!1,o.isBuffering=!1,o.isSeeking=!1,o.lastRecordedTime={timeReported:Date.now(),timeElapsed:0},o.metadata=[{playback:{video_player:"youtube"},content:{}}],o.playlistIndex=0,o}return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(t,a),i(t,[{key:"initialize",value:function(){window.segmentYoutubeOnStateChange=this.onPlayerStateChange.bind(this),window.segmentYoutubeOnReady=this.onPlayerReady.bind(this),this.player.addEventListener("onReady","segmentYoutubeOnReady"),this.player.addEventListener("onStateChange","segmentYoutubeOnStateChange")}},{key:"onPlayerReady",value:function(e){this.retrieveMetadata()}},{key:"onPlayerStateChange",value:function(e){var n=this.player.getCurrentTime();switch(this.metadata[this.playlistIndex]&&(this.metadata[this.playlistIndex].playback.position=this.metadata[this.playlistIndex].content.position=n,this.metadata[this.playlistIndex].playback.quality=this.player.getPlaybackQuality(),this.metadata[this.playlistIndex].playback.sound=this.player.isMuted()?0:this.player.getVolume()),e.data){case-1:if(this.playerLoaded)break;this.retrieveMetadata(),this.playerLoaded=!0;break;case YT.PlayerState.BUFFERING:this.handleBuffer();break;case YT.PlayerState.PLAYING:this.handlePlay();break;case YT.PlayerState.PAUSED:this.handlePause();break;case YT.PlayerState.ENDED:this.handleEnd()}this.lastRecordedTime={timeReported:Date.now(),timeElapsed:1e3*this.player.getCurrentTime()}}},{key:"retrieveMetadata",value:function(){var e=this;return new Promise(function(n,o){var h=e.player.getVideoData(),y=e.player.getPlaylist()||[h.video_id],m=y.join();(0,u.default)("https://www.googleapis.com/youtube/v3/videos?id="+m+"&part=snippet,contentDetails&key="+e.apiKey).then(function(b){if(!b.ok){var v=new Error("Segment request to Youtube API failed (likely due to a bad API Key. Events will still be sent but will not contain video metadata)");throw v.response=b,v}return b.json()}).then(function(b){e.metadata=[];for(var v=0,k=0;k<y.length;k++){var P=b.items[k];e.metadata.push({content:{title:P.snippet.title,description:P.snippet.description,keywords:P.snippet.tags,channel:P.snippet.channelTitle,airdate:P.snippet.publishedAt}}),v+=r(P.contentDetails.duration)}for(k=0;k<y.length;k++)e.metadata[k].playback={total_length:v,video_player:"youtube"};n()}).catch(function(b){e.metadata=y.map(function(v){return{playback:{video_player:"youtube"},content:{}}}),o(b)})})}},{key:"handleBuffer",value:function(){var e=this.determineSeek();this.playbackStarted||(this.playbackStarted=!0,this.track("Video Playback Started",this.metadata[this.playlistIndex].playback)),e&&!this.isSeeking&&(this.isSeeking=!0,this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback)),this.isSeeking&&(this.track("Video Playback Seek Completed",this.metadata[this.playlistIndex].playback),this.isSeeking=!1);var n=this.player.getPlaylist();n&&this.player.getCurrentTime()===0&&this.player.getPlaylistIndex()!==this.playlistIndex&&(this.contentStarted=!1,this.playlistIndex===n.length-1&&this.player.getPlaylistIndex()===0&&(this.track("Video Playback Completed",this.metadata[this.player.getPlaylistIndex()].playback),this.track("Video Playback Started",this.metadata[this.player.getPlaylistIndex()].playback))),this.track("Video Playback Buffer Started",this.metadata[this.playlistIndex].playback),this.isBuffering=!0}},{key:"handlePlay",value:function(){this.contentStarted||(this.playlistIndex=this.player.getPlaylistIndex(),this.playlistIndex===-1&&(this.playlistIndex=0),this.track("Video Content Started",this.metadata[this.playlistIndex].content),this.contentStarted=!0),this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused&&(this.track("Video Playback Resumed",this.metadata[this.playlistIndex].playback),this.isPaused=!1)}},{key:"handlePause",value:function(){var e=this.determineSeek();this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused||(e?(this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback),this.isSeeking=!0):(this.track("Video Playback Paused",this.metadata[this.playlistIndex].playback),this.isPaused=!0))}},{key:"handleEnd",value:function(){this.track("Video Content Completed",this.metadata[this.playlistIndex].content),this.contentStarted=!1;var e=this.player.getPlaylistIndex(),n=this.player.getPlaylist();(n&&e===n.length-1||e===-1)&&(this.track("Video Playback Completed",this.metadata[this.playlistIndex].playback),this.playbackStarted=!1)}},{key:"determineSeek",value:function(){var e=this.isPaused||this.isBuffering?0:Date.now()-this.lastRecordedTime.timeReported,n=1e3*this.player.getCurrentTime()-this.lastRecordedTime.timeElapsed;return Math.abs(e-n)>2e3}}]),t}(c.default);function r(a){var t=a.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return t=t.slice(1).map(function(e){if(e!=null)return e.replace(/\D/,"")}),3600*(parseInt(t[0])||0)+60*(parseInt(t[1])||0)+(parseInt(t[2])||0)}l.default=p}])})})(w);const I=x(w.exports),j=_({__proto__:null,default:I},[w.exports]);export{j as i};
1
+ import{a9 as x}from"./index.78e59a55.js";function _(g,S){for(var f=0;f<S.length;f++){const l=S[f];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in g)){const i=Object.getOwnPropertyDescriptor(l,s);i&&Object.defineProperty(g,s,i.get?i:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(g,S){(function(f,l){g.exports=l()})(window,function(){return function(f){var l={};function s(i){if(l[i])return l[i].exports;var u=l[i]={i,l:!1,exports:{}};return f[i].call(u.exports,u,u.exports,s),u.l=!0,u.exports}return s.m=f,s.c=l,s.d=function(i,u,c){s.o(i,u)||Object.defineProperty(i,u,{enumerable:!0,get:c})},s.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},s.t=function(i,u){if(1&u&&(i=s(i)),8&u||4&u&&typeof i=="object"&&i&&i.__esModule)return i;var c=Object.create(null);if(s.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:i}),2&u&&typeof i!="string")for(var d in i)s.d(c,d,function(p){return i[p]}.bind(null,d));return c},s.n=function(i){var u=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(u,"a",u),u},s.o=function(i,u){return Object.prototype.hasOwnProperty.call(i,u)},s.p="",s(s.s=2)}([function(f,l,s){s.r(l);var i=typeof fetch=="function"?fetch.bind():function(u,c){return c=c||{},new Promise(function(d,p){var r=new XMLHttpRequest;for(var a in r.open(c.method||"get",u,!0),c.headers)r.setRequestHeader(a,c.headers[a]);function t(){var e,n=[],o=[],h={};return r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,m,b){n.push(m=m.toLowerCase()),o.push([m,b]),e=h[m],h[m]=e?e+","+b:b}),{ok:(r.status/100|0)==2,status:r.status,statusText:r.statusText,url:r.responseURL,clone:t,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(r.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([r.response]))},headers:{keys:function(){return n},entries:function(){return o},get:function(y){return h[y.toLowerCase()]},has:function(y){return y.toLowerCase()in h}}}}r.withCredentials=c.credentials=="include",r.onload=function(){d(t())},r.onerror=p,r.send(c.body)})};l.default=i},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function c(d,p){for(var r=0;r<p.length;r++){var a=p[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,p,r){return p&&c(d.prototype,p),r&&c(d,r),d}}(),u=function(){function c(d,p){(function(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")})(this,c),this.pluginName=d}return i(c,[{key:"track",value:function(d,p){window.analytics.track(d,p,{integration:{name:this.pluginName}})}}]),c}();l.default=u},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0}),l.YouTubeAnalytics=l.VimeoAnalytics=void 0;var i=c(s(3)),u=c(s(4));function c(d){return d&&d.__esModule?d:{default:d}}l.VimeoAnalytics=i.default,l.YouTubeAnalytics=u.default},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function p(r,a){for(var t=0;t<a.length;t++){var e=a[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}return function(r,a,t){return a&&p(r.prototype,a),t&&p(r,t),r}}(),u=c(s(0));function c(p){return p&&p.__esModule?p:{default:p}}var d=function(p){function r(a,t){(function(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")})(this,r);var e=function(n,o){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?n:o}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,"VimeoAnalytics"));return e.authToken=t,e.player=a,e.metadata={content:{},playback:{videoPlayer:"Vimeo"}},e.mostRecentHeartbeat=0,e.isPaused=!1,e}return function(a,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);a.prototype=Object.create(t&&t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(a,t):a.__proto__=t)}(r,p),i(r,[{key:"initialize",value:function(){var a=this,t={loaded:this.retrieveMetadata,play:this.trackPlay,pause:this.trackPause,ended:this.trackEnded,timeupdate:this.trackHeartbeat};for(var e in t)this.registerHandler(e,t[e]);this.player.getVideoId().then(function(n){a.retrieveMetadata({id:n})}).catch(console.error)}},{key:"registerHandler",value:function(a,t){var e=this;this.player.on(a,function(n){e.updateMetadata(n),t.call(e,n)})}},{key:"trackPlay",value:function(){this.isPaused?(this.track("Video Playback Resumed",this.metadata.playback),this.isPaused=!1):(this.track("Video Playback Started",this.metadata.playback),this.track("Video Content Started",this.metadata.content))}},{key:"trackEnded",value:function(){this.track("Video Playback Completed",this.metadata.playback),this.track("Video Content Completed",this.metadata.content)}},{key:"trackHeartbeat",value:function(){var a=this.mostRecentHeartbeat,t=this.metadata.playback.position;t!==a&&t-a>=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(t))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(a){var t=this;return new Promise(function(e,n){var o=a.id;(0,u.default)("https://api.vimeo.com/videos/"+o,{headers:{Authorization:"Bearer "+t.authToken}}).then(function(h){return h.ok?h.json():n(h)}).then(function(h){t.metadata.content.title=h.name,t.metadata.content.description=h.description,t.metadata.content.publisher=h.user.name,t.metadata.playback.position=0,t.metadata.playback.totalLength=h.duration}).catch(function(h){return console.error("Request to Vimeo API Failed with: ",h),n(h)})})}},{key:"updateMetadata",value:function(a){var t=this;return new Promise(function(e,n){t.player.getVolume().then(function(o){o&&(t.metadata.playback.sound=100*o),t.metadata.playback.position=a.seconds,e()}).catch(n)})}}]),r}(c(s(1)).default);l.default=d},function(f,l,s){Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}}(),u=d(s(0)),c=d(s(1));function d(a){return a&&a.__esModule?a:{default:a}}var p=function(a){function t(e,n){(function(h,y){if(!(h instanceof y))throw new TypeError("Cannot call a class as a function")})(this,t);var o=function(h,y){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?h:y}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"YoutubeAnalytics"));return o.player=e,o.apiKey=n,o.playerLoaded=!1,o.playbackStarted=!1,o.contentStarted=!1,o.isPaused=!1,o.isBuffering=!1,o.isSeeking=!1,o.lastRecordedTime={timeReported:Date.now(),timeElapsed:0},o.metadata=[{playback:{video_player:"youtube"},content:{}}],o.playlistIndex=0,o}return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(t,a),i(t,[{key:"initialize",value:function(){window.segmentYoutubeOnStateChange=this.onPlayerStateChange.bind(this),window.segmentYoutubeOnReady=this.onPlayerReady.bind(this),this.player.addEventListener("onReady","segmentYoutubeOnReady"),this.player.addEventListener("onStateChange","segmentYoutubeOnStateChange")}},{key:"onPlayerReady",value:function(e){this.retrieveMetadata()}},{key:"onPlayerStateChange",value:function(e){var n=this.player.getCurrentTime();switch(this.metadata[this.playlistIndex]&&(this.metadata[this.playlistIndex].playback.position=this.metadata[this.playlistIndex].content.position=n,this.metadata[this.playlistIndex].playback.quality=this.player.getPlaybackQuality(),this.metadata[this.playlistIndex].playback.sound=this.player.isMuted()?0:this.player.getVolume()),e.data){case-1:if(this.playerLoaded)break;this.retrieveMetadata(),this.playerLoaded=!0;break;case YT.PlayerState.BUFFERING:this.handleBuffer();break;case YT.PlayerState.PLAYING:this.handlePlay();break;case YT.PlayerState.PAUSED:this.handlePause();break;case YT.PlayerState.ENDED:this.handleEnd()}this.lastRecordedTime={timeReported:Date.now(),timeElapsed:1e3*this.player.getCurrentTime()}}},{key:"retrieveMetadata",value:function(){var e=this;return new Promise(function(n,o){var h=e.player.getVideoData(),y=e.player.getPlaylist()||[h.video_id],m=y.join();(0,u.default)("https://www.googleapis.com/youtube/v3/videos?id="+m+"&part=snippet,contentDetails&key="+e.apiKey).then(function(b){if(!b.ok){var v=new Error("Segment request to Youtube API failed (likely due to a bad API Key. Events will still be sent but will not contain video metadata)");throw v.response=b,v}return b.json()}).then(function(b){e.metadata=[];for(var v=0,k=0;k<y.length;k++){var P=b.items[k];e.metadata.push({content:{title:P.snippet.title,description:P.snippet.description,keywords:P.snippet.tags,channel:P.snippet.channelTitle,airdate:P.snippet.publishedAt}}),v+=r(P.contentDetails.duration)}for(k=0;k<y.length;k++)e.metadata[k].playback={total_length:v,video_player:"youtube"};n()}).catch(function(b){e.metadata=y.map(function(v){return{playback:{video_player:"youtube"},content:{}}}),o(b)})})}},{key:"handleBuffer",value:function(){var e=this.determineSeek();this.playbackStarted||(this.playbackStarted=!0,this.track("Video Playback Started",this.metadata[this.playlistIndex].playback)),e&&!this.isSeeking&&(this.isSeeking=!0,this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback)),this.isSeeking&&(this.track("Video Playback Seek Completed",this.metadata[this.playlistIndex].playback),this.isSeeking=!1);var n=this.player.getPlaylist();n&&this.player.getCurrentTime()===0&&this.player.getPlaylistIndex()!==this.playlistIndex&&(this.contentStarted=!1,this.playlistIndex===n.length-1&&this.player.getPlaylistIndex()===0&&(this.track("Video Playback Completed",this.metadata[this.player.getPlaylistIndex()].playback),this.track("Video Playback Started",this.metadata[this.player.getPlaylistIndex()].playback))),this.track("Video Playback Buffer Started",this.metadata[this.playlistIndex].playback),this.isBuffering=!0}},{key:"handlePlay",value:function(){this.contentStarted||(this.playlistIndex=this.player.getPlaylistIndex(),this.playlistIndex===-1&&(this.playlistIndex=0),this.track("Video Content Started",this.metadata[this.playlistIndex].content),this.contentStarted=!0),this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused&&(this.track("Video Playback Resumed",this.metadata[this.playlistIndex].playback),this.isPaused=!1)}},{key:"handlePause",value:function(){var e=this.determineSeek();this.isBuffering&&(this.track("Video Playback Buffer Completed",this.metadata[this.playlistIndex].playback),this.isBuffering=!1),this.isPaused||(e?(this.track("Video Playback Seek Started",this.metadata[this.playlistIndex].playback),this.isSeeking=!0):(this.track("Video Playback Paused",this.metadata[this.playlistIndex].playback),this.isPaused=!0))}},{key:"handleEnd",value:function(){this.track("Video Content Completed",this.metadata[this.playlistIndex].content),this.contentStarted=!1;var e=this.player.getPlaylistIndex(),n=this.player.getPlaylist();(n&&e===n.length-1||e===-1)&&(this.track("Video Playback Completed",this.metadata[this.playlistIndex].playback),this.playbackStarted=!1)}},{key:"determineSeek",value:function(){var e=this.isPaused||this.isBuffering?0:Date.now()-this.lastRecordedTime.timeReported,n=1e3*this.player.getCurrentTime()-this.lastRecordedTime.timeElapsed;return Math.abs(e-n)>2e3}}]),t}(c.default);function r(a){var t=a.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return t=t.slice(1).map(function(e){if(e!=null)return e.replace(/\D/,"")}),3600*(parseInt(t[0])||0)+60*(parseInt(t[1])||0)+(parseInt(t[2])||0)}l.default=p}])})})(w);const I=x(w.exports),j=_({__proto__:null,default:I},[w.exports]);export{j as i};