@equinor/fusion-framework-cli 10.0.0-alpha-1691ce366ff2e68db5722686eda883710ca88dea → 10.0.0-alpha-df90c0f890db097d17d4b84fe6face6323143970
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.
|
@@ -75,7 +75,7 @@ Error Description: `+l.message)),[2,null];case 4:return i||(this.logger.warning(
|
|
|
75
75
|
`:`
|
|
76
76
|
`)+r,i=n+1,n=t.indexOf(`
|
|
77
77
|
`,i)}while(n!==-1);return o+=t.slice(i),o}const{stdout:C9,stderr:k9}=tz,G3=Symbol("GENERATOR"),mu=Symbol("STYLER"),tf=Symbol("IS_EMPTY"),E9=["ansi","ansi","ansi256","ansi16m"],vu=Object.create(null),iz=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=C9?C9.level:0;t.level=e.level===void 0?r:e.level},oz=t=>{const e=(...r)=>r.join(" ");return iz(e,t),Object.setPrototypeOf(e,Uf.prototype),e};function Uf(t){return oz(t)}Object.setPrototypeOf(Uf.prototype,Function.prototype);for(const[t,e]of Object.entries(Fo))vu[t]={get(){const r=S0(this,Y3(e.open,e.close,this[mu]),this[tf]);return Object.defineProperty(this,t,{value:r}),r}};vu.visible={get(){const t=S0(this,this[mu],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const K3=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?Fo[r].ansi16m(...n):e==="ansi256"?Fo[r].ansi256(Fo.rgbToAnsi256(...n)):Fo[r].ansi(Fo.rgbToAnsi(...n)):t==="hex"?K3("rgb",e,r,...Fo.hexToRgb(...n)):Fo[r][t](...n),az=["rgb","hex","ansi256"];for(const t of az){vu[t]={get(){const{level:r}=this;return function(...n){const i=Y3(K3(t,E9[r],"color",...n),Fo.color.close,this[mu]);return S0(this,i,this[tf])}}};const e="bg"+t[0].toUpperCase()+t.slice(1);vu[e]={get(){const{level:r}=this;return function(...n){const i=Y3(K3(t,E9[r],"bgColor",...n),Fo.bgColor.close,this[mu]);return S0(this,i,this[tf])}}}}const sz=Object.defineProperties(()=>{},{...vu,level:{enumerable:!0,get(){return this[G3].level},set(t){this[G3].level=t}}}),Y3=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},S0=(t,e,r)=>{const n=(...i)=>cz(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,sz),n[G3]=t,n[mu]=e,n[tf]=r,n},cz=(t,e)=>{if(t.level<=0||!e)return t[tf]?"":e;let r=t[mu];if(r===void 0)return e;const{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=rz(e,r.close,r.open),r=r.parent;const o=e.indexOf(`
|
|
78
|
-
`);return o!==-1&&(e=nz(e,i,n,o)),n+e+i};Object.defineProperties(Uf.prototype,vu);const S9=Uf();Uf({level:k9?k9.level:0});const lz=t=>{if(typeof t!="string")throw new Error("Expected LogLevel key to be a string.");const e=t.toLowerCase(),r=Object.keys(yr).find(n=>n.toLowerCase()===e);if(!r)throw new Error(`Failed to parse LogLevel from string: ${t}.`);return yr[r]},dz=t=>{const e=Number(t);if(Object.values(yr).includes(e))return e;if(isNaN(e))return lz(t);throw Error(`Invalid log level: ${t}`)};var uz={},yr;(function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Debug=4]="Debug"})(yr||(yr={}));const hz=()=>{const t=uz.FUSION_LOG_LEVEL;if(t)try{return dz(t)}catch{return yr.Error}return yr.Error},fz=hz(),pz="1.1.0";class mz{constructor(){this.level=fz,this.version=pz,this._log$=new rn}get log(){return this._log$.pipe(ze(e=>this.level>=e.lvl))}debug(...e){this._log$.next({lvl:yr.Debug,msg:this._createMessage(yr.Debug,...e)})}info(...e){this._log$.next({lvl:yr.Info,msg:this._createMessage(yr.Info,...e)})}warn(...e){this._log$.next({lvl:yr.Warning,msg:this._createMessage(yr.Warning,...e)})}error(...e){this._log$.next({lvl:yr.Error,msg:this._createMessage(yr.Error,...e)})}}class Av extends mz{constructor(e,r){super(),this.title=e,this.subtitle=r,this.log.subscribe(({lvl:n,msg:i})=>{switch(n){case yr.Debug:console.debug(...i);break;case yr.Info:console.info(...i);break;case yr.Warning:console.warn(...i);break;case yr.Error:console.error(...i);break}})}_createMessage(e,...r){return[this._formatTitle(e),...r]}_formatTitle(e){const r=S9.magenta([this.title,this.subtitle].filter(n=>!!n).join(" - "));switch(e){case yr.Warning:case yr.Error:return S9.bold(r)}return r}createSubLogger(e,r,n){const i=new Av(`${this.title}::${e}`,r??this.subtitle);return i.level=n===void 0?this.level:n,i}}var Po=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},T9=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ts,Yl,i2;class vz extends Je{get status(){return Po(this,ts,"f").value}get status$(){return Po(this,ts,"f").asObservable()}get transaction(){return Po(this,i2,"f")}get closed(){return this.status==="complete"||this.status==="error"||this.status==="canceled"}constructor(e,r,n){super(o=>{const{transaction:a}=this,s=e.action$.pipe(ze(c=>c.meta.transaction===a));o.add(e.state$.pipe(ze(c=>!!c[a]),ye(c=>c[a])).subscribe(c=>{Po(this,ts,"f").next(c.status)})),o.add(s.pipe(ze(ht.execute.success.match),ye(({payload:c})=>c)).subscribe(c=>{Po(this,ts,"f").next("complete"),o.next(c),o.complete()})),o.add(s.pipe(ze(ht.error.match),ye(({payload:c})=>c)).subscribe(c=>{Po(this,ts,"f").next("error"),o.error(c.error)})),o.add(s.pipe(ze(ht.cancel.match)).subscribe(c=>{Po(this,ts,"f").next("canceled"),o.error(new $c("abort",{message:c.payload.reason||`job: ${a} was canceled`,request:Po(this,Yl,"f").getRequest(c.meta.transaction)}))})),n!=null&&n.signal&&o.add(Jc(n==null?void 0:n.signal,"abort").pipe(ye(()=>ht.cancel(a,`job: ${a} was aborted on signal from caller: ${n==null?void 0:n.ref}`))).subscribe(c=>e.next(c))),o.add(()=>{this.complete()})}),ts.set(this,new Ll("idle")),Yl.set(this,void 0),i2.set(this,void 0),this.created=Date.now(),T9(this,Yl,e,"f");const i=ht.request(r,{ref:n==null?void 0:n.ref,retry:n==null?void 0:n.retry});T9(this,i2,i.meta.transaction,"f"),Po(this,Yl,"f").next(i)}complete(e){this.closed||this.cancel(e??`job: ${this.transaction} was completed`)}cancel(e){const r=this.transaction;Po(this,Yl,"f").cancel(r,e??`job: ${r} was canceled`)}[(ts=new WeakMap,Yl=new WeakMap,i2=new WeakMap,Symbol.dispose)](){this.complete()}}var gz=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},ct=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},_4=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Dt,kc,Oo;class A9 extends Je{get closed(){return ct(this,Dt,"f").closed}get state$(){return ct(this,Dt,"f").asObservable()}get action$(){return ct(this,Dt,"f").action$}get success$(){return this.action$.pipe(ze(ht.execute.success.match),ye(({payload:e})=>e))}get error$(){return this.action$.pipe(ja("client/error"),G1(ct(this,Dt,"f")),ye(([e,r])=>{const{payload:n,meta:{transaction:i}}=e,o=r[i];return new $c("error",{request:o,message:`job: ${i} failed`,cause:n})}))}constructor(e,r){var n;super(i=>ct(this,Dt,"f").subscribe(i)),Dt.set(this,void 0),kc.set(this,void 0),Oo.set(this,void 0),_4(this,Dt,new jf(QF({})),"f"),_4(this,kc,new jr(()=>ct(this,Dt,"f").complete()),"f"),ct(this,kc,"f").add(ct(this,Dt,"f").addFlow(GF)),ct(this,kc,"f").add(ct(this,Dt,"f").addFlow(KF(e))),ct(this,kc,"f").add(ct(this,Dt,"f").addFlow(YF(Object.assign({count:0,delay:0},r==null?void 0:r.retry)))),_4(this,Oo,(n=r==null?void 0:r.logger)!==null&&n!==void 0?n:new Av("QueryClient"),"f"),ct(this,Dt,"f").addEffect(ht.request.type,({payload:i,meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job requested",{transaction:o,payload:i})}),ct(this,Dt,"f").addEffect(ht.execute.type,({payload:i,meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job executing",{transaction:o,payload:i})}),ct(this,Dt,"f").addEffect(ht.execute.success.type,({payload:i})=>{ct(this,Oo,"f").info("Job complete",Object.assign({},i))}),ct(this,Dt,"f").addEffect(ht.execute.failure.type,({payload:i,meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job failed",{transaction:o,payload:i})}),ct(this,Dt,"f").addEffect(ht.cancel.type,({payload:{reason:i},meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job canceled",{transaction:o,reason:i})}),ct(this,Dt,"f").addEffect(ht.error.type,({payload:{transaction:i,error:o}})=>{ct(this,Oo,"f").error("Job error",{transaction:i,error:o})})}next(e){ct(this,Dt,"f").next(e)}query(e,r){const n=new vz(this,e,r),i=n.pipe(Ev({connector:()=>new kN,resetOnRefCountZero:!1}));return Object.defineProperties(i,{transaction:{get:()=>n.transaction},created:{get:()=>n.created},status:{get:()=>n.status},closed:{get:()=>n.closed},cancel:{value:o=>n.cancel(o)},complete:{value:()=>n.complete()}}),i}nextAsync(e,r){return gz(this,void 0,void 0,function*(){return Xr(this.query(e,r))})}getRequest(e){return ct(this,Dt,"f").value[e]}getRequestByRef(e){return Object.values(ct(this,Dt,"f").value).find(r=>r.ref===e)}cancelTaskByRef(e,r){const n=this.getRequestByRef(e);n!=null&&n.ref&&this.cancel(n.transaction,r)}cancel(e,r){if(e)ct(this,Dt,"f").value[e]?(r??(r=`cancelation requested for job: ${e}`),ct(this,Dt,"f").next(ht.cancel(e,r))):ct(this,Oo,"f").warn("Task not registered, nothing to cancel",{transaction:e,reason:r});else for(const n of Object.keys(ct(this,Dt,"f").value))this.cancel(n,"all transactions requested canceled")}on(e,r){return ct(this,Dt,"f").addEffect(ht[e].type,n=>{r(n,this)})}complete(){ct(this,kc,"f").unsubscribe()}}Dt=new WeakMap,kc=new WeakMap,Oo=new WeakMap;function yz(){return{set:Jr("cache/set",(t,e)=>({payload:{key:t,entry:e}})),remove:Jr("cache/remove",t=>({payload:t})),invalidate:Jr("cache/invalidate",(t,e)=>({payload:t,meta:{item:e}})),mutate:Jr("cache/mutate",(t,e,r)=>({payload:Object.assign(Object.assign({},e),{key:t}),meta:{item:r}})),trim:Jr("cache/trim",t=>({payload:t}))}}const cc=yz(),_z=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)};function bz(t,e={}){return Hu(e,r=>r.addCase(t.set,(n,i)=>{var o;const{key:a,entry:s}=i.payload,c=n[a];if(c)c.updated=Date.now(),(o=c.updates)!==null&&o!==void 0||(c.updates=0),c.updates++,c.value=s.value,c.transaction=s.transaction,delete c.mutated;else{const l=Date.now();n[a]=Object.assign(Object.assign({},s),{created:l,updated:l})}}).addCase(t.remove,(n,i)=>{delete n[i.payload]}).addCase(t.invalidate,(n,i)=>{const o=i.payload?[i.payload]:Object.keys(n);for(const a of o){const s=n[a];s&&delete s.updated}}).addCase(t.mutate,(n,i)=>{var o;const{key:a,value:s,updated:c}=i.payload,l=n[a];l&&(l.value=s,l.updated=c,l.mutated=Date.now(),(o=l.updates)!==null&&o!==void 0||(l.updates=0),l.updates++)}).addCase(t.trim,(n,i)=>{var o,a;const{payload:s}=i,c=(o=s.sort)!==null&&o!==void 0?o:_z,l=Object.keys(n),d=Object.entries(n).filter(([u,h])=>!s.validate||s.validate(h)).sort((u,h)=>c(u[1],h[1])).slice(0,(a=s.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).map(([u])=>u);if(l.length!==d.length)for(const u of l){const h=d.indexOf(u);h!==-1?d.splice(h,1):delete n[u]}}))}var Wr=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},wz=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Er;class I9{get state(){return Wr(this,Er,"f").value}get state$(){return Wr(this,Er,"f").asObservable()}get action$(){return Wr(this,Er,"f").action$}constructor(e){Er.set(this,void 0);const{trimming:r,initial:n}=e??{};wz(this,Er,new jf(bz(cc,n)),"f"),r&&Wr(this,Er,"f").addEffect("cache/set",()=>Wr(this,Er,"f").next(cc.trim(r)))}has(e){return e in Wr(this,Er,"f").value}setItem(e,r){const{args:n,transaction:i,value:o}=r;Wr(this,Er,"f").next(cc.set(e,{args:n,transaction:i,value:o}))}getItem(e){return Wr(this,Er,"f").value[e]}removeItem(e){Wr(this,Er,"f").next(cc.remove(e))}invalidate(e){const r=e?Wr(this,Er,"f").value[e]:void 0;Wr(this,Er,"f").next(cc.invalidate(e,r))}mutate(e,r){const n=e in Wr(this,Er,"f").value?Wr(this,Er,"f").value[e]:void 0;if(!n)throw new Error(`Cannot mutate cache item with key ${e}: item not found`);const i=typeof r=="function"?r(n==null?void 0:n.value):r;Wr(this,Er,"f").next(cc.mutate(e,i,n))}trim(e){Wr(this,Er,"f").next(cc.trim(e))}reset(){Wr(this,Er,"f").reset()}complete(){Wr(this,Er,"f").complete()}}Er=new WeakMap;var R9=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Q3,X3;class xz extends rn{get created(){return R9(this,Q3,"f")}get uuid(){return R9(this,X3,"f")}constructor(e,r,n){super(),this.key=e,this.args=r,this.options=n,Q3.set(this,Date.now()),X3.set(this,E0())}processJob(e,r){return e.pipe(ye(n=>{const{key:i,uuid:o,created:a}=this;return{key:i,uuid:o,created:a,status:"complete",transaction:e.transaction,complete:n.completed,value:n.value}}),o0(()=>{r==null||r.debug("QueryTask complete",{uuid:this.uuid,key:this.key,job:{status:e.status,transaction:e.transaction}}),e.complete()})).subscribe(this)}}Q3=new WeakMap,X3=new WeakMap;var Ae=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},lc=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Cz=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},Ec,ss,Ti,Oh,ma,cs,Hh,em,Nr;const kz=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()},Ez=(t="switch")=>typeof t=="function"?t:(()=>{switch(t){case"concat":return CF;case"merge":return kF;case"switch":return EF;default:throw new Error(`Invalid queue operator: ${t}`)}})();class Qn{get client(){return Ae(this,ss,"f")}get cache(){return Ae(this,Ti,"f")}constructor(e){var r,n;Ec.set(this,new jr),ss.set(this,void 0),Ti.set(this,void 0),Oh.set(this,new rn),ma.set(this,{}),cs.set(this,void 0),Hh.set(this,void 0),em.set(this,E0()),Nr.set(this,void 0),lc(this,Nr,(r=e.logger)!==null&&r!==void 0?r:new Av("Query",Ae(this,em,"f")),"f"),lc(this,cs,o=>NF(e.key(o),Ae(this,em,"f")),"f"),lc(this,Hh,(n=e==null?void 0:e.validate)!==null&&n!==void 0?n:kz(e==null?void 0:e.expire),"f"),e.client instanceof A9?lc(this,ss,e.client,"f"):(lc(this,ss,new A9(e.client.fn,Object.assign({logger:Ae(this,Nr,"f").createSubLogger("Client")},e.client.options)),"f"),Ae(this,Ec,"f").add(()=>Ae(this,ss,"f").complete())),e.cache instanceof I9?lc(this,Ti,e.cache,"f"):(lc(this,Ti,new I9(e.cache||{}),"f"),Ae(this,Ec,"f").add(()=>Ae(this,Ti,"f").complete()));const i=Ez(e.queueOperator);Ae(this,Ec,"f").add(()=>Ae(this,Oh,"f").complete()),Ae(this,Ec,"f").add(Ae(this,Oh,"f").pipe(za(o=>Ae(this,Nr,"f").debug("Task added to queue",{key:o})),ze(o=>o in Ae(this,ma,"f")),i(o=>{const a=Ae(this,ma,"f")[o],{args:s,options:c,uuid:l}=a;if(Ae(this,Nr,"f").debug("Task selected from queue",{key:o,task:a.uuid,args:s,options:c}),!(a!=null&&a.observed))return Ae(this,Nr,"f").debug("Task skipped",{task:l}),delete Ae(this,ma,"f")[o],Lt;const d=Ae(this,ss,"f").query(s,Object.assign(Object.assign({},c),{ref:a.uuid}));return new Je(u=>{const{transaction:h}=d;Ae(this,Nr,"f").info("Task stated",{task:l,transaction:h}),u.add(()=>{Ae(this,Nr,"f").debug("Task closed",{task:l,transaction:h,jobStatus:d.status}),d.complete("task closed"),delete Ae(this,ma,"f")[o]}),u.add(lD(10).pipe(ze(()=>!a.observed)).subscribe(()=>{d.cancel(`task: ${a.uuid} is not observed`),u.complete()})),u.add(a.processJob(d,Ae(this,Nr,"f"))),d.pipe(ye(f=>({result:f,task:a})),Jt(()=>Lt)).subscribe(u)})}),iA(()=>!Ae(this,ss,"f").closed)).subscribe(o=>{const{value:a,transaction:s}=o.result,{args:c,key:l,uuid:d}=o.task;Ae(this,Nr,"f").debug("Task output added to cache",{uuid:d,args:c,key:l,transaction:s,value:a}),Ae(this,Ti,"f").setItem(l,{value:a,args:c,transaction:s})}))}query(e,r){return this._query(e,r)}queryAsync(e,r){const n=r||{},{skipResolve:i}=n,o=Cz(n,["skipResolve"]),a=i?Xr:vr;return new Promise((s,c)=>{r!=null&&r.signal&&r.signal.addEventListener("abort",()=>c(new Error("Query aborted"))),a(this._query(e,o).pipe(k6())).then(s,c)})}persistentQuery(e,r){const n=Ae(this,cs,"f").call(this,e),i=this._query(e,r);return new Je(o=>{var a;o.add(i.subscribe({next:o.next.bind(o),error:o.error.bind(o)}));const s=((a=r==null?void 0:r.cache)===null||a===void 0?void 0:a.validate)||Ae(this,Hh,"f");o.add(this.cache.state$.pipe(ze(c=>n in c),ye(c=>Object.assign(Object.assign({},c[n]),{key:n,status:"cache",hasValidCache:s(c[n],e)}))).subscribe(o))}).pipe(i0((o,a)=>o.transaction===a.transaction&&o.mutated===a.mutated))}generateCacheKey(e){return Ae(this,cs,"f").call(this,e)}mutate(e,r,n){const i=Ae(this,cs,"f").call(this,e);if(!(i in this.cache.state)){if((n==null?void 0:n.allowCreation)===void 0)throw new Error(`Cannot mutate cache item with key ${i}: item not found and option "allowCreation" is false`);if(n.allowCreation===!1)return;const{value:o}=typeof r=="function"?r():r;this.cache.setItem(i,{args:e,transaction:E0(),value:o})}Ae(this,Ti,"f").mutate(i,r)}invalidate(e){Ae(this,Ti,"f").invalidate(e&&Ae(this,cs,"f").call(this,e))}complete(){Ae(this,Ec,"f").unsubscribe()}onInvalidate(e){const r=Ae(this,Ti,"f").action$.pipe(ja("cache/invalidate")).subscribe(n=>e({detail:{item:n.meta.item}}));return()=>r.unsubscribe()}onMutate(e){const r=Ae(this,Ti,"f").action$.pipe(ja("cache/mutate")).subscribe(n=>e({detail:{changes:n.payload,current:n.meta.item}}));return()=>r.unsubscribe()}_query(e,r){const n=Ae(this,cs,"f").call(this,e),i=this._createTask(n,e,r);return Ae(this,Nr,"f").debug("New query created",{key:n,args:e,options:r}),i}_createTask(e,r,n){return new Je(i=>{var o,a,s,c,l;if(n!=null&&n.signal){if(n!=null&&n.signal.aborted)return Ae(this,Nr,"f").debug("Abort signal already triggered by caller",{key:e}),i.complete();i.add(Jc(n==null?void 0:n.signal,"abort").subscribe(()=>{Ae(this,Nr,"f").debug("Abort signal triggered by caller",{key:e}),i.complete()}))}const d=Ae(this,Ti,"f").getItem(e);if(d){Ae(this,Nr,"f").debug("Query has cache",{key:e,cacheEntry:d});const f=(a=(o=n==null?void 0:n.cache)===null||o===void 0?void 0:o.suppressInvalid)!==null&&a!==void 0?a:!1,m=(((s=n==null?void 0:n.cache)===null||s===void 0?void 0:s.validate)||Ae(this,Hh,"f"))(d,r),w=Object.assign(Object.assign({},d),{key:e,status:"cache",hasValidCache:m});if(Ae(this,Nr,"f").info("Query cache valid, completing",{hasValidCache:m,suppressInvalid:f,record:w}),i.next(w),m||f)return i.complete();Ae(this,Nr,"f").debug("Query cache entry is invalid, proceeding to fetch new data",{key:e})}const u=e in Ae(this,ma,"f");(c=(l=Ae(this,ma,"f"))[e])!==null&&c!==void 0||(l[e]=new xz(e,r,n));const h=Ae(this,ma,"f")[e];i.add(h.subscribe(i)),Ae(this,Nr,"f").info(u?"Query connected to existing task":"Query started new task",{key:e}),u||Ae(this,Oh,"f").next(e)})}}Ec=new WeakMap,ss=new WeakMap,Ti=new WeakMap,Oh=new WeakMap,ma=new WeakMap,cs=new WeakMap,Hh=new WeakMap,em=new WeakMap,Nr=new WeakMap;Qn.extractQueryValue=ef;var rs=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},P9=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Lh,va;class Sz extends Je{get currentContext(){return rs(this,va,"f").value}get currentContext$(){return rs(this,va,"f").asObservable()}get client(){return rs(this,Lh,"f")}constructor(e){super(r=>rs(this,va,"f").subscribe(r)),Lh.set(this,void 0),va.set(this,void 0),P9(this,Lh,new Qn(e),"f"),P9(this,va,new Ll(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Jt(()=>Lt)).subscribe(r=>this.setCurrentContext(r)):xF(e,rs(this,va,"f").value)||rs(this,va,"f").next(e)}resolveContext(e){return rs(this,Lh,"f").query({id:e}).pipe(ye(r=>r.value),Jt(r=>{throw r.cause?r.cause:r}))}resolveContextAsync(e,r){return(r!=null&&r.awaitResolve?vr:Xr)(this.resolveContext(e))}dispose(){rs(this,va,"f").complete()}}Lh=new WeakMap,va=new WeakMap;var lh=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},ft=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},dc=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ga,tm,Nh,eo,Sc,Tc,Dh,rm,nm;let Tz=class{get contextClient(){return ft(this,ga,"f")}get queryClient(){return ft(this,tm,"f")}get currentContext$(){return ft(this,ga,"f").currentContext$}get currentContext(){return ft(this,ga,"f").currentContext}set currentContext(e){if(console.warn("@deprecated","ContextProvider.currentContext","use setCurrentContextById|setCurrentContext|clearCurrentContext"),e===void 0)throw Error("not allowed to set current context as undefined undefined!");this.setCurrentContextAsync(e)}constructor(e){var r,n,i;ga.set(this,void 0),tm.set(this,void 0),Nh.set(this,void 0),eo.set(this,void 0),Sc.set(this,new jr),Tc.set(this,void 0),Dh.set(this,void 0),rm.set(this,void 0),nm.set(this,new rn);const{config:o,event:a}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),dc(this,eo,a,"f"),o.resolveContext&&(this.resolveContext=(r=o.resolveContext)===null||r===void 0?void 0:r.bind(this)),o.validateContext&&(this.validateContext=(n=o.validateContext)===null||n===void 0?void 0:n.bind(this)),dc(this,Tc,o.contextType,"f"),dc(this,Dh,o.contextFilter,"f"),dc(this,ga,new Sz(o.client.get),"f"),dc(this,tm,new Qn(o.client.query),"f"),o.client.related&&dc(this,Nh,new Qn(o.client.related),"f"),dc(this,rm,(i=o.contextParameterFn)!==null&&i!==void 0?i:s=>({search:s.search,filter:{type:s.type}}),"f"),ft(this,eo,"f")&&(ft(this,Sc,"f").add(this.currentContext$.pipe(a0()).subscribe(([s,c])=>{var l;(l=ft(this,eo,"f"))===null||l===void 0||l.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:s,next:c}})})),ft(this,Sc,"f").add(ft(this,eo,"f").addEventListener("onCurrentContextChanged",s=>{s.source!==this&&s.detail.next!==void 0&&this.setCurrentContext(s.detail.next)}))),ft(this,Sc,"f").add(ft(this,nm,"f").pipe(Rt(s=>s),za(s=>console.debug("ContextProvider::#contextQueue",s))).subscribe(s=>{ft(this,ga,"f").setCurrentContext(s??null)}))}connectParentContext(e,r){const i=e.currentContext$.pipe(ze(o=>o!==void 0),ze((o,a)=>{var s;return r!=null&&r.skipFirst&&a<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",o),!1):((s=this.currentContext)===null||s===void 0?void 0:s.id)!==(o==null?void 0:o.id)}),Rt(o=>lh(this,void 0,void 0,function*(){var a;if(!o)return{next:o};const s=yield(a=ft(this,eo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onParentContextChanged",{source:this,detail:o,cancelable:!0});return{next:o,canceled:s==null?void 0:s.canceled}})),ze(o=>!o.canceled),Rt(({next:o})=>this.setCurrentContext(o,{validate:!0,resolve:!0}).pipe(Jt(a=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",a),Lt)))),Jt(o=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",o),Lt))).subscribe();return ft(this,Sc,"f").add(i),i}setCurrentContextById(e){return new Je(r=>{try{ft(this,ga,"f").resolveContext(e).pipe(ze(n=>!!n),Rt(n=>this.setCurrentContext(n))).subscribe(r)}catch(n){r.error(n)}})}setCurrentContextByIdAsync(e){return vr(this.setCurrentContextById(e))}setCurrentContext(e,r){const n=new rn,i=new rn,o=this._setCurrentContext(e,r).pipe(za(a=>i.next(a)),el(n),o0(()=>i.complete()),Jt(a=>(i.error(a),Lt)));return ft(this,nm,"f").next(o),i.pipe(o0(()=>n.next(!0)))}_setCurrentContext(e,r){return new Je(n=>{var i;if(e===this.currentContext)return n.next(e),n.complete();if(e&&(r!=null&&r.validate)&&!this.validateContext(e)){if(!r.resolve)return(i=ft(this,eo,"f"))===null||i===void 0||i.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),n.error(Error("failed to validate provided context"));if(r.resolve)return Pr(e).pipe(Rt(o=>lh(this,void 0,void 0,function*(){var a;const s=yield(a=ft(this,eo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("resolving of context was canceled");return o})),Rt(o=>this.resolveContext(o).pipe(ye(a=>({context:o,resolved:a})))),Rt(o=>lh(this,[o],void 0,function*({context:a,resolved:s}){var c;const l=yield(c=ft(this,eo,"f"))===null||c===void 0?void 0:c.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:a,resolved:s}});if(l!=null&&l.canceled)throw Error("resolving of context was canceled");return s})),Rt(o=>this._setCurrentContext(o))).subscribe(n)}return Pr(e).pipe(Rt(o=>lh(this,void 0,void 0,function*(){var a;const s=yield(a=ft(this,eo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("change of context was aborted");return o}))).subscribe(o=>{n.next(o),n.complete()})})}setCurrentContextAsync(e,r){return lh(this,void 0,void 0,function*(){return vr(this.setCurrentContext(e,r))})}queryContext(e){const r=this.queryClient.query(ft(this,rm,"f").call(this,{search:e,type:ft(this,Tc,"f")})).pipe(Jt(n=>{throw n.name==="QueryClientError"?n.cause:n}),ye(n=>n.value));return ft(this,Dh,"f")?r.pipe(ye(ft(this,Dh,"f"))):r}queryContextAsync(e){return vr(this.queryContext(e))}validateContext(e){return ft(this,Tc,"f")?ft(this,Tc,"f").map(r=>r.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:ft(this,Tc,"f")}}).pipe(ye(r=>r.filter(n=>this.validateContext(n))),ye(r=>{const n=r.shift();if(!n)throw Error("failed to resolve context");return r.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",r),n}))}resolveContextAsync(e){return vr(this.resolveContext(e))}relatedContexts(e){return ft(this,Nh,"f")?ft(this,Nh,"f").query(e).pipe(ye(({value:r})=>r),Jt(r=>{throw r.cause?r.cause:r})):YT(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return vr(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContext(null)}dispose(){ft(this,Sc,"f").unsubscribe(),ft(this,ga,"f").dispose()}};ga=new WeakMap,tm=new WeakMap,Nh=new WeakMap,eo=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,Dh=new WeakMap,rm=new WeakMap,nm=new WeakMap;var Az=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Iz="context",Rz={name:Iz,configure:()=>new bF,initialize:function(t){return Az(this,void 0,void 0,function*(){var e;const r=yield t.config.createConfig(t),n=t.hasModule("event")?yield t.requireInstance("event"):void 0,i=(e=t.ref)===null||e===void 0?void 0:e.context,o=new Tz({config:r,event:n,parentContext:i}),a=new jr(()=>o.dispose());return this.postInitialize=s=>new Je(c=>{const l=r.resolveInitialContext?vt(r.resolveInitialContext(s)).pipe(ze(d=>!!d),Rt(d=>s.modules.context.setCurrentContext(d,{validate:!0,resolve:!0}))):Lt;c.add(l.pipe(Jt(d=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",d),Lt))).subscribe({next:d=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${d?d.id:"none"}]`,d)},complete:()=>{r.connectParentContext!==!1&&i&&o.connectParentContext(i),c.complete()}}))}),this.dispose=()=>a.unsubscribe(),o})}};var st;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},t.getValidEnumValues=i=>{const o=t.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return t.objectValues(a)},t.objectValues=i=>t.objectKeys(i).map(function(o){return i[o]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},t.find=(i,o)=>{for(const a of i)if(o(a))return a},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}t.joinValues=n,t.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(st||(st={}));var J3;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(J3||(J3={}));const ue=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ks=t=>{switch(typeof t){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(t)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(t)?ue.array:t===null?ue.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ue.promise:typeof Map<"u"&&t instanceof Map?ue.map:typeof Set<"u"&&t instanceof Set?ue.set:typeof Date<"u"&&t instanceof Date?ue.date:ue.object;default:return ue.unknown}},ee=st.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Pz=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class fi extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const r=e||function(o){return o.message},n={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let s=n,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(r(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return i(this),n}static assert(e){if(!(e instanceof fi))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}fi.create=t=>new fi(t);const gu=(t,e)=>{let r;switch(t.code){case ee.invalid_type:t.received===ue.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ee.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,st.jsonStringifyReplacer)}`;break;case ee.unrecognized_keys:r=`Unrecognized key(s) in object: ${st.joinValues(t.keys,", ")}`;break;case ee.invalid_union:r="Invalid input";break;case ee.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${st.joinValues(t.options)}`;break;case ee.invalid_enum_value:r=`Invalid enum value. Expected ${st.joinValues(t.options)}, received '${t.received}'`;break;case ee.invalid_arguments:r="Invalid function arguments";break;case ee.invalid_return_type:r="Invalid function return type";break;case ee.invalid_date:r="Invalid date";break;case ee.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:st.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ee.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ee.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ee.custom:r="Invalid input";break;case ee.invalid_intersection_types:r="Intersection results could not be merged";break;case ee.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ee.not_finite:r="Number must be finite";break;default:r=e.defaultError,st.assertNever(t)}return{message:r}};let $A=gu;function Mz(t){$A=t}function T0(){return $A}const A0=t=>{const{data:e,path:r,errorMaps:n,issueData:i}=t,o=[...r,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const c=n.filter(l=>!!l).slice().reverse();for(const l of c)s=l(a,{data:e,defaultError:s}).message;return{...i,path:o,message:s}},$z=[];function ce(t,e){const r=T0(),n=A0({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===gu?void 0:gu].filter(i=>!!i)});t.common.issues.push(n)}class xn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const i of r){if(i.status==="aborted")return Ze;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const i of r){const o=await i.key,a=await i.value;n.push({key:o,value:a})}return xn.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const i of r){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return Ze;o.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(n[o.value]=a.value)}return{status:e.value,value:n}}}const Ze=Object.freeze({status:"aborted"}),Dd=t=>({status:"dirty",value:t}),Mn=t=>({status:"valid",value:t}),ey=t=>t.status==="aborted",ty=t=>t.status==="dirty",rf=t=>t.status==="valid",nf=t=>typeof Promise<"u"&&t instanceof Promise;function I0(t,e,r,n){if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function ZA(t,e,r,n,i){if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r}var we;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(we||(we={}));var Vh,Fh;class ea{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const M9=(t,e)=>{if(rf(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new fi(t.common.issues);return this._error=r,this._error}}};function Ue(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(a,s)=>{var c,l;const{message:d}=t;return a.code==="invalid_enum_value"?{message:d??s.defaultError}:typeof s.data>"u"?{message:(c=d??n)!==null&&c!==void 0?c:s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:(l=d??r)!==null&&l!==void 0?l:s.defaultError}},description:i}}class Ye{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return ks(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:ks(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new xn,ctx:{common:e.parent.common,data:e.data,parsedType:ks(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(nf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;const i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ks(e)},o=this._parseSync({data:e,path:i.path,parent:i});return M9(i,o)}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ks(e)},i=this._parse({data:e,path:n.path,parent:n}),o=await(nf(i)?i:Promise.resolve(i));return M9(n,o)}refine(e,r){const n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,o)=>{const a=e(i),s=()=>o.addIssue({code:ee.custom,...n(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new bo({schema:this,typeName:Pe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Xo.create(this,this._def)}nullable(){return Ys.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mo.create(this,this._def)}promise(){return _u.create(this,this._def)}or(e){return cf.create([this,e],this._def)}and(e){return lf.create(this,e,this._def)}transform(e){return new bo({...Ue(this._def),schema:this,typeName:Pe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new pf({...Ue(this._def),innerType:this,defaultValue:r,typeName:Pe.ZodDefault})}brand(){return new z6({typeName:Pe.ZodBranded,type:this,...Ue(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new mf({...Ue(this._def),innerType:this,catchValue:r,typeName:Pe.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Bf.create(this,e)}readonly(){return vf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zz=/^c[^\s-]{8,}$/i,Oz=/^[0-9a-z]+$/,Hz=/^[0-9A-HJKMNP-TV-Z]{26}$/,Lz=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Nz=/^[a-z0-9_-]{21}$/i,Dz=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vz=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Fz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let b4;const zz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jz=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Uz=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,OA="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Bz=new RegExp(`^${OA}$`);function HA(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function qz(t){return new RegExp(`^${HA(t)}$`)}function LA(t){let e=`${OA}T${HA(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Wz(t,e){return!!((e==="v4"||!e)&&zz.test(t)||(e==="v6"||!e)&&jz.test(t))}class ho extends Ye{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ue.string){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.string,received:o.parsedType}),Ze}const n=new xn;let i;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")e.data.length>o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){const a=e.data.length>o.value,s=e.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(e,i),a?ce(i,{code:ee.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&ce(i,{code:ee.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")Vz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"email",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")b4||(b4=new RegExp(Fz,"u")),b4.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"emoji",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")Lz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"uuid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")Nz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"nanoid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")Zz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"cuid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")Oz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"cuid2",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")Hz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"ulid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),ce(i,{validation:"url",code:ee.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"regex",code:ee.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?LA(o).test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?Bz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?qz(o).test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?Dz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"duration",code:ee.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?Wz(e.data,o.version)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"ip",code:ee.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?Uz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"base64",code:ee.invalid_string,message:o.message}),n.dirty()):st.assertNever(o);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:ee.invalid_string,...we.errToObj(n)})}_addCheck(e){return new ho({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...we.errToObj(e)})}url(e){return this._addCheck({kind:"url",...we.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...we.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...we.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...we.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...we.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...we.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...we.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...we.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...we.errToObj(e)})}datetime(e){var r,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,local:(n=e==null?void 0:e.local)!==null&&n!==void 0?n:!1,...we.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...we.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...we.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...we.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...we.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...we.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...we.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...we.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...we.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...we.errToObj(r)})}nonempty(e){return this.min(1,we.errToObj(e))}trim(){return new ho({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ho({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ho({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}ho.create=t=>{var e;return new ho({checks:[],typeName:Pe.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ue(t)})};function Gz(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,o=parseInt(t.toFixed(i).replace(".","")),a=parseInt(e.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}class Ws extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ue.number){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.number,received:o.parsedType}),Ze}let n;const i=new xn;for(const o of this._def.checks)o.kind==="int"?st.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?Gz(e.data,o.value)!==0&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.not_finite,message:o.message}),i.dirty()):st.assertNever(o);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,we.toString(r))}gt(e,r){return this.setLimit("min",e,!1,we.toString(r))}lte(e,r){return this.setLimit("max",e,!0,we.toString(r))}lt(e,r){return this.setLimit("max",e,!1,we.toString(r))}setLimit(e,r,n,i){return new Ws({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:we.toString(i)}]})}_addCheck(e){return new Ws({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:we.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:we.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:we.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:we.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:we.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:we.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:we.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:we.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:we.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&st.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}Ws.create=t=>new Ws({checks:[],typeName:Pe.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ue(t)});class Gs extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ue.bigint){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.bigint,received:o.parsedType}),Ze}let n;const i=new xn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):st.assertNever(o);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,we.toString(r))}gt(e,r){return this.setLimit("min",e,!1,we.toString(r))}lte(e,r){return this.setLimit("max",e,!0,we.toString(r))}lt(e,r){return this.setLimit("max",e,!1,we.toString(r))}setLimit(e,r,n,i){return new Gs({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:we.toString(i)}]})}_addCheck(e){return new Gs({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:we.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:we.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:we.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:we.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:we.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Gs.create=t=>{var e;return new Gs({checks:[],typeName:Pe.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ue(t)})};class of extends Ye{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ue.boolean){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.boolean,received:n.parsedType}),Ze}return Mn(e.data)}}of.create=t=>new of({typeName:Pe.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ue(t)});class _l extends Ye{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ue.date){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.date,received:o.parsedType}),Ze}if(isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_date}),Ze}const n=new xn;let i;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):st.assertNever(o);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new _l({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:we.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:we.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}_l.create=t=>new _l({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:Pe.ZodDate,...Ue(t)});class R0 extends Ye{_parse(e){if(this._getType(e)!==ue.symbol){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.symbol,received:n.parsedType}),Ze}return Mn(e.data)}}R0.create=t=>new R0({typeName:Pe.ZodSymbol,...Ue(t)});class af extends Ye{_parse(e){if(this._getType(e)!==ue.undefined){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.undefined,received:n.parsedType}),Ze}return Mn(e.data)}}af.create=t=>new af({typeName:Pe.ZodUndefined,...Ue(t)});class sf extends Ye{_parse(e){if(this._getType(e)!==ue.null){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.null,received:n.parsedType}),Ze}return Mn(e.data)}}sf.create=t=>new sf({typeName:Pe.ZodNull,...Ue(t)});class yu extends Ye{constructor(){super(...arguments),this._any=!0}_parse(e){return Mn(e.data)}}yu.create=t=>new yu({typeName:Pe.ZodAny,...Ue(t)});class nl extends Ye{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Mn(e.data)}}nl.create=t=>new nl({typeName:Pe.ZodUnknown,...Ue(t)});class Ua extends Ye{_parse(e){const r=this._getOrReturnCtx(e);return ce(r,{code:ee.invalid_type,expected:ue.never,received:r.parsedType}),Ze}}Ua.create=t=>new Ua({typeName:Pe.ZodNever,...Ue(t)});class P0 extends Ye{_parse(e){if(this._getType(e)!==ue.undefined){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.void,received:n.parsedType}),Ze}return Mn(e.data)}}P0.create=t=>new P0({typeName:Pe.ZodVoid,...Ue(t)});class mo extends Ye{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==ue.array)return ce(r,{code:ee.invalid_type,expected:ue.array,received:r.parsedType}),Ze;if(i.exactLength!==null){const a=r.data.length>i.exactLength.value,s=r.data.length<i.exactLength.value;(a||s)&&(ce(r,{code:a?ee.too_big:ee.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ce(r,{code:ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ce(r,{code:ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>i.type._parseAsync(new ea(r,a,r.path,s)))).then(a=>xn.mergeArray(n,a));const o=[...r.data].map((a,s)=>i.type._parseSync(new ea(r,a,r.path,s)));return xn.mergeArray(n,o)}get element(){return this._def.type}min(e,r){return new mo({...this._def,minLength:{value:e,message:we.toString(r)}})}max(e,r){return new mo({...this._def,maxLength:{value:e,message:we.toString(r)}})}length(e,r){return new mo({...this._def,exactLength:{value:e,message:we.toString(r)}})}nonempty(e){return this.min(1,e)}}mo.create=(t,e)=>new mo({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Pe.ZodArray,...Ue(e)});function fd(t){if(t instanceof ir){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=Xo.create(fd(n))}return new ir({...t._def,shape:()=>e})}else return t instanceof mo?new mo({...t._def,type:fd(t.element)}):t instanceof Xo?Xo.create(fd(t.unwrap())):t instanceof Ys?Ys.create(fd(t.unwrap())):t instanceof ta?ta.create(t.items.map(e=>fd(e))):t}class ir extends Ye{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=st.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ue.object){const l=this._getOrReturnCtx(e);return ce(l,{code:ee.invalid_type,expected:ue.object,received:l.parsedType}),Ze}const{status:n,ctx:i}=this._processInputParams(e),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ua&&this._def.unknownKeys==="strip"))for(const l in i.data)a.includes(l)||s.push(l);const c=[];for(const l of a){const d=o[l],u=i.data[l];c.push({key:{status:"valid",value:l},value:d._parse(new ea(i,u,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Ua){const l=this._def.unknownKeys;if(l==="passthrough")for(const d of s)c.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(l==="strict")s.length>0&&(ce(i,{code:ee.unrecognized_keys,keys:s}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const d of s){const u=i.data[d];c.push({key:{status:"valid",value:d},value:l._parse(new ea(i,u,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const d of c){const u=await d.key,h=await d.value;l.push({key:u,value:h,alwaysSet:d.alwaysSet})}return l}).then(l=>xn.mergeObjectSync(n,l)):xn.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return we.errToObj,new ir({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,o,a,s;const c=(a=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,r,n).message)!==null&&a!==void 0?a:n.defaultError;return r.code==="unrecognized_keys"?{message:(s=we.errToObj(e).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new ir({...this._def,unknownKeys:"strip"})}passthrough(){return new ir({...this._def,unknownKeys:"passthrough"})}extend(e){return new ir({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ir({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Pe.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new ir({...this._def,catchall:e})}pick(e){const r={};return st.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new ir({...this._def,shape:()=>r})}omit(e){const r={};return st.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new ir({...this._def,shape:()=>r})}deepPartial(){return fd(this)}partial(e){const r={};return st.objectKeys(this.shape).forEach(n=>{const i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new ir({...this._def,shape:()=>r})}required(e){const r={};return st.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof Xo;)o=o._def.innerType;r[n]=o}}),new ir({...this._def,shape:()=>r})}keyof(){return NA(st.objectKeys(this.shape))}}ir.create=(t,e)=>new ir({shape:()=>t,unknownKeys:"strip",catchall:Ua.create(),typeName:Pe.ZodObject,...Ue(e)});ir.strictCreate=(t,e)=>new ir({shape:()=>t,unknownKeys:"strict",catchall:Ua.create(),typeName:Pe.ZodObject,...Ue(e)});ir.lazycreate=(t,e)=>new ir({shape:t,unknownKeys:"strip",catchall:Ua.create(),typeName:Pe.ZodObject,...Ue(e)});class cf extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new fi(s.ctx.common.issues));return ce(r,{code:ee.invalid_union,unionErrors:a}),Ze}if(r.common.async)return Promise.all(n.map(async o=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const c of n){const l={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(c=>new fi(c));return ce(r,{code:ee.invalid_union,unionErrors:s}),Ze}}get options(){return this._def.options}}cf.create=(t,e)=>new cf({options:t,typeName:Pe.ZodUnion,...Ue(e)});const ya=t=>t instanceof uf?ya(t.schema):t instanceof bo?ya(t.innerType()):t instanceof hf?[t.value]:t instanceof Ks?t.options:t instanceof ff?st.objectValues(t.enum):t instanceof pf?ya(t._def.innerType):t instanceof af?[void 0]:t instanceof sf?[null]:t instanceof Xo?[void 0,...ya(t.unwrap())]:t instanceof Ys?[null,...ya(t.unwrap())]:t instanceof z6||t instanceof vf?ya(t.unwrap()):t instanceof mf?ya(t._def.innerType):[];class Iv extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ue.object)return ce(r,{code:ee.invalid_type,expected:ue.object,received:r.parsedType}),Ze;const n=this.discriminator,i=r.data[n],o=this.optionsMap.get(i);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(ce(r,{code:ee.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){const i=new Map;for(const o of r){const a=ya(o.shape[e]);if(!a.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);i.set(s,o)}}return new Iv({typeName:Pe.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ue(n)})}}function ry(t,e){const r=ks(t),n=ks(e);if(t===e)return{valid:!0,data:t};if(r===ue.object&&n===ue.object){const i=st.objectKeys(e),o=st.objectKeys(t).filter(s=>i.indexOf(s)!==-1),a={...t,...e};for(const s of o){const c=ry(t[s],e[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(r===ue.array&&n===ue.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let o=0;o<t.length;o++){const a=t[o],s=e[o],c=ry(a,s);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===ue.date&&n===ue.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class lf extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),i=(o,a)=>{if(ey(o)||ey(a))return Ze;const s=ry(o.value,a.value);return s.valid?((ty(o)||ty(a))&&r.dirty(),{status:r.value,value:s.data}):(ce(n,{code:ee.invalid_intersection_types}),Ze)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}lf.create=(t,e,r)=>new lf({left:t,right:e,typeName:Pe.ZodIntersection,...Ue(r)});class ta extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.array)return ce(n,{code:ee.invalid_type,expected:ue.array,received:n.parsedType}),Ze;if(n.data.length<this._def.items.length)return ce(n,{code:ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ze;!this._def.rest&&n.data.length>this._def.items.length&&(ce(n,{code:ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...n.data].map((a,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new ea(n,a,n.path,s)):null}).filter(a=>!!a);return n.common.async?Promise.all(o).then(a=>xn.mergeArray(r,a)):xn.mergeArray(r,o)}get items(){return this._def.items}rest(e){return new ta({...this._def,rest:e})}}ta.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ta({items:t,typeName:Pe.ZodTuple,rest:null,...Ue(e)})};class df extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.object)return ce(n,{code:ee.invalid_type,expected:ue.object,received:n.parsedType}),Ze;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in n.data)i.push({key:o._parse(new ea(n,s,n.path,s)),value:a._parse(new ea(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?xn.mergeObjectAsync(r,i):xn.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Ye?new df({keyType:e,valueType:r,typeName:Pe.ZodRecord,...Ue(n)}):new df({keyType:ho.create(),valueType:e,typeName:Pe.ZodRecord,...Ue(r)})}}class M0 extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.map)return ce(n,{code:ee.invalid_type,expected:ue.map,received:n.parsedType}),Ze;const i=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(([s,c],l)=>({key:i._parse(new ea(n,s,n.path,[l,"key"])),value:o._parse(new ea(n,c,n.path,[l,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of a){const l=await c.key,d=await c.value;if(l.status==="aborted"||d.status==="aborted")return Ze;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const c of a){const l=c.key,d=c.value;if(l.status==="aborted"||d.status==="aborted")return Ze;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}}}}M0.create=(t,e,r)=>new M0({valueType:e,keyType:t,typeName:Pe.ZodMap,...Ue(r)});class bl extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.set)return ce(n,{code:ee.invalid_type,expected:ue.set,received:n.parsedType}),Ze;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ce(n,{code:ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ce(n,{code:ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const o=this._def.valueType;function a(c){const l=new Set;for(const d of c){if(d.status==="aborted")return Ze;d.status==="dirty"&&r.dirty(),l.add(d.value)}return{status:r.value,value:l}}const s=[...n.data.values()].map((c,l)=>o._parse(new ea(n,c,n.path,l)));return n.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(e,r){return new bl({...this._def,minSize:{value:e,message:we.toString(r)}})}max(e,r){return new bl({...this._def,maxSize:{value:e,message:we.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}bl.create=(t,e)=>new bl({valueType:t,minSize:null,maxSize:null,typeName:Pe.ZodSet,...Ue(e)});class eu extends Ye{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ue.function)return ce(r,{code:ee.invalid_type,expected:ue.function,received:r.parsedType}),Ze;function n(s,c){return A0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,T0(),gu].filter(l=>!!l),issueData:{code:ee.invalid_arguments,argumentsError:c}})}function i(s,c){return A0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,T0(),gu].filter(l=>!!l),issueData:{code:ee.invalid_return_type,returnTypeError:c}})}const o={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof _u){const s=this;return Mn(async function(...c){const l=new fi([]),d=await s._def.args.parseAsync(c,o).catch(f=>{throw l.addIssue(n(c,f)),l}),u=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(u,o).catch(f=>{throw l.addIssue(i(u,f)),l})})}else{const s=this;return Mn(function(...c){const l=s._def.args.safeParse(c,o);if(!l.success)throw new fi([n(c,l.error)]);const d=Reflect.apply(a,this,l.data),u=s._def.returns.safeParse(d,o);if(!u.success)throw new fi([i(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ta.create(e).rest(nl.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new eu({args:e||ta.create([]).rest(nl.create()),returns:r||nl.create(),typeName:Pe.ZodFunction,...Ue(n)})}}class uf extends Ye{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}uf.create=(t,e)=>new uf({getter:t,typeName:Pe.ZodLazy,...Ue(e)});class hf extends Ye{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return ce(r,{received:r.data,code:ee.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:e.data}}get value(){return this._def.value}}hf.create=(t,e)=>new hf({value:t,typeName:Pe.ZodLiteral,...Ue(e)});function NA(t,e){return new Ks({values:t,typeName:Pe.ZodEnum,...Ue(e)})}class Ks extends Ye{constructor(){super(...arguments),Vh.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return ce(r,{expected:st.joinValues(n),received:r.parsedType,code:ee.invalid_type}),Ze}if(I0(this,Vh)||ZA(this,Vh,new Set(this._def.values)),!I0(this,Vh).has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return ce(r,{received:r.data,code:ee.invalid_enum_value,options:n}),Ze}return Mn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Ks.create(e,{...this._def,...r})}exclude(e,r=this._def){return Ks.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Vh=new WeakMap;Ks.create=NA;class ff extends Ye{constructor(){super(...arguments),Fh.set(this,void 0)}_parse(e){const r=st.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ue.string&&n.parsedType!==ue.number){const i=st.objectValues(r);return ce(n,{expected:st.joinValues(i),received:n.parsedType,code:ee.invalid_type}),Ze}if(I0(this,Fh)||ZA(this,Fh,new Set(st.getValidEnumValues(this._def.values))),!I0(this,Fh).has(e.data)){const i=st.objectValues(r);return ce(n,{received:n.data,code:ee.invalid_enum_value,options:i}),Ze}return Mn(e.data)}get enum(){return this._def.values}}Fh=new WeakMap;ff.create=(t,e)=>new ff({values:t,typeName:Pe.ZodNativeEnum,...Ue(e)});class _u extends Ye{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ue.promise&&r.common.async===!1)return ce(r,{code:ee.invalid_type,expected:ue.promise,received:r.parsedType}),Ze;const n=r.parsedType===ue.promise?r.data:Promise.resolve(r.data);return Mn(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}_u.create=(t,e)=>new _u({type:t,typeName:Pe.ZodPromise,...Ue(e)});class bo extends Ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:a=>{ce(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(n.data,o);if(n.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return Ze;const c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?Ze:c.status==="dirty"||r.value==="dirty"?Dd(c.value):c});{if(r.value==="aborted")return Ze;const s=this._def.schema._parseSync({data:a,path:n.path,parent:n});return s.status==="aborted"?Ze:s.status==="dirty"||r.value==="dirty"?Dd(s.value):s}}if(i.type==="refinement"){const a=s=>{const c=i.refinement(s,o);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ze:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?Ze:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(i.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!rf(a))return a;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>rf(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:r.value,value:s})):a);st.assertNever(i)}}bo.create=(t,e,r)=>new bo({schema:t,typeName:Pe.ZodEffects,effect:e,...Ue(r)});bo.createWithPreprocess=(t,e,r)=>new bo({schema:e,effect:{type:"preprocess",transform:t},typeName:Pe.ZodEffects,...Ue(r)});class Xo extends Ye{_parse(e){return this._getType(e)===ue.undefined?Mn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Xo.create=(t,e)=>new Xo({innerType:t,typeName:Pe.ZodOptional,...Ue(e)});class Ys extends Ye{_parse(e){return this._getType(e)===ue.null?Mn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ys.create=(t,e)=>new Ys({innerType:t,typeName:Pe.ZodNullable,...Ue(e)});class pf extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===ue.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}pf.create=(t,e)=>new pf({innerType:t,typeName:Pe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ue(e)});class mf extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nf(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fi(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}mf.create=(t,e)=>new mf({innerType:t,typeName:Pe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ue(e)});class $0 extends Ye{_parse(e){if(this._getType(e)!==ue.nan){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.nan,received:n.parsedType}),Ze}return{status:"valid",value:e.data}}}$0.create=t=>new $0({typeName:Pe.ZodNaN,...Ue(t)});const Kz=Symbol("zod_brand");class z6 extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Bf extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?Ze:o.status==="dirty"?(r.dirty(),Dd(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ze:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Bf({in:e,out:r,typeName:Pe.ZodPipeline})}}class vf extends Ye{_parse(e){const r=this._def.innerType._parse(e),n=i=>(rf(i)&&(i.value=Object.freeze(i.value)),i);return nf(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}vf.create=(t,e)=>new vf({innerType:t,typeName:Pe.ZodReadonly,...Ue(e)});function DA(t,e={},r){return t?yu.create().superRefine((n,i)=>{var o,a;if(!t(n)){const s=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(a=(o=s.fatal)!==null&&o!==void 0?o:r)!==null&&a!==void 0?a:!0,l=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...l,fatal:c})}}):yu.create()}const Yz={object:ir.lazycreate};var Pe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Pe||(Pe={}));const Qz=(t,e={message:`Input not instance of ${t.name}`})=>DA(r=>r instanceof t,e),VA=ho.create,FA=Ws.create,Xz=$0.create,Jz=Gs.create,zA=of.create,ej=_l.create,tj=R0.create,rj=af.create,nj=sf.create,ij=yu.create,oj=nl.create,aj=Ua.create,sj=P0.create,cj=mo.create,lj=ir.create,dj=ir.strictCreate,uj=cf.create,hj=Iv.create,fj=lf.create,pj=ta.create,mj=df.create,vj=M0.create,gj=bl.create,yj=eu.create,_j=uf.create,bj=hf.create,wj=Ks.create,xj=ff.create,Cj=_u.create,$9=bo.create,kj=Xo.create,Ej=Ys.create,Sj=bo.createWithPreprocess,Tj=Bf.create,Aj=()=>VA().optional(),Ij=()=>FA().optional(),Rj=()=>zA().optional(),Pj={string:t=>ho.create({...t,coerce:!0}),number:t=>Ws.create({...t,coerce:!0}),boolean:t=>of.create({...t,coerce:!0}),bigint:t=>Gs.create({...t,coerce:!0}),date:t=>_l.create({...t,coerce:!0})},Mj=Ze;var Ce=Object.freeze({__proto__:null,defaultErrorMap:gu,setErrorMap:Mz,getErrorMap:T0,makeIssue:A0,EMPTY_PATH:$z,addIssueToContext:ce,ParseStatus:xn,INVALID:Ze,DIRTY:Dd,OK:Mn,isAborted:ey,isDirty:ty,isValid:rf,isAsync:nf,get util(){return st},get objectUtil(){return J3},ZodParsedType:ue,getParsedType:ks,ZodType:Ye,datetimeRegex:LA,ZodString:ho,ZodNumber:Ws,ZodBigInt:Gs,ZodBoolean:of,ZodDate:_l,ZodSymbol:R0,ZodUndefined:af,ZodNull:sf,ZodAny:yu,ZodUnknown:nl,ZodNever:Ua,ZodVoid:P0,ZodArray:mo,ZodObject:ir,ZodUnion:cf,ZodDiscriminatedUnion:Iv,ZodIntersection:lf,ZodTuple:ta,ZodRecord:df,ZodMap:M0,ZodSet:bl,ZodFunction:eu,ZodLazy:uf,ZodLiteral:hf,ZodEnum:Ks,ZodNativeEnum:ff,ZodPromise:_u,ZodEffects:bo,ZodTransformer:bo,ZodOptional:Xo,ZodNullable:Ys,ZodDefault:pf,ZodCatch:mf,ZodNaN:$0,BRAND:Kz,ZodBranded:z6,ZodPipeline:Bf,ZodReadonly:vf,custom:DA,Schema:Ye,ZodSchema:Ye,late:Yz,get ZodFirstPartyTypeKind(){return Pe},coerce:Pj,any:ij,array:cj,bigint:Jz,boolean:zA,date:ej,discriminatedUnion:hj,effect:$9,enum:wj,function:yj,instanceof:Qz,intersection:fj,lazy:_j,literal:bj,map:vj,nan:Xz,nativeEnum:xj,never:aj,null:nj,nullable:Ej,number:FA,object:lj,oboolean:Rj,onumber:Ij,optional:kj,ostring:Aj,pipeline:Tj,preprocess:Sj,promise:Cj,record:mj,set:gj,strictObject:dj,string:VA,symbol:tj,transformer:$9,tuple:pj,undefined:rj,union:uj,unknown:oj,void:sj,NEVER:Mj,ZodIssueCode:ee,quotelessJson:Pz,ZodError:fi});const $j=Ce.object({key:Ce.string().describe("The key used to identify the service"),uri:Ce.string().describe("The URI of the service"),id:Ce.string().optional().describe("The ID of the service"),environment:Ce.string().optional().describe("The environment of the service"),name:Ce.string().optional().describe("The name of the service"),scopes:Ce.array(Ce.string()).optional().default([]).describe("Endpoint authentication scopes"),tags:Ce.array(Ce.string()).optional().describe("Tags for the service")}).describe("A service from the service discovery API").transform(t=>Object.assign(Object.assign({},t),{get defaultScopes(){var e;return console.warn("The `defaultScopes` property is deprecated. Use `scopes` instead."),(e=t.scopes)!==null&&e!==void 0?e:[]}})),Zj=Ce.array($j).describe("A list of services from the service discovery API");var Oj=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Hj=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Lj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},im;const Nj="services",Dj=t=>vt(h0(t)).pipe(ye(e=>Zj.default([]).parse(e)));class Vj{constructor({http:e,endpoint:r}){im.set(this,void 0),this.http=e,this.endpoint=r,Hj(this,im,new Qn({client:{fn:()=>e.fetch$(r??"",{selector:Dj})},key:()=>Nj,expire:5*60*1e3}),"f")}resolveServices(e){return(e?Xr:vr)(Qn.extractQueryValue(Lj(this,im,"f").query()))}resolveService(e,r){return Oj(this,void 0,void 0,function*(){const i=(yield this.resolveServices(r)).find(o=>o.key===e);if(!i)throw Error(`Failed to resolve service, invalid key [${e}]`);return i})}}im=new WeakMap;var o2=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Fj extends E6{_createConfig(e,r){const n=Object.create(null,{_createConfig:{get:()=>super._createConfig}});return o2(this,void 0,void 0,function*(){if(!e.hasModule("http"))throw new Error("http module is required");return(yield e.requireInstance("http")).hasClient("service_discovery")&&this.configureServiceDiscoveryClientByClientKey("service_discovery"),vr(vt(n._createConfig.call(this,e,r)))})}_processConfig(e,r){if(!e.discoveryClient)throw new Error("discoveryClient is required, please configure it");return super._processConfig(e,r)}setServiceDiscoveryClient(e){this._set("discoveryClient",typeof e=="function"?e:()=>o2(this,void 0,void 0,function*(){return e}))}configureServiceDiscoveryClient(e){this.setServiceDiscoveryClient(r=>o2(this,void 0,void 0,function*(){var n;const{httpClient:i,endpoint:o}=(n=yield vr(vt(e(r))))!==null&&n!==void 0?n:{};if(i)return new Vj({http:i,endpoint:o});throw Error("httpClient is required")}))}configureServiceDiscoveryClientByClientKey(e,r){this.configureServiceDiscoveryClient(n=>o2(this,[n],void 0,function*({requireInstance:i}){return{httpClient:(yield i("http")).createClient(e),endpoint:r}}))}}var w4=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class zj{constructor(e,r){this.config=e,this._http=r}resolveServices(){return this.config.discoveryClient.resolveServices()}resolveService(e){return w4(this,void 0,void 0,function*(){return this.config.discoveryClient.resolveService(e)})}createClient(e,r){return w4(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},r),{baseUri:n.uri,defaultScopes:n.scopes}))})}configureClient(e,r){return w4(this,void 0,void 0,function*(){const{key:n,alias:i}=typeof e=="string"?{key:e,alias:e}:e,{uri:o,scopes:a}=yield this.resolveService(n);r.addConfig(hA(i,{baseUri:o,defaultScopes:a}))})}}var jj=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Uj="serviceDiscovery",Bj={name:Uj,configure:()=>new Fj,initialize:t=>jj(void 0,void 0,void 0,function*(){var e;const{requireInstance:r,ref:n}=t,i=yield t.config.createConfigAsync(t,Object.assign({},(e=n==null?void 0:n.serviceDiscovery)===null||e===void 0?void 0:e.config)),o=yield r("http");return new zj(i,o)})};class qj{}var Ni;(function(t){t.v1="1.0",t.v2="2.0"})(Ni||(Ni={}));class bi extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const Wj=(t,e)=>{var r;const n=(r=Ni[t])!==null&&r!==void 0?r:t;switch(n){case Ni.v2:throw new bi(t);case Ni.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/contexts/${i}/?${String(o)}`}}},Gj=(t,e,r)=>[Wj(t,e),r],Kj=(t,e,r="json")=>(n,i)=>t[r](...Gj(e,n,i));var Yj=["eq","ne","gt","ge","lt","le"],a2=["and","or","not"],Qj=["any","all"],Xj=["startswith","endswith","contains"],Jj=["expand","levels","select","skip","top","count","orderby","filter"],Z9=/\((.*)\)/,O9=/(?!indexof)\((\w+)\)/,H9;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(H9||(H9={}));var fa="";function jA(t){var e=t===void 0?{}:t,r=e.select,n=e.search,i=e.skiptoken,o=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,d=e.orderBy,u=e.key,h=e.count,f=e.expand,p=e.action,m=e.func,w="",y=[],v={};if(u!=null&&(w+="(".concat(qo(u,y),")")),(c||typeof h=="object")&&(v.$filter=gf(typeof h=="object"?h:c,y)),l&&(v.$apply=UA(l)),f&&(v.$expand=om(f)),d&&(v.$orderby=j6(d)),h&&(typeof h=="boolean"?v.$count=!0:w+="/$count"),typeof a=="number"&&(v.$top=a),typeof s=="number"&&(v.$skip=s),p&&(w+="/".concat(p)),m){if(typeof m=="string")w+="/".concat(m);else if(typeof m=="object"){var g=Object.keys(m)[0],k=qo(m[g],y);w+="/".concat(g),k!==""&&(w+="(".concat(k,")"))}}return y.length>0&&Object.assign(v,y.reduce(function(E,C){var R;return Object.assign(E,(R={},R["@".concat(C.name)]=qo(C.value),R))},{})),iU(w,ml({$select:r,$search:n,$skiptoken:i,$format:o},v))}function x4(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(qo(e,r))}function gf(t,e,r){return t===void 0&&(t={}),e===void 0&&(e=[]),r===void 0&&(r=""),(Array.isArray(t)?t:[t]).reduce(function(o,a){if(a){var s=n(a,e,r);s&&o.push(s)}return o},[]).join(" and ");function n(o,a,s){o===void 0&&(o={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof o=="string")c=o;else if(o&&typeof o=="object"){var l=Object.keys(o).reduce(function(d,u){var h=o[u];if(h===void 0)return d;var f="";if(s?u===fa?f=s:O9.test(u)?f=u.replace(O9,function(v,g){return g.trim()===fa?"(".concat(s,")"):"(".concat(s,"/").concat(g.trim(),")")}):Z9.test(u)?f=u.replace(Z9,function(v,g){return g.trim()===fa?"(".concat(s,")"):"(".concat(s,"/").concat(g.trim(),")")}):f="".concat(s,"/").concat(u):f=u,u===fa&&Array.isArray(h))return d.concat(h.map(function(v){return x4(f,v)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)d.push(x4(f,h,a));else if(Array.isArray(h)){var p=u,m=h.map(function(v){return gf(v,a,s)}).filter(function(v){return v}).map(function(v){return a2.indexOf(p)!==-1?"(".concat(v,")"):v});m.length&&(a2.indexOf(p)!==-1?m.length&&(p==="not"?d.push(L9(m)):d.push("(".concat(m.join(" ".concat(p," ")),")"))):d.push(m.join(" ".concat(p," "))))}else if(a2.indexOf(f)!==-1){var w=f,m=Object.keys(h).map(function(g){var k;return n((k={},k[g]=h[g],k))});m.length&&(w==="not"?d.push(L9(m)):d.push("(".concat(m.join(" ".concat(w," ")),")")))}else if(typeof h=="object")if("type"in h)d.push(x4(f,h,a));else{var y=Object.keys(h);y.forEach(function(v){if(h[v]!==void 0)if(Yj.indexOf(v)!==-1)d.push("".concat(f," ").concat(v," ").concat(qo(h[v],a)));else if(a2.indexOf(v)!==-1)Array.isArray(h[v])?d.push(h[v].map(function(C){return"("+n(C,a,f)+")"}).join(" ".concat(v," "))):d.push("("+n(h[v],a,f)+")");else if(Qj.indexOf(v)!==-1){var g=i(u.toLowerCase(),h[v],v,f);g&&d.push(g)}else if(v==="has")d.push("".concat(f," ").concat(v," ").concat(qo(h[v],a)));else if(v==="in"){var k=Array.isArray(h[v])?h[v]:h[v].value.map(function(C){return{type:h[v].type,value:C}});d.push(f+" in ("+k.map(function(C){return qo(C,a)}).join(",")+")")}else if(Xj.indexOf(v)!==-1)d.push("".concat(v,"(").concat(f,",").concat(qo(h[v],a),")"));else{var E=n(h,a,f);E&&d.push(E)}})}else throw new Error("Unexpected value type: ".concat(h));return d},[]);c=l.join(" and ")}return c}function i(o,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=eU(o,a,s,c);else if(a){var d=Array.isArray(a)?a.reduce(function(h,f){return f.hasOwnProperty(fa)?(h.hasOwnProperty(fa)||(h[fa]=[]),h[fa].push(f[fa]),h):ml(ml({},h),f)},{}):a,u=n(d,e,o);l="".concat(c,"/").concat(s,"(").concat(u?"".concat(o,":").concat(u):"",")")}return l}}function eU(t,e,r,n){var i="",o=r=="all"?"ne":"eq";return i="".concat(n,"/").concat(r,"(").concat(t,": ").concat(t," ").concat(o," '").concat(e,"')"),i}function tU(t){return t=t.replace(/%/g,"%25"),t=t.replace(/\+/g,"%2B"),t=t.replace(/\//g,"%2F"),t=t.replace(/\?/g,"%3F"),t=t.replace(/#/g,"%23"),t=t.replace(/&/g,"%26"),t=t.replace(/'/g,"''"),t}function qo(t,e){if(typeof t=="string")return"'".concat(tU(t),"'");if(t instanceof Date)return t.toISOString();if(typeof t=="number")return t;if(Array.isArray(t))return"[".concat(t.map(function(r){return qo(r)}).join(","),"]");if(t===null)return t;if(typeof t=="object")switch(t.type){case"raw":case"guid":return t.value;case"duration":return"duration'".concat(t.value,"'");case"binary":return"binary'".concat(t.value,"'");case"alias":return Array.isArray(e)&&e.push(t),"@".concat(t.name);case"json":return escape(JSON.stringify(t.value));case"decimal":return"".concat(t.value,"M");default:return Object.entries(t).filter(function(r){var n=r[1];return n!==void 0}).map(function(r){var n=r[0],i=r[1];return"".concat(n,"=").concat(qo(i,e))}).join(",")}return t}function om(t){if(typeof t=="number")return t;if(typeof t=="string")return t.indexOf("/")===-1?t:t.split("/").reverse().reduce(function(r,n,i,o){return i===0?"$expand=".concat(n):i===o.length-1?"".concat(n,"(").concat(r,")"):"$expand=".concat(n,"(").concat(r,")")},"");if(Array.isArray(t))return"".concat(t.map(function(r){return om(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return Jj.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=gf(t[r]);break;case"orderBy":n=j6(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=om(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=om(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function UA(t){var e=Array.isArray(t)?t:[t],r=e.reduce(function(n,i){var o=i.aggregate,a=i.filter,s=i.groupBy,c=RT(i,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(o&&n.push("aggregate(".concat(rU(o),")")),a){var d=gf(a);d&&n.push("filter(".concat(gf(d),")"))}return s&&n.push("groupby(".concat(nU(s),")")),n},[]);return r.join("/")||void 0}function rU(t){var e=Array.isArray(t)?t:[t];return e.map(function(r){return typeof r=="string"?r:Object.keys(r).map(function(n){var i=r[n];if(!i.with&&i.as)return"".concat(n," as ").concat(i.as);if(!i.with)throw new Error("'with' property required for '".concat(n,"'"));if(!i.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(i.with," as ").concat(i.as)})}).join(",")}function nU(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(UA(t.transform))),e}function j6(t,e){return e===void 0&&(e=""),Array.isArray(t)?t.map(function(r){return Array.isArray(r)&&r.length===2&&["asc","desc"].indexOf(r[1])!==-1?r.join(" "):r}).map(function(r){return"".concat(e).concat(String(r))}).join(","):typeof t=="object"?Object.entries(t).map(function(r){var n=r[0],i=r[1];return j6(i,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function iU(t,e){var r=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return r.length?"".concat(t,"?").concat(r.join("&")):t}function L9(t){return"not (".concat(t.join(" and "),")")}const oU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),aU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:oU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),sU=t=>typeof t=="string"?t:jA(aU(t)),cU=(t,e)=>{var r;const n=(r=Ni[t])!==null&&r!==void 0?r:t;switch(n){case Ni.v2:throw new bi(t);case Ni.v1:default:{const{query:i,includeDeleted:o}=e,a=new URLSearchParams(sU(i));return a.append("api-version",n),o&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},lU=(t,e,r)=>[cU(t,e),r],dU=(t,e,r="json")=>(n,i)=>t[r](...lU(e,n,i)),uU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),hU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:uU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),fU=t=>typeof t=="string"?t:jA(hU(t)),pU=(t,e)=>{var r;const n=(r=Ni[t])!==null&&r!==void 0?r:t;switch(n){case Ni.v2:throw new bi(t);case Ni.v1:default:{const{id:i,query:o}=e,a=new URLSearchParams(fU(o||""));return a.append("api-version",n),`/contexts/${i}/relations?${String(a)}`}}},mU=(t,e,r)=>[pU(t,e),r],vU=(t,e,r="json")=>(n,i)=>t[r](...mU(e,n,i));class gU{get Version(){return Ni}constructor(e,r){this._client=e,this._method=r}get(e,...r){return Kj(this._client,e,this._method)(...r)}query(e,...r){return dU(this._client,e,this._method)(...r)}related(e,...r){return vU(this._client,e,this._method)(...r)}}const yU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},_U=(t,e,r)=>{const n=yU(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},bU=(t,e,r="fetch")=>(n,i)=>t[r](..._U(e,n,i)),wU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},xU=(t,e,r)=>[wU(t,e),r],CU=(t,e,r="json")=>(n,i)=>t[r](...xU(e,n,i)),kU=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks?${String(r)}`}}},EU=(t,e,r)=>{const n=kU(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},SU=(t,e,r="json")=>(n,i)=>t[r](...EU(e,n,i)),TU=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks/${e.id}?${String(r)}`}}},AU=(t,e,r)=>{const n=TU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},IU=(t,e,r="json")=>(n,i)=>t[r](...AU(e,n,i)),RU=t=>{switch(t){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",t),`persons/me/bookmarks/?${String(e)}`}}},PU=(t,e)=>[RU(t),e],MU=(t,e,r="json")=>n=>t[r](...PU(e,n)),$U=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/persons/me/bookmarks/favourites?${String(r)}`}}},ZU=(t,e,r)=>{const n=$U(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},OU=(t,e,r="json")=>(n,i)=>t[r](...ZU(e,n,i)),HU=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${r}/?${String(n)}`}}},LU=(t,e,r)=>{const n=HU(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},NU=(t,e,r="fetch")=>(n,i)=>t[r](...LU(e,n,i)),DU=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/persons/me/bookmarks/favourites/${r}?${String(n)}`}}},VU=(t,e,r)=>{const n=DU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"head",headers:i},r);return[n,o]},FU=(t,e,r="json")=>(n,i)=>t[r](...VU(e,n,i));class zU{constructor(e,r){this._client=e,this._method=r}get(e,...r){return CU(this._client,e,this._method)(...r)}getAll(e){return MU(this._client,e,this._method)()}post(e,...r){return SU(this._client,e,this._method)(...r)}patch(e,...r){return IU(this._client,e,this._method)(...r)}delete(e,...r){return bU(this._client,e,this._method)(...r)}addFavorite(e,...r){return OU(this._client,e,this._method)(...r)}removeFavorite(e,...r){return NU(this._client,e,this._method)(...r)}verifyFavorite(e,...r){return FU(this._client,e,this._method)(...r)}}const jU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},UU=(t,e,r)=>[jU(t,e),r],BU=(t,e,r="json")=>(n,i)=>t[r](...UU(e,n,i)),qU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},WU=(t,e,r)=>{const n=qU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},GU=(t,e,r="json")=>(n,i)=>t[r](...WU(e,n,i)),KU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},YU=(t,e,r)=>{const n=KU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},QU=(t,e,r="json")=>(n,i)=>t[r](...YU(e,n,i)),XU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},JU=(t,e,r)=>[XU(t,e),r],eB=(t,e,r="json")=>(n,i)=>t[r](...JU(e,n,i)),tB=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},rB=(t,e,r)=>{const n=tB(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"delete",headers:i},r);return[n,o]},nB=(t,e,r="json")=>(n,i)=>t[r](...rB(e,n,i));var er;(function(t){t.v1="1.0",t.v2="2.0"})(er||(er={}));const iB=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},oB=(t,e,r)=>{const n=iB(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"put",body:JSON.stringify(e),headers:i},r);return[n,o]},aB=(t,e,r="json")=>(n,i)=>t[r](...oB(e,n,i)),sB=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},cB=(t,e,r)=>[sB(t,e),r],lB=(t,e,r="json")=>(n,i)=>t[r](...cB(e,n,i));class dB{get Version(){return er}constructor(e,r){this._client=e,this._method=r}getAll(e,...r){return eB(this._client,e,this._method)(...r)}getById(e,...r){return BU(this._client,e,this._method)(...r)}setSeenByUser(e,...r){return QU(this._client,e,this._method)(...r)}create(e,...r){return GU(this._client,e,this._method)(...r)}delete(e,...r){return nB(this._client,e,this._method)(...r)}getSettings(e,...r){return lB(this._client,e,this._method)(...r)}updateSettings(e,...r){return aB(this._client,e,this._method)(...r)}}var zi;(function(t){t.v2="2.0",t.v4="4.0"})(zi||(zi={}));const uB=(t,e)=>{var r;const n=(r=zi[t])!==null&&r!==void 0?r:t;switch(n){case zi.v4:{const{azureId:i,expand:o}=e,a=new URLSearchParams;return a.append("api-version",n),o&&a.append("$expand",o.join(",")),`/persons/${i}?${String(a)}`}default:throw new bi(t)}},hB=(t,e,r)=>[uB(t,e),r],fB=(t,e,r="json")=>(n,i)=>t[r](...hB(e,n,i)),pB=(t,e)=>{var r;const n=(r=zi[t])!==null&&r!==void 0?r:t;switch(n){case zi.v2:{const{search:i}=e,o=new URLSearchParams;return o.append("api-version",n),o.append("$search",i),`/persons?${String(o)}`}default:throw new bi(t)}},mB=(t,e,r)=>[pB(t,e),r],vB=(t,e,r="json")=>(n,i)=>t[r](...mB(e,n,i)),gB=(t,e)=>{var r;const n=(r=zi[t])!==null&&r!==void 0?r:t;switch(n){case zi.v2:{const{azureId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/persons/${i}/photo?${String(o)}`}default:throw new bi(t)}},yB=(t,e,r)=>[gB(t,e),r],_B=(t,e,r="blob")=>(n,i)=>t[r](...yB(e,n,i));class bB{get Version(){return zi}constructor(e){this._client=e}get(e,r,n,i){return fB(this._client,e,r)(n,i)}query(e,r,n,i){return vB(this._client,e,r)(n,i)}photo(e,r,n,i){return _B(this._client,e,r)(n,i)}}var zh=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class wB extends Error{constructor(e,r,n){super(e,n),this.response=r,this.name="ApiProviderError"}}const s2=t=>zh(void 0,void 0,void 0,function*(){var e;if(!t.ok){const{headers:r,status:n,statusText:i,type:o,url:a,bodyUsed:s}=t,c=(e=r.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),l=!s&&(yield c?t.json():t.text());throw new wB("failed to execute request, response was not ok",{headers:r,status:n,statusText:i,type:o,url:a,data:l})}});class xB{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return zh(this,void 0,void 0,function*(){const r=yield this._createClientFn("notification");return r.responseHandler.add("validate_api_request",s2),new dB(r,e)})}createBookmarksClient(e){return zh(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return r.responseHandler.add("validate_api_request",s2),new zU(r,e)})}createContextClient(e){return zh(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return r.responseHandler.add("validate_api_request",s2),new gU(r,e)})}createPeopleClient(){return zh(this,void 0,void 0,function*(){const e=yield this._createClientFn("people");return e.responseHandler.add("validate_api_request",s2),new bB(e)})}}var BA=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const CB="services",kB=(t,e)=>r=>BA(void 0,void 0,void 0,function*(){if(t.hasClient(r))return t.createClient(r);if(e)return e.createClient(r);throw Error(`failed to create http client for service ${r}`)}),qA={name:CB,configure:()=>new qj,initialize:t=>BA(void 0,[t],void 0,function*({ref:e,config:r,requireInstance:n,hasModule:i}){if(!r.createClient){const o=yield n("http"),a=i("serviceDiscovery")?yield n("serviceDiscovery"):e==null?void 0:e.serviceDiscovery;r.createClient=kB(o,a)}if(!r.createClient)throw Error("missing configuration for creating API client");return new xB(r)})},EB=t=>{t.addConfig({module:qA})};class SB extends _D{constructor(){super([HD,TA,$6,Bj,qA,Rz]),this.logger=new IT("FrameworkConfigurator")}configureHttp(...e){this.addConfig(KD(...e))}configureHttpClient(...e){this.addConfig(hA(...e))}configureMsal(...e){this.addConfig(cF(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var TB=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const AB=(t,e)=>TB(void 0,void 0,void 0,function*(){const r=yield t.initialize(e),n={modules:r};return window.Fusion=n,r.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n}),WA=_.createContext(null),IB=WA.Provider,GA=_.createContext({}),RB=GA.Provider,KA=()=>_.useContext(GA),PB=t=>KA()[t];var MB=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const $B=(t,e)=>_.lazy(()=>MB(void 0,void 0,void 0,function*(){const r=new SB;yield t(r,e);const n=yield AB(r,e);return{default:({children:i})=>b.jsx(IB,{value:n,children:b.jsx(RB,{value:n.modules,children:i})})}})),Cn=()=>{let t=_.useContext(WA);return t||console.warn("could not locate fusion in context!"),t??(t=window.Fusion),t||console.error("Could not load framework, might not be initiated?"),t},YA=t=>{const r=Cn().modules[t];return r||console.warn(`the requested module [${r}] is not included in the framework instance`),r},ZB=t=>{const{configure:e,fallback:r,children:n}=t,i=KA(),o=_.useMemo(()=>$B(e,i),[e,i]);return b.jsx(_.Suspense,{fallback:r,children:b.jsx(o,{children:n})})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ct.apply(null,arguments)}function bu(t){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bu(t)}function C4(t){return t&&bu(t)==="object"&&t.constructor===Object}function QA(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?Ct({},t):t;return C4(t)&&C4(e)&&Object.keys(e).forEach(function(i){i!=="__proto__"&&(C4(e[i])&&i in t?n[i]=QA(t[i],e[i],r):n[i]=e[i])}),n}function OB(t,e){if(bu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function HB(t){var e=OB(t,"string");return bu(e)=="symbol"?e:e+""}var LB=typeof Symbol=="function"&&Symbol.for;const XA=LB?Symbol.for("mui.nested"):"__THEME_NESTED__";var NB=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function DB(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.disableGlobal,r=e===void 0?!1:e,n=t.productionPrefix,i=n===void 0?"jss":n,o=t.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),c=0,l=function(){return c+=1,c};return function(d,u){var h=u.options.name;if(h&&h.indexOf("Mui")===0&&!u.options.link&&!r){if(NB.indexOf(d.key)!==-1)return"Mui-".concat(d.key);var f="".concat(s).concat(h,"-").concat(d.key);return!u.options.theme[XA]||a!==""?f:"".concat(f,"-").concat(l())}return"".concat(s).concat(i).concat(l())}}var N9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf=(typeof window>"u"?"undefined":N9(window))==="object"&&(typeof document>"u"?"undefined":N9(document))==="object"&&document.nodeType===9;function VB(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HB(n.key),n)}}function JA(t,e,r){return e&&VB(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ny(t,e){return ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ny(t,e)}function eI(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ny(t,e)}function D9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tI(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}var FB={}.constructor;function iy(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(iy);if(t.constructor!==FB)return t;var e={};for(var r in t)e[r]=iy(t[r]);return e}function U6(t,e,r){t===void 0&&(t="unnamed");var n=r.jss,i=iy(e),o=n.plugins.onCreateRule(t,i,r);return o||(t[0],null)}var V9=function(e,r){for(var n="",i=0;i<e.length&&e[i]!=="!important";i++)n&&(n+=r),n+=e[i];return n},il=function(e){if(!Array.isArray(e))return e;var r="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!=="!important";n++)r&&(r+=", "),r+=V9(e[n]," ");else r=V9(e,", ");return e[e.length-1]==="!important"&&(r+=" !important"),r};function Lu(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
78
|
+
`);return o!==-1&&(e=nz(e,i,n,o)),n+e+i};Object.defineProperties(Uf.prototype,vu);const S9=Uf();Uf({level:k9?k9.level:0});const lz=t=>{if(typeof t!="string")throw new Error("Expected LogLevel key to be a string.");const e=t.toLowerCase(),r=Object.keys(yr).find(n=>n.toLowerCase()===e);if(!r)throw new Error(`Failed to parse LogLevel from string: ${t}.`);return yr[r]},dz=t=>{const e=Number(t);if(Object.values(yr).includes(e))return e;if(isNaN(e))return lz(t);throw Error(`Invalid log level: ${t}`)};var uz={},yr;(function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Debug=4]="Debug"})(yr||(yr={}));const hz=()=>{const t=uz.FUSION_LOG_LEVEL;if(t)try{return dz(t)}catch{return yr.Error}return yr.Error},fz=hz(),pz="1.1.0";class mz{constructor(){this.level=fz,this.version=pz,this._log$=new rn}get log(){return this._log$.pipe(ze(e=>this.level>=e.lvl))}debug(...e){this._log$.next({lvl:yr.Debug,msg:this._createMessage(yr.Debug,...e)})}info(...e){this._log$.next({lvl:yr.Info,msg:this._createMessage(yr.Info,...e)})}warn(...e){this._log$.next({lvl:yr.Warning,msg:this._createMessage(yr.Warning,...e)})}error(...e){this._log$.next({lvl:yr.Error,msg:this._createMessage(yr.Error,...e)})}}class Av extends mz{constructor(e,r){super(),this.title=e,this.subtitle=r,this.log.subscribe(({lvl:n,msg:i})=>{switch(n){case yr.Debug:console.debug(...i);break;case yr.Info:console.info(...i);break;case yr.Warning:console.warn(...i);break;case yr.Error:console.error(...i);break}})}_createMessage(e,...r){return[this._formatTitle(e),...r]}_formatTitle(e){const r=S9.magenta([this.title,this.subtitle].filter(n=>!!n).join(" - "));switch(e){case yr.Warning:case yr.Error:return S9.bold(r)}return r}createSubLogger(e,r,n){const i=new Av(`${this.title}::${e}`,r??this.subtitle);return i.level=n===void 0?this.level:n,i}}var Po=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},T9=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ts,Yl,i2;class vz extends Je{get status(){return Po(this,ts,"f").value}get status$(){return Po(this,ts,"f").asObservable()}get transaction(){return Po(this,i2,"f")}get closed(){return this.status==="complete"||this.status==="error"||this.status==="canceled"}constructor(e,r,n){super(o=>{const{transaction:a}=this,s=e.action$.pipe(ze(c=>c.meta.transaction===a));o.add(e.state$.pipe(ze(c=>!!c[a]),ye(c=>c[a])).subscribe(c=>{Po(this,ts,"f").next(c.status)})),o.add(s.pipe(ze(ht.execute.success.match),ye(({payload:c})=>c)).subscribe(c=>{Po(this,ts,"f").next("complete"),o.next(c),o.complete()})),o.add(s.pipe(ze(ht.error.match),ye(({payload:c})=>c)).subscribe(c=>{Po(this,ts,"f").next("error"),o.error(c.error)})),o.add(s.pipe(ze(ht.cancel.match)).subscribe(c=>{Po(this,ts,"f").next("canceled"),o.error(new $c("abort",{message:c.payload.reason||`job: ${a} was canceled`,request:Po(this,Yl,"f").getRequest(c.meta.transaction)}))})),n!=null&&n.signal&&o.add(Jc(n==null?void 0:n.signal,"abort").pipe(ye(()=>ht.cancel(a,`job: ${a} was aborted on signal from caller: ${n==null?void 0:n.ref}`))).subscribe(c=>e.next(c))),o.add(()=>{this.complete()})}),ts.set(this,new Ll("idle")),Yl.set(this,void 0),i2.set(this,void 0),this.created=Date.now(),T9(this,Yl,e,"f");const i=ht.request(r,{ref:n==null?void 0:n.ref,retry:n==null?void 0:n.retry});T9(this,i2,i.meta.transaction,"f"),Po(this,Yl,"f").next(i)}complete(e){this.closed||this.cancel(e??`job: ${this.transaction} was completed`)}cancel(e){const r=this.transaction;Po(this,Yl,"f").cancel(r,e??`job: ${r} was canceled`)}[(ts=new WeakMap,Yl=new WeakMap,i2=new WeakMap,Symbol.dispose)](){this.complete()}}var gz=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},ct=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},_4=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Dt,kc,Oo;class A9 extends Je{get closed(){return ct(this,Dt,"f").closed}get state$(){return ct(this,Dt,"f").asObservable()}get action$(){return ct(this,Dt,"f").action$}get success$(){return this.action$.pipe(ze(ht.execute.success.match),ye(({payload:e})=>e))}get error$(){return this.action$.pipe(ja("client/error"),G1(ct(this,Dt,"f")),ye(([e,r])=>{const{payload:n,meta:{transaction:i}}=e,o=r[i];return new $c("error",{request:o,message:`job: ${i} failed`,cause:n})}))}constructor(e,r){var n;super(i=>ct(this,Dt,"f").subscribe(i)),Dt.set(this,void 0),kc.set(this,void 0),Oo.set(this,void 0),_4(this,Dt,new jf(QF({})),"f"),_4(this,kc,new jr(()=>ct(this,Dt,"f").complete()),"f"),ct(this,kc,"f").add(ct(this,Dt,"f").addFlow(GF)),ct(this,kc,"f").add(ct(this,Dt,"f").addFlow(KF(e))),ct(this,kc,"f").add(ct(this,Dt,"f").addFlow(YF(Object.assign({count:0,delay:0},r==null?void 0:r.retry)))),_4(this,Oo,(n=r==null?void 0:r.logger)!==null&&n!==void 0?n:new Av("QueryClient"),"f"),ct(this,Dt,"f").addEffect(ht.request.type,({payload:i,meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job requested",{transaction:o,payload:i})}),ct(this,Dt,"f").addEffect(ht.execute.type,({payload:i,meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job executing",{transaction:o,payload:i})}),ct(this,Dt,"f").addEffect(ht.execute.success.type,({payload:i})=>{ct(this,Oo,"f").info("Job complete",Object.assign({},i))}),ct(this,Dt,"f").addEffect(ht.execute.failure.type,({payload:i,meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job failed",{transaction:o,payload:i})}),ct(this,Dt,"f").addEffect(ht.cancel.type,({payload:{reason:i},meta:{transaction:o}})=>{ct(this,Oo,"f").debug("Job canceled",{transaction:o,reason:i})}),ct(this,Dt,"f").addEffect(ht.error.type,({payload:{transaction:i,error:o}})=>{ct(this,Oo,"f").error("Job error",{transaction:i,error:o})})}next(e){ct(this,Dt,"f").next(e)}query(e,r){const n=new vz(this,e,r),i=n.pipe(Ev({connector:()=>new kN,resetOnRefCountZero:!1}));return Object.defineProperties(i,{transaction:{get:()=>n.transaction},created:{get:()=>n.created},status:{get:()=>n.status},closed:{get:()=>n.closed},cancel:{value:o=>n.cancel(o)},complete:{value:()=>n.complete()}}),i}nextAsync(e,r){return gz(this,void 0,void 0,function*(){return Xr(this.query(e,r))})}getRequest(e){return ct(this,Dt,"f").value[e]}getRequestByRef(e){return Object.values(ct(this,Dt,"f").value).find(r=>r.ref===e)}cancelTaskByRef(e,r){const n=this.getRequestByRef(e);n!=null&&n.ref&&this.cancel(n.transaction,r)}cancel(e,r){if(e)ct(this,Dt,"f").value[e]?(r??(r=`cancelation requested for job: ${e}`),ct(this,Dt,"f").next(ht.cancel(e,r))):ct(this,Oo,"f").warn("Task not registered, nothing to cancel",{transaction:e,reason:r});else for(const n of Object.keys(ct(this,Dt,"f").value))this.cancel(n,"all transactions requested canceled")}on(e,r){return ct(this,Dt,"f").addEffect(ht[e].type,n=>{r(n,this)})}complete(){ct(this,kc,"f").unsubscribe()}}Dt=new WeakMap,kc=new WeakMap,Oo=new WeakMap;function yz(){return{set:Jr("cache/set",(t,e)=>({payload:{key:t,entry:e}})),remove:Jr("cache/remove",t=>({payload:t})),invalidate:Jr("cache/invalidate",(t,e)=>({payload:t,meta:{item:e}})),mutate:Jr("cache/mutate",(t,e,r)=>({payload:Object.assign(Object.assign({},e),{key:t}),meta:{item:r}})),trim:Jr("cache/trim",t=>({payload:t}))}}const cc=yz(),_z=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)};function bz(t,e={}){return Hu(e,r=>r.addCase(t.set,(n,i)=>{var o;const{key:a,entry:s}=i.payload,c=n[a];if(c)c.updated=Date.now(),(o=c.updates)!==null&&o!==void 0||(c.updates=0),c.updates++,c.value=s.value,c.transaction=s.transaction,delete c.mutated;else{const l=Date.now();n[a]=Object.assign(Object.assign({},s),{created:l,updated:l})}}).addCase(t.remove,(n,i)=>{delete n[i.payload]}).addCase(t.invalidate,(n,i)=>{const o=i.payload?[i.payload]:Object.keys(n);for(const a of o){const s=n[a];s&&delete s.updated}}).addCase(t.mutate,(n,i)=>{var o;const{key:a,value:s,updated:c}=i.payload,l=n[a];l&&(l.value=s,l.updated=c,l.mutated=Date.now(),(o=l.updates)!==null&&o!==void 0||(l.updates=0),l.updates++)}).addCase(t.trim,(n,i)=>{var o,a;const{payload:s}=i,c=(o=s.sort)!==null&&o!==void 0?o:_z,l=Object.keys(n),d=Object.entries(n).filter(([u,h])=>!s.validate||s.validate(h)).sort((u,h)=>c(u[1],h[1])).slice(0,(a=s.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).map(([u])=>u);if(l.length!==d.length)for(const u of l){const h=d.indexOf(u);h!==-1?d.splice(h,1):delete n[u]}}))}var Wr=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},wz=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Er;class I9{get state(){return Wr(this,Er,"f").value}get state$(){return Wr(this,Er,"f").asObservable()}get action$(){return Wr(this,Er,"f").action$}constructor(e){Er.set(this,void 0);const{trimming:r,initial:n}=e??{};wz(this,Er,new jf(bz(cc,n)),"f"),r&&Wr(this,Er,"f").addEffect("cache/set",()=>Wr(this,Er,"f").next(cc.trim(r)))}has(e){return e in Wr(this,Er,"f").value}setItem(e,r){const{args:n,transaction:i,value:o}=r;Wr(this,Er,"f").next(cc.set(e,{args:n,transaction:i,value:o}))}getItem(e){return Wr(this,Er,"f").value[e]}removeItem(e){Wr(this,Er,"f").next(cc.remove(e))}invalidate(e){const r=e?Wr(this,Er,"f").value[e]:void 0;Wr(this,Er,"f").next(cc.invalidate(e,r))}mutate(e,r){const n=e in Wr(this,Er,"f").value?Wr(this,Er,"f").value[e]:void 0;if(!n)throw new Error(`Cannot mutate cache item with key ${e}: item not found`);const i=typeof r=="function"?r(n==null?void 0:n.value):r;Wr(this,Er,"f").next(cc.mutate(e,i,n))}trim(e){Wr(this,Er,"f").next(cc.trim(e))}reset(){Wr(this,Er,"f").reset()}complete(){Wr(this,Er,"f").complete()}}Er=new WeakMap;var R9=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Q3,X3;class xz extends rn{get created(){return R9(this,Q3,"f")}get uuid(){return R9(this,X3,"f")}constructor(e,r,n){super(),this.key=e,this.args=r,this.options=n,Q3.set(this,Date.now()),X3.set(this,E0())}processJob(e,r){return e.pipe(ye(n=>{const{key:i,uuid:o,created:a}=this;return{key:i,uuid:o,created:a,status:"complete",transaction:e.transaction,complete:n.completed,value:n.value}}),o0(()=>{r==null||r.debug("QueryTask complete",{uuid:this.uuid,key:this.key,job:{status:e.status,transaction:e.transaction}}),e.complete()})).subscribe(this)}}Q3=new WeakMap,X3=new WeakMap;var Ae=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},lc=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Cz=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},Ec,ss,Ti,Oh,ma,cs,Hh,em,Nr;const kz=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()},Ez=(t="switch")=>typeof t=="function"?t:(()=>{switch(t){case"concat":return CF;case"merge":return kF;case"switch":return EF;default:throw new Error(`Invalid queue operator: ${t}`)}})();class Qn{get client(){return Ae(this,ss,"f")}get cache(){return Ae(this,Ti,"f")}constructor(e){var r,n;Ec.set(this,new jr),ss.set(this,void 0),Ti.set(this,void 0),Oh.set(this,new rn),ma.set(this,{}),cs.set(this,void 0),Hh.set(this,void 0),em.set(this,E0()),Nr.set(this,void 0),lc(this,Nr,(r=e.logger)!==null&&r!==void 0?r:new Av("Query",Ae(this,em,"f")),"f"),lc(this,cs,o=>NF(e.key(o),Ae(this,em,"f")),"f"),lc(this,Hh,(n=e==null?void 0:e.validate)!==null&&n!==void 0?n:kz(e==null?void 0:e.expire),"f"),e.client instanceof A9?lc(this,ss,e.client,"f"):(lc(this,ss,new A9(e.client.fn,Object.assign({logger:Ae(this,Nr,"f").createSubLogger("Client")},e.client.options)),"f"),Ae(this,Ec,"f").add(()=>Ae(this,ss,"f").complete())),e.cache instanceof I9?lc(this,Ti,e.cache,"f"):(lc(this,Ti,new I9(e.cache||{}),"f"),Ae(this,Ec,"f").add(()=>Ae(this,Ti,"f").complete()));const i=Ez(e.queueOperator);Ae(this,Ec,"f").add(()=>Ae(this,Oh,"f").complete()),Ae(this,Ec,"f").add(Ae(this,Oh,"f").pipe(za(o=>Ae(this,Nr,"f").debug("Task added to queue",{key:o})),ze(o=>o in Ae(this,ma,"f")),i(o=>{const a=Ae(this,ma,"f")[o],{args:s,options:c,uuid:l}=a;if(Ae(this,Nr,"f").debug("Task selected from queue",{key:o,task:a.uuid,args:s,options:c}),!(a!=null&&a.observed))return Ae(this,Nr,"f").debug("Task skipped",{task:l}),delete Ae(this,ma,"f")[o],Lt;const d=Ae(this,ss,"f").query(s,Object.assign(Object.assign({},c),{ref:a.uuid}));return new Je(u=>{const{transaction:h}=d;Ae(this,Nr,"f").info("Task stated",{task:l,transaction:h}),u.add(()=>{Ae(this,Nr,"f").debug("Task closed",{task:l,transaction:h,jobStatus:d.status}),d.complete("task closed"),delete Ae(this,ma,"f")[o]}),u.add(lD(10).pipe(ze(()=>!a.observed)).subscribe(()=>{d.cancel(`task: ${a.uuid} is not observed`),u.complete()})),u.add(a.processJob(d,Ae(this,Nr,"f"))),d.pipe(ye(f=>({result:f,task:a})),Jt(()=>Lt)).subscribe(u)})}),iA(()=>!Ae(this,ss,"f").closed)).subscribe(o=>{const{value:a,transaction:s}=o.result,{args:c,key:l,uuid:d}=o.task;Ae(this,Nr,"f").debug("Task output added to cache",{uuid:d,args:c,key:l,transaction:s,value:a}),Ae(this,Ti,"f").setItem(l,{value:a,args:c,transaction:s})}))}query(e,r){return this._query(e,r)}queryAsync(e,r){const n=r||{},{skipResolve:i}=n,o=Cz(n,["skipResolve"]),a=i?Xr:vr;return new Promise((s,c)=>{r!=null&&r.signal&&r.signal.addEventListener("abort",()=>c(new Error("Query aborted"))),a(this._query(e,o).pipe(k6())).then(s,c)})}persistentQuery(e,r){const n=Ae(this,cs,"f").call(this,e),i=this._query(e,r);return new Je(o=>{var a;o.add(i.subscribe({next:o.next.bind(o),error:o.error.bind(o)}));const s=((a=r==null?void 0:r.cache)===null||a===void 0?void 0:a.validate)||Ae(this,Hh,"f");o.add(this.cache.state$.pipe(ze(c=>n in c),ye(c=>Object.assign(Object.assign({},c[n]),{key:n,status:"cache",hasValidCache:s(c[n],e)}))).subscribe(o))}).pipe(i0((o,a)=>o.transaction===a.transaction&&o.mutated===a.mutated))}generateCacheKey(e){return Ae(this,cs,"f").call(this,e)}mutate(e,r,n){const i=Ae(this,cs,"f").call(this,e);if(!(i in this.cache.state)){if((n==null?void 0:n.allowCreation)===void 0)throw new Error(`Cannot mutate cache item with key ${i}: item not found and option "allowCreation" is false`);if(n.allowCreation===!1)return;const{value:o}=typeof r=="function"?r():r;this.cache.setItem(i,{args:e,transaction:E0(),value:o})}Ae(this,Ti,"f").mutate(i,r)}invalidate(e){Ae(this,Ti,"f").invalidate(e&&Ae(this,cs,"f").call(this,e))}complete(){Ae(this,Ec,"f").unsubscribe()}onInvalidate(e){const r=Ae(this,Ti,"f").action$.pipe(ja("cache/invalidate")).subscribe(n=>e({detail:{item:n.meta.item}}));return()=>r.unsubscribe()}onMutate(e){const r=Ae(this,Ti,"f").action$.pipe(ja("cache/mutate")).subscribe(n=>e({detail:{changes:n.payload,current:n.meta.item}}));return()=>r.unsubscribe()}_query(e,r){const n=Ae(this,cs,"f").call(this,e),i=this._createTask(n,e,r);return Ae(this,Nr,"f").debug("New query created",{key:n,args:e,options:r}),i}_createTask(e,r,n){return new Je(i=>{var o,a,s,c,l;if(n!=null&&n.signal){if(n!=null&&n.signal.aborted)return Ae(this,Nr,"f").debug("Abort signal already triggered by caller",{key:e}),i.complete();i.add(Jc(n==null?void 0:n.signal,"abort").subscribe(()=>{Ae(this,Nr,"f").debug("Abort signal triggered by caller",{key:e}),i.complete()}))}const d=Ae(this,Ti,"f").getItem(e);if(d){Ae(this,Nr,"f").debug("Query has cache",{key:e,cacheEntry:d});const f=(a=(o=n==null?void 0:n.cache)===null||o===void 0?void 0:o.suppressInvalid)!==null&&a!==void 0?a:!1,m=(((s=n==null?void 0:n.cache)===null||s===void 0?void 0:s.validate)||Ae(this,Hh,"f"))(d,r),w=Object.assign(Object.assign({},d),{key:e,status:"cache",hasValidCache:m});if(Ae(this,Nr,"f").info("Query cache valid, completing",{hasValidCache:m,suppressInvalid:f,record:w}),i.next(w),m||f)return i.complete();Ae(this,Nr,"f").debug("Query cache entry is invalid, proceeding to fetch new data",{key:e})}const u=e in Ae(this,ma,"f");(c=(l=Ae(this,ma,"f"))[e])!==null&&c!==void 0||(l[e]=new xz(e,r,n));const h=Ae(this,ma,"f")[e];i.add(h.subscribe(i)),Ae(this,Nr,"f").info(u?"Query connected to existing task":"Query started new task",{key:e}),u||Ae(this,Oh,"f").next(e)})}}Ec=new WeakMap,ss=new WeakMap,Ti=new WeakMap,Oh=new WeakMap,ma=new WeakMap,cs=new WeakMap,Hh=new WeakMap,em=new WeakMap,Nr=new WeakMap;Qn.extractQueryValue=ef;var rs=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},P9=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Lh,va;class Sz extends Je{get currentContext(){return rs(this,va,"f").value}get currentContext$(){return rs(this,va,"f").asObservable()}get client(){return rs(this,Lh,"f")}constructor(e){super(r=>rs(this,va,"f").subscribe(r)),Lh.set(this,void 0),va.set(this,void 0),P9(this,Lh,new Qn(e),"f"),P9(this,va,new Ll(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Jt(()=>Lt)).subscribe(r=>this.setCurrentContext(r)):xF(e,rs(this,va,"f").value)||rs(this,va,"f").next(e)}resolveContext(e){return rs(this,Lh,"f").query({id:e}).pipe(ye(r=>r.value),Jt(r=>{throw r.cause?r.cause:r}))}resolveContextAsync(e,r){return(r!=null&&r.awaitResolve?vr:Xr)(this.resolveContext(e))}dispose(){rs(this,va,"f").complete()}}Lh=new WeakMap,va=new WeakMap;var lh=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},ft=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},dc=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ga,tm,Nh,eo,Sc,Tc,Dh,rm,nm;let Tz=class{get contextClient(){return ft(this,ga,"f")}get queryClient(){return ft(this,tm,"f")}get currentContext$(){return ft(this,ga,"f").currentContext$}get currentContext(){return ft(this,ga,"f").currentContext}set currentContext(e){if(console.warn("@deprecated","ContextProvider.currentContext","use setCurrentContextById|setCurrentContext|clearCurrentContext"),e===void 0)throw Error("not allowed to set current context as undefined undefined!");this.setCurrentContextAsync(e)}constructor(e){var r,n,i;ga.set(this,void 0),tm.set(this,void 0),Nh.set(this,void 0),eo.set(this,void 0),Sc.set(this,new jr),Tc.set(this,void 0),Dh.set(this,void 0),rm.set(this,void 0),nm.set(this,new rn);const{config:o,event:a}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),dc(this,eo,a,"f"),o.resolveContext&&(this.resolveContext=(r=o.resolveContext)===null||r===void 0?void 0:r.bind(this)),o.validateContext&&(this.validateContext=(n=o.validateContext)===null||n===void 0?void 0:n.bind(this)),dc(this,Tc,o.contextType,"f"),dc(this,Dh,o.contextFilter,"f"),dc(this,ga,new Sz(o.client.get),"f"),dc(this,tm,new Qn(o.client.query),"f"),o.client.related&&dc(this,Nh,new Qn(o.client.related),"f"),dc(this,rm,(i=o.contextParameterFn)!==null&&i!==void 0?i:s=>({search:s.search,filter:{type:s.type}}),"f"),ft(this,eo,"f")&&(ft(this,Sc,"f").add(this.currentContext$.pipe(a0()).subscribe(([s,c])=>{var l;(l=ft(this,eo,"f"))===null||l===void 0||l.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:s,next:c}})})),ft(this,Sc,"f").add(ft(this,eo,"f").addEventListener("onCurrentContextChanged",s=>{s.source!==this&&s.detail.next!==void 0&&this.setCurrentContext(s.detail.next)}))),ft(this,Sc,"f").add(ft(this,nm,"f").pipe(Rt(s=>s),za(s=>console.debug("ContextProvider::#contextQueue",s))).subscribe(s=>{ft(this,ga,"f").setCurrentContext(s??null)}))}connectParentContext(e,r){const i=e.currentContext$.pipe(ze(o=>o!==void 0),ze((o,a)=>{var s;return r!=null&&r.skipFirst&&a<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",o),!1):((s=this.currentContext)===null||s===void 0?void 0:s.id)!==(o==null?void 0:o.id)}),Rt(o=>lh(this,void 0,void 0,function*(){var a;if(!o)return{next:o};const s=yield(a=ft(this,eo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onParentContextChanged",{source:this,detail:o,cancelable:!0});return{next:o,canceled:s==null?void 0:s.canceled}})),ze(o=>!o.canceled),Rt(({next:o})=>this.setCurrentContext(o,{validate:!0,resolve:!0}).pipe(Jt(a=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",a),Lt)))),Jt(o=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",o),Lt))).subscribe();return ft(this,Sc,"f").add(i),i}setCurrentContextById(e){return new Je(r=>{try{ft(this,ga,"f").resolveContext(e).pipe(ze(n=>!!n),Rt(n=>this.setCurrentContext(n))).subscribe(r)}catch(n){r.error(n)}})}setCurrentContextByIdAsync(e){return vr(this.setCurrentContextById(e))}setCurrentContext(e,r){const n=new rn,i=new rn,o=this._setCurrentContext(e,r).pipe(za(a=>i.next(a)),el(n),o0(()=>i.complete()),Jt(a=>(i.error(a),Lt)));return ft(this,nm,"f").next(o),i.pipe(o0(()=>n.next(!0)))}_setCurrentContext(e,r){return new Je(n=>{var i;if(e===this.currentContext)return n.next(e),n.complete();if(e&&(r!=null&&r.validate)&&!this.validateContext(e)){if(!r.resolve)return(i=ft(this,eo,"f"))===null||i===void 0||i.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),n.error(Error("failed to validate provided context"));if(r.resolve)return Pr(e).pipe(Rt(o=>lh(this,void 0,void 0,function*(){var a;const s=yield(a=ft(this,eo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("resolving of context was canceled");return o})),Rt(o=>this.resolveContext(o).pipe(ye(a=>({context:o,resolved:a})))),Rt(o=>lh(this,[o],void 0,function*({context:a,resolved:s}){var c;const l=yield(c=ft(this,eo,"f"))===null||c===void 0?void 0:c.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:a,resolved:s}});if(l!=null&&l.canceled)throw Error("resolving of context was canceled");return s})),Rt(o=>this._setCurrentContext(o))).subscribe(n)}return Pr(e).pipe(Rt(o=>lh(this,void 0,void 0,function*(){var a;const s=yield(a=ft(this,eo,"f"))===null||a===void 0?void 0:a.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:o}});if(s!=null&&s.canceled)throw Error("change of context was aborted");return o}))).subscribe(o=>{n.next(o),n.complete()})})}setCurrentContextAsync(e,r){return lh(this,void 0,void 0,function*(){return vr(this.setCurrentContext(e,r))})}queryContext(e){const r=this.queryClient.query(ft(this,rm,"f").call(this,{search:e,type:ft(this,Tc,"f")})).pipe(Jt(n=>{throw n.name==="QueryClientError"?n.cause:n}),ye(n=>n.value));return ft(this,Dh,"f")?r.pipe(ye(ft(this,Dh,"f"))):r}queryContextAsync(e){return vr(this.queryContext(e))}validateContext(e){return ft(this,Tc,"f")?ft(this,Tc,"f").map(r=>r.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:ft(this,Tc,"f")}}).pipe(ye(r=>r.filter(n=>this.validateContext(n))),ye(r=>{const n=r.shift();if(!n)throw Error("failed to resolve context");return r.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",r),n}))}resolveContextAsync(e){return vr(this.resolveContext(e))}relatedContexts(e){return ft(this,Nh,"f")?ft(this,Nh,"f").query(e).pipe(ye(({value:r})=>r),Jt(r=>{throw r.cause?r.cause:r})):YT(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return vr(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContext(null)}dispose(){ft(this,Sc,"f").unsubscribe(),ft(this,ga,"f").dispose()}};ga=new WeakMap,tm=new WeakMap,Nh=new WeakMap,eo=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,Dh=new WeakMap,rm=new WeakMap,nm=new WeakMap;var Az=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Iz="context",Rz={name:Iz,configure:()=>new bF,initialize:function(t){return Az(this,void 0,void 0,function*(){var e;const r=yield t.config.createConfig(t),n=t.hasModule("event")?yield t.requireInstance("event"):void 0,i=(e=t.ref)===null||e===void 0?void 0:e.context,o=new Tz({config:r,event:n,parentContext:i}),a=new jr(()=>o.dispose());return this.postInitialize=s=>new Je(c=>{const l=r.resolveInitialContext?vt(r.resolveInitialContext(s)).pipe(ze(d=>!!d),Rt(d=>s.modules.context.setCurrentContext(d,{validate:!0,resolve:!0}))):Lt;c.add(l.pipe(Jt(d=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",d),Lt))).subscribe({next:d=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${d?d.id:"none"}]`,d)},complete:()=>{r.connectParentContext!==!1&&i&&o.connectParentContext(i),c.complete()}}))}),this.dispose=()=>a.unsubscribe(),o})}};var st;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},t.getValidEnumValues=i=>{const o=t.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return t.objectValues(a)},t.objectValues=i=>t.objectKeys(i).map(function(o){return i[o]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},t.find=(i,o)=>{for(const a of i)if(o(a))return a},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}t.joinValues=n,t.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(st||(st={}));var J3;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(J3||(J3={}));const ue=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ks=t=>{switch(typeof t){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(t)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(t)?ue.array:t===null?ue.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ue.promise:typeof Map<"u"&&t instanceof Map?ue.map:typeof Set<"u"&&t instanceof Set?ue.set:typeof Date<"u"&&t instanceof Date?ue.date:ue.object;default:return ue.unknown}},ee=st.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Pz=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class fi extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const r=e||function(o){return o.message},n={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else{let s=n,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(r(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return i(this),n}static assert(e){if(!(e instanceof fi))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}fi.create=t=>new fi(t);const gu=(t,e)=>{let r;switch(t.code){case ee.invalid_type:t.received===ue.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ee.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,st.jsonStringifyReplacer)}`;break;case ee.unrecognized_keys:r=`Unrecognized key(s) in object: ${st.joinValues(t.keys,", ")}`;break;case ee.invalid_union:r="Invalid input";break;case ee.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${st.joinValues(t.options)}`;break;case ee.invalid_enum_value:r=`Invalid enum value. Expected ${st.joinValues(t.options)}, received '${t.received}'`;break;case ee.invalid_arguments:r="Invalid function arguments";break;case ee.invalid_return_type:r="Invalid function return type";break;case ee.invalid_date:r="Invalid date";break;case ee.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:st.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ee.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ee.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ee.custom:r="Invalid input";break;case ee.invalid_intersection_types:r="Intersection results could not be merged";break;case ee.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ee.not_finite:r="Number must be finite";break;default:r=e.defaultError,st.assertNever(t)}return{message:r}};let $A=gu;function Mz(t){$A=t}function T0(){return $A}const A0=t=>{const{data:e,path:r,errorMaps:n,issueData:i}=t,o=[...r,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const c=n.filter(l=>!!l).slice().reverse();for(const l of c)s=l(a,{data:e,defaultError:s}).message;return{...i,path:o,message:s}},$z=[];function ce(t,e){const r=T0(),n=A0({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===gu?void 0:gu].filter(i=>!!i)});t.common.issues.push(n)}class xn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const i of r){if(i.status==="aborted")return Ze;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const i of r){const o=await i.key,a=await i.value;n.push({key:o,value:a})}return xn.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const i of r){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return Ze;o.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(n[o.value]=a.value)}return{status:e.value,value:n}}}const Ze=Object.freeze({status:"aborted"}),Dd=t=>({status:"dirty",value:t}),Mn=t=>({status:"valid",value:t}),ey=t=>t.status==="aborted",ty=t=>t.status==="dirty",rf=t=>t.status==="valid",nf=t=>typeof Promise<"u"&&t instanceof Promise;function I0(t,e,r,n){if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function ZA(t,e,r,n,i){if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,r),r}var we;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(we||(we={}));var Vh,Fh;class ea{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const M9=(t,e)=>{if(rf(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new fi(t.common.issues);return this._error=r,this._error}}};function Ue(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(a,s)=>{var c,l;const{message:d}=t;return a.code==="invalid_enum_value"?{message:d??s.defaultError}:typeof s.data>"u"?{message:(c=d??n)!==null&&c!==void 0?c:s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:(l=d??r)!==null&&l!==void 0?l:s.defaultError}},description:i}}class Ye{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return ks(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:ks(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new xn,ctx:{common:e.parent.common,data:e.data,parsedType:ks(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(nf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;const i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ks(e)},o=this._parseSync({data:e,path:i.path,parent:i});return M9(i,o)}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ks(e)},i=this._parse({data:e,path:n.path,parent:n}),o=await(nf(i)?i:Promise.resolve(i));return M9(n,o)}refine(e,r){const n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,o)=>{const a=e(i),s=()=>o.addIssue({code:ee.custom,...n(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new bo({schema:this,typeName:Pe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Xo.create(this,this._def)}nullable(){return Ys.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mo.create(this,this._def)}promise(){return _u.create(this,this._def)}or(e){return cf.create([this,e],this._def)}and(e){return lf.create(this,e,this._def)}transform(e){return new bo({...Ue(this._def),schema:this,typeName:Pe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new pf({...Ue(this._def),innerType:this,defaultValue:r,typeName:Pe.ZodDefault})}brand(){return new z6({typeName:Pe.ZodBranded,type:this,...Ue(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new mf({...Ue(this._def),innerType:this,catchValue:r,typeName:Pe.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Bf.create(this,e)}readonly(){return vf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zz=/^c[^\s-]{8,}$/i,Oz=/^[0-9a-z]+$/,Hz=/^[0-9A-HJKMNP-TV-Z]{26}$/,Lz=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Nz=/^[a-z0-9_-]{21}$/i,Dz=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vz=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Fz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let b4;const zz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jz=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Uz=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,OA="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Bz=new RegExp(`^${OA}$`);function HA(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function qz(t){return new RegExp(`^${HA(t)}$`)}function LA(t){let e=`${OA}T${HA(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function Wz(t,e){return!!((e==="v4"||!e)&&zz.test(t)||(e==="v6"||!e)&&jz.test(t))}class ho extends Ye{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ue.string){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.string,received:o.parsedType}),Ze}const n=new xn;let i;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")e.data.length>o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){const a=e.data.length>o.value,s=e.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(e,i),a?ce(i,{code:ee.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&ce(i,{code:ee.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")Vz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"email",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")b4||(b4=new RegExp(Fz,"u")),b4.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"emoji",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")Lz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"uuid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")Nz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"nanoid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")Zz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"cuid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")Oz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"cuid2",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")Hz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"ulid",code:ee.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),ce(i,{validation:"url",code:ee.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"regex",code:ee.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?LA(o).test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?Bz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?qz(o).test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?Dz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"duration",code:ee.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?Wz(e.data,o.version)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"ip",code:ee.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?Uz.test(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{validation:"base64",code:ee.invalid_string,message:o.message}),n.dirty()):st.assertNever(o);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:ee.invalid_string,...we.errToObj(n)})}_addCheck(e){return new ho({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...we.errToObj(e)})}url(e){return this._addCheck({kind:"url",...we.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...we.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...we.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...we.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...we.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...we.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...we.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...we.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...we.errToObj(e)})}datetime(e){var r,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,local:(n=e==null?void 0:e.local)!==null&&n!==void 0?n:!1,...we.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...we.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...we.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...we.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...we.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...we.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...we.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...we.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...we.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...we.errToObj(r)})}nonempty(e){return this.min(1,we.errToObj(e))}trim(){return new ho({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ho({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ho({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}ho.create=t=>{var e;return new ho({checks:[],typeName:Pe.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ue(t)})};function Gz(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,o=parseInt(t.toFixed(i).replace(".","")),a=parseInt(e.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}class Ws extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ue.number){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.number,received:o.parsedType}),Ze}let n;const i=new xn;for(const o of this._def.checks)o.kind==="int"?st.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?Gz(e.data,o.value)!==0&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.not_finite,message:o.message}),i.dirty()):st.assertNever(o);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,we.toString(r))}gt(e,r){return this.setLimit("min",e,!1,we.toString(r))}lte(e,r){return this.setLimit("max",e,!0,we.toString(r))}lt(e,r){return this.setLimit("max",e,!1,we.toString(r))}setLimit(e,r,n,i){return new Ws({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:we.toString(i)}]})}_addCheck(e){return new Ws({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:we.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:we.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:we.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:we.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:we.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:we.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:we.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:we.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:we.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&st.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}Ws.create=t=>new Ws({checks:[],typeName:Pe.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ue(t)});class Gs extends Ye{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ue.bigint){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.bigint,received:o.parsedType}),Ze}let n;const i=new xn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ee.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):st.assertNever(o);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,we.toString(r))}gt(e,r){return this.setLimit("min",e,!1,we.toString(r))}lte(e,r){return this.setLimit("max",e,!0,we.toString(r))}lt(e,r){return this.setLimit("max",e,!1,we.toString(r))}setLimit(e,r,n,i){return new Gs({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:we.toString(i)}]})}_addCheck(e){return new Gs({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:we.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:we.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:we.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:we.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:we.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Gs.create=t=>{var e;return new Gs({checks:[],typeName:Pe.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ue(t)})};class of extends Ye{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ue.boolean){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.boolean,received:n.parsedType}),Ze}return Mn(e.data)}}of.create=t=>new of({typeName:Pe.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ue(t)});class _l extends Ye{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ue.date){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_type,expected:ue.date,received:o.parsedType}),Ze}if(isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return ce(o,{code:ee.invalid_date}),Ze}const n=new xn;let i;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ee.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):st.assertNever(o);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new _l({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:we.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:we.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}_l.create=t=>new _l({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:Pe.ZodDate,...Ue(t)});class R0 extends Ye{_parse(e){if(this._getType(e)!==ue.symbol){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.symbol,received:n.parsedType}),Ze}return Mn(e.data)}}R0.create=t=>new R0({typeName:Pe.ZodSymbol,...Ue(t)});class af extends Ye{_parse(e){if(this._getType(e)!==ue.undefined){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.undefined,received:n.parsedType}),Ze}return Mn(e.data)}}af.create=t=>new af({typeName:Pe.ZodUndefined,...Ue(t)});class sf extends Ye{_parse(e){if(this._getType(e)!==ue.null){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.null,received:n.parsedType}),Ze}return Mn(e.data)}}sf.create=t=>new sf({typeName:Pe.ZodNull,...Ue(t)});class yu extends Ye{constructor(){super(...arguments),this._any=!0}_parse(e){return Mn(e.data)}}yu.create=t=>new yu({typeName:Pe.ZodAny,...Ue(t)});class nl extends Ye{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Mn(e.data)}}nl.create=t=>new nl({typeName:Pe.ZodUnknown,...Ue(t)});class Ua extends Ye{_parse(e){const r=this._getOrReturnCtx(e);return ce(r,{code:ee.invalid_type,expected:ue.never,received:r.parsedType}),Ze}}Ua.create=t=>new Ua({typeName:Pe.ZodNever,...Ue(t)});class P0 extends Ye{_parse(e){if(this._getType(e)!==ue.undefined){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.void,received:n.parsedType}),Ze}return Mn(e.data)}}P0.create=t=>new P0({typeName:Pe.ZodVoid,...Ue(t)});class mo extends Ye{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==ue.array)return ce(r,{code:ee.invalid_type,expected:ue.array,received:r.parsedType}),Ze;if(i.exactLength!==null){const a=r.data.length>i.exactLength.value,s=r.data.length<i.exactLength.value;(a||s)&&(ce(r,{code:a?ee.too_big:ee.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ce(r,{code:ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ce(r,{code:ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>i.type._parseAsync(new ea(r,a,r.path,s)))).then(a=>xn.mergeArray(n,a));const o=[...r.data].map((a,s)=>i.type._parseSync(new ea(r,a,r.path,s)));return xn.mergeArray(n,o)}get element(){return this._def.type}min(e,r){return new mo({...this._def,minLength:{value:e,message:we.toString(r)}})}max(e,r){return new mo({...this._def,maxLength:{value:e,message:we.toString(r)}})}length(e,r){return new mo({...this._def,exactLength:{value:e,message:we.toString(r)}})}nonempty(e){return this.min(1,e)}}mo.create=(t,e)=>new mo({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Pe.ZodArray,...Ue(e)});function fd(t){if(t instanceof ir){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=Xo.create(fd(n))}return new ir({...t._def,shape:()=>e})}else return t instanceof mo?new mo({...t._def,type:fd(t.element)}):t instanceof Xo?Xo.create(fd(t.unwrap())):t instanceof Ys?Ys.create(fd(t.unwrap())):t instanceof ta?ta.create(t.items.map(e=>fd(e))):t}class ir extends Ye{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=st.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ue.object){const l=this._getOrReturnCtx(e);return ce(l,{code:ee.invalid_type,expected:ue.object,received:l.parsedType}),Ze}const{status:n,ctx:i}=this._processInputParams(e),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ua&&this._def.unknownKeys==="strip"))for(const l in i.data)a.includes(l)||s.push(l);const c=[];for(const l of a){const d=o[l],u=i.data[l];c.push({key:{status:"valid",value:l},value:d._parse(new ea(i,u,i.path,l)),alwaysSet:l in i.data})}if(this._def.catchall instanceof Ua){const l=this._def.unknownKeys;if(l==="passthrough")for(const d of s)c.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(l==="strict")s.length>0&&(ce(i,{code:ee.unrecognized_keys,keys:s}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const d of s){const u=i.data[d];c.push({key:{status:"valid",value:d},value:l._parse(new ea(i,u,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const l=[];for(const d of c){const u=await d.key,h=await d.value;l.push({key:u,value:h,alwaysSet:d.alwaysSet})}return l}).then(l=>xn.mergeObjectSync(n,l)):xn.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return we.errToObj,new ir({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,o,a,s;const c=(a=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,r,n).message)!==null&&a!==void 0?a:n.defaultError;return r.code==="unrecognized_keys"?{message:(s=we.errToObj(e).message)!==null&&s!==void 0?s:c}:{message:c}}}:{}})}strip(){return new ir({...this._def,unknownKeys:"strip"})}passthrough(){return new ir({...this._def,unknownKeys:"passthrough"})}extend(e){return new ir({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ir({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Pe.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new ir({...this._def,catchall:e})}pick(e){const r={};return st.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new ir({...this._def,shape:()=>r})}omit(e){const r={};return st.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new ir({...this._def,shape:()=>r})}deepPartial(){return fd(this)}partial(e){const r={};return st.objectKeys(this.shape).forEach(n=>{const i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new ir({...this._def,shape:()=>r})}required(e){const r={};return st.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof Xo;)o=o._def.innerType;r[n]=o}}),new ir({...this._def,shape:()=>r})}keyof(){return NA(st.objectKeys(this.shape))}}ir.create=(t,e)=>new ir({shape:()=>t,unknownKeys:"strip",catchall:Ua.create(),typeName:Pe.ZodObject,...Ue(e)});ir.strictCreate=(t,e)=>new ir({shape:()=>t,unknownKeys:"strict",catchall:Ua.create(),typeName:Pe.ZodObject,...Ue(e)});ir.lazycreate=(t,e)=>new ir({shape:t,unknownKeys:"strip",catchall:Ua.create(),typeName:Pe.ZodObject,...Ue(e)});class cf extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new fi(s.ctx.common.issues));return ce(r,{code:ee.invalid_union,unionErrors:a}),Ze}if(r.common.async)return Promise.all(n.map(async o=>{const a={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const c of n){const l={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(c=>new fi(c));return ce(r,{code:ee.invalid_union,unionErrors:s}),Ze}}get options(){return this._def.options}}cf.create=(t,e)=>new cf({options:t,typeName:Pe.ZodUnion,...Ue(e)});const ya=t=>t instanceof uf?ya(t.schema):t instanceof bo?ya(t.innerType()):t instanceof hf?[t.value]:t instanceof Ks?t.options:t instanceof ff?st.objectValues(t.enum):t instanceof pf?ya(t._def.innerType):t instanceof af?[void 0]:t instanceof sf?[null]:t instanceof Xo?[void 0,...ya(t.unwrap())]:t instanceof Ys?[null,...ya(t.unwrap())]:t instanceof z6||t instanceof vf?ya(t.unwrap()):t instanceof mf?ya(t._def.innerType):[];class Iv extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ue.object)return ce(r,{code:ee.invalid_type,expected:ue.object,received:r.parsedType}),Ze;const n=this.discriminator,i=r.data[n],o=this.optionsMap.get(i);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(ce(r,{code:ee.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){const i=new Map;for(const o of r){const a=ya(o.shape[e]);if(!a.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);i.set(s,o)}}return new Iv({typeName:Pe.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...Ue(n)})}}function ry(t,e){const r=ks(t),n=ks(e);if(t===e)return{valid:!0,data:t};if(r===ue.object&&n===ue.object){const i=st.objectKeys(e),o=st.objectKeys(t).filter(s=>i.indexOf(s)!==-1),a={...t,...e};for(const s of o){const c=ry(t[s],e[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(r===ue.array&&n===ue.array){if(t.length!==e.length)return{valid:!1};const i=[];for(let o=0;o<t.length;o++){const a=t[o],s=e[o],c=ry(a,s);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===ue.date&&n===ue.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class lf extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),i=(o,a)=>{if(ey(o)||ey(a))return Ze;const s=ry(o.value,a.value);return s.valid?((ty(o)||ty(a))&&r.dirty(),{status:r.value,value:s.data}):(ce(n,{code:ee.invalid_intersection_types}),Ze)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}lf.create=(t,e,r)=>new lf({left:t,right:e,typeName:Pe.ZodIntersection,...Ue(r)});class ta extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.array)return ce(n,{code:ee.invalid_type,expected:ue.array,received:n.parsedType}),Ze;if(n.data.length<this._def.items.length)return ce(n,{code:ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ze;!this._def.rest&&n.data.length>this._def.items.length&&(ce(n,{code:ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...n.data].map((a,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new ea(n,a,n.path,s)):null}).filter(a=>!!a);return n.common.async?Promise.all(o).then(a=>xn.mergeArray(r,a)):xn.mergeArray(r,o)}get items(){return this._def.items}rest(e){return new ta({...this._def,rest:e})}}ta.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ta({items:t,typeName:Pe.ZodTuple,rest:null,...Ue(e)})};class df extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.object)return ce(n,{code:ee.invalid_type,expected:ue.object,received:n.parsedType}),Ze;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in n.data)i.push({key:o._parse(new ea(n,s,n.path,s)),value:a._parse(new ea(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?xn.mergeObjectAsync(r,i):xn.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof Ye?new df({keyType:e,valueType:r,typeName:Pe.ZodRecord,...Ue(n)}):new df({keyType:ho.create(),valueType:e,typeName:Pe.ZodRecord,...Ue(r)})}}class M0 extends Ye{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.map)return ce(n,{code:ee.invalid_type,expected:ue.map,received:n.parsedType}),Ze;const i=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(([s,c],l)=>({key:i._parse(new ea(n,s,n.path,[l,"key"])),value:o._parse(new ea(n,c,n.path,[l,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of a){const l=await c.key,d=await c.value;if(l.status==="aborted"||d.status==="aborted")return Ze;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const c of a){const l=c.key,d=c.value;if(l.status==="aborted"||d.status==="aborted")return Ze;(l.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(l.value,d.value)}return{status:r.value,value:s}}}}M0.create=(t,e,r)=>new M0({valueType:e,keyType:t,typeName:Pe.ZodMap,...Ue(r)});class bl extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==ue.set)return ce(n,{code:ee.invalid_type,expected:ue.set,received:n.parsedType}),Ze;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ce(n,{code:ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ce(n,{code:ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const o=this._def.valueType;function a(c){const l=new Set;for(const d of c){if(d.status==="aborted")return Ze;d.status==="dirty"&&r.dirty(),l.add(d.value)}return{status:r.value,value:l}}const s=[...n.data.values()].map((c,l)=>o._parse(new ea(n,c,n.path,l)));return n.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(e,r){return new bl({...this._def,minSize:{value:e,message:we.toString(r)}})}max(e,r){return new bl({...this._def,maxSize:{value:e,message:we.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}bl.create=(t,e)=>new bl({valueType:t,minSize:null,maxSize:null,typeName:Pe.ZodSet,...Ue(e)});class eu extends Ye{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ue.function)return ce(r,{code:ee.invalid_type,expected:ue.function,received:r.parsedType}),Ze;function n(s,c){return A0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,T0(),gu].filter(l=>!!l),issueData:{code:ee.invalid_arguments,argumentsError:c}})}function i(s,c){return A0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,T0(),gu].filter(l=>!!l),issueData:{code:ee.invalid_return_type,returnTypeError:c}})}const o={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof _u){const s=this;return Mn(async function(...c){const l=new fi([]),d=await s._def.args.parseAsync(c,o).catch(f=>{throw l.addIssue(n(c,f)),l}),u=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(u,o).catch(f=>{throw l.addIssue(i(u,f)),l})})}else{const s=this;return Mn(function(...c){const l=s._def.args.safeParse(c,o);if(!l.success)throw new fi([n(c,l.error)]);const d=Reflect.apply(a,this,l.data),u=s._def.returns.safeParse(d,o);if(!u.success)throw new fi([i(d,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ta.create(e).rest(nl.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new eu({args:e||ta.create([]).rest(nl.create()),returns:r||nl.create(),typeName:Pe.ZodFunction,...Ue(n)})}}class uf extends Ye{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}uf.create=(t,e)=>new uf({getter:t,typeName:Pe.ZodLazy,...Ue(e)});class hf extends Ye{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return ce(r,{received:r.data,code:ee.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:e.data}}get value(){return this._def.value}}hf.create=(t,e)=>new hf({value:t,typeName:Pe.ZodLiteral,...Ue(e)});function NA(t,e){return new Ks({values:t,typeName:Pe.ZodEnum,...Ue(e)})}class Ks extends Ye{constructor(){super(...arguments),Vh.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return ce(r,{expected:st.joinValues(n),received:r.parsedType,code:ee.invalid_type}),Ze}if(I0(this,Vh)||ZA(this,Vh,new Set(this._def.values)),!I0(this,Vh).has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return ce(r,{received:r.data,code:ee.invalid_enum_value,options:n}),Ze}return Mn(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Ks.create(e,{...this._def,...r})}exclude(e,r=this._def){return Ks.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Vh=new WeakMap;Ks.create=NA;class ff extends Ye{constructor(){super(...arguments),Fh.set(this,void 0)}_parse(e){const r=st.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ue.string&&n.parsedType!==ue.number){const i=st.objectValues(r);return ce(n,{expected:st.joinValues(i),received:n.parsedType,code:ee.invalid_type}),Ze}if(I0(this,Fh)||ZA(this,Fh,new Set(st.getValidEnumValues(this._def.values))),!I0(this,Fh).has(e.data)){const i=st.objectValues(r);return ce(n,{received:n.data,code:ee.invalid_enum_value,options:i}),Ze}return Mn(e.data)}get enum(){return this._def.values}}Fh=new WeakMap;ff.create=(t,e)=>new ff({values:t,typeName:Pe.ZodNativeEnum,...Ue(e)});class _u extends Ye{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==ue.promise&&r.common.async===!1)return ce(r,{code:ee.invalid_type,expected:ue.promise,received:r.parsedType}),Ze;const n=r.parsedType===ue.promise?r.data:Promise.resolve(r.data);return Mn(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}_u.create=(t,e)=>new _u({type:t,typeName:Pe.ZodPromise,...Ue(e)});class bo extends Ye{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Pe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:a=>{ce(n,a),a.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(n.data,o);if(n.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return Ze;const c=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return c.status==="aborted"?Ze:c.status==="dirty"||r.value==="dirty"?Dd(c.value):c});{if(r.value==="aborted")return Ze;const s=this._def.schema._parseSync({data:a,path:n.path,parent:n});return s.status==="aborted"?Ze:s.status==="dirty"||r.value==="dirty"?Dd(s.value):s}}if(i.type==="refinement"){const a=s=>{const c=i.refinement(s,o);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ze:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?Ze:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(i.type==="transform")if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!rf(a))return a;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>rf(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:r.value,value:s})):a);st.assertNever(i)}}bo.create=(t,e,r)=>new bo({schema:t,typeName:Pe.ZodEffects,effect:e,...Ue(r)});bo.createWithPreprocess=(t,e,r)=>new bo({schema:e,effect:{type:"preprocess",transform:t},typeName:Pe.ZodEffects,...Ue(r)});class Xo extends Ye{_parse(e){return this._getType(e)===ue.undefined?Mn(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Xo.create=(t,e)=>new Xo({innerType:t,typeName:Pe.ZodOptional,...Ue(e)});class Ys extends Ye{_parse(e){return this._getType(e)===ue.null?Mn(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ys.create=(t,e)=>new Ys({innerType:t,typeName:Pe.ZodNullable,...Ue(e)});class pf extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===ue.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}pf.create=(t,e)=>new pf({innerType:t,typeName:Pe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ue(e)});class mf extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nf(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fi(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new fi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}mf.create=(t,e)=>new mf({innerType:t,typeName:Pe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ue(e)});class $0 extends Ye{_parse(e){if(this._getType(e)!==ue.nan){const n=this._getOrReturnCtx(e);return ce(n,{code:ee.invalid_type,expected:ue.nan,received:n.parsedType}),Ze}return{status:"valid",value:e.data}}}$0.create=t=>new $0({typeName:Pe.ZodNaN,...Ue(t)});const Kz=Symbol("zod_brand");class z6 extends Ye{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Bf extends Ye{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?Ze:o.status==="dirty"?(r.dirty(),Dd(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ze:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Bf({in:e,out:r,typeName:Pe.ZodPipeline})}}class vf extends Ye{_parse(e){const r=this._def.innerType._parse(e),n=i=>(rf(i)&&(i.value=Object.freeze(i.value)),i);return nf(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}vf.create=(t,e)=>new vf({innerType:t,typeName:Pe.ZodReadonly,...Ue(e)});function DA(t,e={},r){return t?yu.create().superRefine((n,i)=>{var o,a;if(!t(n)){const s=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(a=(o=s.fatal)!==null&&o!==void 0?o:r)!==null&&a!==void 0?a:!0,l=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...l,fatal:c})}}):yu.create()}const Yz={object:ir.lazycreate};var Pe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Pe||(Pe={}));const Qz=(t,e={message:`Input not instance of ${t.name}`})=>DA(r=>r instanceof t,e),VA=ho.create,FA=Ws.create,Xz=$0.create,Jz=Gs.create,zA=of.create,ej=_l.create,tj=R0.create,rj=af.create,nj=sf.create,ij=yu.create,oj=nl.create,aj=Ua.create,sj=P0.create,cj=mo.create,lj=ir.create,dj=ir.strictCreate,uj=cf.create,hj=Iv.create,fj=lf.create,pj=ta.create,mj=df.create,vj=M0.create,gj=bl.create,yj=eu.create,_j=uf.create,bj=hf.create,wj=Ks.create,xj=ff.create,Cj=_u.create,$9=bo.create,kj=Xo.create,Ej=Ys.create,Sj=bo.createWithPreprocess,Tj=Bf.create,Aj=()=>VA().optional(),Ij=()=>FA().optional(),Rj=()=>zA().optional(),Pj={string:t=>ho.create({...t,coerce:!0}),number:t=>Ws.create({...t,coerce:!0}),boolean:t=>of.create({...t,coerce:!0}),bigint:t=>Gs.create({...t,coerce:!0}),date:t=>_l.create({...t,coerce:!0})},Mj=Ze;var Se=Object.freeze({__proto__:null,defaultErrorMap:gu,setErrorMap:Mz,getErrorMap:T0,makeIssue:A0,EMPTY_PATH:$z,addIssueToContext:ce,ParseStatus:xn,INVALID:Ze,DIRTY:Dd,OK:Mn,isAborted:ey,isDirty:ty,isValid:rf,isAsync:nf,get util(){return st},get objectUtil(){return J3},ZodParsedType:ue,getParsedType:ks,ZodType:Ye,datetimeRegex:LA,ZodString:ho,ZodNumber:Ws,ZodBigInt:Gs,ZodBoolean:of,ZodDate:_l,ZodSymbol:R0,ZodUndefined:af,ZodNull:sf,ZodAny:yu,ZodUnknown:nl,ZodNever:Ua,ZodVoid:P0,ZodArray:mo,ZodObject:ir,ZodUnion:cf,ZodDiscriminatedUnion:Iv,ZodIntersection:lf,ZodTuple:ta,ZodRecord:df,ZodMap:M0,ZodSet:bl,ZodFunction:eu,ZodLazy:uf,ZodLiteral:hf,ZodEnum:Ks,ZodNativeEnum:ff,ZodPromise:_u,ZodEffects:bo,ZodTransformer:bo,ZodOptional:Xo,ZodNullable:Ys,ZodDefault:pf,ZodCatch:mf,ZodNaN:$0,BRAND:Kz,ZodBranded:z6,ZodPipeline:Bf,ZodReadonly:vf,custom:DA,Schema:Ye,ZodSchema:Ye,late:Yz,get ZodFirstPartyTypeKind(){return Pe},coerce:Pj,any:ij,array:cj,bigint:Jz,boolean:zA,date:ej,discriminatedUnion:hj,effect:$9,enum:wj,function:yj,instanceof:Qz,intersection:fj,lazy:_j,literal:bj,map:vj,nan:Xz,nativeEnum:xj,never:aj,null:nj,nullable:Ej,number:FA,object:lj,oboolean:Rj,onumber:Ij,optional:kj,ostring:Aj,pipeline:Tj,preprocess:Sj,promise:Cj,record:mj,set:gj,strictObject:dj,string:VA,symbol:tj,transformer:$9,tuple:pj,undefined:rj,union:uj,unknown:oj,void:sj,NEVER:Mj,ZodIssueCode:ee,quotelessJson:Pz,ZodError:fi});const $j=Se.object({key:Se.string().describe("The key used to identify the service"),uri:Se.string().describe("The URI of the service"),id:Se.string().optional().describe("The ID of the service"),environment:Se.string().optional().describe("The environment of the service"),name:Se.string().optional().describe("The name of the service"),scopes:Se.array(Se.string()).optional().default([]).describe("Endpoint authentication scopes"),tags:Se.array(Se.string()).optional().describe("Tags for the service")}).describe("A service from the service discovery API").transform(t=>Object.assign(Object.assign({},t),{get defaultScopes(){var e;return console.warn("The `defaultScopes` property is deprecated. Use `scopes` instead."),(e=t.scopes)!==null&&e!==void 0?e:[]}})),Zj=Se.array($j).describe("A list of services from the service discovery API");var Oj=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Hj=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Lj=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},im;const Nj="services",Dj=t=>vt(h0(t)).pipe(ye(e=>Zj.default([]).parse(e)));class Vj{constructor({http:e,endpoint:r}){im.set(this,void 0),this.http=e,this.endpoint=r,Hj(this,im,new Qn({client:{fn:()=>e.fetch$(r??"",{selector:Dj})},key:()=>Nj,expire:5*60*1e3}),"f")}resolveServices(e){return(e?Xr:vr)(Qn.extractQueryValue(Lj(this,im,"f").query()))}resolveService(e,r){return Oj(this,void 0,void 0,function*(){const i=(yield this.resolveServices(r)).find(o=>o.key===e);if(!i)throw Error(`Failed to resolve service, invalid key [${e}]`);return i})}}im=new WeakMap;var o2=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Fj extends E6{_createConfig(e,r){const n=Object.create(null,{_createConfig:{get:()=>super._createConfig}});return o2(this,void 0,void 0,function*(){if(!e.hasModule("http"))throw new Error("http module is required");return(yield e.requireInstance("http")).hasClient("service_discovery")&&this.configureServiceDiscoveryClientByClientKey("service_discovery"),vr(vt(n._createConfig.call(this,e,r)))})}_processConfig(e,r){if(!e.discoveryClient)throw new Error("discoveryClient is required, please configure it");return super._processConfig(e,r)}setServiceDiscoveryClient(e){this._set("discoveryClient",typeof e=="function"?e:()=>o2(this,void 0,void 0,function*(){return e}))}configureServiceDiscoveryClient(e){this.setServiceDiscoveryClient(r=>o2(this,void 0,void 0,function*(){var n;const{httpClient:i,endpoint:o}=(n=yield vr(vt(e(r))))!==null&&n!==void 0?n:{};if(i)return new Vj({http:i,endpoint:o});throw Error("httpClient is required")}))}configureServiceDiscoveryClientByClientKey(e,r){this.configureServiceDiscoveryClient(n=>o2(this,[n],void 0,function*({requireInstance:i}){return{httpClient:(yield i("http")).createClient(e),endpoint:r}}))}}var w4=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class zj{constructor(e,r){this.config=e,this._http=r}resolveServices(){return this.config.discoveryClient.resolveServices()}resolveService(e){return w4(this,void 0,void 0,function*(){return this.config.discoveryClient.resolveService(e)})}createClient(e,r){return w4(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},r),{baseUri:n.uri,defaultScopes:n.scopes}))})}configureClient(e,r){return w4(this,void 0,void 0,function*(){const{key:n,alias:i}=typeof e=="string"?{key:e,alias:e}:e,{uri:o,scopes:a}=yield this.resolveService(n);r.addConfig(hA(i,{baseUri:o,defaultScopes:a}))})}}var jj=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Uj="serviceDiscovery",Bj={name:Uj,configure:()=>new Fj,initialize:t=>jj(void 0,void 0,void 0,function*(){var e;const{requireInstance:r,ref:n}=t,i=yield t.config.createConfigAsync(t,Object.assign({},(e=n==null?void 0:n.serviceDiscovery)===null||e===void 0?void 0:e.config)),o=yield r("http");return new zj(i,o)})};class qj{}var Ni;(function(t){t.v1="1.0",t.v2="2.0"})(Ni||(Ni={}));class bi extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const Wj=(t,e)=>{var r;const n=(r=Ni[t])!==null&&r!==void 0?r:t;switch(n){case Ni.v2:throw new bi(t);case Ni.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/contexts/${i}/?${String(o)}`}}},Gj=(t,e,r)=>[Wj(t,e),r],Kj=(t,e,r="json")=>(n,i)=>t[r](...Gj(e,n,i));var Yj=["eq","ne","gt","ge","lt","le"],a2=["and","or","not"],Qj=["any","all"],Xj=["startswith","endswith","contains"],Jj=["expand","levels","select","skip","top","count","orderby","filter"],Z9=/\((.*)\)/,O9=/(?!indexof)\((\w+)\)/,H9;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(H9||(H9={}));var fa="";function jA(t){var e=t===void 0?{}:t,r=e.select,n=e.search,i=e.skiptoken,o=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,d=e.orderBy,u=e.key,h=e.count,f=e.expand,p=e.action,m=e.func,w="",y=[],v={};if(u!=null&&(w+="(".concat(qo(u,y),")")),(c||typeof h=="object")&&(v.$filter=gf(typeof h=="object"?h:c,y)),l&&(v.$apply=UA(l)),f&&(v.$expand=om(f)),d&&(v.$orderby=j6(d)),h&&(typeof h=="boolean"?v.$count=!0:w+="/$count"),typeof a=="number"&&(v.$top=a),typeof s=="number"&&(v.$skip=s),p&&(w+="/".concat(p)),m){if(typeof m=="string")w+="/".concat(m);else if(typeof m=="object"){var g=Object.keys(m)[0],k=qo(m[g],y);w+="/".concat(g),k!==""&&(w+="(".concat(k,")"))}}return y.length>0&&Object.assign(v,y.reduce(function(E,C){var R;return Object.assign(E,(R={},R["@".concat(C.name)]=qo(C.value),R))},{})),iU(w,ml({$select:r,$search:n,$skiptoken:i,$format:o},v))}function x4(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(qo(e,r))}function gf(t,e,r){return t===void 0&&(t={}),e===void 0&&(e=[]),r===void 0&&(r=""),(Array.isArray(t)?t:[t]).reduce(function(o,a){if(a){var s=n(a,e,r);s&&o.push(s)}return o},[]).join(" and ");function n(o,a,s){o===void 0&&(o={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof o=="string")c=o;else if(o&&typeof o=="object"){var l=Object.keys(o).reduce(function(d,u){var h=o[u];if(h===void 0)return d;var f="";if(s?u===fa?f=s:O9.test(u)?f=u.replace(O9,function(v,g){return g.trim()===fa?"(".concat(s,")"):"(".concat(s,"/").concat(g.trim(),")")}):Z9.test(u)?f=u.replace(Z9,function(v,g){return g.trim()===fa?"(".concat(s,")"):"(".concat(s,"/").concat(g.trim(),")")}):f="".concat(s,"/").concat(u):f=u,u===fa&&Array.isArray(h))return d.concat(h.map(function(v){return x4(f,v)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)d.push(x4(f,h,a));else if(Array.isArray(h)){var p=u,m=h.map(function(v){return gf(v,a,s)}).filter(function(v){return v}).map(function(v){return a2.indexOf(p)!==-1?"(".concat(v,")"):v});m.length&&(a2.indexOf(p)!==-1?m.length&&(p==="not"?d.push(L9(m)):d.push("(".concat(m.join(" ".concat(p," ")),")"))):d.push(m.join(" ".concat(p," "))))}else if(a2.indexOf(f)!==-1){var w=f,m=Object.keys(h).map(function(g){var k;return n((k={},k[g]=h[g],k))});m.length&&(w==="not"?d.push(L9(m)):d.push("(".concat(m.join(" ".concat(w," ")),")")))}else if(typeof h=="object")if("type"in h)d.push(x4(f,h,a));else{var y=Object.keys(h);y.forEach(function(v){if(h[v]!==void 0)if(Yj.indexOf(v)!==-1)d.push("".concat(f," ").concat(v," ").concat(qo(h[v],a)));else if(a2.indexOf(v)!==-1)Array.isArray(h[v])?d.push(h[v].map(function(C){return"("+n(C,a,f)+")"}).join(" ".concat(v," "))):d.push("("+n(h[v],a,f)+")");else if(Qj.indexOf(v)!==-1){var g=i(u.toLowerCase(),h[v],v,f);g&&d.push(g)}else if(v==="has")d.push("".concat(f," ").concat(v," ").concat(qo(h[v],a)));else if(v==="in"){var k=Array.isArray(h[v])?h[v]:h[v].value.map(function(C){return{type:h[v].type,value:C}});d.push(f+" in ("+k.map(function(C){return qo(C,a)}).join(",")+")")}else if(Xj.indexOf(v)!==-1)d.push("".concat(v,"(").concat(f,",").concat(qo(h[v],a),")"));else{var E=n(h,a,f);E&&d.push(E)}})}else throw new Error("Unexpected value type: ".concat(h));return d},[]);c=l.join(" and ")}return c}function i(o,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=eU(o,a,s,c);else if(a){var d=Array.isArray(a)?a.reduce(function(h,f){return f.hasOwnProperty(fa)?(h.hasOwnProperty(fa)||(h[fa]=[]),h[fa].push(f[fa]),h):ml(ml({},h),f)},{}):a,u=n(d,e,o);l="".concat(c,"/").concat(s,"(").concat(u?"".concat(o,":").concat(u):"",")")}return l}}function eU(t,e,r,n){var i="",o=r=="all"?"ne":"eq";return i="".concat(n,"/").concat(r,"(").concat(t,": ").concat(t," ").concat(o," '").concat(e,"')"),i}function tU(t){return t=t.replace(/%/g,"%25"),t=t.replace(/\+/g,"%2B"),t=t.replace(/\//g,"%2F"),t=t.replace(/\?/g,"%3F"),t=t.replace(/#/g,"%23"),t=t.replace(/&/g,"%26"),t=t.replace(/'/g,"''"),t}function qo(t,e){if(typeof t=="string")return"'".concat(tU(t),"'");if(t instanceof Date)return t.toISOString();if(typeof t=="number")return t;if(Array.isArray(t))return"[".concat(t.map(function(r){return qo(r)}).join(","),"]");if(t===null)return t;if(typeof t=="object")switch(t.type){case"raw":case"guid":return t.value;case"duration":return"duration'".concat(t.value,"'");case"binary":return"binary'".concat(t.value,"'");case"alias":return Array.isArray(e)&&e.push(t),"@".concat(t.name);case"json":return escape(JSON.stringify(t.value));case"decimal":return"".concat(t.value,"M");default:return Object.entries(t).filter(function(r){var n=r[1];return n!==void 0}).map(function(r){var n=r[0],i=r[1];return"".concat(n,"=").concat(qo(i,e))}).join(",")}return t}function om(t){if(typeof t=="number")return t;if(typeof t=="string")return t.indexOf("/")===-1?t:t.split("/").reverse().reduce(function(r,n,i,o){return i===0?"$expand=".concat(n):i===o.length-1?"".concat(n,"(").concat(r,")"):"$expand=".concat(n,"(").concat(r,")")},"");if(Array.isArray(t))return"".concat(t.map(function(r){return om(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return Jj.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=gf(t[r]);break;case"orderBy":n=j6(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=om(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=om(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function UA(t){var e=Array.isArray(t)?t:[t],r=e.reduce(function(n,i){var o=i.aggregate,a=i.filter,s=i.groupBy,c=RT(i,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(o&&n.push("aggregate(".concat(rU(o),")")),a){var d=gf(a);d&&n.push("filter(".concat(gf(d),")"))}return s&&n.push("groupby(".concat(nU(s),")")),n},[]);return r.join("/")||void 0}function rU(t){var e=Array.isArray(t)?t:[t];return e.map(function(r){return typeof r=="string"?r:Object.keys(r).map(function(n){var i=r[n];if(!i.with&&i.as)return"".concat(n," as ").concat(i.as);if(!i.with)throw new Error("'with' property required for '".concat(n,"'"));if(!i.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(i.with," as ").concat(i.as)})}).join(",")}function nU(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(UA(t.transform))),e}function j6(t,e){return e===void 0&&(e=""),Array.isArray(t)?t.map(function(r){return Array.isArray(r)&&r.length===2&&["asc","desc"].indexOf(r[1])!==-1?r.join(" "):r}).map(function(r){return"".concat(e).concat(String(r))}).join(","):typeof t=="object"?Object.entries(t).map(function(r){var n=r[0],i=r[1];return j6(i,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function iU(t,e){var r=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return r.length?"".concat(t,"?").concat(r.join("&")):t}function L9(t){return"not (".concat(t.join(" and "),")")}const oU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),aU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:oU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),sU=t=>typeof t=="string"?t:jA(aU(t)),cU=(t,e)=>{var r;const n=(r=Ni[t])!==null&&r!==void 0?r:t;switch(n){case Ni.v2:throw new bi(t);case Ni.v1:default:{const{query:i,includeDeleted:o}=e,a=new URLSearchParams(sU(i));return a.append("api-version",n),o&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},lU=(t,e,r)=>[cU(t,e),r],dU=(t,e,r="json")=>(n,i)=>t[r](...lU(e,n,i)),uU=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),hU=t=>Object.entries(t).filter(([e,r])=>!!r).reduce((e,[r,n])=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:uU(n)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),fU=t=>typeof t=="string"?t:jA(hU(t)),pU=(t,e)=>{var r;const n=(r=Ni[t])!==null&&r!==void 0?r:t;switch(n){case Ni.v2:throw new bi(t);case Ni.v1:default:{const{id:i,query:o}=e,a=new URLSearchParams(fU(o||""));return a.append("api-version",n),`/contexts/${i}/relations?${String(a)}`}}},mU=(t,e,r)=>[pU(t,e),r],vU=(t,e,r="json")=>(n,i)=>t[r](...mU(e,n,i));class gU{get Version(){return Ni}constructor(e,r){this._client=e,this._method=r}get(e,...r){return Kj(this._client,e,this._method)(...r)}query(e,...r){return dU(this._client,e,this._method)(...r)}related(e,...r){return vU(this._client,e,this._method)(...r)}}const yU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},_U=(t,e,r)=>{const n=yU(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},bU=(t,e,r="fetch")=>(n,i)=>t[r](..._U(e,n,i)),wU=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},xU=(t,e,r)=>[wU(t,e),r],CU=(t,e,r="json")=>(n,i)=>t[r](...xU(e,n,i)),kU=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks?${String(r)}`}}},EU=(t,e,r)=>{const n=kU(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},SU=(t,e,r="json")=>(n,i)=>t[r](...EU(e,n,i)),TU=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks/${e.id}?${String(r)}`}}},AU=(t,e,r)=>{const n=TU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},IU=(t,e,r="json")=>(n,i)=>t[r](...AU(e,n,i)),RU=t=>{switch(t){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",t),`persons/me/bookmarks/?${String(e)}`}}},PU=(t,e)=>[RU(t),e],MU=(t,e,r="json")=>n=>t[r](...PU(e,n)),$U=(t,e)=>{switch(t){case"v1":default:{const r=new URLSearchParams;return r.append("api-version",t),`/persons/me/bookmarks/favourites?${String(r)}`}}},ZU=(t,e,r)=>{const n=$U(t),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},OU=(t,e,r="json")=>(n,i)=>t[r](...ZU(e,n,i)),HU=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${r}/?${String(n)}`}}},LU=(t,e,r)=>{const n=HU(t,e),i=Object.assign({},{method:"Delete"},r);return[n,i]},NU=(t,e,r="fetch")=>(n,i)=>t[r](...LU(e,n,i)),DU=(t,e)=>{switch(t){case"v1":default:{const{bookmarkId:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/persons/me/bookmarks/favourites/${r}?${String(n)}`}}},VU=(t,e,r)=>{const n=DU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"head",headers:i},r);return[n,o]},FU=(t,e,r="json")=>(n,i)=>t[r](...VU(e,n,i));class zU{constructor(e,r){this._client=e,this._method=r}get(e,...r){return CU(this._client,e,this._method)(...r)}getAll(e){return MU(this._client,e,this._method)()}post(e,...r){return SU(this._client,e,this._method)(...r)}patch(e,...r){return IU(this._client,e,this._method)(...r)}delete(e,...r){return bU(this._client,e,this._method)(...r)}addFavorite(e,...r){return OU(this._client,e,this._method)(...r)}removeFavorite(e,...r){return NU(this._client,e,this._method)(...r)}verifyFavorite(e,...r){return FU(this._client,e,this._method)(...r)}}const jU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},UU=(t,e,r)=>[jU(t,e),r],BU=(t,e,r="json")=>(n,i)=>t[r](...UU(e,n,i)),qU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},WU=(t,e,r)=>{const n=qU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"post",body:JSON.stringify(e),headers:i},r);return[n,o]},GU=(t,e,r="json")=>(n,i)=>t[r](...WU(e,n,i)),KU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},YU=(t,e,r)=>{const n=KU(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:i},r);return[n,o]},QU=(t,e,r="json")=>(n,i)=>t[r](...YU(e,n,i)),XU=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/?${String(o)}`}}},JU=(t,e,r)=>[XU(t,e),r],eB=(t,e,r="json")=>(n,i)=>t[r](...JU(e,n,i)),tB=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{id:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/notification/${i}/?${String(o)}`}}},rB=(t,e,r)=>{const n=tB(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"delete",headers:i},r);return[n,o]},nB=(t,e,r="json")=>(n,i)=>t[r](...rB(e,n,i));var er;(function(t){t.v1="1.0",t.v2="2.0"})(er||(er={}));const iB=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},oB=(t,e,r)=>{const n=iB(t,e),i=new Headers;i.append("content-type","application/json");const o=Object.assign({},{method:"put",body:JSON.stringify(e),headers:i},r);return[n,o]},aB=(t,e,r="json")=>(n,i)=>t[r](...oB(e,n,i)),sB=(t,e)=>{var r;const n=(r=er[t])!==null&&r!==void 0?r:t;switch(n){case er.v2:throw new bi(t);case er.v1:default:{const{userId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/person/${i}/notifications/settings/?${String(o)}`}}},cB=(t,e,r)=>[sB(t,e),r],lB=(t,e,r="json")=>(n,i)=>t[r](...cB(e,n,i));class dB{get Version(){return er}constructor(e,r){this._client=e,this._method=r}getAll(e,...r){return eB(this._client,e,this._method)(...r)}getById(e,...r){return BU(this._client,e,this._method)(...r)}setSeenByUser(e,...r){return QU(this._client,e,this._method)(...r)}create(e,...r){return GU(this._client,e,this._method)(...r)}delete(e,...r){return nB(this._client,e,this._method)(...r)}getSettings(e,...r){return lB(this._client,e,this._method)(...r)}updateSettings(e,...r){return aB(this._client,e,this._method)(...r)}}var zi;(function(t){t.v2="2.0",t.v4="4.0"})(zi||(zi={}));const uB=(t,e)=>{var r;const n=(r=zi[t])!==null&&r!==void 0?r:t;switch(n){case zi.v4:{const{azureId:i,expand:o}=e,a=new URLSearchParams;return a.append("api-version",n),o&&a.append("$expand",o.join(",")),`/persons/${i}?${String(a)}`}default:throw new bi(t)}},hB=(t,e,r)=>[uB(t,e),r],fB=(t,e,r="json")=>(n,i)=>t[r](...hB(e,n,i)),pB=(t,e)=>{var r;const n=(r=zi[t])!==null&&r!==void 0?r:t;switch(n){case zi.v2:{const{search:i}=e,o=new URLSearchParams;return o.append("api-version",n),o.append("$search",i),`/persons?${String(o)}`}default:throw new bi(t)}},mB=(t,e,r)=>[pB(t,e),r],vB=(t,e,r="json")=>(n,i)=>t[r](...mB(e,n,i)),gB=(t,e)=>{var r;const n=(r=zi[t])!==null&&r!==void 0?r:t;switch(n){case zi.v2:{const{azureId:i}=e,o=new URLSearchParams;return o.append("api-version",n),`/persons/${i}/photo?${String(o)}`}default:throw new bi(t)}},yB=(t,e,r)=>[gB(t,e),r],_B=(t,e,r="blob")=>(n,i)=>t[r](...yB(e,n,i));class bB{get Version(){return zi}constructor(e){this._client=e}get(e,r,n,i){return fB(this._client,e,r)(n,i)}query(e,r,n,i){return vB(this._client,e,r)(n,i)}photo(e,r,n,i){return _B(this._client,e,r)(n,i)}}var zh=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class wB extends Error{constructor(e,r,n){super(e,n),this.response=r,this.name="ApiProviderError"}}const s2=t=>zh(void 0,void 0,void 0,function*(){var e;if(!t.ok){const{headers:r,status:n,statusText:i,type:o,url:a,bodyUsed:s}=t,c=(e=r.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),l=!s&&(yield c?t.json():t.text());throw new wB("failed to execute request, response was not ok",{headers:r,status:n,statusText:i,type:o,url:a,data:l})}});class xB{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return zh(this,void 0,void 0,function*(){const r=yield this._createClientFn("notification");return r.responseHandler.add("validate_api_request",s2),new dB(r,e)})}createBookmarksClient(e){return zh(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return r.responseHandler.add("validate_api_request",s2),new zU(r,e)})}createContextClient(e){return zh(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return r.responseHandler.add("validate_api_request",s2),new gU(r,e)})}createPeopleClient(){return zh(this,void 0,void 0,function*(){const e=yield this._createClientFn("people");return e.responseHandler.add("validate_api_request",s2),new bB(e)})}}var BA=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const CB="services",kB=(t,e)=>r=>BA(void 0,void 0,void 0,function*(){if(t.hasClient(r))return t.createClient(r);if(e)return e.createClient(r);throw Error(`failed to create http client for service ${r}`)}),qA={name:CB,configure:()=>new qj,initialize:t=>BA(void 0,[t],void 0,function*({ref:e,config:r,requireInstance:n,hasModule:i}){if(!r.createClient){const o=yield n("http"),a=i("serviceDiscovery")?yield n("serviceDiscovery"):e==null?void 0:e.serviceDiscovery;r.createClient=kB(o,a)}if(!r.createClient)throw Error("missing configuration for creating API client");return new xB(r)})},EB=t=>{t.addConfig({module:qA})};class SB extends _D{constructor(){super([HD,TA,$6,Bj,qA,Rz]),this.logger=new IT("FrameworkConfigurator")}configureHttp(...e){this.addConfig(KD(...e))}configureHttpClient(...e){this.addConfig(hA(...e))}configureMsal(...e){this.addConfig(cF(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var TB=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const AB=(t,e)=>TB(void 0,void 0,void 0,function*(){const r=yield t.initialize(e),n={modules:r};return window.Fusion=n,r.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n}),WA=_.createContext(null),IB=WA.Provider,GA=_.createContext({}),RB=GA.Provider,KA=()=>_.useContext(GA),PB=t=>KA()[t];var MB=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const $B=(t,e)=>_.lazy(()=>MB(void 0,void 0,void 0,function*(){const r=new SB;yield t(r,e);const n=yield AB(r,e);return{default:({children:i})=>b.jsx(IB,{value:n,children:b.jsx(RB,{value:n.modules,children:i})})}})),Cn=()=>{let t=_.useContext(WA);return t||console.warn("could not locate fusion in context!"),t??(t=window.Fusion),t||console.error("Could not load framework, might not be initiated?"),t},YA=t=>{const r=Cn().modules[t];return r||console.warn(`the requested module [${r}] is not included in the framework instance`),r},ZB=t=>{const{configure:e,fallback:r,children:n}=t,i=KA(),o=_.useMemo(()=>$B(e,i),[e,i]);return b.jsx(_.Suspense,{fallback:r,children:b.jsx(o,{children:n})})};function Ct(){return Ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ct.apply(null,arguments)}function bu(t){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bu(t)}function C4(t){return t&&bu(t)==="object"&&t.constructor===Object}function QA(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?Ct({},t):t;return C4(t)&&C4(e)&&Object.keys(e).forEach(function(i){i!=="__proto__"&&(C4(e[i])&&i in t?n[i]=QA(t[i],e[i],r):n[i]=e[i])}),n}function OB(t,e){if(bu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function HB(t){var e=OB(t,"string");return bu(e)=="symbol"?e:e+""}var LB=typeof Symbol=="function"&&Symbol.for;const XA=LB?Symbol.for("mui.nested"):"__THEME_NESTED__";var NB=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function DB(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.disableGlobal,r=e===void 0?!1:e,n=t.productionPrefix,i=n===void 0?"jss":n,o=t.seed,a=o===void 0?"":o,s=a===""?"":"".concat(a,"-"),c=0,l=function(){return c+=1,c};return function(d,u){var h=u.options.name;if(h&&h.indexOf("Mui")===0&&!u.options.link&&!r){if(NB.indexOf(d.key)!==-1)return"Mui-".concat(d.key);var f="".concat(s).concat(h,"-").concat(d.key);return!u.options.theme[XA]||a!==""?f:"".concat(f,"-").concat(l())}return"".concat(s).concat(i).concat(l())}}var N9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf=(typeof window>"u"?"undefined":N9(window))==="object"&&(typeof document>"u"?"undefined":N9(document))==="object"&&document.nodeType===9;function VB(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HB(n.key),n)}}function JA(t,e,r){return e&&VB(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ny(t,e){return ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ny(t,e)}function eI(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ny(t,e)}function D9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tI(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}var FB={}.constructor;function iy(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(iy);if(t.constructor!==FB)return t;var e={};for(var r in t)e[r]=iy(t[r]);return e}function U6(t,e,r){t===void 0&&(t="unnamed");var n=r.jss,i=iy(e),o=n.plugins.onCreateRule(t,i,r);return o||(t[0],null)}var V9=function(e,r){for(var n="",i=0;i<e.length&&e[i]!=="!important";i++)n&&(n+=r),n+=e[i];return n},il=function(e){if(!Array.isArray(e))return e;var r="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&e[n]!=="!important";n++)r&&(r+=", "),r+=V9(e[n]," ");else r=V9(e,", ");return e[e.length-1]==="!important"&&(r+=" !important"),r};function Lu(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
79
79
|
`,space:" "}}function dh(t,e){for(var r="",n=0;n<e;n++)r+=" ";return r+t}function yf(t,e,r){r===void 0&&(r={});var n="";if(!e)return n;var i=r,o=i.indent,a=o===void 0?0:o,s=e.fallbacks;r.format===!1&&(a=-1/0);var c=Lu(r),l=c.linebreak,d=c.space;if(t&&a++,s)if(Array.isArray(s))for(var u=0;u<s.length;u++){var h=s[u];for(var f in h){var p=h[f];p!=null&&(n&&(n+=l),n+=dh(f+":"+d+il(p)+";",a))}}else for(var m in s){var w=s[m];w!=null&&(n&&(n+=l),n+=dh(m+":"+d+il(w)+";",a))}for(var y in e){var v=e[y];v!=null&&y!=="fallbacks"&&(n&&(n+=l),n+=dh(y+":"+d+il(v)+";",a))}return!n&&!r.allowEmpty||!t?n:(a--,n&&(n=""+l+n+l),dh(""+t+d+"{"+n,a)+dh("}",a))}var zB=/([[\].#*$><+~=|^:(),"'`\s])/g,F9=typeof CSS<"u"&&CSS.escape,B6=function(t){return F9?F9(t):t.replace(zB,"\\$1")},rI=function(){function t(r,n,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=r,this.options=i,this.style=n,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var e=t.prototype;return e.prop=function(n,i,o){if(i===void 0)return this.style[n];var a=o?o.force:!1;if(!a&&this.style[n]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,n,this));var c=s==null||s===!1,l=n in this.style;if(c&&!l&&!a)return this;var d=c&&l;if(d?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var u=this.options.sheet;return u&&u.attached,this},t}(),oy=function(t){eI(e,t);function e(n,i,o){var a;a=t.call(this,n,i,o)||this;var s=o.selector,c=o.scoped,l=o.sheet,d=o.generateId;return s?a.selectorText=s:c!==!1&&(a.id=d(D9(D9(a)),l),a.selectorText="."+B6(a.id)),a}var r=e.prototype;return r.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},r.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=il(a))}return i},r.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?Ct({},i,{allowEmpty:!0}):i;return yf(this.selectorText,this.style,s)},JA(e,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),e}(rI),jB={onCreateRule:function(e,r,n){return e[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new oy(e,r,n)}},k4={indent:1,children:!0},UB=/@([\w-]+)/,BB=function(){function t(r,n,i){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(UB);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new Rv(Ct({},i,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.indexOf=function(n){return this.rules.indexOf(n)},e.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},e.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.toString=function(n){n===void 0&&(n=k4);var i=Lu(n),o=i.linebreak;if(n.indent==null&&(n.indent=k4.indent),n.children==null&&(n.children=k4.children),n.children===!1)return this.query+" {}";var a=this.rules.toString(n);return a?this.query+" {"+o+a+o+"}":""},t}(),qB=/@container|@media|@supports\s+/,WB={onCreateRule:function(e,r,n){return qB.test(e)?new BB(e,r,n):null}},E4={indent:1,children:!0},GB=/@keyframes\s+([\w-]+)/,ay=function(){function t(r,n,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(GB);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,c=i.generateId;this.id=a===!1?this.name:B6(c(this,s)),this.rules=new Rv(Ct({},i,{parent:this}));for(var l in n)this.rules.add(l,n[l],Ct({},i,{parent:this}));this.rules.process()}var e=t.prototype;return e.toString=function(n){n===void 0&&(n=E4);var i=Lu(n),o=i.linebreak;if(n.indent==null&&(n.indent=E4.indent),n.children==null&&(n.children=E4.children),n.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(n);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},t}(),KB=/@keyframes\s+/,YB=/\$([\w-]+)/g,sy=function(e,r){return typeof e=="string"?e.replace(YB,function(n,i){return i in r?r[i]:n}):e},z9=function(e,r,n){var i=e[r],o=sy(i,n);o!==i&&(e[r]=o)},QB={onCreateRule:function(e,r,n){return typeof e=="string"&&KB.test(e)?new ay(e,r,n):null},onProcessStyle:function(e,r,n){return r.type!=="style"||!n||("animation-name"in e&&z9(e,"animation-name",n.keyframes),"animation"in e&&z9(e,"animation",n.keyframes)),e},onChangeValue:function(e,r,n){var i=n.options.sheet;if(!i)return e;switch(r){case"animation":return sy(e,i.keyframes);case"animation-name":return sy(e,i.keyframes);default:return e}}},XB=function(t){eI(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?Ct({},i,{allowEmpty:!0}):i;return yf(this.key,this.style,s)},e}(rI),JB={onCreateRule:function(e,r,n){return n.parent&&n.parent.type==="keyframes"?new XB(e,r,n):null}},eq=function(){function t(r,n,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=i}var e=t.prototype;return e.toString=function(n){var i=Lu(n),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=yf(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return yf(this.at,this.style,n)},t}(),tq=/@font-face/,rq={onCreateRule:function(e,r,n){return tq.test(e)?new eq(e,r,n):null}},nq=function(){function t(r,n,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=r,this.style=n,this.options=i}var e=t.prototype;return e.toString=function(n){return yf(this.key,this.style,n)},t}(),iq={onCreateRule:function(e,r,n){return e==="@viewport"||e==="@-ms-viewport"?new nq(e,r,n):null}},oq=function(){function t(r,n,i){this.type="simple",this.isProcessed=!1,this.key=r,this.value=n,this.options=i}var e=t.prototype;return e.toString=function(n){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
|
|
80
80
|
`);return i}return this.key+" "+this.value+";"},t}(),aq={"@charset":!0,"@import":!0,"@namespace":!0},sq={onCreateRule:function(e,r,n){return e in aq?new oq(e,r,n):null}},j9=[jB,WB,QB,JB,rq,iq,sq],cq={process:!0},U9={force:!0,process:!0},Rv=function(){function t(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var e=t.prototype;return e.add=function(n,i,o){var a=this.options,s=a.parent,c=a.sheet,l=a.jss,d=a.Renderer,u=a.generateId,h=a.scoped,f=Ct({classes:this.classes,parent:s,sheet:c,jss:l,Renderer:d,generateId:u,scoped:h,name:n,keyframes:this.keyframes,selector:void 0},o),p=n;n in this.raw&&(p=n+"-d"+this.counter++),this.raw[p]=i,p in this.classes&&(f.selector="."+B6(this.classes[p]));var m=U6(p,i,f);if(!m)return null;this.register(m);var w=f.index===void 0?this.index.length:f.index;return this.index.splice(w,0,m),m},e.replace=function(n,i,o){var a=this.get(n),s=this.index.indexOf(a);a&&this.remove(a);var c=o;return s!==-1&&(c=Ct({},o,{index:s})),this.add(n,i,c)},e.get=function(n){return this.map[n]},e.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},e.indexOf=function(n){return this.index.indexOf(n)},e.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},e.register=function(n){this.map[n.key]=n,n instanceof oy?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof ay&&this.keyframes&&(this.keyframes[n.name]=n.id)},e.unregister=function(n){delete this.map[n.key],n instanceof oy?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof ay&&delete this.keyframes[n.name]},e.update=function(){var n,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},e.updateOne=function(n,i,o){o===void 0&&(o=cq);var a=this.options,s=a.jss.plugins,c=a.sheet;if(n.rules instanceof t){n.rules.update(i,o);return}var l=n.style;if(s.onUpdate(i,n,c,o),o.process&&l&&l!==n.style){s.onProcessStyle(n.style,n,c);for(var d in n.style){var u=n.style[d],h=l[d];u!==h&&n.prop(d,u,U9)}for(var f in l){var p=n.style[f],m=l[f];p==null&&p!==m&&n.prop(f,null,U9)}}},e.toString=function(n){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=Lu(n),c=s.linebreak,l=0;l<this.index.length;l++){var d=this.index[l],u=d.toString(n);!u&&!a||(i&&(i+=c),i+=u)}return i},t}(),nI=function(){function t(r,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ct({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new Rv(this.options);for(var i in r)this.rules.add(i,r[i]);this.rules.process()}var e=t.prototype;return e.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(n,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(n,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},e.replaceRule=function(n,i,o){var a=this.rules.get(n);if(!a)return this.addRule(n,i,o);var s=this.rules.replace(n,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},e.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},e.addRules=function(n,i){var o=[];for(var a in n){var s=this.addRule(a,n[a],i);s&&o.push(s)}return o},e.getRule=function(n){return this.rules.get(n)},e.deleteRule=function(n){var i=typeof n=="object"?n:this.rules.get(n);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},e.indexOf=function(n){return this.rules.indexOf(n)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},e.updateOne=function(n,i,o){return this.rules.updateOne(n,i,o),this},e.toString=function(n){return this.rules.toString(n)},t}(),lq=function(){function t(){this.plugins={internal:[],external:[]},this.registry={}}var e=t.prototype;return e.onCreateRule=function(n,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](n,i,o);if(s)return s}return null},e.onProcessRule=function(n){if(!n.isProcessed){for(var i=n.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](n,i);n.style&&this.onProcessStyle(n.style,n,i),n.isProcessed=!0}},e.onProcessStyle=function(n,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},e.onProcessSheet=function(n){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](n)},e.onUpdate=function(n,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](n,i,o,a)},e.onChangeValue=function(n,i,o){for(var a=n,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},e.use=function(n,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(n)===-1&&(o.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var c in s)c in a&&a[c].push(s[c]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),dq=function(){function t(){this.registry=[]}var e=t.prototype;return e.add=function(n){var i=this.registry,o=n.options.index;if(i.indexOf(n)===-1){if(i.length===0||o>=this.index){i.push(n);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,n);return}}},e.reset=function(){this.registry=[]},e.remove=function(n){var i=this.registry.indexOf(n);this.registry.splice(i,1)},e.toString=function(n){for(var i=n===void 0?{}:n,o=i.attached,a=tI(i,["attached"]),s=Lu(a),c=s.linebreak,l="",d=0;d<this.registry.length;d++){var u=this.registry[d];o!=null&&u.attached!==o||(l&&(l+=c),l+=u.toString(a))}return l},JA(t,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),t}(),_1=new dq,cy=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ly="2f1acc6c3a606b082e5eef5e54414ffb";cy[ly]==null&&(cy[ly]=0);var B9=cy[ly]++,q9=function(e){e===void 0&&(e={});var r=0,n=function(o,a){r+=1;var s="",c="";return a&&(a.options.classNamePrefix&&(c=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),e.minify?""+(c||"c")+B9+s+r:c+o.key+"-"+B9+(s?"-"+s:"")+"-"+r};return n},iI=function(e){var r;return function(){return r||(r=e()),r}},uq=function(e,r){try{return e.attributeStyleMap?e.attributeStyleMap.get(r):e.style.getPropertyValue(r)}catch{return""}},hq=function(e,r,n){try{var i=n;if(Array.isArray(n)&&(i=il(n)),e.attributeStyleMap)e.attributeStyleMap.set(r,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;e.style.setProperty(r,a,o>-1?"important":"")}}catch{return!1}return!0},fq=function(e,r){try{e.attributeStyleMap?e.attributeStyleMap.delete(r):e.style.removeProperty(r)}catch{}},pq=function(e,r){return e.selectorText=r,e.selectorText===r},oI=iI(function(){return document.querySelector("head")});function mq(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.attached&&n.options.index>e.index&&n.options.insertionPoint===e.insertionPoint)return n}return null}function vq(t,e){for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.attached&&n.options.insertionPoint===e.insertionPoint)return n}return null}function gq(t){for(var e=oI(),r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];if(n.nodeType===8&&n.nodeValue.trim()===t)return n}return null}function yq(t){var e=_1.registry;if(e.length>0){var r=mq(e,t);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=vq(e,t),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=t.insertionPoint;if(n&&typeof n=="string"){var i=gq(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function _q(t,e){var r=e.insertionPoint,n=yq(e);if(n!==!1&&n.parent){n.parent.insertBefore(t,n.node);return}if(r&&typeof r.nodeType=="number"){var i=r,o=i.parentNode;o&&o.insertBefore(t,i.nextSibling);return}oI().appendChild(t)}var bq=iI(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),W9=function(e,r,n){try{"insertRule"in e?e.insertRule(r,n):"appendRule"in e&&e.appendRule(r)}catch{return!1}return e.cssRules[n]},G9=function(e,r){var n=e.cssRules.length;return r===void 0||r>n?n:r},wq=function(){var e=document.createElement("style");return e.textContent=`
|
|
81
81
|
`,e},xq=function(){function t(r){this.getPropertyValue=uq,this.setProperty=hq,this.removeProperty=fq,this.setSelector=pq,this.hasInsertedRules=!1,this.cssRules=[],r&&_1.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},i=n.media,o=n.meta,a=n.element;this.element=a||wq(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=bq();s&&this.element.setAttribute("nonce",s)}var e=t.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){_q(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
@@ -88,7 +88,7 @@ Error Description: `+l.message)),[2,null];case 4:return i||(this.logger.warning(
|
|
|
88
88
|
* @website https://github.com/cssinjs/jss
|
|
89
89
|
* @license MIT
|
|
90
90
|
*/aI();var cI=Date.now(),S4="fnValues"+cI,T4="fnStyle"+ ++cI,Eq=function(){return{onCreateRule:function(r,n,i){if(typeof n!="function")return null;var o=U6(r,{},i);return o[T4]=n,o},onProcessStyle:function(r,n){if(S4 in n||T4 in n)return r;var i={};for(var o in r){var a=r[o];typeof a=="function"&&(delete r[o],i[o]=a)}return n[S4]=i,r},onUpdate:function(r,n,i,o){var a=n,s=a[T4];s&&(a.style=s(r)||{});var c=a[S4];if(c)for(var l in c)a.prop(l,c[l](r),o)}}},Ds="@global",dy="@global ",Sq=function(){function t(r,n,i){this.type="global",this.at=Ds,this.isProcessed=!1,this.key=r,this.options=i,this.rules=new Rv(Ct({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(n){return this.rules.get(n)},e.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.indexOf=function(n){return this.rules.indexOf(n)},e.toString=function(n){return this.rules.toString(n)},t}(),Tq=function(){function t(r,n,i){this.type="global",this.at=Ds,this.isProcessed=!1,this.key=r,this.options=i;var o=r.substr(dy.length);this.rule=i.jss.createRule(o,n,Ct({},i,{parent:this}))}var e=t.prototype;return e.toString=function(n){return this.rule?this.rule.toString(n):""},t}(),Aq=/\s*,\s*/g;function lI(t,e){for(var r=t.split(Aq),n="",i=0;i<r.length;i++)n+=e+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}function Iq(t,e){var r=t.options,n=t.style,i=n?n[Ds]:null;if(i){for(var o in i)e.addRule(o,i[o],Ct({},r,{selector:lI(o,t.selector)}));delete n[Ds]}}function Rq(t,e){var r=t.options,n=t.style;for(var i in n)if(!(i[0]!=="@"||i.substr(0,Ds.length)!==Ds)){var o=lI(i.substr(Ds.length),t.selector);e.addRule(o,n[i],Ct({},r,{selector:o})),delete n[i]}}function Pq(){function t(r,n,i){if(!r)return null;if(r===Ds)return new Sq(r,n,i);if(r[0]==="@"&&r.substr(0,dy.length)===dy)return new Tq(r,n,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=r),null}function e(r,n){r.type!=="style"||!n||(Iq(r,n),Rq(r,n))}return{onCreateRule:t,onProcessRule:e}}var K9=/\s*,\s*/g,Mq=/&/g,$q=/\$([\w-]+)/g;function Zq(){function t(i,o){return function(a,s){var c=i.getRule(s)||o&&o.getRule(s);return c?c.selector:s}}function e(i,o){for(var a=o.split(K9),s=i.split(K9),c="",l=0;l<a.length;l++)for(var d=a[l],u=0;u<s.length;u++){var h=s[u];c&&(c+=", "),c+=h.indexOf("&")!==-1?h.replace(Mq,d):d+" "+h}return c}function r(i,o,a){if(a)return Ct({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var c=Ct({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete c.name,c}function n(i,o,a){if(o.type!=="style")return i;var s=o,c=s.options.parent,l,d;for(var u in i){var h=u.indexOf("&")!==-1,f=u[0]==="@";if(!(!h&&!f)){if(l=r(s,c,l),h){var p=e(u,s.selector);d||(d=t(c,a)),p=p.replace($q,d);var m=s.key+"-"+u;"replaceRule"in c?c.replaceRule(m,i[u],Ct({},l,{selector:p})):c.addRule(m,i[u],Ct({},l,{selector:p}))}else f&&c.addRule(u,{},l).addRule(s.key,i[u],{selector:s.selector});delete i[u]}}return i}return{onProcessStyle:n}}var Oq=/[A-Z]/g,Hq=/^ms-/,A4={};function Lq(t){return"-"+t.toLowerCase()}function dI(t){if(A4.hasOwnProperty(t))return A4[t];var e=t.replace(Oq,Lq);return A4[t]=Hq.test(e)?"-"+e:e}function Z0(t){var e={};for(var r in t){var n=r.indexOf("--")===0?r:dI(r);e[n]=t[r]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(Z0):e.fallbacks=Z0(t.fallbacks)),e}function Nq(){function t(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=Z0(r[n]);return r}return Z0(r)}function e(r,n,i){if(n.indexOf("--")===0)return r;var o=dI(n);return n===o?r:(i.prop(o,r),null)}return{onProcessStyle:t,onChangeValue:e}}var j=q6&&CSS?CSS.px:"px",c2=q6&&CSS?CSS.ms:"ms",Ql=q6&&CSS?CSS.percent:"%",Dq={"animation-delay":c2,"animation-duration":c2,"background-position":j,"background-position-x":j,"background-position-y":j,"background-size":j,border:j,"border-bottom":j,"border-bottom-left-radius":j,"border-bottom-right-radius":j,"border-bottom-width":j,"border-left":j,"border-left-width":j,"border-radius":j,"border-right":j,"border-right-width":j,"border-top":j,"border-top-left-radius":j,"border-top-right-radius":j,"border-top-width":j,"border-width":j,"border-block":j,"border-block-end":j,"border-block-end-width":j,"border-block-start":j,"border-block-start-width":j,"border-block-width":j,"border-inline":j,"border-inline-end":j,"border-inline-end-width":j,"border-inline-start":j,"border-inline-start-width":j,"border-inline-width":j,"border-start-start-radius":j,"border-start-end-radius":j,"border-end-start-radius":j,"border-end-end-radius":j,margin:j,"margin-bottom":j,"margin-left":j,"margin-right":j,"margin-top":j,"margin-block":j,"margin-block-end":j,"margin-block-start":j,"margin-inline":j,"margin-inline-end":j,"margin-inline-start":j,padding:j,"padding-bottom":j,"padding-left":j,"padding-right":j,"padding-top":j,"padding-block":j,"padding-block-end":j,"padding-block-start":j,"padding-inline":j,"padding-inline-end":j,"padding-inline-start":j,"mask-position-x":j,"mask-position-y":j,"mask-size":j,height:j,width:j,"min-height":j,"max-height":j,"min-width":j,"max-width":j,bottom:j,left:j,top:j,right:j,inset:j,"inset-block":j,"inset-block-end":j,"inset-block-start":j,"inset-inline":j,"inset-inline-end":j,"inset-inline-start":j,"box-shadow":j,"text-shadow":j,"column-gap":j,"column-rule":j,"column-rule-width":j,"column-width":j,"font-size":j,"font-size-delta":j,"letter-spacing":j,"text-decoration-thickness":j,"text-indent":j,"text-stroke":j,"text-stroke-width":j,"word-spacing":j,motion:j,"motion-offset":j,outline:j,"outline-offset":j,"outline-width":j,perspective:j,"perspective-origin-x":Ql,"perspective-origin-y":Ql,"transform-origin":Ql,"transform-origin-x":Ql,"transform-origin-y":Ql,"transform-origin-z":Ql,"transition-delay":c2,"transition-duration":c2,"vertical-align":j,"flex-basis":j,"shape-margin":j,size:j,gap:j,grid:j,"grid-gap":j,"row-gap":j,"grid-row-gap":j,"grid-column-gap":j,"grid-template-rows":j,"grid-template-columns":j,"grid-auto-rows":j,"grid-auto-columns":j,"box-shadow-x":j,"box-shadow-y":j,"box-shadow-blur":j,"box-shadow-spread":j,"font-line-height":j,"text-shadow-x":j,"text-shadow-y":j,"text-shadow-blur":j};function uI(t){var e=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var i in t)n[i]=t[i],n[i.replace(e,r)]=t[i];return n}var Vq=uI(Dq);function b1(t,e,r){if(e==null)return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=b1(t,e[n],r);else if(typeof e=="object")if(t==="fallbacks")for(var i in e)e[i]=b1(i,e[i],r);else for(var o in e)e[o]=b1(t+"-"+o,e[o],r);else if(typeof e=="number"&&isNaN(e)===!1){var a=r[t]||Vq[t];return a&&!(e===0&&a===j)?typeof a=="function"?a(e).toString():""+e+a:e.toString()}return e}function Fq(t){t===void 0&&(t={});var e=uI(t);function r(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=b1(a,i[a],e);return i}function n(i,o){return b1(o,i,e)}return{onProcessStyle:r,onChangeValue:n}}function uy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function zq(t){if(Array.isArray(t))return uy(t)}function jq(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Uq(t,e){if(t){if(typeof t=="string")return uy(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uy(t,e):void 0}}function Bq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
91
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qq(t){return zq(t)||jq(t)||Uq(t)||Bq()}var jh="",hy="",hI="",fI="",Wq=qf&&"ontouchstart"in document.documentElement;if(qf){var I4={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Gq=document.createElement("p"),R4=Gq.style,Kq="Transform";for(var P4 in I4)if(P4+Kq in R4){jh=P4,hy=I4[P4];break}jh==="Webkit"&&"msHyphens"in R4&&(jh="ms",hy=I4.ms,fI="edge"),jh==="Webkit"&&"-apple-trailing-word"in R4&&(hI="apple")}var Be={js:jh,css:hy,vendor:hI,browser:fI,isTouch:Wq};function Yq(t){return t[1]==="-"||Be.js==="ms"?t:"@"+Be.css+"keyframes"+t.substr(10)}var Qq={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:Be.js==="ms"?"-webkit-"+e:Be.css+e}},Xq={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:Be.js==="Webkit"?Be.css+"print-"+e:e}},Jq=/[-\s]+(.)?/g;function eW(t,e){return e?e.toUpperCase():""}function W6(t){return t.replace(Jq,eW)}function Qs(t){return W6("-"+t)}var tW={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if(Be.js==="Webkit"){var n="mask-image";if(W6(n)in r)return e;if(Be.js+Qs(n)in r)return Be.css+e}return e}},rW={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:Be.vendor==="apple"&&!Be.isTouch?Be.css+e:e}},nW={noPrefill:["transform"],supportedProperty:function(e,r,n){return e!=="transform"?!1:n.transform?e:Be.css+e}},iW={noPrefill:["transition"],supportedProperty:function(e,r,n){return e!=="transition"?!1:n.transition?e:Be.css+e}},oW={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:Be.js==="Webkit"||Be.js==="ms"&&Be.browser!=="edge"?Be.css+e:e}},aW={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:Be.js==="Moz"||Be.js==="ms"||Be.vendor==="apple"?Be.css+e:e}},sW={supportedProperty:function(e,r){if(!/^break-/.test(e))return!1;if(Be.js==="Webkit"){var n="WebkitColumn"+Qs(e);return n in r?Be.css+"column-"+e:!1}if(Be.js==="Moz"){var i="page"+Qs(e);return i in r?"page-"+e:!1}return!1}},cW={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(Be.js==="Moz")return e;var n=e.replace("-inline","");return Be.js+Qs(n)in r?Be.css+n:!1}},lW={supportedProperty:function(e,r){return W6(e)in r?e:!1}},dW={supportedProperty:function(e,r){var n=Qs(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:Be.js+n in r?Be.css+e:Be.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+e:!1}},uW={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:Be.js==="ms"?""+Be.css+e:e}},hW={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:Be.js==="ms"?Be.css+"scroll-chaining":e}},fW={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},pW={supportedProperty:function(e,r){var n=fW[e];return n&&Be.js+Qs(n)in r?Be.css+n:!1}},pI={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},mW=Object.keys(pI),vW=function(e){return Be.css+e},gW={supportedProperty:function(e,r,n){var i=n.multiple;if(mW.indexOf(e)>-1){var o=pI[e];if(!Array.isArray(o))return Be.js+Qs(o)in r?Be.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(Be.js+Qs(o[0])in r))return!1;return o.map(vW)}return!1}},mI=[Qq,Xq,tW,rW,nW,iW,oW,aW,sW,cW,lW,dW,uW,hW,pW,gW],Y9=mI.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),yW=mI.filter(function(t){return t.noPrefill}).reduce(function(t,e){return t.push.apply(t,qq(e.noPrefill)),t},[]),Uh,Zc={};if(qf){Uh=document.createElement("p");var M4=window.getComputedStyle(document.documentElement,"");for(var $4 in M4)isNaN($4)||(Zc[M4[$4]]=M4[$4]);yW.forEach(function(t){return delete Zc[t]})}function fy(t,e){if(e===void 0&&(e={}),!Uh)return t;if(Zc[t]!=null)return Zc[t];(t==="transition"||t==="transform")&&(e[t]=t in Uh.style);for(var r=0;r<Y9.length&&(Zc[t]=Y9[r](t,Uh.style,e),!Zc[t]);r++);try{Uh.style[t]=""}catch{return!1}return Zc[t]}var Xl={},_W={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},bW=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,ls;function wW(t,e,r){if(e==="var")return"var";if(e==="all")return"all";if(r==="all")return", all";var n=e?fy(e):", "+fy(r);return n||e||r}qf&&(ls=document.createElement("p"));function Q9(t,e){var r=e;if(!ls||t==="content")return e;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=t+r;if(Xl[n]!=null)return Xl[n];try{ls.style[t]=r}catch{return Xl[n]=!1,!1}if(_W[t])r=r.replace(bW,wW);else if(ls.style[t]===""&&(r=Be.css+r,r==="-ms-flex"&&(ls.style[t]="-ms-flexbox"),ls.style[t]=r,ls.style[t]===""))return Xl[n]=!1,!1;return ls.style[t]="",Xl[n]=r,Xl[n]}function xW(){function t(i){if(i.type==="keyframes"){var o=i;o.at=Yq(o.at)}}function e(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(e);continue}var s=!1,c=fy(o);c&&c!==o&&(s=!0);var l=!1,d=Q9(c,il(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[c||o]=d||a)}return i}function r(i,o){return o.type!=="style"?i:e(i)}function n(i,o){return Q9(o,il(i))||i}return{onProcessRule:t,onProcessStyle:r,onChangeValue:n}}function CW(){var t=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(t),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function kW(){return{plugins:[Eq(),Pq(),Zq(),Nq(),Fq(),typeof window>"u"?null:xW(),CW()]}}function EW(t,e){if(t==null)return{};var r,n,i=tI(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.includes(r)||{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function vI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses;if(t.Component,!r)return e;var n=Ct({},e);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(e[i]," ").concat(r[i]))}),n}var Vd={set:function(e,r,n,i){var o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,i)},get:function(e,r,n){var i=e.get(r);return i?i.get(n):void 0},delete:function(e,r,n){var i=e.get(r);i.delete(n)}},gI=Ut.createContext(null);function yI(){var t=Ut.useContext(gI);return t}var SW=aI(kW()),TW=DB(),AW=new Map,IW={disableGeneration:!1,generateClassName:TW,jss:SW,sheetsCache:null,sheetsManager:AW,sheetsRegistry:null},RW=Ut.createContext(IW),X9=-1e9;function PW(){return X9+=1,X9}var MW={};function $W(t){var e=typeof t=="function";return{create:function(n,i){var o;try{o=e?t(n):t}catch(c){throw c}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],s=Ct({},o);return Object.keys(a).forEach(function(c){s[c]=QA(s[c],a[c])}),s},options:{}}}function ZW(t,e,r){var n=t.state,i=t.stylesOptions;if(i.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,o=!0),o&&(n.cacheClasses.value=vI({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function OW(t,e){var r=t.state,n=t.theme,i=t.stylesOptions,o=t.stylesCreator,a=t.name;if(!i.disableGeneration){var s=Vd.get(i.sheetsManager,o,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Vd.set(i.sheetsManager,o,n,s));var c=Ct({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=i.sheetsRegistry;if(s.refs===0){var d;i.sheetsCache&&(d=Vd.get(i.sheetsCache,o,n));var u=o.create(n,a);d||(d=i.jss.createStyleSheet(u,Ct({link:!1},c)),d.attach(),i.sheetsCache&&Vd.set(i.sheetsCache,o,n,d)),l&&l.add(d),s.staticSheet=d,s.dynamicStyles=sI(u)}if(s.dynamicStyles){var h=i.jss.createStyleSheet(s.dynamicStyles,Ct({link:!0},c));h.update(e),h.attach(),r.dynamicSheet=h,r.classes=vI({baseClasses:s.staticSheet.classes,newClasses:h.classes}),l&&l.add(h)}else r.classes=s.staticSheet.classes;s.refs+=1}}function HW(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function LW(t){var e=t.state,r=t.theme,n=t.stylesOptions,i=t.stylesCreator;if(!n.disableGeneration){var o=Vd.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(Vd.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}}function NW(t,e){var r=Ut.useRef([]),n,i=Ut.useMemo(function(){return{}},e);r.current!==i&&(r.current=i,n=t()),Ut.useEffect(function(){return function(){n&&n()}},[i])}function DW(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,i=e.Component,o=e.defaultTheme,a=o===void 0?MW:o,s=EW(e,["name","classNamePrefix","Component","defaultTheme"]),c=$W(t),l=r||n||"makeStyles";c.options={index:PW(),name:r,meta:l,classNamePrefix:l};var d=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=yI()||a,p=Ct({},Ut.useContext(RW),s),m=Ut.useRef(),w=Ut.useRef();NW(function(){var v={name:r,state:{},stylesCreator:c,stylesOptions:p,theme:f};return OW(v,h),w.current=!1,m.current=v,function(){LW(v)}},[f,c]),Ut.useEffect(function(){w.current&&HW(m.current,h),w.current=!0});var y=ZW(m.current,h.classes,i);return y};return d}function VW(t,e){if(typeof e=="function"){var r=e(t);return r}return Ct({},t,e)}function FW(t){var e=t.children,r=t.theme,n=yI(),i=Ut.useMemo(function(){var o=n===null?r:VW(n,r);return o!=null&&(o[XA]=n!==null),o},[r,n]);return Ut.createElement(gI.Provider,{value:i},e)}var zW={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},jW={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},UW={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},BW={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},qW={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},WW={heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},GW={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},Ee={clickbounds:zW,colors:jW,elevation:UW,interactions:BW,shape:qW,typography:WW,spacings:GW};const KW=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class It{constructor(e,r){Tg(this,"name");Tg(this,"value");this.name=e,this.value=r}static makeCssVar(e,r){return`--fusion-${e}__${r}`}static makeCss(e){return Object.keys(e).map(r=>`${KW(r)}: ${e[r]}`).join(";")}static makeVariable({attribute:e,value:r}){return`var(${[e,r].filter(n=>!!n).join(",")})`}static extractVariables(e){return Object.values(e).reduce((r,n)=>r.concat(n.variables),[])}get style(){const{value:e,attributes:r}=this;return{...e,...Object.keys(r).reduce((n,i)=>Object.assign(n,{[i]:It.makeVariable(r[i])}),{})}}get css(){const{attributes:e,style:r}=this;return It.makeCss({...r,...Object.keys(e).reduce((n,i)=>Object.assign(n,{[i]:It.makeVariable(e[i])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return It.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class _I extends It{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:It.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const uh=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new _I(`${e}-${n}`,t[n])}),{}),bI={infographic:uh(Ee.colors.infographic,"infographic"),interactive:uh(Ee.colors.interactive,"interactive"),logo:uh(Ee.colors.logo,"logo"),text:uh(Ee.colors.text,"text"),ui:uh(Ee.colors.ui,"ui")},YW=Object.values(bI).reduce((t,e)=>t.concat(_I.extractVariables(e)),[]);class Pv extends It{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:Pv.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:It.makeVariable(this.attributes.shadow)}}}const QW=t=>new Pv(t,Ee.elevation[t]),XW=Object.keys(Ee.elevation),wI=XW.reduce((t,e)=>Object.assign(t,{[e]:QW(e)}),{}),JW=Pv.extractVariables(wI);class xI extends It{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:It.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const eG=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new xI(`${e}-${n}`,t[n])}),{}),CI={comfortable:eG(Ee.spacings.comfortable,"comfortable")},tG=Object.values(CI).reduce((t,e)=>t.concat(xI.extractVariables(e)),[]);class rG extends It{get attributes(){const{name:e,value:r}=this;return{color:{attribute:It.makeCssVar("typography",`${e}__color`),value:It.makeVariable({attribute:It.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:It.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:It.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:It.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:It.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:It.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:It.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:It.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:It.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:It.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:It.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const Jl=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new rG(`${e}-${n}`,t[n])}),{}),kI={heading:Jl(Ee.typography.heading,"heading"),input:Jl(Ee.typography.input,"input"),navigation:Jl(Ee.typography.navigation,"navigation"),paragraph:Jl(Ee.typography.paragraph,"paragraph"),table:Jl(Ee.typography.table,"table"),ui:Jl(Ee.typography.ui,"ui")},J9={attribute:It.makeCssVar("typography","base-color"),value:Ee.colors.text.static_icons__default.rgba},nG=[...Object.values(kI).reduce((t,e)=>t.concat(It.extractVariables(e)),[]),[J9.attribute,J9.value].join(":")],A={colors:bI,elevation:wI,spacing:CI,typography:kI};[...YW,...JW,...tG,...nG];const iG=(t,e={})=>DW(t,{defaultTheme:A,...e}),oG=t=>t;function EI(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=EI(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Z4(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=EI(t))&&(n&&(n+=" "),n+=e);return n}var py=function(t,e){return py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},py(t,e)};function Nu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");py(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Pn=function(){return Pn=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Pn.apply(this,arguments)};function x(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function Vs(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function Rs(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function Ea(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}const aG=(t,e)=>(window.customElements.define(t,e),e),sG=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(i){window.customElements.define(t,i)}}},Et=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?aG(t,e):sG(t,e)};/**
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qq(t){return zq(t)||jq(t)||Uq(t)||Bq()}var jh="",hy="",hI="",fI="",Wq=qf&&"ontouchstart"in document.documentElement;if(qf){var I4={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Gq=document.createElement("p"),R4=Gq.style,Kq="Transform";for(var P4 in I4)if(P4+Kq in R4){jh=P4,hy=I4[P4];break}jh==="Webkit"&&"msHyphens"in R4&&(jh="ms",hy=I4.ms,fI="edge"),jh==="Webkit"&&"-apple-trailing-word"in R4&&(hI="apple")}var Be={js:jh,css:hy,vendor:hI,browser:fI,isTouch:Wq};function Yq(t){return t[1]==="-"||Be.js==="ms"?t:"@"+Be.css+"keyframes"+t.substr(10)}var Qq={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:Be.js==="ms"?"-webkit-"+e:Be.css+e}},Xq={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:Be.js==="Webkit"?Be.css+"print-"+e:e}},Jq=/[-\s]+(.)?/g;function eW(t,e){return e?e.toUpperCase():""}function W6(t){return t.replace(Jq,eW)}function Qs(t){return W6("-"+t)}var tW={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if(Be.js==="Webkit"){var n="mask-image";if(W6(n)in r)return e;if(Be.js+Qs(n)in r)return Be.css+e}return e}},rW={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:Be.vendor==="apple"&&!Be.isTouch?Be.css+e:e}},nW={noPrefill:["transform"],supportedProperty:function(e,r,n){return e!=="transform"?!1:n.transform?e:Be.css+e}},iW={noPrefill:["transition"],supportedProperty:function(e,r,n){return e!=="transition"?!1:n.transition?e:Be.css+e}},oW={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:Be.js==="Webkit"||Be.js==="ms"&&Be.browser!=="edge"?Be.css+e:e}},aW={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:Be.js==="Moz"||Be.js==="ms"||Be.vendor==="apple"?Be.css+e:e}},sW={supportedProperty:function(e,r){if(!/^break-/.test(e))return!1;if(Be.js==="Webkit"){var n="WebkitColumn"+Qs(e);return n in r?Be.css+"column-"+e:!1}if(Be.js==="Moz"){var i="page"+Qs(e);return i in r?"page-"+e:!1}return!1}},cW={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(Be.js==="Moz")return e;var n=e.replace("-inline","");return Be.js+Qs(n)in r?Be.css+n:!1}},lW={supportedProperty:function(e,r){return W6(e)in r?e:!1}},dW={supportedProperty:function(e,r){var n=Qs(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:Be.js+n in r?Be.css+e:Be.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+e:!1}},uW={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:Be.js==="ms"?""+Be.css+e:e}},hW={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:Be.js==="ms"?Be.css+"scroll-chaining":e}},fW={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},pW={supportedProperty:function(e,r){var n=fW[e];return n&&Be.js+Qs(n)in r?Be.css+n:!1}},pI={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},mW=Object.keys(pI),vW=function(e){return Be.css+e},gW={supportedProperty:function(e,r,n){var i=n.multiple;if(mW.indexOf(e)>-1){var o=pI[e];if(!Array.isArray(o))return Be.js+Qs(o)in r?Be.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(Be.js+Qs(o[0])in r))return!1;return o.map(vW)}return!1}},mI=[Qq,Xq,tW,rW,nW,iW,oW,aW,sW,cW,lW,dW,uW,hW,pW,gW],Y9=mI.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),yW=mI.filter(function(t){return t.noPrefill}).reduce(function(t,e){return t.push.apply(t,qq(e.noPrefill)),t},[]),Uh,Zc={};if(qf){Uh=document.createElement("p");var M4=window.getComputedStyle(document.documentElement,"");for(var $4 in M4)isNaN($4)||(Zc[M4[$4]]=M4[$4]);yW.forEach(function(t){return delete Zc[t]})}function fy(t,e){if(e===void 0&&(e={}),!Uh)return t;if(Zc[t]!=null)return Zc[t];(t==="transition"||t==="transform")&&(e[t]=t in Uh.style);for(var r=0;r<Y9.length&&(Zc[t]=Y9[r](t,Uh.style,e),!Zc[t]);r++);try{Uh.style[t]=""}catch{return!1}return Zc[t]}var Xl={},_W={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},bW=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,ls;function wW(t,e,r){if(e==="var")return"var";if(e==="all")return"all";if(r==="all")return", all";var n=e?fy(e):", "+fy(r);return n||e||r}qf&&(ls=document.createElement("p"));function Q9(t,e){var r=e;if(!ls||t==="content")return e;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=t+r;if(Xl[n]!=null)return Xl[n];try{ls.style[t]=r}catch{return Xl[n]=!1,!1}if(_W[t])r=r.replace(bW,wW);else if(ls.style[t]===""&&(r=Be.css+r,r==="-ms-flex"&&(ls.style[t]="-ms-flexbox"),ls.style[t]=r,ls.style[t]===""))return Xl[n]=!1,!1;return ls.style[t]="",Xl[n]=r,Xl[n]}function xW(){function t(i){if(i.type==="keyframes"){var o=i;o.at=Yq(o.at)}}function e(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(e);continue}var s=!1,c=fy(o);c&&c!==o&&(s=!0);var l=!1,d=Q9(c,il(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[c||o]=d||a)}return i}function r(i,o){return o.type!=="style"?i:e(i)}function n(i,o){return Q9(o,il(i))||i}return{onProcessRule:t,onProcessStyle:r,onChangeValue:n}}function CW(){var t=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(t),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function kW(){return{plugins:[Eq(),Pq(),Zq(),Nq(),Fq(),typeof window>"u"?null:xW(),CW()]}}function EW(t,e){if(t==null)return{};var r,n,i=tI(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.includes(r)||{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function vI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.baseClasses,r=t.newClasses;if(t.Component,!r)return e;var n=Ct({},e);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(e[i]," ").concat(r[i]))}),n}var Vd={set:function(e,r,n,i){var o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,i)},get:function(e,r,n){var i=e.get(r);return i?i.get(n):void 0},delete:function(e,r,n){var i=e.get(r);i.delete(n)}},gI=Ut.createContext(null);function yI(){var t=Ut.useContext(gI);return t}var SW=aI(kW()),TW=DB(),AW=new Map,IW={disableGeneration:!1,generateClassName:TW,jss:SW,sheetsCache:null,sheetsManager:AW,sheetsRegistry:null},RW=Ut.createContext(IW),X9=-1e9;function PW(){return X9+=1,X9}var MW={};function $W(t){var e=typeof t=="function";return{create:function(n,i){var o;try{o=e?t(n):t}catch(c){throw c}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],s=Ct({},o);return Object.keys(a).forEach(function(c){s[c]=QA(s[c],a[c])}),s},options:{}}}function ZW(t,e,r){var n=t.state,i=t.stylesOptions;if(i.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,o=!0),o&&(n.cacheClasses.value=vI({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}function OW(t,e){var r=t.state,n=t.theme,i=t.stylesOptions,o=t.stylesCreator,a=t.name;if(!i.disableGeneration){var s=Vd.get(i.sheetsManager,o,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Vd.set(i.sheetsManager,o,n,s));var c=Ct({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=i.sheetsRegistry;if(s.refs===0){var d;i.sheetsCache&&(d=Vd.get(i.sheetsCache,o,n));var u=o.create(n,a);d||(d=i.jss.createStyleSheet(u,Ct({link:!1},c)),d.attach(),i.sheetsCache&&Vd.set(i.sheetsCache,o,n,d)),l&&l.add(d),s.staticSheet=d,s.dynamicStyles=sI(u)}if(s.dynamicStyles){var h=i.jss.createStyleSheet(s.dynamicStyles,Ct({link:!0},c));h.update(e),h.attach(),r.dynamicSheet=h,r.classes=vI({baseClasses:s.staticSheet.classes,newClasses:h.classes}),l&&l.add(h)}else r.classes=s.staticSheet.classes;s.refs+=1}}function HW(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}function LW(t){var e=t.state,r=t.theme,n=t.stylesOptions,i=t.stylesCreator;if(!n.disableGeneration){var o=Vd.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(Vd.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}}function NW(t,e){var r=Ut.useRef([]),n,i=Ut.useMemo(function(){return{}},e);r.current!==i&&(r.current=i,n=t()),Ut.useEffect(function(){return function(){n&&n()}},[i])}function DW(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.name,n=e.classNamePrefix,i=e.Component,o=e.defaultTheme,a=o===void 0?MW:o,s=EW(e,["name","classNamePrefix","Component","defaultTheme"]),c=$W(t),l=r||n||"makeStyles";c.options={index:PW(),name:r,meta:l,classNamePrefix:l};var d=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=yI()||a,p=Ct({},Ut.useContext(RW),s),m=Ut.useRef(),w=Ut.useRef();NW(function(){var v={name:r,state:{},stylesCreator:c,stylesOptions:p,theme:f};return OW(v,h),w.current=!1,m.current=v,function(){LW(v)}},[f,c]),Ut.useEffect(function(){w.current&&HW(m.current,h),w.current=!0});var y=ZW(m.current,h.classes,i);return y};return d}function VW(t,e){if(typeof e=="function"){var r=e(t);return r}return Ct({},t,e)}function FW(t){var e=t.children,r=t.theme,n=yI(),i=Ut.useMemo(function(){var o=n===null?r:VW(n,r);return o!=null&&(o[XA]=n!==null),o},[r,n]);return Ut.createElement(gI.Provider,{value:i},e)}var zW={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},jW={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},UW={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},BW={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},qW={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},WW={heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},GW={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},ke={clickbounds:zW,colors:jW,elevation:UW,interactions:BW,shape:qW,typography:WW,spacings:GW};const KW=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class It{constructor(e,r){Tg(this,"name");Tg(this,"value");this.name=e,this.value=r}static makeCssVar(e,r){return`--fusion-${e}__${r}`}static makeCss(e){return Object.keys(e).map(r=>`${KW(r)}: ${e[r]}`).join(";")}static makeVariable({attribute:e,value:r}){return`var(${[e,r].filter(n=>!!n).join(",")})`}static extractVariables(e){return Object.values(e).reduce((r,n)=>r.concat(n.variables),[])}get style(){const{value:e,attributes:r}=this;return{...e,...Object.keys(r).reduce((n,i)=>Object.assign(n,{[i]:It.makeVariable(r[i])}),{})}}get css(){const{attributes:e,style:r}=this;return It.makeCss({...r,...Object.keys(e).reduce((n,i)=>Object.assign(n,{[i]:It.makeVariable(e[i])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return It.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class _I extends It{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:It.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const uh=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new _I(`${e}-${n}`,t[n])}),{}),bI={infographic:uh(ke.colors.infographic,"infographic"),interactive:uh(ke.colors.interactive,"interactive"),logo:uh(ke.colors.logo,"logo"),text:uh(ke.colors.text,"text"),ui:uh(ke.colors.ui,"ui")},YW=Object.values(bI).reduce((t,e)=>t.concat(_I.extractVariables(e)),[]);class Pv extends It{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:Pv.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:It.makeVariable(this.attributes.shadow)}}}const QW=t=>new Pv(t,ke.elevation[t]),XW=Object.keys(ke.elevation),wI=XW.reduce((t,e)=>Object.assign(t,{[e]:QW(e)}),{}),JW=Pv.extractVariables(wI);class xI extends It{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:It.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const eG=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new xI(`${e}-${n}`,t[n])}),{}),CI={comfortable:eG(ke.spacings.comfortable,"comfortable")},tG=Object.values(CI).reduce((t,e)=>t.concat(xI.extractVariables(e)),[]);class rG extends It{get attributes(){const{name:e,value:r}=this;return{color:{attribute:It.makeCssVar("typography",`${e}__color`),value:It.makeVariable({attribute:It.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:It.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:It.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:It.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:It.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:It.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:It.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:It.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:It.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:It.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:It.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const Jl=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new rG(`${e}-${n}`,t[n])}),{}),kI={heading:Jl(ke.typography.heading,"heading"),input:Jl(ke.typography.input,"input"),navigation:Jl(ke.typography.navigation,"navigation"),paragraph:Jl(ke.typography.paragraph,"paragraph"),table:Jl(ke.typography.table,"table"),ui:Jl(ke.typography.ui,"ui")},J9={attribute:It.makeCssVar("typography","base-color"),value:ke.colors.text.static_icons__default.rgba},nG=[...Object.values(kI).reduce((t,e)=>t.concat(It.extractVariables(e)),[]),[J9.attribute,J9.value].join(":")],A={colors:bI,elevation:wI,spacing:CI,typography:kI};[...YW,...JW,...tG,...nG];const iG=(t,e={})=>DW(t,{defaultTheme:A,...e}),oG=t=>t;function EI(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=EI(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Z4(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=EI(t))&&(n&&(n+=" "),n+=e);return n}var py=function(t,e){return py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},py(t,e)};function Nu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");py(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Pn=function(){return Pn=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Pn.apply(this,arguments)};function x(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(o=(i<3?a(o):i>3?a(e,r,o):a(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function Vs(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function Rs(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function Ea(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}const aG=(t,e)=>(window.customElements.define(t,e),e),sG=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(i){window.customElements.define(t,i)}}},Et=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?aG(t,e):sG(t,e)};/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2019 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -412,7 +412,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
412
412
|
class="progress">
|
|
413
413
|
</circle>
|
|
414
414
|
</svg>
|
|
415
|
-
`}}x([U({type:String,reflect:!0})],Jf.prototype,"size",void 0);x([U({type:String,reflect:!0})],Jf.prototype,"color",void 0);Jf.styles=JG;const QI="fwc-circular-progress";let x7=class extends Jf{};x7=x([Et(QI)],x7);const eK=Kf(Qf,KI);Kf(Jf,QI);Kf(Xf,YI);const XI=({children:t,text:e})=>b.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",overflow:"hidden"},children:b.jsx(eK,{text:e,children:t})}),tK=()=>({setManifest:Jr("set_manifest",(t,e)=>({payload:t,meta:{created:Date.now(),update:e}})),fetchManifest:co("fetch_manifest",(t,e)=>({payload:t,meta:{update:e}}),t=>({payload:t}),t=>({payload:t})),setConfig:Jr("set_config",t=>({payload:t})),fetchConfig:co("fetch_config",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setModule:Jr("set_module",t=>({payload:t})),importApp:co("import_app",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setInstance:Jr("set_instance",t=>({payload:t})),initialize:co("initialize_app",()=>({payload:null}),()=>({payload:null}),t=>({payload:t}))}),nt=tK();cA();const rK=t=>Hu(Object.assign(Object.assign({},t),{status:new Set}),e=>e.addCase(nt.setManifest,(r,n)=>{var i;n.meta.update?r.manifest=Object.assign((i=r.manifest)!==null&&i!==void 0?i:{},n.payload):r.manifest=n.payload}).addCase(nt.setConfig,(r,n)=>{r.config=n.payload}).addCase(nt.setModule,(r,n)=>{r.modules=n.payload}).addCase(nt.setInstance,(r,n)=>{r.instance=n.payload}).addMatcher(VF,(r,n)=>{r.status.add(g9(n.type))}).addMatcher(jF,(r,n)=>{r.status.delete(g9(n.type))})),nK=t=>e=>e.pipe(ze(nt.fetchManifest.match),Rt(r=>{const{payload:n,meta:{update:i}}=r,o=vt(t.getAppManifest(n)).pipe(ze(a=>!!a),Ev());return Yd(o.pipe(ye(a=>nt.setManifest(a,i))),o.pipe(Ff(),ye(a=>nt.fetchManifest.success(a)))).pipe(Jt(a=>Pr(nt.fetchManifest.failure(a))))})),iK=t=>e=>e.pipe(ze(nt.fetchConfig.match),Rt(({payload:r})=>{var n;const i=vt(t.getAppConfig(r.appKey,(n=r.build)===null||n===void 0?void 0:n.version)).pipe(ze(o=>!!o),Ev());return Yd(i.pipe(ye(o=>nt.setConfig(o))),i.pipe(Ff(),ye(o=>nt.fetchConfig.success(o)))).pipe(Jt(o=>Pr(nt.fetchConfig.failure(o))))})),oK=t=>e=>e.pipe(ze(nt.importApp.match),Rt(({payload:r})=>{const n=[t.getBaseUri(),r].join("/").replace(/\/{2,}/g,"/");return vt(import(n)).pipe(ye(nt.importApp.success),Jt(i=>Pr(nt.importApp.failure(i))))})),aK=(t,e)=>{const r=rK(t),n=new jf(r);return n.addFlow(nK(e)),n.addFlow(iK(e)),n.addFlow(oK(e)),n};var sK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Oe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},cK=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},gy,Re,JI;function Bh(){return ze(t=>t!=null)}class lK{get manifest$(){return Oe(this,Re,"f").pipe(ye(({manifest:e})=>e),Bh())}get config$(){return Oe(this,Re,"f").pipe(ye(({config:e})=>e),Bh())}get modules$(){return Oe(this,Re,"f").pipe(ye(({modules:e})=>e),Bh())}get instance$(){return Oe(this,Re,"f").pipe(ye(({instance:e})=>e),Bh())}get state(){return Object.freeze(Oe(this,Re,"f").value)}get appKey(){return Oe(this,Re,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return Xr(this.manifest$)}get config(){return this.state.config}get configAsync(){return Xr(this.config$)}get instance(){return Oe(this,Re,"f").value.instance}constructor(e,r){gy.add(this),Re.set(this,void 0),cK(this,Re,aK(e,r.provider),"f");const{appKey:n}=e,{event:i}=r;i&&Oe(this,gy,"m",JI).call(this,i);const o=new jr;i&&(o.add(()=>{i.dispatchEvent("onAppDispose",{detail:{appKey:n}})}),o.add(i.addEventListener("onAppModulesLoaded",a=>{a.detail.appKey===n&&Oe(this,Re,"f").next(nt.setInstance(a.detail.modules))}))),this.dispose=()=>{o==null||o.unsubscribe(),Oe(this,Re,"f").value.instance&&Oe(this,Re,"f").value.instance.dispose(),Oe(this,Re,"f").complete()}}initialize(){return new Je(e=>{Oe(this,Re,"f").next(nt.initialize()),e.add(XN([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([r,n,i])=>e.next({manifest:r,script:n,config:i}),error:r=>{e.error(r),Oe(this,Re,"f").next(nt.initialize.failure(r))},complete:()=>{Oe(this,Re,"f").next(nt.initialize.success()),e.complete()}}))})}loadConfig(){(this.manifest?Pr(this.manifest):this.getManifest()).subscribe({next:e=>{Oe(this,Re,"f").next(nt.fetchConfig(e))}})}loadManifest(e){Oe(this,Re,"f").next(nt.fetchManifest(this.appKey,e))}updateManifest(e,r){Oe(this,Re,"f").next(nt.setManifest(e,!r))}loadAppModule(){return sK(this,arguments,void 0,function*(e=!0){var r;const n=yield this.getManifestAsync(e);!((r=n.build)===null||r===void 0)&&r.entryPoint?Oe(this,Re,"f").next(nt.importApp(n.build.entryPoint)):console.log(`The ${n.appKey} is missing entryPoint, please upload a build for the app before continuing`)})}getConfig(e=!1){return new Je(r=>{if(Oe(this,Re,"f").value.config&&(r.next(Oe(this,Re,"f").value.config),!e))return r.complete();r.add(Oe(this,Re,"f").addEffect("set_config",({payload:n})=>{r.next(n)})),r.add(Oe(this,Re,"f").addEffect("fetch_config::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Oe(this,Re,"f").addEffect("fetch_config::failure",({payload:n})=>{r.error(Error("failed to load application config",{cause:n}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?Xr:vr)(this.getConfig(!e))}getManifest(e=!1){return new Je(r=>{if(Oe(this,Re,"f").value.manifest&&(r.next(Oe(this,Re,"f").value.manifest),!e))return r.complete();r.add(Oe(this,Re,"f").addEffect("set_manifest",({payload:n})=>{r.next(n)})),r.add(Oe(this,Re,"f").addEffect("fetch_manifest::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Oe(this,Re,"f").addEffect("fetch_manifest::failure",({payload:n})=>{r.error(Error("failed to load application manifest",{cause:n}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?Xr:vr)(this.getManifest(!e))}getAppModule(e=!1){return new Je(r=>{if(Oe(this,Re,"f").value.modules&&(r.next(Oe(this,Re,"f").value.modules),!e))return r.complete();r.add(Oe(this,Re,"f").addEffect("set_module",({payload:n})=>{r.next(n)})),r.add(Oe(this,Re,"f").addEffect("import_app::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Oe(this,Re,"f").addEffect("import_app::failure",({payload:n})=>{r.error(Error("failed to load application modules from script",{cause:n}))})),r.add(this.getManifest().subscribe(n=>{var i,o;if(!((i=n.build)===null||i===void 0)&&i.entryPoint){const a=(o=n.build.assetPath)!==null&&o!==void 0?o:[n.appKey,n.build.version].join("@");Oe(this,Re,"f").next(nt.importApp([a,n.build.entryPoint].join("/")))}else console.error(`The ${n.appKey} app is missing a entry in the manifest, upload a build for your app before continuing`)}))})}getAppModuleAsync(e=!0){return(e?Xr:vr)(this.getAppModule(!e))}}Re=new WeakMap,gy=new WeakSet,JI=function(e){const{appKey:r}=this;Oe(this,Re,"f").addEffect(nt.fetchManifest.type,()=>{e.dispatchEvent("onAppManifestLoad",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchManifest.success.type,n=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchManifest.failure.type,n=>{e.dispatchEvent("onAppManifestFailure",{detail:{appKey:r,error:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchConfig.type,()=>{e.dispatchEvent("onAppConfigLoad",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchConfig.success.type,n=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:r,config:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchConfig.failure.type,n=>{e.dispatchEvent("onAppConfigFailure",{detail:{appKey:r,error:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.importApp.type,()=>{e.dispatchEvent("onAppScriptLoad",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.importApp.success.type,n=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:r,script:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.importApp.failure.type,n=>{e.dispatchEvent("onAppScriptFailure",{detail:{appKey:r,error:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.initialize.failure.type,({payload:n})=>{e.dispatchEvent("onAppInitializeFailure",{detail:{appKey:r,error:n},source:this})})};var ii=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},l2=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},pd,sm,ds,qh,cm;class dK{static compareAppManifest(e,r){return JSON.stringify(e)===JSON.stringify(r)}get current(){return ii(this,ds,"f").value}get current$(){return ii(this,ds,"f").pipe(i0((e,r)=>e&&r?e.appKey===r.appKey:e===r))}constructor(e){var r;pd.set(this,void 0),sm.set(this,void 0),ds.set(this,void 0),qh.set(this,new jr),cm.set(this,void 0);const{event:n,config:i}=e;l2(this,pd,i.client,"f"),l2(this,cm,n,"f"),l2(this,ds,new Ll(void 0),"f"),l2(this,sm,(r=i.baseUri)!==null&&r!==void 0?r:"","f"),ii(this,qh,"f").add(this.current$.pipe(a0(),iA(()=>!!n)).subscribe(([o,a])=>{n==null||n.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:a}})})),ii(this,qh,"f").add(ii(this,ds,"f").pipe(a0(),ye(([o])=>o),Bh()).subscribe(o=>o.dispose()))}getAppManifest(e){return vt(ii(this,pd,"f").getAppManifest({appKey:e}))}getAppManifests(e){return vt(ii(this,pd,"f").getAppManifests(e))}getAllAppManifests(){return this.getAppManifests()}getAppConfig(e,r){return vt(ii(this,pd,"f").getAppConfig({appKey:e,tag:r}))}setCurrentApp(e){const r=typeof e=="string"?this.createApp({appKey:e}):e;ii(this,ds,"f").next(r)}clearCurrentApp(){ii(this,ds,"f").next(null)}getBaseUri(){return ii(this,sm,"f")}createApp(e){return console.warn(),new lK(e,{provider:this,event:ii(this,cm,"f")})}dispose(){ii(this,qh,"f").unsubscribe()}}pd=new WeakMap,sm=new WeakMap,ds=new WeakMap,qh=new WeakMap,cm=new WeakMap;var uK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const yy="app",hK={name:yy,configure:()=>new gK,initialize:t=>uK(void 0,void 0,void 0,function*(){const e=yield t.config.createConfigAsync(t),r=yield t.requireInstance("event").catch(()=>{});return new dK({config:e,event:r})}),dispose:t=>{t.instance.dispose()}},_y=Ce.object({azureUniqueId:Ce.string(),displayName:Ce.string().optional(),mail:Ce.string().optional(),upn:Ce.string().optional(),accountType:Ce.string().optional(),accountClassification:Ce.string().optional(),isExpired:Ce.boolean().optional()}),fK=Ce.object({version:Ce.string().optional(),entryPoint:Ce.string().optional(),tags:Ce.array(Ce.string()).optional(),tag:Ce.enum(["latest","preview"]).optional(),assetPath:Ce.string().optional(),configUrl:Ce.string().optional(),timestamp:Ce.string().optional(),commitSha:Ce.string().optional(),githubRepo:Ce.string().optional(),projectPage:Ce.string().optional(),allowedExtensions:Ce.array(Ce.string()).optional(),uploadedBy:_y.optional()}),pK=Ce.object({appKey:Ce.string(),displayName:Ce.string().optional(),description:Ce.string().optional(),type:Ce.string().optional(),isPinned:Ce.boolean().optional(),templateSource:Ce.string().optional(),category:Ce.object({id:Ce.string(),name:Ce.string().optional(),displayName:Ce.string().optional(),color:Ce.string().optional(),defaultIcon:Ce.string().optional(),sortOrder:Ce.number().optional()}).optional(),visualization:Ce.object({color:Ce.string().optional(),icon:Ce.string().optional(),sortOrder:Ce.number()}).optional(),keywords:Ce.array(Ce.string()).optional(),admins:Ce.array(_y).optional(),owners:Ce.array(_y).optional(),build:fK.optional()});class zs extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new zs("unauthorized","failed to load application manifest, request not authorized",r);case 404:return new zs("not_found","application manifest not found",r)}return new zs("unknown",`failed to load application manifest, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}class ol extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new ol("unauthorized","failed to load application config, request not authorized",r);case 404:return new ol("not_found","application config not found",r)}return new ol("unknown",`failed to load application config, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}var C7=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},F4=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ed=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},mK=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},ph,mh,vh;const k7=pK.transform(t=>{const{category:e}=t,r=mK(t,["category"]);return Object.assign(Object.assign({},r),{get key(){return r.appKey},get name(){return r.displayName},categoryId:e==null?void 0:e.id})});class vK{constructor(e){ph.set(this,void 0),mh.set(this,void 0),vh.set(this,void 0);const r=1*60*1e3;F4(this,ph,new Qn({client:{fn:({appKey:n})=>e.json(`/apps/${n}`,{headers:{"Api-Version":"1.0"},selector:i=>C7(this,void 0,void 0,function*(){return k7.parse(yield h0(i))})})},key:({appKey:n})=>n,expire:r}),"f"),F4(this,mh,new Qn({client:{fn:n=>{const i=n!=null&&n.filterByCurrentUser?"/persons/me/apps":"/apps";return e.json(i,{headers:{"Api-Version":"1.0"},selector:o=>C7(this,void 0,void 0,function*(){return k7.array().parse(yield h0(o))})})}},key:n=>n!=null&&n.filterByCurrentUser?"currentUser":"all",expire:r}),"f"),F4(this,vh,new Qn({client:{fn:({appKey:n,tag:i="latest"})=>e.json(`/apps/${n}/builds/${i}/config`,{headers:{"Api-Version":"1.0"}})},key:n=>JSON.stringify(n),expire:r}),"f")}getAppManifest(e){return ed(this,ph,"f").query(e).pipe(ef,Jt(r=>{const{cause:n}=r;throw n instanceof zs?n:n instanceof Q1?zs.fromHttpResponse(n.response,{cause:n}):new zs("unknown","failed to load manifest",{cause:n})}))}getAppManifests(e){return ed(this,mh,"f").query(e).pipe(ef)}getAppConfig(e){return ed(this,vh,"f").query(e).pipe(ye(r=>r.value),Jt(r=>{const{cause:n}=r;throw n instanceof ol?n:n instanceof Q1?ol.fromHttpResponse(n.response,{cause:n}):new ol("unknown","failed to load config",{cause:n})}))}[(ph=new WeakMap,mh=new WeakMap,vh=new WeakMap,Symbol.dispose)](){console.warn("AppClient disposed"),ed(this,ph,"f").complete(),ed(this,mh,"f").complete(),ed(this,vh,"f").complete()}}var z4=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class gK extends E6{constructor(){super(...arguments),this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return z4(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");return r.hasClient(yy)?r.createClient(yy):yield(yield e.requireInstance("serviceDiscovery")).createClient("apps")})}setClient(e){const r=typeof e=="object"?()=>e:e;this._set("client",r)}setBaseUri(e){const r=typeof e=="string"?()=>z4(this,void 0,void 0,function*(){return e}):e;this._set("baseUri",r)}_createConfig(e,r){return this._has("client")||this.setClient(()=>z4(this,void 0,void 0,function*(){const n=yield this._createHttpClient(e);return new vK(n)})),this._has("baseUri")||this.setBaseUri("/apps-proxy"),super._createConfig(e,r)}}var yK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const _K=(t,e)=>{t.addConfig({module:hK,configure:r=>yK(void 0,void 0,void 0,function*(){})})},bK="bookmarkId",wK=()=>new URLSearchParams(document.location.search).get(bK);var xK=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},CK=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},lm;class kK{constructor(e,r={}){this.config=r,lm.set(this,void 0),xK(this,lm,e,"f")}requireInstance(e){return CK(this,lm,"f").requireInstance(e)}setSourceSystem(e){this.config.sourceSystem=e}setBookmarkIdResolver(e){this.config.resolveBookmarkId=e}serCustomBookmarkApiClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.client=e)}setContextIdResolver(e){this.config.getContextId=e}setCurrentAppIdResolver(e){this.config.getCurrentAppIdentification=e}setEventProvider(e){this.config.event=e}setBookmarkQueryClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.queryClientConfig={getAllBookmarks:typeof e.getAllBookmarks=="function"?{key:()=>"all-bookmarks",client:{fn:e.getAllBookmarks},validate:({args:n})=>n.isValid}:e.getAllBookmarks,getBookmarkById:typeof e.getBookmarkById=="function"?{key:({id:n})=>n,client:{fn:e.getBookmarkById},expire:6e4,validate:()=>!1}:e.getBookmarkById})}}lm=new WeakMap;var fc=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},j4=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},by,dm,eR;class EK{constructor(){by.add(this),this.defaultExpireTime=1*60*1e3,dm.set(this,[])}addConfigBuilder(e){j4(this,dm,"f").push(e)}createConfig(e,r){return fc(this,void 0,void 0,function*(){const n=yield j4(this,dm,"f").reduce((o,a)=>fc(this,void 0,void 0,function*(){const s=new kK(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({})),i=yield this._getAppProvider(e);if(j4(this,by,"m",eR).call(this,r,n),n.resolveBookmarkId||(n.resolveBookmarkId=wK),n.getCurrentAppIdentification||(n.getCurrentAppIdentification=()=>{var o;return(o=i.current)===null||o===void 0?void 0:o.appKey}),!n.getContextId){const o=yield this._getContextProvider(e);n.getContextId=()=>{var a;return(a=o.currentContext)===null||a===void 0?void 0:a.id}}if(!n.event){const o=yield this._getEventProvider(e);n.event=o}return n.clientConfiguration=yield this._createClientConfiguration(e,n.clientConfiguration),n})}_createClientConfiguration(e){return fc(this,arguments,void 0,function*(r,n={}){if(!n.client){const i=yield this._getServiceProvider(r);n.client=yield i.createBookmarksClient("fetch")}if(!n.queryClientConfig){const o=yield(yield this._getServiceProvider(r)).createBookmarksClient("json$");n.queryClientConfig=Object.assign({getBookmarkById:{client:{fn:a=>o.get("v1",a)},key:({id:a})=>a,expire:this.defaultExpireTime},getAllBookmarks:{client:{fn:()=>o.getAll("v1")},key:()=>"all-bookmarks",validate:({args:a})=>a.isValid,expire:this.defaultExpireTime}},o)}return n})}_getServiceProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("[BookmarkConfigurator] No service provider configures [ServicesModule] ")}})}_getContextProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("context"))return e.requireInstance("context");{const n=(r=e.ref)===null||r===void 0?void 0:r.context;if(n)return n;throw Error("[BookmarkConfigurator] No context provider configures [ContextModule]")}})}_getAppProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("app"))return e.requireInstance("app");{const n=(r=e.ref)===null||r===void 0?void 0:r.app;if(n)return n;throw Error("[BookmarkConfigurator] No app provider configures [AppModule]")}})}_getEventProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("event"))return e.requireInstance("event");{const n=(r=e.ref)===null||r===void 0?void 0:r.event;if(n)return n;throw Error("[BookmarkConfigurator] No event provider configures [EventModule]")}})}}dm=new WeakMap,by=new WeakSet,eR=function(e,r){e&&(r.clientConfiguration=e.config.clientConfiguration,r.sourceSystem=e.config.sourceSystem,r.getContextId=e.config.getContextId,r.getCurrentAppIdentification=e.config.getCurrentAppIdentification)};const vn={getAll:co("getAll",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),delete:co("delete",t=>({payload:t}),t=>({payload:t})),addFavorite:co("addFavorite",t=>({payload:t}),t=>({payload:t})),removeFavorite:co("removeFavorite",t=>({payload:t}),t=>({payload:t})),update:co("update",t=>({payload:t}),t=>({payload:t})),create:co("create",t=>({payload:t}),t=>({payload:t}),t=>({payload:t}))},SK={bookmarks:{}},TK=Hu(SK,t=>{t.addCase(vn.create.success,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(vn.getAll.success,(e,{payload:r})=>{r.forEach(n=>{e.bookmarks[n.id]=n})}).addCase(vn.delete.success,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(vn.removeFavorite,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(vn.addFavorite,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(vn.update.success,(e,{payload:r})=>{e.bookmarks[r.id]=r})});var tb=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const AK=(t,e)=>r=>r.pipe(ja(vn.getAll.type),Rt(n=>t.query({isValid:n.payload}).pipe(Ff(),ye(i=>vn.getAll.success(i.value.filter(o=>{var a;return((a=o.sourceSystem)===null||a===void 0?void 0:a.identifier)===e}))),Jt(()=>Lt)))),IK=t=>e=>e.pipe(ja(vn.create.type),Rt(r=>tb(void 0,void 0,void 0,function*(){const n=yield t.post("v1",r.payload);return vn.create.success(yield n.json())}))),E7=t=>e=>e.pipe(ja(vn.update.type),Rt(r=>tb(void 0,void 0,void 0,function*(){const n=yield t.patch("v1",r.payload);return vn.update.success(yield n.json())}))),RK=t=>e=>e.pipe(ja(vn.delete.type),Rt(r=>tb(void 0,void 0,void 0,function*(){return(yield t.delete("v1",{id:r.payload})).ok,vn.delete.success(r.payload)})));var Mo=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},pc=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ve=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},um,md,ba,lo,to,D0,Ta,Ft,ka,tR,rR;class PK{constructor(e,r,n){um.add(this),md.set(this,void 0),ba.set(this,void 0),lo.set(this,void 0),to.set(this,void 0),D0.set(this,void 0),Ta.set(this,void 0),Ft.set(this,void 0),ka.set(this,new jr),pc(this,to,new Ll(void 0),"f"),pc(this,lo,e.client,"f"),pc(this,md,new Qn(e.queryClientConfig.getBookmarkById),"f"),pc(this,ba,new Qn(e.queryClientConfig.getAllBookmarks),"f"),pc(this,D0,r,"f"),pc(this,Ta,n,"f"),pc(this,Ft,qF(vn,TK),"f"),ve(this,um,"m",rR).call(this),ve(this,um,"m",tR).call(this),n&&ve(this,ka,"f").add(ve(this,to,"f").subscribe(i=>{n.dispatchEvent("onBookmarkChanged",{detail:i,canBubble:!0,source:this})}))}get currentBookmark$(){return ve(this,to,"f").asObservable()}get bookmarks$(){return ve(this,Ft,"f").subject.pipe(ye(e=>Object.values(e.bookmarks).map(r=>r)))}setCurrentBookmark(e){return Mo(this,void 0,void 0,function*(){if(!e)return ve(this,to,"f").next(void 0);if(typeof e=="string"){const r=yield this.resolverBookmarkAsync(e);return this.setBookmark(r)}else if(e!==ve(this,to,"f").value)return this.setBookmark(e)})}setBookmark(e){return Mo(this,void 0,void 0,function*(){ve(this,Ta,"f")?(yield ve(this,Ta,"f").dispatchEvent("onBookmarkChange",{detail:e,cancelable:!0,canBubble:!0,source:this})).canceled||ve(this,to,"f").next(e):ve(this,to,"f").next(e)})}resolverBookmark(e){return ve(this,md,"f").query({id:e}).pipe(ye(r=>r.value))}resolverBookmarkAsync(e){return vr(this.resolverBookmark(e))}getAllBookmarks(e={isValid:!1}){const{isValid:r}=e;return new Je(n=>{ve(this,Ft,"f").dispatch.getAll(r),n.add(ve(this,Ft,"f").subject.addEffect("getAll::success",i=>{var o;n.next(i.payload),n.complete(),(o=ve(this,Ta,"f"))===null||o===void 0||o.dispatchEvent("onBookmarksChanged",{detail:i.payload,source:this})}))})}getAllBookmarksAsync(){return Mo(this,arguments,void 0,function*(e={isValid:!1}){return vr(this.getAllBookmarks(e))})}getBookmarkById(e){return Mo(this,void 0,void 0,function*(){return yield(yield ve(this,lo,"f").get("v1",{id:e})).json()})}createBookmark(e){return new Je(r=>{ve(this,Ft,"f").dispatch.create(e),r.add(ve(this,Ft,"f").subject.addEffect("create::success",n=>{r.next(n.payload),r.complete()})),r.add(ve(this,Ft,"f").subject.addEffect("create::failure",n=>{r.error(n.payload)}))})}createBookmarkAsync(e){return Mo(this,void 0,void 0,function*(){return vr(this.createBookmark(e))})}updateBookmark(e){return new Je(r=>{ve(this,Ft,"f").dispatch.update(e),r.add(ve(this,Ft,"f").subject.addEffect("update::success",n=>{r.next(n.payload),r.complete(),ve(this,md,"f").cache.invalidate(n.payload.id)}))})}updateBookmarkAsync(e){return Mo(this,void 0,void 0,function*(){return vr(this.updateBookmark(e))})}deleteBookmarkById(e){return new Je(r=>{ve(this,Ft,"f").dispatch.delete(e),r.add(ve(this,Ft,"f").subject.addEffect("delete::success",n=>{r.next(n.payload),r.complete(),ve(this,md,"f").cache.invalidate(n.payload)}))})}deleteBookmarkByIdAsync(e){return Mo(this,void 0,void 0,function*(){return vr(this.deleteBookmarkById(e))})}addBookmarkFavoriteAsync(e){return Mo(this,void 0,void 0,function*(){(yield ve(this,lo,"f").addFavorite("v1",{bookmarkId:e})).ok&&ve(this,to,"f").value&&ve(this,Ft,"f").dispatch.addFavorite(ve(this,to,"f").value)})}removeBookmarkFavoriteAsync(e){return Mo(this,void 0,void 0,function*(){(yield ve(this,lo,"f").removeFavorite("v1",{bookmarkId:e})).ok&&ve(this,Ft,"f").dispatch.removeFavorite(e)})}verifyBookmarkFavoriteAsync(e){return Mo(this,void 0,void 0,function*(){return!!(yield ve(this,lo,"f").verifyFavorite("v1",{bookmarkId:e})).ok})}dispose(){ve(this,ka,"f").unsubscribe()}}md=new WeakMap,ba=new WeakMap,lo=new WeakMap,to=new WeakMap,D0=new WeakMap,Ta=new WeakMap,Ft=new WeakMap,ka=new WeakMap,um=new WeakSet,tR=function(){ve(this,Ft,"f").subject.addEffect("create::success",e=>{var r;ve(this,ba,"f").cache.invalidate("all-bookmarks"),(r=ve(this,Ta,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkCreated",{detail:e.payload,canBubble:!0,source:this})}),ve(this,Ft,"f").subject.addEffect("delete::success",e=>{var r;console.log("here"),ve(this,ba,"f").cache.invalidate("all-bookmarks"),(r=ve(this,Ta,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkDeleted",{detail:e.payload,canBubble:!0,source:this})}),ve(this,Ft,"f").subject.addEffect("update::success",e=>{var r;ve(this,ba,"f").cache.invalidate("all-bookmarks"),(r=ve(this,Ta,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkUpdated",{detail:e.payload,canBubble:!0,source:this})}),ve(this,Ft,"f").subject.addEffect("addFavorite::request",()=>{ve(this,ba,"f").cache.invalidate("all-bookmarks")}),ve(this,Ft,"f").subject.addEffect("removeFavorite::request",()=>{ve(this,ba,"f").cache.invalidate("all-bookmarks")})},rR=function(){var e;ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(AK(ve(this,ba,"f"),(e=ve(this,D0,"f"))===null||e===void 0?void 0:e.identifier))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(IK(ve(this,lo,"f")))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(RK(ve(this,lo,"f")))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(E7(ve(this,lo,"f")))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(E7(ve(this,lo,"f"))))};var Do=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},MK=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Ji=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},vd,Ac,hm,wy,xy,Cy;class $K{get currentBookmark$(){return this._bookmarkClient.currentBookmark$}get bookmarks$(){return this._bookmarkClient.bookmarks$}constructor(e,r){vd.add(this),Ac.set(this,void 0),hm.set(this,new jr),this.bookmarkCreators={},wy.set(this,()=>{this.bookmarkCreators={}}),this.config=e,MK(this,Ac,e.event,"f"),this._bookmarkClient=r?r._bookmarkClient:new PK(e.clientConfiguration,e.sourceSystem,e.event);const n=e.resolveBookmarkId&&e.resolveBookmarkId();n&&this._bookmarkClient.setCurrentBookmark(n),Ji(this,Ac,"f")&&Ji(this,hm,"f").add(Ji(this,Ac,"f").addEventListener("onCurrentAppChanged",Ji(this,wy,"f")))}getBookmarkById(e){return Do(this,void 0,void 0,function*(){return yield this._bookmarkClient.getBookmarkById(e)})}setCurrentBookmark(e){return Do(this,void 0,void 0,function*(){this._bookmarkClient.setCurrentBookmark(e)})}getAllBookmarks(){return this._bookmarkClient.getAllBookmarks()}getAllBookmarksAsync(){return Do(this,void 0,void 0,function*(){return this._bookmarkClient.getAllBookmarksAsync()})}updateBookmark(e){return this._bookmarkClient.updateBookmark(e)}updateBookmarkAsync(e,r){return Do(this,void 0,void 0,function*(){if(Ji(this,vd,"m",Cy).call(this)===e.appKey){if(r!=null&&r.updatePayload){const n=yield Ji(this,vd,"m",xy).call(this);e=Object.assign(Object.assign({},e),{payload:n})}return this._bookmarkClient.updateBookmarkAsync(e)}})}deleteBookmarkById(e){return this._bookmarkClient.deleteBookmarkById(e)}deleteBookmarkByIdAsync(e){return this._bookmarkClient.deleteBookmarkByIdAsync(e)}addBookmarkFavoriteAsync(e){return Do(this,void 0,void 0,function*(){yield this._bookmarkClient.addBookmarkFavoriteAsync(e)})}removeBookmarkFavoriteAsync(e){return Do(this,void 0,void 0,function*(){yield this._bookmarkClient.removeBookmarkFavoriteAsync(e)})}verifyBookmarkFavoriteAsync(e){return Do(this,void 0,void 0,function*(){return yield this._bookmarkClient.verifyBookmarkFavoriteAsync(e)})}addStateCreator(e,r){var n;const i=r||"#creator";return Ji(this,Ac,"f")&&((n=Ji(this,Ac,"f"))===null||n===void 0||n.dispatchEvent("onAddCreator",{source:this,canBubble:!0,detail:{key:r,cb:e}})),this.bookmarkCreators[i]=e,()=>{delete this.bookmarkCreators[i]}}createBookmark(e){return Do(this,void 0,void 0,function*(){const r=yield Ji(this,vd,"m",xy).call(this),n=this.config.getContextId&&this.config.getContextId(),i=Ji(this,vd,"m",Cy).call(this),o=Object.assign(Object.assign({},e),{appKey:i,contextId:n,sourceSystem:this.config.sourceSystem,payload:r});return this._bookmarkClient.createBookmarkAsync(o)})}dispose(){Ji(this,hm,"f").unsubscribe(),this._bookmarkClient.dispose()}}Ac=new WeakMap,hm=new WeakMap,wy=new WeakMap,vd=new WeakSet,xy=function(){return Do(this,void 0,void 0,function*(){const e=this.bookmarkCreators;if(!e||Object.keys(e).length===0)throw Error("No creator registered on this BookmarkProvider");return typeof e["#creator"]=="function"?e["#creator"]():yield Object.entries(e).reduce((r,n)=>Do(this,[r,n],void 0,function*(i,[o,a]){return Object.assign(yield i,{[o]:yield a()})}),Promise.resolve({}))})},Cy=function(){const e=this.config.getCurrentAppIdentification&&this.config.getCurrentAppIdentification();if(!e)throw new Error("There is noe current application selected, can't create bookmark.");return e};var ZK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const OK="bookmark",HK={name:OK,configure:()=>new EK,initialize:t=>ZK(void 0,void 0,void 0,function*(){var e;const r=(e=t.ref)===null||e===void 0?void 0:e.bookmark,n=yield t.config.createConfig(t,r);return new $K(n,r)}),dispose:t=>{t.instance.dispose()}},LK=(t,e)=>{t.addConfig({module:HK,configure:r=>{e&&r.addConfigBuilder(e)}})};class NK{}/**
|
|
415
|
+
`}}x([U({type:String,reflect:!0})],Jf.prototype,"size",void 0);x([U({type:String,reflect:!0})],Jf.prototype,"color",void 0);Jf.styles=JG;const QI="fwc-circular-progress";let x7=class extends Jf{};x7=x([Et(QI)],x7);const eK=Kf(Qf,KI);Kf(Jf,QI);Kf(Xf,YI);const XI=({children:t,text:e})=>b.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",overflow:"hidden"},children:b.jsx(eK,{text:e,children:t})}),tK=()=>({setManifest:Jr("set_manifest",(t,e)=>({payload:t,meta:{created:Date.now(),update:e}})),fetchManifest:co("fetch_manifest",(t,e)=>({payload:t,meta:{update:e}}),t=>({payload:t}),t=>({payload:t})),setConfig:Jr("set_config",t=>({payload:t})),fetchConfig:co("fetch_config",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setModule:Jr("set_module",t=>({payload:t})),importApp:co("import_app",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),setInstance:Jr("set_instance",t=>({payload:t})),initialize:co("initialize_app",()=>({payload:null}),()=>({payload:null}),t=>({payload:t}))}),nt=tK();cA();const rK=t=>Hu(Object.assign(Object.assign({},t),{status:new Set}),e=>e.addCase(nt.setManifest,(r,n)=>{var i;n.meta.update?r.manifest=Object.assign((i=r.manifest)!==null&&i!==void 0?i:{},n.payload):r.manifest=n.payload}).addCase(nt.setConfig,(r,n)=>{r.config=n.payload}).addCase(nt.setModule,(r,n)=>{r.modules=n.payload}).addCase(nt.setInstance,(r,n)=>{r.instance=n.payload}).addMatcher(VF,(r,n)=>{r.status.add(g9(n.type))}).addMatcher(jF,(r,n)=>{r.status.delete(g9(n.type))})),nK=t=>e=>e.pipe(ze(nt.fetchManifest.match),Rt(r=>{const{payload:n,meta:{update:i}}=r,o=vt(t.getAppManifest(n)).pipe(ze(a=>!!a),Ev());return Yd(o.pipe(ye(a=>nt.setManifest(a,i))),o.pipe(Ff(),ye(a=>nt.fetchManifest.success(a)))).pipe(Jt(a=>Pr(nt.fetchManifest.failure(a))))})),iK=t=>e=>e.pipe(ze(nt.fetchConfig.match),Rt(({payload:r})=>{var n;const i=vt(t.getAppConfig(r.appKey,(n=r.build)===null||n===void 0?void 0:n.version)).pipe(ze(o=>!!o),Ev());return Yd(i.pipe(ye(o=>nt.setConfig(o))),i.pipe(Ff(),ye(o=>nt.fetchConfig.success(o)))).pipe(Jt(o=>Pr(nt.fetchConfig.failure(o))))})),oK=t=>e=>e.pipe(ze(nt.importApp.match),Rt(({payload:r})=>{const n=[t.getBaseUri(),r].join("/").replace(/\/{2,}/g,"/");return vt(import(n)).pipe(ye(nt.importApp.success),Jt(i=>Pr(nt.importApp.failure(i))))})),aK=(t,e)=>{const r=rK(t),n=new jf(r);return n.addFlow(nK(e)),n.addFlow(iK(e)),n.addFlow(oK(e)),n};var sK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Oe=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},cK=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},gy,Re,JI;function Bh(){return ze(t=>t!=null)}class lK{get manifest$(){return Oe(this,Re,"f").pipe(ye(({manifest:e})=>e),Bh())}get config$(){return Oe(this,Re,"f").pipe(ye(({config:e})=>e),Bh())}get modules$(){return Oe(this,Re,"f").pipe(ye(({modules:e})=>e),Bh())}get instance$(){return Oe(this,Re,"f").pipe(ye(({instance:e})=>e),Bh())}get state(){return Object.freeze(Oe(this,Re,"f").value)}get appKey(){return Oe(this,Re,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return Xr(this.manifest$)}get config(){return this.state.config}get configAsync(){return Xr(this.config$)}get instance(){return Oe(this,Re,"f").value.instance}constructor(e,r){gy.add(this),Re.set(this,void 0),cK(this,Re,aK(e,r.provider),"f");const{appKey:n}=e,{event:i}=r;i&&Oe(this,gy,"m",JI).call(this,i);const o=new jr;i&&(o.add(()=>{i.dispatchEvent("onAppDispose",{detail:{appKey:n}})}),o.add(i.addEventListener("onAppModulesLoaded",a=>{a.detail.appKey===n&&Oe(this,Re,"f").next(nt.setInstance(a.detail.modules))}))),this.dispose=()=>{o==null||o.unsubscribe(),Oe(this,Re,"f").value.instance&&Oe(this,Re,"f").value.instance.dispose(),Oe(this,Re,"f").complete()}}initialize(){return new Je(e=>{Oe(this,Re,"f").next(nt.initialize()),e.add(XN([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([r,n,i])=>e.next({manifest:r,script:n,config:i}),error:r=>{e.error(r),Oe(this,Re,"f").next(nt.initialize.failure(r))},complete:()=>{Oe(this,Re,"f").next(nt.initialize.success()),e.complete()}}))})}loadConfig(){(this.manifest?Pr(this.manifest):this.getManifest()).subscribe({next:e=>{Oe(this,Re,"f").next(nt.fetchConfig(e))}})}loadManifest(e){Oe(this,Re,"f").next(nt.fetchManifest(this.appKey,e))}updateManifest(e,r){Oe(this,Re,"f").next(nt.setManifest(e,!r))}loadAppModule(){return sK(this,arguments,void 0,function*(e=!0){var r;const n=yield this.getManifestAsync(e);!((r=n.build)===null||r===void 0)&&r.entryPoint?Oe(this,Re,"f").next(nt.importApp(n.build.entryPoint)):console.log(`The ${n.appKey} is missing entryPoint, please upload a build for the app before continuing`)})}getConfig(e=!1){return new Je(r=>{if(Oe(this,Re,"f").value.config&&(r.next(Oe(this,Re,"f").value.config),!e))return r.complete();r.add(Oe(this,Re,"f").addEffect("set_config",({payload:n})=>{r.next(n)})),r.add(Oe(this,Re,"f").addEffect("fetch_config::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Oe(this,Re,"f").addEffect("fetch_config::failure",({payload:n})=>{r.error(Error("failed to load application config",{cause:n}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?Xr:vr)(this.getConfig(!e))}getManifest(e=!1){return new Je(r=>{if(Oe(this,Re,"f").value.manifest&&(r.next(Oe(this,Re,"f").value.manifest),!e))return r.complete();r.add(Oe(this,Re,"f").addEffect("set_manifest",({payload:n})=>{r.next(n)})),r.add(Oe(this,Re,"f").addEffect("fetch_manifest::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Oe(this,Re,"f").addEffect("fetch_manifest::failure",({payload:n})=>{r.error(Error("failed to load application manifest",{cause:n}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?Xr:vr)(this.getManifest(!e))}getAppModule(e=!1){return new Je(r=>{if(Oe(this,Re,"f").value.modules&&(r.next(Oe(this,Re,"f").value.modules),!e))return r.complete();r.add(Oe(this,Re,"f").addEffect("set_module",({payload:n})=>{r.next(n)})),r.add(Oe(this,Re,"f").addEffect("import_app::success",({payload:n})=>{r.next(n),r.complete()})),r.add(Oe(this,Re,"f").addEffect("import_app::failure",({payload:n})=>{r.error(Error("failed to load application modules from script",{cause:n}))})),r.add(this.getManifest().subscribe(n=>{var i,o;if(!((i=n.build)===null||i===void 0)&&i.entryPoint){const a=(o=n.build.assetPath)!==null&&o!==void 0?o:[n.appKey,n.build.version].join("@");Oe(this,Re,"f").next(nt.importApp([a,n.build.entryPoint].join("/")))}else console.error(`The ${n.appKey} app is missing a entry in the manifest, upload a build for your app before continuing`)}))})}getAppModuleAsync(e=!0){return(e?Xr:vr)(this.getAppModule(!e))}}Re=new WeakMap,gy=new WeakSet,JI=function(e){const{appKey:r}=this;Oe(this,Re,"f").addEffect(nt.fetchManifest.type,()=>{e.dispatchEvent("onAppManifestLoad",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchManifest.success.type,n=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:r,manifest:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchManifest.failure.type,n=>{e.dispatchEvent("onAppManifestFailure",{detail:{appKey:r,error:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchConfig.type,()=>{e.dispatchEvent("onAppConfigLoad",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchConfig.success.type,n=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:r,config:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.fetchConfig.failure.type,n=>{e.dispatchEvent("onAppConfigFailure",{detail:{appKey:r,error:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.importApp.type,()=>{e.dispatchEvent("onAppScriptLoad",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.importApp.success.type,n=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:r,script:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.importApp.failure.type,n=>{e.dispatchEvent("onAppScriptFailure",{detail:{appKey:r,error:n.payload},source:this})}),Oe(this,Re,"f").addEffect(nt.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:r},source:this})}),Oe(this,Re,"f").addEffect(nt.initialize.failure.type,({payload:n})=>{e.dispatchEvent("onAppInitializeFailure",{detail:{appKey:r,error:n},source:this})})};var ii=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},l2=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},pd,sm,ds,qh,cm;class dK{static compareAppManifest(e,r){return JSON.stringify(e)===JSON.stringify(r)}get current(){return ii(this,ds,"f").value}get current$(){return ii(this,ds,"f").pipe(i0((e,r)=>e&&r?e.appKey===r.appKey:e===r))}constructor(e){var r;pd.set(this,void 0),sm.set(this,void 0),ds.set(this,void 0),qh.set(this,new jr),cm.set(this,void 0);const{event:n,config:i}=e;l2(this,pd,i.client,"f"),l2(this,cm,n,"f"),l2(this,ds,new Ll(void 0),"f"),l2(this,sm,(r=i.baseUri)!==null&&r!==void 0?r:"","f"),ii(this,qh,"f").add(this.current$.pipe(a0(),iA(()=>!!n)).subscribe(([o,a])=>{n==null||n.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:a}})})),ii(this,qh,"f").add(ii(this,ds,"f").pipe(a0(),ye(([o])=>o),Bh()).subscribe(o=>o.dispose()))}getAppManifest(e){return vt(ii(this,pd,"f").getAppManifest({appKey:e}))}getAppManifests(e){return vt(ii(this,pd,"f").getAppManifests(e))}getAllAppManifests(){return this.getAppManifests()}getAppConfig(e,r){return vt(ii(this,pd,"f").getAppConfig({appKey:e,tag:r}))}setCurrentApp(e){const r=typeof e=="string"?this.createApp({appKey:e}):e;ii(this,ds,"f").next(r)}clearCurrentApp(){ii(this,ds,"f").next(null)}getBaseUri(){return ii(this,sm,"f")}createApp(e){return console.warn(),new lK(e,{provider:this,event:ii(this,cm,"f")})}dispose(){ii(this,qh,"f").unsubscribe()}}pd=new WeakMap,sm=new WeakMap,ds=new WeakMap,qh=new WeakMap,cm=new WeakMap;var uK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const yy="app",hK={name:yy,configure:()=>new gK,initialize:t=>uK(void 0,void 0,void 0,function*(){const e=yield t.config.createConfigAsync(t),r=yield t.requireInstance("event").catch(()=>{});return new dK({config:e,event:r})}),dispose:t=>{t.instance.dispose()}},_y=Se.object({azureUniqueId:Se.string(),displayName:Se.string().optional(),mail:Se.string().optional(),upn:Se.string().optional(),accountType:Se.string().optional(),accountClassification:Se.string().optional(),isExpired:Se.boolean().optional()}),fK=Se.object({version:Se.string().optional(),entryPoint:Se.string().optional(),tags:Se.array(Se.string()).optional(),tag:Se.enum(["latest","preview"]).optional(),assetPath:Se.string().optional(),configUrl:Se.string().optional(),timestamp:Se.string().optional(),commitSha:Se.string().optional(),githubRepo:Se.string().optional(),projectPage:Se.string().optional(),uploadedBy:_y.optional()}),pK=Se.object({appKey:Se.string(),displayName:Se.string().optional(),description:Se.string().optional(),type:Se.string().optional(),isPinned:Se.boolean().optional(),templateSource:Se.string().optional(),category:Se.object({id:Se.string(),name:Se.string().optional(),displayName:Se.string().optional(),color:Se.string().optional(),defaultIcon:Se.string().optional(),sortOrder:Se.number().optional()}).optional(),visualization:Se.object({color:Se.string().optional(),icon:Se.string().optional(),sortOrder:Se.number()}).optional(),keywords:Se.array(Se.string()).optional(),admins:Se.array(_y).optional(),owners:Se.array(_y).optional(),build:fK.optional()});class zs extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new zs("unauthorized","failed to load application manifest, request not authorized",r);case 404:return new zs("not_found","application manifest not found",r)}return new zs("unknown",`failed to load application manifest, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}class ol extends Error{static fromHttpResponse(e,r){switch(e.status){case 401:return new ol("unauthorized","failed to load application config, request not authorized",r);case 404:return new ol("not_found","application config not found",r)}return new ol("unknown",`failed to load application config, status code ${e.status}`,r)}constructor(e,r,n){super(r,n),this.type=e}}var C7=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},F4=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ed=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},mK=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},ph,mh,vh;const k7=pK.transform(t=>{const{category:e}=t,r=mK(t,["category"]);return Object.assign(Object.assign({},r),{get key(){return r.appKey},get name(){return r.displayName},categoryId:e==null?void 0:e.id})});class vK{constructor(e){ph.set(this,void 0),mh.set(this,void 0),vh.set(this,void 0);const r=1*60*1e3;F4(this,ph,new Qn({client:{fn:({appKey:n})=>e.json(`/apps/${n}`,{headers:{"Api-Version":"1.0"},selector:i=>C7(this,void 0,void 0,function*(){return k7.parse(yield h0(i))})})},key:({appKey:n})=>n,expire:r}),"f"),F4(this,mh,new Qn({client:{fn:n=>{const i=n!=null&&n.filterByCurrentUser?"/persons/me/apps":"/apps";return e.json(i,{headers:{"Api-Version":"1.0"},selector:o=>C7(this,void 0,void 0,function*(){return k7.array().parse(yield h0(o))})})}},key:n=>n!=null&&n.filterByCurrentUser?"currentUser":"all",expire:r}),"f"),F4(this,vh,new Qn({client:{fn:({appKey:n,tag:i="latest"})=>e.json(`/apps/${n}/builds/${i}/config`,{headers:{"Api-Version":"1.0"}})},key:n=>JSON.stringify(n),expire:r}),"f")}getAppManifest(e){return ed(this,ph,"f").query(e).pipe(ef,Jt(r=>{const{cause:n}=r;throw n instanceof zs?n:n instanceof Q1?zs.fromHttpResponse(n.response,{cause:n}):new zs("unknown","failed to load manifest",{cause:n})}))}getAppManifests(e){return ed(this,mh,"f").query(e).pipe(ef)}getAppConfig(e){return ed(this,vh,"f").query(e).pipe(ye(r=>r.value),Jt(r=>{const{cause:n}=r;throw n instanceof ol?n:n instanceof Q1?ol.fromHttpResponse(n.response,{cause:n}):new ol("unknown","failed to load config",{cause:n})}))}[(ph=new WeakMap,mh=new WeakMap,vh=new WeakMap,Symbol.dispose)](){console.warn("AppClient disposed"),ed(this,ph,"f").complete(),ed(this,mh,"f").complete(),ed(this,vh,"f").complete()}}var z4=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class gK extends E6{constructor(){super(...arguments),this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return z4(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");return r.hasClient(yy)?r.createClient(yy):yield(yield e.requireInstance("serviceDiscovery")).createClient("apps")})}setClient(e){const r=typeof e=="object"?()=>e:e;this._set("client",r)}setBaseUri(e){const r=typeof e=="string"?()=>z4(this,void 0,void 0,function*(){return e}):e;this._set("baseUri",r)}_createConfig(e,r){return this._has("client")||this.setClient(()=>z4(this,void 0,void 0,function*(){const n=yield this._createHttpClient(e);return new vK(n)})),this._has("baseUri")||this.setBaseUri("/apps-proxy"),super._createConfig(e,r)}}var yK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const _K=(t,e)=>{t.addConfig({module:hK,configure:r=>yK(void 0,void 0,void 0,function*(){})})},bK="bookmarkId",wK=()=>new URLSearchParams(document.location.search).get(bK);var xK=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},CK=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},lm;class kK{constructor(e,r={}){this.config=r,lm.set(this,void 0),xK(this,lm,e,"f")}requireInstance(e){return CK(this,lm,"f").requireInstance(e)}setSourceSystem(e){this.config.sourceSystem=e}setBookmarkIdResolver(e){this.config.resolveBookmarkId=e}serCustomBookmarkApiClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.client=e)}setContextIdResolver(e){this.config.getContextId=e}setCurrentAppIdResolver(e){this.config.getCurrentAppIdentification=e}setEventProvider(e){this.config.event=e}setBookmarkQueryClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.queryClientConfig={getAllBookmarks:typeof e.getAllBookmarks=="function"?{key:()=>"all-bookmarks",client:{fn:e.getAllBookmarks},validate:({args:n})=>n.isValid}:e.getAllBookmarks,getBookmarkById:typeof e.getBookmarkById=="function"?{key:({id:n})=>n,client:{fn:e.getBookmarkById},expire:6e4,validate:()=>!1}:e.getBookmarkById})}}lm=new WeakMap;var fc=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},j4=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},by,dm,eR;class EK{constructor(){by.add(this),this.defaultExpireTime=1*60*1e3,dm.set(this,[])}addConfigBuilder(e){j4(this,dm,"f").push(e)}createConfig(e,r){return fc(this,void 0,void 0,function*(){const n=yield j4(this,dm,"f").reduce((o,a)=>fc(this,void 0,void 0,function*(){const s=new kK(e,yield o);return yield Promise.resolve(a(s)),Object.assign(o,s.config)}),Promise.resolve({})),i=yield this._getAppProvider(e);if(j4(this,by,"m",eR).call(this,r,n),n.resolveBookmarkId||(n.resolveBookmarkId=wK),n.getCurrentAppIdentification||(n.getCurrentAppIdentification=()=>{var o;return(o=i.current)===null||o===void 0?void 0:o.appKey}),!n.getContextId){const o=yield this._getContextProvider(e);n.getContextId=()=>{var a;return(a=o.currentContext)===null||a===void 0?void 0:a.id}}if(!n.event){const o=yield this._getEventProvider(e);n.event=o}return n.clientConfiguration=yield this._createClientConfiguration(e,n.clientConfiguration),n})}_createClientConfiguration(e){return fc(this,arguments,void 0,function*(r,n={}){if(!n.client){const i=yield this._getServiceProvider(r);n.client=yield i.createBookmarksClient("fetch")}if(!n.queryClientConfig){const o=yield(yield this._getServiceProvider(r)).createBookmarksClient("json$");n.queryClientConfig=Object.assign({getBookmarkById:{client:{fn:a=>o.get("v1",a)},key:({id:a})=>a,expire:this.defaultExpireTime},getAllBookmarks:{client:{fn:()=>o.getAll("v1")},key:()=>"all-bookmarks",validate:({args:a})=>a.isValid,expire:this.defaultExpireTime}},o)}return n})}_getServiceProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("[BookmarkConfigurator] No service provider configures [ServicesModule] ")}})}_getContextProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("context"))return e.requireInstance("context");{const n=(r=e.ref)===null||r===void 0?void 0:r.context;if(n)return n;throw Error("[BookmarkConfigurator] No context provider configures [ContextModule]")}})}_getAppProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("app"))return e.requireInstance("app");{const n=(r=e.ref)===null||r===void 0?void 0:r.app;if(n)return n;throw Error("[BookmarkConfigurator] No app provider configures [AppModule]")}})}_getEventProvider(e){return fc(this,void 0,void 0,function*(){var r;if(e.hasModule("event"))return e.requireInstance("event");{const n=(r=e.ref)===null||r===void 0?void 0:r.event;if(n)return n;throw Error("[BookmarkConfigurator] No event provider configures [EventModule]")}})}}dm=new WeakMap,by=new WeakSet,eR=function(e,r){e&&(r.clientConfiguration=e.config.clientConfiguration,r.sourceSystem=e.config.sourceSystem,r.getContextId=e.config.getContextId,r.getCurrentAppIdentification=e.config.getCurrentAppIdentification)};const vn={getAll:co("getAll",t=>({payload:t}),t=>({payload:t}),t=>({payload:t})),delete:co("delete",t=>({payload:t}),t=>({payload:t})),addFavorite:co("addFavorite",t=>({payload:t}),t=>({payload:t})),removeFavorite:co("removeFavorite",t=>({payload:t}),t=>({payload:t})),update:co("update",t=>({payload:t}),t=>({payload:t})),create:co("create",t=>({payload:t}),t=>({payload:t}),t=>({payload:t}))},SK={bookmarks:{}},TK=Hu(SK,t=>{t.addCase(vn.create.success,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(vn.getAll.success,(e,{payload:r})=>{r.forEach(n=>{e.bookmarks[n.id]=n})}).addCase(vn.delete.success,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(vn.removeFavorite,(e,{payload:r})=>{delete e.bookmarks[r]}).addCase(vn.addFavorite,(e,{payload:r})=>{e.bookmarks[r.id]=r}).addCase(vn.update.success,(e,{payload:r})=>{e.bookmarks[r.id]=r})});var tb=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const AK=(t,e)=>r=>r.pipe(ja(vn.getAll.type),Rt(n=>t.query({isValid:n.payload}).pipe(Ff(),ye(i=>vn.getAll.success(i.value.filter(o=>{var a;return((a=o.sourceSystem)===null||a===void 0?void 0:a.identifier)===e}))),Jt(()=>Lt)))),IK=t=>e=>e.pipe(ja(vn.create.type),Rt(r=>tb(void 0,void 0,void 0,function*(){const n=yield t.post("v1",r.payload);return vn.create.success(yield n.json())}))),E7=t=>e=>e.pipe(ja(vn.update.type),Rt(r=>tb(void 0,void 0,void 0,function*(){const n=yield t.patch("v1",r.payload);return vn.update.success(yield n.json())}))),RK=t=>e=>e.pipe(ja(vn.delete.type),Rt(r=>tb(void 0,void 0,void 0,function*(){return(yield t.delete("v1",{id:r.payload})).ok,vn.delete.success(r.payload)})));var Mo=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},pc=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ve=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},um,md,ba,lo,to,D0,Ta,Ft,ka,tR,rR;class PK{constructor(e,r,n){um.add(this),md.set(this,void 0),ba.set(this,void 0),lo.set(this,void 0),to.set(this,void 0),D0.set(this,void 0),Ta.set(this,void 0),Ft.set(this,void 0),ka.set(this,new jr),pc(this,to,new Ll(void 0),"f"),pc(this,lo,e.client,"f"),pc(this,md,new Qn(e.queryClientConfig.getBookmarkById),"f"),pc(this,ba,new Qn(e.queryClientConfig.getAllBookmarks),"f"),pc(this,D0,r,"f"),pc(this,Ta,n,"f"),pc(this,Ft,qF(vn,TK),"f"),ve(this,um,"m",rR).call(this),ve(this,um,"m",tR).call(this),n&&ve(this,ka,"f").add(ve(this,to,"f").subscribe(i=>{n.dispatchEvent("onBookmarkChanged",{detail:i,canBubble:!0,source:this})}))}get currentBookmark$(){return ve(this,to,"f").asObservable()}get bookmarks$(){return ve(this,Ft,"f").subject.pipe(ye(e=>Object.values(e.bookmarks).map(r=>r)))}setCurrentBookmark(e){return Mo(this,void 0,void 0,function*(){if(!e)return ve(this,to,"f").next(void 0);if(typeof e=="string"){const r=yield this.resolverBookmarkAsync(e);return this.setBookmark(r)}else if(e!==ve(this,to,"f").value)return this.setBookmark(e)})}setBookmark(e){return Mo(this,void 0,void 0,function*(){ve(this,Ta,"f")?(yield ve(this,Ta,"f").dispatchEvent("onBookmarkChange",{detail:e,cancelable:!0,canBubble:!0,source:this})).canceled||ve(this,to,"f").next(e):ve(this,to,"f").next(e)})}resolverBookmark(e){return ve(this,md,"f").query({id:e}).pipe(ye(r=>r.value))}resolverBookmarkAsync(e){return vr(this.resolverBookmark(e))}getAllBookmarks(e={isValid:!1}){const{isValid:r}=e;return new Je(n=>{ve(this,Ft,"f").dispatch.getAll(r),n.add(ve(this,Ft,"f").subject.addEffect("getAll::success",i=>{var o;n.next(i.payload),n.complete(),(o=ve(this,Ta,"f"))===null||o===void 0||o.dispatchEvent("onBookmarksChanged",{detail:i.payload,source:this})}))})}getAllBookmarksAsync(){return Mo(this,arguments,void 0,function*(e={isValid:!1}){return vr(this.getAllBookmarks(e))})}getBookmarkById(e){return Mo(this,void 0,void 0,function*(){return yield(yield ve(this,lo,"f").get("v1",{id:e})).json()})}createBookmark(e){return new Je(r=>{ve(this,Ft,"f").dispatch.create(e),r.add(ve(this,Ft,"f").subject.addEffect("create::success",n=>{r.next(n.payload),r.complete()})),r.add(ve(this,Ft,"f").subject.addEffect("create::failure",n=>{r.error(n.payload)}))})}createBookmarkAsync(e){return Mo(this,void 0,void 0,function*(){return vr(this.createBookmark(e))})}updateBookmark(e){return new Je(r=>{ve(this,Ft,"f").dispatch.update(e),r.add(ve(this,Ft,"f").subject.addEffect("update::success",n=>{r.next(n.payload),r.complete(),ve(this,md,"f").cache.invalidate(n.payload.id)}))})}updateBookmarkAsync(e){return Mo(this,void 0,void 0,function*(){return vr(this.updateBookmark(e))})}deleteBookmarkById(e){return new Je(r=>{ve(this,Ft,"f").dispatch.delete(e),r.add(ve(this,Ft,"f").subject.addEffect("delete::success",n=>{r.next(n.payload),r.complete(),ve(this,md,"f").cache.invalidate(n.payload)}))})}deleteBookmarkByIdAsync(e){return Mo(this,void 0,void 0,function*(){return vr(this.deleteBookmarkById(e))})}addBookmarkFavoriteAsync(e){return Mo(this,void 0,void 0,function*(){(yield ve(this,lo,"f").addFavorite("v1",{bookmarkId:e})).ok&&ve(this,to,"f").value&&ve(this,Ft,"f").dispatch.addFavorite(ve(this,to,"f").value)})}removeBookmarkFavoriteAsync(e){return Mo(this,void 0,void 0,function*(){(yield ve(this,lo,"f").removeFavorite("v1",{bookmarkId:e})).ok&&ve(this,Ft,"f").dispatch.removeFavorite(e)})}verifyBookmarkFavoriteAsync(e){return Mo(this,void 0,void 0,function*(){return!!(yield ve(this,lo,"f").verifyFavorite("v1",{bookmarkId:e})).ok})}dispose(){ve(this,ka,"f").unsubscribe()}}md=new WeakMap,ba=new WeakMap,lo=new WeakMap,to=new WeakMap,D0=new WeakMap,Ta=new WeakMap,Ft=new WeakMap,ka=new WeakMap,um=new WeakSet,tR=function(){ve(this,Ft,"f").subject.addEffect("create::success",e=>{var r;ve(this,ba,"f").cache.invalidate("all-bookmarks"),(r=ve(this,Ta,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkCreated",{detail:e.payload,canBubble:!0,source:this})}),ve(this,Ft,"f").subject.addEffect("delete::success",e=>{var r;console.log("here"),ve(this,ba,"f").cache.invalidate("all-bookmarks"),(r=ve(this,Ta,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkDeleted",{detail:e.payload,canBubble:!0,source:this})}),ve(this,Ft,"f").subject.addEffect("update::success",e=>{var r;ve(this,ba,"f").cache.invalidate("all-bookmarks"),(r=ve(this,Ta,"f"))===null||r===void 0||r.dispatchEvent("onBookmarkUpdated",{detail:e.payload,canBubble:!0,source:this})}),ve(this,Ft,"f").subject.addEffect("addFavorite::request",()=>{ve(this,ba,"f").cache.invalidate("all-bookmarks")}),ve(this,Ft,"f").subject.addEffect("removeFavorite::request",()=>{ve(this,ba,"f").cache.invalidate("all-bookmarks")})},rR=function(){var e;ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(AK(ve(this,ba,"f"),(e=ve(this,D0,"f"))===null||e===void 0?void 0:e.identifier))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(IK(ve(this,lo,"f")))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(RK(ve(this,lo,"f")))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(E7(ve(this,lo,"f")))),ve(this,ka,"f").add(ve(this,Ft,"f").subject.addFlow(E7(ve(this,lo,"f"))))};var Do=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},MK=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Ji=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},vd,Ac,hm,wy,xy,Cy;class $K{get currentBookmark$(){return this._bookmarkClient.currentBookmark$}get bookmarks$(){return this._bookmarkClient.bookmarks$}constructor(e,r){vd.add(this),Ac.set(this,void 0),hm.set(this,new jr),this.bookmarkCreators={},wy.set(this,()=>{this.bookmarkCreators={}}),this.config=e,MK(this,Ac,e.event,"f"),this._bookmarkClient=r?r._bookmarkClient:new PK(e.clientConfiguration,e.sourceSystem,e.event);const n=e.resolveBookmarkId&&e.resolveBookmarkId();n&&this._bookmarkClient.setCurrentBookmark(n),Ji(this,Ac,"f")&&Ji(this,hm,"f").add(Ji(this,Ac,"f").addEventListener("onCurrentAppChanged",Ji(this,wy,"f")))}getBookmarkById(e){return Do(this,void 0,void 0,function*(){return yield this._bookmarkClient.getBookmarkById(e)})}setCurrentBookmark(e){return Do(this,void 0,void 0,function*(){this._bookmarkClient.setCurrentBookmark(e)})}getAllBookmarks(){return this._bookmarkClient.getAllBookmarks()}getAllBookmarksAsync(){return Do(this,void 0,void 0,function*(){return this._bookmarkClient.getAllBookmarksAsync()})}updateBookmark(e){return this._bookmarkClient.updateBookmark(e)}updateBookmarkAsync(e,r){return Do(this,void 0,void 0,function*(){if(Ji(this,vd,"m",Cy).call(this)===e.appKey){if(r!=null&&r.updatePayload){const n=yield Ji(this,vd,"m",xy).call(this);e=Object.assign(Object.assign({},e),{payload:n})}return this._bookmarkClient.updateBookmarkAsync(e)}})}deleteBookmarkById(e){return this._bookmarkClient.deleteBookmarkById(e)}deleteBookmarkByIdAsync(e){return this._bookmarkClient.deleteBookmarkByIdAsync(e)}addBookmarkFavoriteAsync(e){return Do(this,void 0,void 0,function*(){yield this._bookmarkClient.addBookmarkFavoriteAsync(e)})}removeBookmarkFavoriteAsync(e){return Do(this,void 0,void 0,function*(){yield this._bookmarkClient.removeBookmarkFavoriteAsync(e)})}verifyBookmarkFavoriteAsync(e){return Do(this,void 0,void 0,function*(){return yield this._bookmarkClient.verifyBookmarkFavoriteAsync(e)})}addStateCreator(e,r){var n;const i=r||"#creator";return Ji(this,Ac,"f")&&((n=Ji(this,Ac,"f"))===null||n===void 0||n.dispatchEvent("onAddCreator",{source:this,canBubble:!0,detail:{key:r,cb:e}})),this.bookmarkCreators[i]=e,()=>{delete this.bookmarkCreators[i]}}createBookmark(e){return Do(this,void 0,void 0,function*(){const r=yield Ji(this,vd,"m",xy).call(this),n=this.config.getContextId&&this.config.getContextId(),i=Ji(this,vd,"m",Cy).call(this),o=Object.assign(Object.assign({},e),{appKey:i,contextId:n,sourceSystem:this.config.sourceSystem,payload:r});return this._bookmarkClient.createBookmarkAsync(o)})}dispose(){Ji(this,hm,"f").unsubscribe(),this._bookmarkClient.dispose()}}Ac=new WeakMap,hm=new WeakMap,wy=new WeakMap,vd=new WeakSet,xy=function(){return Do(this,void 0,void 0,function*(){const e=this.bookmarkCreators;if(!e||Object.keys(e).length===0)throw Error("No creator registered on this BookmarkProvider");return typeof e["#creator"]=="function"?e["#creator"]():yield Object.entries(e).reduce((r,n)=>Do(this,[r,n],void 0,function*(i,[o,a]){return Object.assign(yield i,{[o]:yield a()})}),Promise.resolve({}))})},Cy=function(){const e=this.config.getCurrentAppIdentification&&this.config.getCurrentAppIdentification();if(!e)throw new Error("There is noe current application selected, can't create bookmark.");return e};var ZK=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const OK="bookmark",HK={name:OK,configure:()=>new EK,initialize:t=>ZK(void 0,void 0,void 0,function*(){var e;const r=(e=t.ref)===null||e===void 0?void 0:e.bookmark,n=yield t.config.createConfig(t,r);return new $K(n,r)}),dispose:t=>{t.instance.dispose()}},LK=(t,e)=>{t.addConfig({module:HK,configure:r=>{e&&r.addConfigBuilder(e)}})};class NK{}/**
|
|
416
416
|
* @remix-run/router v1.18.0
|
|
417
417
|
*
|
|
418
418
|
* Copyright (c) Remix Software Inc.
|
|
@@ -421,7 +421,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
421
421
|
* LICENSE.md file in the root directory of this source tree.
|
|
422
422
|
*
|
|
423
423
|
* @license MIT
|
|
424
|
-
*/function or(){return or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},or.apply(this,arguments)}var Qt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Qt||(Qt={}));const S7="popstate";function DK(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:r,v5Compat:n=!1}=t,i;i=e.map((f,p)=>d(f,typeof f=="string"?null:f.state,p===0?"default":void 0));let o=c(r??i.length-1),a=Qt.Pop,s=null;function c(f){return Math.min(Math.max(f,0),i.length-1)}function l(){return i[o]}function d(f,p,m){p===void 0&&(p=null);let w=El(i?l().pathname:"/",f,p,m);return Xs(w.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(f)),w}function u(f){return typeof f=="string"?f:Nl(f)}return{get index(){return o},get action(){return a},get location(){return l()},createHref:u,createURL(f){return new URL(u(f),"http://localhost")},encodeLocation(f){let p=typeof f=="string"?oa(f):f;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(f,p){a=Qt.Push;let m=d(f,p);o+=1,i.splice(o,i.length,m),n&&s&&s({action:a,location:m,delta:1})},replace(f,p){a=Qt.Replace;let m=d(f,p);i[o]=m,n&&s&&s({action:a,location:m,delta:0})},go(f){a=Qt.Pop;let p=c(o+f),m=i[p];o=p,s&&s({action:a,location:m,delta:f})},listen(f){return s=f,()=>{s=null}}}}function VK(t){t===void 0&&(t={});function e(n,i){let{pathname:o,search:a,hash:s}=n.location;return El("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Nl(i)}return nR(e,r,null,t)}function FK(t){t===void 0&&(t={});function e(i,o){let{pathname:a="/",search:s="",hash:c=""}=oa(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),El("",{pathname:a,search:s,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(i,o){let a=i.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let c=i.location.href,l=c.indexOf("#");s=l===-1?c:c.slice(0,l)}return s+"#"+(typeof o=="string"?o:Nl(o))}function n(i,o){Xs(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return nR(e,r,n,t)}function it(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Xs(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function zK(){return Math.random().toString(36).substr(2,8)}function T7(t,e){return{usr:t.state,key:t.key,idx:e}}function El(t,e,r,n){return r===void 0&&(r=null),or({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?oa(e):e,{state:r,key:e&&e.key||n||zK()})}function Nl(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function oa(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function nR(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=Qt.Pop,c=null,l=d();l==null&&(l=0,a.replaceState(or({},a.state,{idx:l}),""));function d(){return(a.state||{idx:null}).idx}function u(){s=Qt.Pop;let w=d(),y=w==null?null:w-l;l=w,c&&c({action:s,location:m.location,delta:y})}function h(w,y){s=Qt.Push;let v=El(m.location,w,y);r&&r(v,w),l=d()+1;let g=T7(v,l),k=m.createHref(v);try{a.pushState(g,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(k)}o&&c&&c({action:s,location:m.location,delta:1})}function f(w,y){s=Qt.Replace;let v=El(m.location,w,y);r&&r(v,w),l=d();let g=T7(v,l),k=m.createHref(v);a.replaceState(g,"",k),o&&c&&c({action:s,location:m.location,delta:0})}function p(w){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof w=="string"?w:Nl(w);return v=v.replace(/ $/,"%20"),it(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let m={get action(){return s},get location(){return t(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(S7,u),c=w,()=>{i.removeEventListener(S7,u),c=null}},createHref(w){return e(i,w)},createURL:p,encodeLocation(w){let y=p(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:f,go(w){return a.go(w)}};return m}var Mt;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mt||(Mt={}));const jK=new Set(["lazy","caseSensitive","path","id","index","children"]);function UK(t){return t.index===!0}function xf(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,o)=>{let a=[...r,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(it(i.index!==!0||!i.children,"Cannot specify children on an index route"),it(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),UK(i)){let c=or({},i,e(i),{id:s});return n[s]=c,c}else{let c=or({},i,e(i),{id:s,children:void 0});return n[s]=c,i.children&&(c.children=xf(i.children,e,a,n)),c}})}function Hc(t,e,r){return r===void 0&&(r="/"),fm(t,e,r,!1)}function fm(t,e,r,n){let i=typeof e=="string"?oa(e):e,o=ep(i.pathname||"/",r);if(o==null)return null;let a=iR(t);qK(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let l=nY(o);s=tY(a[c],l,n)}return s}function BK(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function iR(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(o,a,s)=>{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(it(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=al([n,c.relativePath]),d=r.concat(c);o.children&&o.children.length>0&&(it(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),iR(o.children,e,d,l)),!(o.path==null&&!o.index)&&e.push({path:l,score:JK(l,o.index),routesMeta:d})};return t.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of oR(o.path))i(o,a,c)}),e}function oR(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=oR(n.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>t.startsWith("/")&&c===""?"/":c)}function qK(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:eY(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const WK=/^:[\w-]+$/,GK=3,KK=2,YK=1,QK=10,XK=-2,A7=t=>t==="*";function JK(t,e){let r=t.split("/"),n=r.length;return r.some(A7)&&(n+=XK),e&&(n+=KK),r.filter(i=>!A7(i)).reduce((i,o)=>i+(WK.test(o)?GK:o===""?YK:QK),n)}function eY(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function tY(t,e,r){r===void 0&&(r=!1);let{routesMeta:n}=t,i={},o="/",a=[];for(let s=0;s<n.length;++s){let c=n[s],l=s===n.length-1,d=o==="/"?e:e.slice(o.length)||"/",u=I7({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},d),h=c.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=I7({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:al([o,u.pathname]),pathnameBase:cY(al([o,u.pathnameBase])),route:h}),u.pathnameBase!=="/"&&(o=al([o,u.pathnameBase]))}return a}function I7(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=rY(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((l,d,u)=>{let{paramName:h,isOptional:f}=d;if(h==="*"){let m=s[u]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[u];return f&&!p?l[h]=void 0:l[h]=(p||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:a,pattern:t}}function rY(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Xs(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function nY(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Xs(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function ep(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function iY(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?oa(t):t;return{pathname:r?r.startsWith("/")?r:oY(r,e):e,search:lY(n),hash:dY(i)}}function oY(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function U4(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function aR(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function aY(t,e){let r=aR(t);return e?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function sY(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=oa(t):(i=or({},t),it(!i.pathname||!i.pathname.includes("?"),U4("?","pathname","search",i)),it(!i.pathname||!i.pathname.includes("#"),U4("#","pathname","hash",i)),it(!i.search||!i.search.includes("#"),U4("#","search","hash",i)));let o=t===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let u=e.length-1;if(!n&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),u-=1;i.pathname=h.join("/")}s=u>=0?e[u]:"/"}let c=iY(i,s),l=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||d)&&(c.pathname+="/"),c}const al=t=>t.join("/").replace(/\/\/+/g,"/"),cY=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),lY=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dY=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class sR{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Lv(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const cR=["post","put","patch","delete"],uY=new Set(cR),hY=["get",...cR],fY=new Set(hY),pY=new Set([301,302,303,307,308]),mY=new Set([307,308]),B4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vY={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},rb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gY=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),lR="remix-router-transitions";function yY(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;it(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let S=t.detectErrorBoundary;i=P=>({hasErrorBoundary:S(P)})}else i=gY;let o={},a=xf(t.routes,i,void 0,o),s,c=t.basename||"/",l=t.unstable_dataStrategy||CY,d=t.unstable_patchRoutesOnMiss,u=or({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),h=null,f=new Set,p=null,m=null,w=null,y=t.hydrationData!=null,v=Hc(a,t.history.location,c),g=null;if(v==null&&!d){let S=En(404,{pathname:t.history.location.pathname}),{matches:P,route:L}=D7(a);v=P,g={[L.id]:S}}v&&d&&!t.hydrationData&&Sg(v,a,t.history.location.pathname).active&&(v=null);let k;if(!v)k=!1,v=[];else if(v.some(S=>S.route.lazy))k=!1;else if(!v.some(S=>S.route.loader))k=!0;else if(u.v7_partialHydration){let S=t.hydrationData?t.hydrationData.loaderData:null,P=t.hydrationData?t.hydrationData.errors:null,L=B=>B.route.loader?typeof B.route.loader=="function"&&B.route.loader.hydrate===!0?!1:S&&S[B.route.id]!==void 0||P&&P[B.route.id]!==void 0:!0;if(P){let B=v.findIndex(de=>P[de.route.id]!==void 0);k=v.slice(0,B+1).every(L)}else k=v.every(L)}else k=t.hydrationData!=null;let E,C={historyAction:t.history.action,location:t.history.location,matches:v,initialized:k,navigation:B4,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||g,fetchers:new Map,blockers:new Map},R=Qt.Pop,$=!1,Y,q=!1,ae=new Map,_e=null,Ve=!1,H=!1,Z=[],F=[],O=new Map,M=0,N=-1,z=new Map,te=new Set,se=new Map,je=new Map,Qe=new Set,Ie=new Map,rt=new Map,Ur=new Map,Ao=!1;function la(){if(h=t.history.listen(S=>{let{action:P,location:L,delta:B}=S;if(Ao){Ao=!1;return}Xs(rt.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let de=Yb({currentLocation:C.location,nextLocation:L,historyAction:P});if(de&&B!=null){Ao=!0,t.history.go(B*-1),xp(de,{state:"blocked",location:L,proceed(){xp(de,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),t.history.go(B)},reset(){let be=new Map(C.blockers);be.set(de,gh),Wt({blockers:be})}});return}return sc(P,L)}),r){HY(e,ae);let S=()=>LY(e,ae);e.addEventListener("pagehide",S),_e=()=>e.removeEventListener("pagehide",S)}return C.initialized||sc(Qt.Pop,C.location,{initialHydration:!0}),E}function Gu(){h&&h(),_e&&_e(),f.clear(),Y&&Y.abort(),C.fetchers.forEach((S,P)=>wp(P)),C.blockers.forEach((S,P)=>Kb(P))}function jl(S){return f.add(S),()=>f.delete(S)}function Wt(S,P){P===void 0&&(P={}),C=or({},C,S);let L=[],B=[];u.v7_fetcherPersist&&C.fetchers.forEach((de,be)=>{de.state==="idle"&&(Qe.has(be)?B.push(be):L.push(be))}),[...f].forEach(de=>de(C,{deletedFetchers:B,unstable_viewTransitionOpts:P.viewTransitionOpts,unstable_flushSync:P.flushSync===!0})),u.v7_fetcherPersist&&(L.forEach(de=>C.fetchers.delete(de)),B.forEach(de=>wp(de)))}function Ul(S,P,L){var B,de;let{flushSync:be}=L===void 0?{}:L,$e=C.actionData!=null&&C.navigation.formMethod!=null&&oo(C.navigation.formMethod)&&C.navigation.state==="loading"&&((B=S.state)==null?void 0:B._isRedirect)!==!0,oe;P.actionData?Object.keys(P.actionData).length>0?oe=P.actionData:oe=null:$e?oe=C.actionData:oe=null;let qe=P.loaderData?L7(C.loaderData,P.loaderData,P.matches||[],P.errors):C.loaderData,Se=C.blockers;Se.size>0&&(Se=new Map(Se),Se.forEach((xt,At)=>Se.set(At,gh)));let Te=$===!0||C.navigation.formMethod!=null&&oo(C.navigation.formMethod)&&((de=S.state)==null?void 0:de._isRedirect)!==!0;s&&(a=s,s=void 0),Ve||R===Qt.Pop||(R===Qt.Push?t.history.push(S,S.state):R===Qt.Replace&&t.history.replace(S,S.state));let Tt;if(R===Qt.Pop){let xt=ae.get(C.location.pathname);xt&&xt.has(S.pathname)?Tt={currentLocation:C.location,nextLocation:S}:ae.has(S.pathname)&&(Tt={currentLocation:S,nextLocation:C.location})}else if(q){let xt=ae.get(C.location.pathname);xt?xt.add(S.pathname):(xt=new Set([S.pathname]),ae.set(C.location.pathname,xt)),Tt={currentLocation:C.location,nextLocation:S}}Wt(or({},P,{actionData:oe,loaderData:qe,historyAction:R,location:S,initialized:!0,navigation:B4,revalidation:"idle",restoreScrollPosition:Xb(S,P.matches||C.matches),preventScrollReset:Te,blockers:Se}),{viewTransitionOpts:Tt,flushSync:be===!0}),R=Qt.Pop,$=!1,q=!1,Ve=!1,H=!1,Z=[],F=[]}async function zb(S,P){if(typeof S=="number"){t.history.go(S);return}let L=ky(C.location,C.matches,c,u.v7_prependBasename,S,u.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:B,submission:de,error:be}=R7(u.v7_normalizeFormMethod,!1,L,P),$e=C.location,oe=El(C.location,B,P&&P.state);oe=or({},oe,t.history.encodeLocation(oe));let qe=P&&P.replace!=null?P.replace:void 0,Se=Qt.Push;qe===!0?Se=Qt.Replace:qe===!1||de!=null&&oo(de.formMethod)&&de.formAction===C.location.pathname+C.location.search&&(Se=Qt.Replace);let Te=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,Tt=(P&&P.unstable_flushSync)===!0,xt=Yb({currentLocation:$e,nextLocation:oe,historyAction:Se});if(xt){xp(xt,{state:"blocked",location:oe,proceed(){xp(xt,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),zb(S,P)},reset(){let At=new Map(C.blockers);At.set(xt,gh),Wt({blockers:At})}});return}return await sc(Se,oe,{submission:de,pendingError:be,preventScrollReset:Te,replace:P&&P.replace,enableViewTransition:P&&P.unstable_viewTransition,flushSync:Tt})}function IM(){if(Cg(),Wt({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){sc(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}sc(R||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation})}}async function sc(S,P,L){Y&&Y.abort(),Y=null,R=S,Ve=(L&&L.startUninterruptedRevalidation)===!0,DM(C.location,C.matches),$=(L&&L.preventScrollReset)===!0,q=(L&&L.enableViewTransition)===!0;let B=s||a,de=L&&L.overrideNavigation,be=Hc(B,P,c),$e=(L&&L.flushSync)===!0,oe=Sg(be,B,P.pathname);if(oe.active&&oe.matches&&(be=oe.matches),!be){let{error:gt,notFoundMatches:Br,route:kr}=kg(P.pathname);Ul(P,{matches:Br,loaderData:{},errors:{[kr.id]:gt}},{flushSync:$e});return}if(C.initialized&&!H&&IY(C.location,P)&&!(L&&L.submission&&oo(L.submission.formMethod))){Ul(P,{matches:be},{flushSync:$e});return}Y=new AbortController;let qe=td(t.history,P,Y.signal,L&&L.submission),Se;if(L&&L.pendingError)Se=[Fd(be).route.id,{type:Mt.error,error:L.pendingError}];else if(L&&L.submission&&oo(L.submission.formMethod)){let gt=await RM(qe,P,L.submission,be,oe.active,{replace:L.replace,flushSync:$e});if(gt.shortCircuited)return;if(gt.pendingActionResult){let[Br,kr]=gt.pendingActionResult;if(si(kr)&&Lv(kr.error)&&kr.error.status===404){Y=null,Ul(P,{matches:gt.matches,loaderData:{},errors:{[Br]:kr.error}});return}}be=gt.matches||be,Se=gt.pendingActionResult,de=q4(P,L.submission),$e=!1,oe.active=!1,qe=td(t.history,qe.url,qe.signal)}let{shortCircuited:Te,matches:Tt,loaderData:xt,errors:At}=await PM(qe,P,be,oe.active,de,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,$e,Se);Te||(Y=null,Ul(P,or({matches:Tt||be},N7(Se),{loaderData:xt,errors:At})))}async function RM(S,P,L,B,de,be){be===void 0&&(be={}),Cg();let $e=ZY(P,L);if(Wt({navigation:$e},{flushSync:be.flushSync===!0}),de){let Se=await kp(B,P.pathname,S.signal);if(Se.type==="aborted")return{shortCircuited:!0};if(Se.type==="error"){let{boundaryId:Te,error:Tt}=Cp(P.pathname,Se);return{matches:Se.partialMatches,pendingActionResult:[Te,{type:Mt.error,error:Tt}]}}else if(Se.matches)B=Se.matches;else{let{notFoundMatches:Te,error:Tt,route:xt}=kg(P.pathname);return{matches:Te,pendingActionResult:[xt.id,{type:Mt.error,error:Tt}]}}}let oe,qe=Wh(B,P);if(!qe.route.action&&!qe.route.lazy)oe={type:Mt.error,error:En(405,{method:S.method,pathname:P.pathname,routeId:qe.route.id})};else if(oe=(await Yu("action",S,[qe],B))[0],S.signal.aborted)return{shortCircuited:!0};if(Uc(oe)){let Se;return be&&be.replace!=null?Se=be.replace:Se=Z7(oe.response.headers.get("Location"),new URL(S.url),c)===C.location.pathname+C.location.search,await Ku(S,oe,{submission:L,replace:Se}),{shortCircuited:!0}}if(jc(oe))throw En(400,{type:"defer-action"});if(si(oe)){let Se=Fd(B,qe.route.id);return(be&&be.replace)!==!0&&(R=Qt.Push),{matches:B,pendingActionResult:[Se.route.id,oe]}}return{matches:B,pendingActionResult:[qe.route.id,oe]}}async function PM(S,P,L,B,de,be,$e,oe,qe,Se,Te){let Tt=de||q4(P,be),xt=be||$e||z7(Tt),At=!Ve&&(!u.v7_partialHydration||!qe);if(B){if(At){let dr=jb(Te);Wt(or({navigation:Tt},dr!==void 0?{actionData:dr}:{}),{flushSync:Se})}let Ge=await kp(L,P.pathname,S.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){let{boundaryId:dr,error:ni}=Cp(P.pathname,Ge);return{matches:Ge.partialMatches,loaderData:{},errors:{[dr]:ni}}}else if(Ge.matches)L=Ge.matches;else{let{error:dr,notFoundMatches:ni,route:Gt}=kg(P.pathname);return{matches:ni,loaderData:{},errors:{[Gt.id]:dr}}}}let gt=s||a,[Br,kr]=P7(t.history,C,L,xt,P,u.v7_partialHydration&&qe===!0,u.v7_skipActionErrorRevalidation,H,Z,F,Qe,se,te,gt,c,Te);if(Eg(Ge=>!(L&&L.some(dr=>dr.route.id===Ge))||Br&&Br.some(dr=>dr.route.id===Ge)),N=++M,Br.length===0&&kr.length===0){let Ge=Wb();return Ul(P,or({matches:L,loaderData:{},errors:Te&&si(Te[1])?{[Te[0]]:Te[1].error}:null},N7(Te),Ge?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Se}),{shortCircuited:!0}}if(At){let Ge={};if(!B){Ge.navigation=Tt;let dr=jb(Te);dr!==void 0&&(Ge.actionData=dr)}kr.length>0&&(Ge.fetchers=MM(kr)),Wt(Ge,{flushSync:Se})}kr.forEach(Ge=>{O.has(Ge.key)&&Xa(Ge.key),Ge.controller&&O.set(Ge.key,Ge.controller)});let Qu=()=>kr.forEach(Ge=>Xa(Ge.key));Y&&Y.signal.addEventListener("abort",Qu);let{loaderResults:Ja,fetcherResults:Bl}=await Ub(C.matches,L,Br,kr,S);if(S.signal.aborted)return{shortCircuited:!0};Y&&Y.signal.removeEventListener("abort",Qu),kr.forEach(Ge=>O.delete(Ge.key));let ql=V7([...Ja,...Bl]);if(ql){if(ql.idx>=Br.length){let Ge=kr[ql.idx-Br.length].key;te.add(Ge)}return await Ku(S,ql.result,{replace:oe}),{shortCircuited:!0}}let{loaderData:Wl,errors:Io}=H7(C,L,Br,Ja,Te,kr,Bl,Ie);Ie.forEach((Ge,dr)=>{Ge.subscribe(ni=>{(ni||Ge.done)&&Ie.delete(dr)})}),u.v7_partialHydration&&qe&&C.errors&&Object.entries(C.errors).filter(Ge=>{let[dr]=Ge;return!Br.some(ni=>ni.route.id===dr)}).forEach(Ge=>{let[dr,ni]=Ge;Io=Object.assign(Io||{},{[dr]:ni})});let Ep=Wb(),Sp=Gb(N),Tp=Ep||Sp||kr.length>0;return or({matches:L,loaderData:Wl,errors:Io},Tp?{fetchers:new Map(C.fetchers)}:{})}function jb(S){if(S&&!si(S[1]))return{[S[0]]:S[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function MM(S){return S.forEach(P=>{let L=C.fetchers.get(P.key),B=yh(void 0,L?L.data:void 0);C.fetchers.set(P.key,B)}),new Map(C.fetchers)}function $M(S,P,L,B){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");O.has(S)&&Xa(S);let de=(B&&B.unstable_flushSync)===!0,be=s||a,$e=ky(C.location,C.matches,c,u.v7_prependBasename,L,u.v7_relativeSplatPath,P,B==null?void 0:B.relative),oe=Hc(be,$e,c),qe=Sg(oe,be,$e);if(qe.active&&qe.matches&&(oe=qe.matches),!oe){da(S,P,En(404,{pathname:$e}),{flushSync:de});return}let{path:Se,submission:Te,error:Tt}=R7(u.v7_normalizeFormMethod,!0,$e,B);if(Tt){da(S,P,Tt,{flushSync:de});return}let xt=Wh(oe,Se);if($=(B&&B.preventScrollReset)===!0,Te&&oo(Te.formMethod)){ZM(S,P,Se,xt,oe,qe.active,de,Te);return}se.set(S,{routeId:P,path:Se}),OM(S,P,Se,xt,oe,qe.active,de,Te)}async function ZM(S,P,L,B,de,be,$e,oe){Cg(),se.delete(S);function qe(Gt){if(!Gt.route.action&&!Gt.route.lazy){let ua=En(405,{method:oe.formMethod,pathname:L,routeId:P});return da(S,P,ua,{flushSync:$e}),!0}return!1}if(!be&&qe(B))return;let Se=C.fetchers.get(S);Qa(S,OY(oe,Se),{flushSync:$e});let Te=new AbortController,Tt=td(t.history,L,Te.signal,oe);if(be){let Gt=await kp(de,L,Tt.signal);if(Gt.type==="aborted")return;if(Gt.type==="error"){let{error:ua}=Cp(L,Gt);da(S,P,ua,{flushSync:$e});return}else if(Gt.matches){if(de=Gt.matches,B=Wh(de,L),qe(B))return}else{da(S,P,En(404,{pathname:L}),{flushSync:$e});return}}O.set(S,Te);let xt=M,gt=(await Yu("action",Tt,[B],de))[0];if(Tt.signal.aborted){O.get(S)===Te&&O.delete(S);return}if(u.v7_fetcherPersist&&Qe.has(S)){if(Uc(gt)||si(gt)){Qa(S,us(void 0));return}}else{if(Uc(gt))if(O.delete(S),N>xt){Qa(S,us(void 0));return}else return te.add(S),Qa(S,yh(oe)),Ku(Tt,gt,{fetcherSubmission:oe});if(si(gt)){da(S,P,gt.error);return}}if(jc(gt))throw En(400,{type:"defer-action"});let Br=C.navigation.location||C.location,kr=td(t.history,Br,Te.signal),Qu=s||a,Ja=C.navigation.state!=="idle"?Hc(Qu,C.navigation.location,c):C.matches;it(Ja,"Didn't find any matches after fetcher action");let Bl=++M;z.set(S,Bl);let ql=yh(oe,gt.data);C.fetchers.set(S,ql);let[Wl,Io]=P7(t.history,C,Ja,oe,Br,!1,u.v7_skipActionErrorRevalidation,H,Z,F,Qe,se,te,Qu,c,[B.route.id,gt]);Io.filter(Gt=>Gt.key!==S).forEach(Gt=>{let ua=Gt.key,Jb=C.fetchers.get(ua),zM=yh(void 0,Jb?Jb.data:void 0);C.fetchers.set(ua,zM),O.has(ua)&&Xa(ua),Gt.controller&&O.set(ua,Gt.controller)}),Wt({fetchers:new Map(C.fetchers)});let Ep=()=>Io.forEach(Gt=>Xa(Gt.key));Te.signal.addEventListener("abort",Ep);let{loaderResults:Sp,fetcherResults:Tp}=await Ub(C.matches,Ja,Wl,Io,kr);if(Te.signal.aborted)return;Te.signal.removeEventListener("abort",Ep),z.delete(S),O.delete(S),Io.forEach(Gt=>O.delete(Gt.key));let Ge=V7([...Sp,...Tp]);if(Ge){if(Ge.idx>=Wl.length){let Gt=Io[Ge.idx-Wl.length].key;te.add(Gt)}return Ku(kr,Ge.result)}let{loaderData:dr,errors:ni}=H7(C,C.matches,Wl,Sp,void 0,Io,Tp,Ie);if(C.fetchers.has(S)){let Gt=us(gt.data);C.fetchers.set(S,Gt)}Gb(Bl),C.navigation.state==="loading"&&Bl>N?(it(R,"Expected pending action"),Y&&Y.abort(),Ul(C.navigation.location,{matches:Ja,loaderData:dr,errors:ni,fetchers:new Map(C.fetchers)})):(Wt({errors:ni,loaderData:L7(C.loaderData,dr,Ja,ni),fetchers:new Map(C.fetchers)}),H=!1)}async function OM(S,P,L,B,de,be,$e,oe){let qe=C.fetchers.get(S);Qa(S,yh(oe,qe?qe.data:void 0),{flushSync:$e});let Se=new AbortController,Te=td(t.history,L,Se.signal);if(be){let gt=await kp(de,L,Te.signal);if(gt.type==="aborted")return;if(gt.type==="error"){let{error:Br}=Cp(L,gt);da(S,P,Br,{flushSync:$e});return}else if(gt.matches)de=gt.matches,B=Wh(de,L);else{da(S,P,En(404,{pathname:L}),{flushSync:$e});return}}O.set(S,Se);let Tt=M,At=(await Yu("loader",Te,[B],de))[0];if(jc(At)&&(At=await pR(At,Te.signal,!0)||At),O.get(S)===Se&&O.delete(S),!Te.signal.aborted){if(Qe.has(S)){Qa(S,us(void 0));return}if(Uc(At))if(N>Tt){Qa(S,us(void 0));return}else{te.add(S),await Ku(Te,At);return}if(si(At)){da(S,P,At.error);return}it(!jc(At),"Unhandled fetcher deferred data"),Qa(S,us(At.data))}}async function Ku(S,P,L){let{submission:B,fetcherSubmission:de,replace:be}=L===void 0?{}:L;P.response.headers.has("X-Remix-Revalidate")&&(H=!0);let $e=P.response.headers.get("Location");it($e,"Expected a Location header on the redirect Response"),$e=Z7($e,new URL(S.url),c);let oe=El(C.location,$e,{_isRedirect:!0});if(r){let At=!1;if(P.response.headers.has("X-Remix-Reload-Document"))At=!0;else if(rb.test($e)){const gt=t.history.createURL($e);At=gt.origin!==e.location.origin||ep(gt.pathname,c)==null}if(At){be?e.location.replace($e):e.location.assign($e);return}}Y=null;let qe=be===!0?Qt.Replace:Qt.Push,{formMethod:Se,formAction:Te,formEncType:Tt}=C.navigation;!B&&!de&&Se&&Te&&Tt&&(B=z7(C.navigation));let xt=B||de;if(mY.has(P.response.status)&&xt&&oo(xt.formMethod))await sc(qe,oe,{submission:or({},xt,{formAction:$e}),preventScrollReset:$});else{let At=q4(oe,B);await sc(qe,oe,{overrideNavigation:At,fetcherSubmission:de,preventScrollReset:$})}}async function Yu(S,P,L,B){try{let de=await kY(l,S,P,L,B,o,i);return await Promise.all(de.map((be,$e)=>{if(PY(be)){let oe=be.result;return{type:Mt.redirect,response:TY(oe,P,L[$e].route.id,B,c,u.v7_relativeSplatPath)}}return SY(be)}))}catch(de){return L.map(()=>({type:Mt.error,error:de}))}}async function Ub(S,P,L,B,de){let[be,...$e]=await Promise.all([L.length?Yu("loader",de,L,P):[],...B.map(oe=>{if(oe.matches&&oe.match&&oe.controller){let qe=td(t.history,oe.path,oe.controller.signal);return Yu("loader",qe,[oe.match],oe.matches).then(Se=>Se[0])}else return Promise.resolve({type:Mt.error,error:En(404,{pathname:oe.path})})})]);return await Promise.all([F7(S,L,be,be.map(()=>de.signal),!1,C.loaderData),F7(S,B.map(oe=>oe.match),$e,B.map(oe=>oe.controller?oe.controller.signal:null),!0)]),{loaderResults:be,fetcherResults:$e}}function Cg(){H=!0,Z.push(...Eg()),se.forEach((S,P)=>{O.has(P)&&(F.push(P),Xa(P))})}function Qa(S,P,L){L===void 0&&(L={}),C.fetchers.set(S,P),Wt({fetchers:new Map(C.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function da(S,P,L,B){B===void 0&&(B={});let de=Fd(C.matches,P);wp(S),Wt({errors:{[de.route.id]:L},fetchers:new Map(C.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Bb(S){return u.v7_fetcherPersist&&(je.set(S,(je.get(S)||0)+1),Qe.has(S)&&Qe.delete(S)),C.fetchers.get(S)||vY}function wp(S){let P=C.fetchers.get(S);O.has(S)&&!(P&&P.state==="loading"&&z.has(S))&&Xa(S),se.delete(S),z.delete(S),te.delete(S),Qe.delete(S),C.fetchers.delete(S)}function HM(S){if(u.v7_fetcherPersist){let P=(je.get(S)||0)-1;P<=0?(je.delete(S),Qe.add(S)):je.set(S,P)}else wp(S);Wt({fetchers:new Map(C.fetchers)})}function Xa(S){let P=O.get(S);it(P,"Expected fetch controller: "+S),P.abort(),O.delete(S)}function qb(S){for(let P of S){let L=Bb(P),B=us(L.data);C.fetchers.set(P,B)}}function Wb(){let S=[],P=!1;for(let L of te){let B=C.fetchers.get(L);it(B,"Expected fetcher: "+L),B.state==="loading"&&(te.delete(L),S.push(L),P=!0)}return qb(S),P}function Gb(S){let P=[];for(let[L,B]of z)if(B<S){let de=C.fetchers.get(L);it(de,"Expected fetcher: "+L),de.state==="loading"&&(Xa(L),z.delete(L),P.push(L))}return qb(P),P.length>0}function LM(S,P){let L=C.blockers.get(S)||gh;return rt.get(S)!==P&&rt.set(S,P),L}function Kb(S){C.blockers.delete(S),rt.delete(S)}function xp(S,P){let L=C.blockers.get(S)||gh;it(L.state==="unblocked"&&P.state==="blocked"||L.state==="blocked"&&P.state==="blocked"||L.state==="blocked"&&P.state==="proceeding"||L.state==="blocked"&&P.state==="unblocked"||L.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+P.state);let B=new Map(C.blockers);B.set(S,P),Wt({blockers:B})}function Yb(S){let{currentLocation:P,nextLocation:L,historyAction:B}=S;if(rt.size===0)return;rt.size>1&&Xs(!1,"A router only supports one blocker at a time");let de=Array.from(rt.entries()),[be,$e]=de[de.length-1],oe=C.blockers.get(be);if(!(oe&&oe.state==="proceeding")&&$e({currentLocation:P,nextLocation:L,historyAction:B}))return be}function kg(S){let P=En(404,{pathname:S}),L=s||a,{matches:B,route:de}=D7(L);return Eg(),{notFoundMatches:B,route:de,error:P}}function Cp(S,P){return{boundaryId:Fd(P.partialMatches).route.id,error:En(400,{type:"route-discovery",pathname:S,message:P.error!=null&&"message"in P.error?P.error:String(P.error)})}}function Eg(S){let P=[];return Ie.forEach((L,B)=>{(!S||S(B))&&(L.cancel(),P.push(B),Ie.delete(B))}),P}function NM(S,P,L){if(p=S,w=P,m=L||null,!y&&C.navigation===B4){y=!0;let B=Xb(C.location,C.matches);B!=null&&Wt({restoreScrollPosition:B})}return()=>{p=null,w=null,m=null}}function Qb(S,P){return m&&m(S,P.map(B=>BK(B,C.loaderData)))||S.key}function DM(S,P){if(p&&w){let L=Qb(S,P);p[L]=w()}}function Xb(S,P){if(p){let L=Qb(S,P),B=p[L];if(typeof B=="number")return B}return null}function Sg(S,P,L){if(d)if(S){let B=S[S.length-1].route;if(B.path&&(B.path==="*"||B.path.endsWith("/*")))return{active:!0,matches:fm(P,L,c,!0)}}else return{active:!0,matches:fm(P,L,c,!0)||[]};return{active:!1,matches:null}}async function kp(S,P,L){let B=S,de=B.length>0?B[B.length-1].route:null;for(;;){let be=s==null,$e=s||a;try{await xY(d,P,B,$e,o,i,Ur,L)}catch(Te){return{type:"error",error:Te,partialMatches:B}}finally{be&&(a=[...a])}if(L.aborted)return{type:"aborted"};let oe=Hc($e,P,c),qe=!1;if(oe){let Te=oe[oe.length-1].route;if(Te.index)return{type:"success",matches:oe};if(Te.path&&Te.path.length>0)if(Te.path==="*")qe=!0;else return{type:"success",matches:oe}}let Se=fm($e,P,c,!0);if(!Se||B.map(Te=>Te.route.id).join("-")===Se.map(Te=>Te.route.id).join("-"))return{type:"success",matches:qe?oe:null};if(B=Se,de=B[B.length-1].route,de.path==="*")return{type:"success",matches:B}}}function VM(S){o={},s=xf(S,i,void 0,o)}function FM(S,P){let L=s==null;uR(S,P,s||a,o,i),L&&(a=[...a],Wt({}))}return E={get basename(){return c},get future(){return u},get state(){return C},get routes(){return a},get window(){return e},initialize:la,subscribe:jl,enableScrollRestoration:NM,navigate:zb,fetch:$M,revalidate:IM,createHref:S=>t.history.createHref(S),encodeLocation:S=>t.history.encodeLocation(S),getFetcher:Bb,deleteFetcher:HM,dispose:Gu,getBlocker:LM,deleteBlocker:Kb,patchRoutes:FM,_internalFetchControllers:O,_internalActiveDeferreds:Ie,_internalSetRoutes:VM},E}function _Y(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function ky(t,e,r,n,i,o,a,s){let c,l;if(a){c=[];for(let u of e)if(c.push(u),u.route.id===a){l=u;break}}else c=e,l=e[e.length-1];let d=sY(i||".",aY(c,o),ep(t.pathname,r)||t.pathname,s==="path");return i==null&&(d.search=t.search,d.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!nb(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(d.pathname=d.pathname==="/"?r:al([r,d.pathname])),Nl(d)}function R7(t,e,r,n){if(!n||!_Y(n))return{path:r};if(n.formMethod&&!$Y(n.formMethod))return{path:r,error:En(405,{method:n.formMethod})};let i=()=>({path:r,error:En(400,{type:"invalid-body"})}),o=n.formMethod||"get",a=t?o.toUpperCase():o.toLowerCase(),s=hR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!oo(a))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((f,p)=>{let[m,w]=p;return""+f+m+"="+w+`
|
|
424
|
+
*/function or(){return or=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},or.apply(this,arguments)}var Qt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Qt||(Qt={}));const S7="popstate";function DK(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:r,v5Compat:n=!1}=t,i;i=e.map((f,p)=>d(f,typeof f=="string"?null:f.state,p===0?"default":void 0));let o=c(r??i.length-1),a=Qt.Pop,s=null;function c(f){return Math.min(Math.max(f,0),i.length-1)}function l(){return i[o]}function d(f,p,m){p===void 0&&(p=null);let w=El(i?l().pathname:"/",f,p,m);return Xs(w.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(f)),w}function u(f){return typeof f=="string"?f:Nl(f)}return{get index(){return o},get action(){return a},get location(){return l()},createHref:u,createURL(f){return new URL(u(f),"http://localhost")},encodeLocation(f){let p=typeof f=="string"?oa(f):f;return{pathname:p.pathname||"",search:p.search||"",hash:p.hash||""}},push(f,p){a=Qt.Push;let m=d(f,p);o+=1,i.splice(o,i.length,m),n&&s&&s({action:a,location:m,delta:1})},replace(f,p){a=Qt.Replace;let m=d(f,p);i[o]=m,n&&s&&s({action:a,location:m,delta:0})},go(f){a=Qt.Pop;let p=c(o+f),m=i[p];o=p,s&&s({action:a,location:m,delta:f})},listen(f){return s=f,()=>{s=null}}}}function VK(t){t===void 0&&(t={});function e(n,i){let{pathname:o,search:a,hash:s}=n.location;return El("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Nl(i)}return nR(e,r,null,t)}function FK(t){t===void 0&&(t={});function e(i,o){let{pathname:a="/",search:s="",hash:c=""}=oa(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),El("",{pathname:a,search:s,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(i,o){let a=i.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let c=i.location.href,l=c.indexOf("#");s=l===-1?c:c.slice(0,l)}return s+"#"+(typeof o=="string"?o:Nl(o))}function n(i,o){Xs(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return nR(e,r,n,t)}function it(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Xs(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function zK(){return Math.random().toString(36).substr(2,8)}function T7(t,e){return{usr:t.state,key:t.key,idx:e}}function El(t,e,r,n){return r===void 0&&(r=null),or({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?oa(e):e,{state:r,key:e&&e.key||n||zK()})}function Nl(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function oa(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function nR(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=Qt.Pop,c=null,l=d();l==null&&(l=0,a.replaceState(or({},a.state,{idx:l}),""));function d(){return(a.state||{idx:null}).idx}function u(){s=Qt.Pop;let w=d(),y=w==null?null:w-l;l=w,c&&c({action:s,location:m.location,delta:y})}function h(w,y){s=Qt.Push;let v=El(m.location,w,y);r&&r(v,w),l=d()+1;let g=T7(v,l),k=m.createHref(v);try{a.pushState(g,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(k)}o&&c&&c({action:s,location:m.location,delta:1})}function f(w,y){s=Qt.Replace;let v=El(m.location,w,y);r&&r(v,w),l=d();let g=T7(v,l),k=m.createHref(v);a.replaceState(g,"",k),o&&c&&c({action:s,location:m.location,delta:0})}function p(w){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof w=="string"?w:Nl(w);return v=v.replace(/ $/,"%20"),it(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let m={get action(){return s},get location(){return t(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(S7,u),c=w,()=>{i.removeEventListener(S7,u),c=null}},createHref(w){return e(i,w)},createURL:p,encodeLocation(w){let y=p(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:f,go(w){return a.go(w)}};return m}var Mt;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mt||(Mt={}));const jK=new Set(["lazy","caseSensitive","path","id","index","children"]);function UK(t){return t.index===!0}function xf(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,o)=>{let a=[...r,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(it(i.index!==!0||!i.children,"Cannot specify children on an index route"),it(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),UK(i)){let c=or({},i,e(i),{id:s});return n[s]=c,c}else{let c=or({},i,e(i),{id:s,children:void 0});return n[s]=c,i.children&&(c.children=xf(i.children,e,a,n)),c}})}function Hc(t,e,r){return r===void 0&&(r="/"),fm(t,e,r,!1)}function fm(t,e,r,n){let i=typeof e=="string"?oa(e):e,o=ep(i.pathname||"/",r);if(o==null)return null;let a=iR(t);qK(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let l=nY(o);s=tY(a[c],l,n)}return s}function BK(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function iR(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(o,a,s)=>{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(it(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=al([n,c.relativePath]),d=r.concat(c);o.children&&o.children.length>0&&(it(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),iR(o.children,e,d,l)),!(o.path==null&&!o.index)&&e.push({path:l,score:JK(l,o.index),routesMeta:d})};return t.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of oR(o.path))i(o,a,c)}),e}function oR(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=oR(n.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>t.startsWith("/")&&c===""?"/":c)}function qK(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:eY(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const WK=/^:[\w-]+$/,GK=3,KK=2,YK=1,QK=10,XK=-2,A7=t=>t==="*";function JK(t,e){let r=t.split("/"),n=r.length;return r.some(A7)&&(n+=XK),e&&(n+=KK),r.filter(i=>!A7(i)).reduce((i,o)=>i+(WK.test(o)?GK:o===""?YK:QK),n)}function eY(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function tY(t,e,r){r===void 0&&(r=!1);let{routesMeta:n}=t,i={},o="/",a=[];for(let s=0;s<n.length;++s){let c=n[s],l=s===n.length-1,d=o==="/"?e:e.slice(o.length)||"/",u=I7({path:c.relativePath,caseSensitive:c.caseSensitive,end:l},d),h=c.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=I7({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:al([o,u.pathname]),pathnameBase:cY(al([o,u.pathnameBase])),route:h}),u.pathnameBase!=="/"&&(o=al([o,u.pathnameBase]))}return a}function I7(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=rY(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((l,d,u)=>{let{paramName:h,isOptional:f}=d;if(h==="*"){let m=s[u]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[u];return f&&!p?l[h]=void 0:l[h]=(p||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:a,pattern:t}}function rY(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Xs(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function nY(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Xs(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function ep(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function iY(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?oa(t):t;return{pathname:r?r.startsWith("/")?r:oY(r,e):e,search:lY(n),hash:dY(i)}}function oY(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function U4(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function aR(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function aY(t,e){let r=aR(t);return e?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function sY(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=oa(t):(i=or({},t),it(!i.pathname||!i.pathname.includes("?"),U4("?","pathname","search",i)),it(!i.pathname||!i.pathname.includes("#"),U4("#","pathname","hash",i)),it(!i.search||!i.search.includes("#"),U4("#","search","hash",i)));let o=t===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let u=e.length-1;if(!n&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),u-=1;i.pathname=h.join("/")}s=u>=0?e[u]:"/"}let c=iY(i,s),l=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||d)&&(c.pathname+="/"),c}const al=t=>t.join("/").replace(/\/\/+/g,"/"),cY=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),lY=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dY=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class sR{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Lv(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const cR=["post","put","patch","delete"],uY=new Set(cR),hY=["get",...cR],fY=new Set(hY),pY=new Set([301,302,303,307,308]),mY=new Set([307,308]),B4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vY={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},rb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gY=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),lR="remix-router-transitions";function yY(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;it(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let S=t.detectErrorBoundary;i=P=>({hasErrorBoundary:S(P)})}else i=gY;let o={},a=xf(t.routes,i,void 0,o),s,c=t.basename||"/",l=t.unstable_dataStrategy||CY,d=t.unstable_patchRoutesOnMiss,u=or({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),h=null,f=new Set,p=null,m=null,w=null,y=t.hydrationData!=null,v=Hc(a,t.history.location,c),g=null;if(v==null&&!d){let S=En(404,{pathname:t.history.location.pathname}),{matches:P,route:L}=D7(a);v=P,g={[L.id]:S}}v&&d&&!t.hydrationData&&Sg(v,a,t.history.location.pathname).active&&(v=null);let k;if(!v)k=!1,v=[];else if(v.some(S=>S.route.lazy))k=!1;else if(!v.some(S=>S.route.loader))k=!0;else if(u.v7_partialHydration){let S=t.hydrationData?t.hydrationData.loaderData:null,P=t.hydrationData?t.hydrationData.errors:null,L=B=>B.route.loader?typeof B.route.loader=="function"&&B.route.loader.hydrate===!0?!1:S&&S[B.route.id]!==void 0||P&&P[B.route.id]!==void 0:!0;if(P){let B=v.findIndex(de=>P[de.route.id]!==void 0);k=v.slice(0,B+1).every(L)}else k=v.every(L)}else k=t.hydrationData!=null;let E,C={historyAction:t.history.action,location:t.history.location,matches:v,initialized:k,navigation:B4,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||g,fetchers:new Map,blockers:new Map},R=Qt.Pop,$=!1,Y,q=!1,ae=new Map,_e=null,Ve=!1,H=!1,Z=[],F=[],O=new Map,M=0,N=-1,z=new Map,te=new Set,se=new Map,je=new Map,Qe=new Set,Ie=new Map,rt=new Map,Ur=new Map,Ao=!1;function la(){if(h=t.history.listen(S=>{let{action:P,location:L,delta:B}=S;if(Ao){Ao=!1;return}Xs(rt.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let de=Yb({currentLocation:C.location,nextLocation:L,historyAction:P});if(de&&B!=null){Ao=!0,t.history.go(B*-1),xp(de,{state:"blocked",location:L,proceed(){xp(de,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),t.history.go(B)},reset(){let be=new Map(C.blockers);be.set(de,gh),Wt({blockers:be})}});return}return sc(P,L)}),r){HY(e,ae);let S=()=>LY(e,ae);e.addEventListener("pagehide",S),_e=()=>e.removeEventListener("pagehide",S)}return C.initialized||sc(Qt.Pop,C.location,{initialHydration:!0}),E}function Gu(){h&&h(),_e&&_e(),f.clear(),Y&&Y.abort(),C.fetchers.forEach((S,P)=>wp(P)),C.blockers.forEach((S,P)=>Kb(P))}function jl(S){return f.add(S),()=>f.delete(S)}function Wt(S,P){P===void 0&&(P={}),C=or({},C,S);let L=[],B=[];u.v7_fetcherPersist&&C.fetchers.forEach((de,be)=>{de.state==="idle"&&(Qe.has(be)?B.push(be):L.push(be))}),[...f].forEach(de=>de(C,{deletedFetchers:B,unstable_viewTransitionOpts:P.viewTransitionOpts,unstable_flushSync:P.flushSync===!0})),u.v7_fetcherPersist&&(L.forEach(de=>C.fetchers.delete(de)),B.forEach(de=>wp(de)))}function Ul(S,P,L){var B,de;let{flushSync:be}=L===void 0?{}:L,$e=C.actionData!=null&&C.navigation.formMethod!=null&&oo(C.navigation.formMethod)&&C.navigation.state==="loading"&&((B=S.state)==null?void 0:B._isRedirect)!==!0,oe;P.actionData?Object.keys(P.actionData).length>0?oe=P.actionData:oe=null:$e?oe=C.actionData:oe=null;let qe=P.loaderData?L7(C.loaderData,P.loaderData,P.matches||[],P.errors):C.loaderData,Ee=C.blockers;Ee.size>0&&(Ee=new Map(Ee),Ee.forEach((xt,At)=>Ee.set(At,gh)));let Te=$===!0||C.navigation.formMethod!=null&&oo(C.navigation.formMethod)&&((de=S.state)==null?void 0:de._isRedirect)!==!0;s&&(a=s,s=void 0),Ve||R===Qt.Pop||(R===Qt.Push?t.history.push(S,S.state):R===Qt.Replace&&t.history.replace(S,S.state));let Tt;if(R===Qt.Pop){let xt=ae.get(C.location.pathname);xt&&xt.has(S.pathname)?Tt={currentLocation:C.location,nextLocation:S}:ae.has(S.pathname)&&(Tt={currentLocation:S,nextLocation:C.location})}else if(q){let xt=ae.get(C.location.pathname);xt?xt.add(S.pathname):(xt=new Set([S.pathname]),ae.set(C.location.pathname,xt)),Tt={currentLocation:C.location,nextLocation:S}}Wt(or({},P,{actionData:oe,loaderData:qe,historyAction:R,location:S,initialized:!0,navigation:B4,revalidation:"idle",restoreScrollPosition:Xb(S,P.matches||C.matches),preventScrollReset:Te,blockers:Ee}),{viewTransitionOpts:Tt,flushSync:be===!0}),R=Qt.Pop,$=!1,q=!1,Ve=!1,H=!1,Z=[],F=[]}async function zb(S,P){if(typeof S=="number"){t.history.go(S);return}let L=ky(C.location,C.matches,c,u.v7_prependBasename,S,u.v7_relativeSplatPath,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:B,submission:de,error:be}=R7(u.v7_normalizeFormMethod,!1,L,P),$e=C.location,oe=El(C.location,B,P&&P.state);oe=or({},oe,t.history.encodeLocation(oe));let qe=P&&P.replace!=null?P.replace:void 0,Ee=Qt.Push;qe===!0?Ee=Qt.Replace:qe===!1||de!=null&&oo(de.formMethod)&&de.formAction===C.location.pathname+C.location.search&&(Ee=Qt.Replace);let Te=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,Tt=(P&&P.unstable_flushSync)===!0,xt=Yb({currentLocation:$e,nextLocation:oe,historyAction:Ee});if(xt){xp(xt,{state:"blocked",location:oe,proceed(){xp(xt,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),zb(S,P)},reset(){let At=new Map(C.blockers);At.set(xt,gh),Wt({blockers:At})}});return}return await sc(Ee,oe,{submission:de,pendingError:be,preventScrollReset:Te,replace:P&&P.replace,enableViewTransition:P&&P.unstable_viewTransition,flushSync:Tt})}function IM(){if(Cg(),Wt({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){sc(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}sc(R||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation})}}async function sc(S,P,L){Y&&Y.abort(),Y=null,R=S,Ve=(L&&L.startUninterruptedRevalidation)===!0,DM(C.location,C.matches),$=(L&&L.preventScrollReset)===!0,q=(L&&L.enableViewTransition)===!0;let B=s||a,de=L&&L.overrideNavigation,be=Hc(B,P,c),$e=(L&&L.flushSync)===!0,oe=Sg(be,B,P.pathname);if(oe.active&&oe.matches&&(be=oe.matches),!be){let{error:gt,notFoundMatches:Br,route:kr}=kg(P.pathname);Ul(P,{matches:Br,loaderData:{},errors:{[kr.id]:gt}},{flushSync:$e});return}if(C.initialized&&!H&&IY(C.location,P)&&!(L&&L.submission&&oo(L.submission.formMethod))){Ul(P,{matches:be},{flushSync:$e});return}Y=new AbortController;let qe=td(t.history,P,Y.signal,L&&L.submission),Ee;if(L&&L.pendingError)Ee=[Fd(be).route.id,{type:Mt.error,error:L.pendingError}];else if(L&&L.submission&&oo(L.submission.formMethod)){let gt=await RM(qe,P,L.submission,be,oe.active,{replace:L.replace,flushSync:$e});if(gt.shortCircuited)return;if(gt.pendingActionResult){let[Br,kr]=gt.pendingActionResult;if(si(kr)&&Lv(kr.error)&&kr.error.status===404){Y=null,Ul(P,{matches:gt.matches,loaderData:{},errors:{[Br]:kr.error}});return}}be=gt.matches||be,Ee=gt.pendingActionResult,de=q4(P,L.submission),$e=!1,oe.active=!1,qe=td(t.history,qe.url,qe.signal)}let{shortCircuited:Te,matches:Tt,loaderData:xt,errors:At}=await PM(qe,P,be,oe.active,de,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,$e,Ee);Te||(Y=null,Ul(P,or({matches:Tt||be},N7(Ee),{loaderData:xt,errors:At})))}async function RM(S,P,L,B,de,be){be===void 0&&(be={}),Cg();let $e=ZY(P,L);if(Wt({navigation:$e},{flushSync:be.flushSync===!0}),de){let Ee=await kp(B,P.pathname,S.signal);if(Ee.type==="aborted")return{shortCircuited:!0};if(Ee.type==="error"){let{boundaryId:Te,error:Tt}=Cp(P.pathname,Ee);return{matches:Ee.partialMatches,pendingActionResult:[Te,{type:Mt.error,error:Tt}]}}else if(Ee.matches)B=Ee.matches;else{let{notFoundMatches:Te,error:Tt,route:xt}=kg(P.pathname);return{matches:Te,pendingActionResult:[xt.id,{type:Mt.error,error:Tt}]}}}let oe,qe=Wh(B,P);if(!qe.route.action&&!qe.route.lazy)oe={type:Mt.error,error:En(405,{method:S.method,pathname:P.pathname,routeId:qe.route.id})};else if(oe=(await Yu("action",S,[qe],B))[0],S.signal.aborted)return{shortCircuited:!0};if(Uc(oe)){let Ee;return be&&be.replace!=null?Ee=be.replace:Ee=Z7(oe.response.headers.get("Location"),new URL(S.url),c)===C.location.pathname+C.location.search,await Ku(S,oe,{submission:L,replace:Ee}),{shortCircuited:!0}}if(jc(oe))throw En(400,{type:"defer-action"});if(si(oe)){let Ee=Fd(B,qe.route.id);return(be&&be.replace)!==!0&&(R=Qt.Push),{matches:B,pendingActionResult:[Ee.route.id,oe]}}return{matches:B,pendingActionResult:[qe.route.id,oe]}}async function PM(S,P,L,B,de,be,$e,oe,qe,Ee,Te){let Tt=de||q4(P,be),xt=be||$e||z7(Tt),At=!Ve&&(!u.v7_partialHydration||!qe);if(B){if(At){let dr=jb(Te);Wt(or({navigation:Tt},dr!==void 0?{actionData:dr}:{}),{flushSync:Ee})}let Ge=await kp(L,P.pathname,S.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){let{boundaryId:dr,error:ni}=Cp(P.pathname,Ge);return{matches:Ge.partialMatches,loaderData:{},errors:{[dr]:ni}}}else if(Ge.matches)L=Ge.matches;else{let{error:dr,notFoundMatches:ni,route:Gt}=kg(P.pathname);return{matches:ni,loaderData:{},errors:{[Gt.id]:dr}}}}let gt=s||a,[Br,kr]=P7(t.history,C,L,xt,P,u.v7_partialHydration&&qe===!0,u.v7_skipActionErrorRevalidation,H,Z,F,Qe,se,te,gt,c,Te);if(Eg(Ge=>!(L&&L.some(dr=>dr.route.id===Ge))||Br&&Br.some(dr=>dr.route.id===Ge)),N=++M,Br.length===0&&kr.length===0){let Ge=Wb();return Ul(P,or({matches:L,loaderData:{},errors:Te&&si(Te[1])?{[Te[0]]:Te[1].error}:null},N7(Te),Ge?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Ee}),{shortCircuited:!0}}if(At){let Ge={};if(!B){Ge.navigation=Tt;let dr=jb(Te);dr!==void 0&&(Ge.actionData=dr)}kr.length>0&&(Ge.fetchers=MM(kr)),Wt(Ge,{flushSync:Ee})}kr.forEach(Ge=>{O.has(Ge.key)&&Xa(Ge.key),Ge.controller&&O.set(Ge.key,Ge.controller)});let Qu=()=>kr.forEach(Ge=>Xa(Ge.key));Y&&Y.signal.addEventListener("abort",Qu);let{loaderResults:Ja,fetcherResults:Bl}=await Ub(C.matches,L,Br,kr,S);if(S.signal.aborted)return{shortCircuited:!0};Y&&Y.signal.removeEventListener("abort",Qu),kr.forEach(Ge=>O.delete(Ge.key));let ql=V7([...Ja,...Bl]);if(ql){if(ql.idx>=Br.length){let Ge=kr[ql.idx-Br.length].key;te.add(Ge)}return await Ku(S,ql.result,{replace:oe}),{shortCircuited:!0}}let{loaderData:Wl,errors:Io}=H7(C,L,Br,Ja,Te,kr,Bl,Ie);Ie.forEach((Ge,dr)=>{Ge.subscribe(ni=>{(ni||Ge.done)&&Ie.delete(dr)})}),u.v7_partialHydration&&qe&&C.errors&&Object.entries(C.errors).filter(Ge=>{let[dr]=Ge;return!Br.some(ni=>ni.route.id===dr)}).forEach(Ge=>{let[dr,ni]=Ge;Io=Object.assign(Io||{},{[dr]:ni})});let Ep=Wb(),Sp=Gb(N),Tp=Ep||Sp||kr.length>0;return or({matches:L,loaderData:Wl,errors:Io},Tp?{fetchers:new Map(C.fetchers)}:{})}function jb(S){if(S&&!si(S[1]))return{[S[0]]:S[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function MM(S){return S.forEach(P=>{let L=C.fetchers.get(P.key),B=yh(void 0,L?L.data:void 0);C.fetchers.set(P.key,B)}),new Map(C.fetchers)}function $M(S,P,L,B){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");O.has(S)&&Xa(S);let de=(B&&B.unstable_flushSync)===!0,be=s||a,$e=ky(C.location,C.matches,c,u.v7_prependBasename,L,u.v7_relativeSplatPath,P,B==null?void 0:B.relative),oe=Hc(be,$e,c),qe=Sg(oe,be,$e);if(qe.active&&qe.matches&&(oe=qe.matches),!oe){da(S,P,En(404,{pathname:$e}),{flushSync:de});return}let{path:Ee,submission:Te,error:Tt}=R7(u.v7_normalizeFormMethod,!0,$e,B);if(Tt){da(S,P,Tt,{flushSync:de});return}let xt=Wh(oe,Ee);if($=(B&&B.preventScrollReset)===!0,Te&&oo(Te.formMethod)){ZM(S,P,Ee,xt,oe,qe.active,de,Te);return}se.set(S,{routeId:P,path:Ee}),OM(S,P,Ee,xt,oe,qe.active,de,Te)}async function ZM(S,P,L,B,de,be,$e,oe){Cg(),se.delete(S);function qe(Gt){if(!Gt.route.action&&!Gt.route.lazy){let ua=En(405,{method:oe.formMethod,pathname:L,routeId:P});return da(S,P,ua,{flushSync:$e}),!0}return!1}if(!be&&qe(B))return;let Ee=C.fetchers.get(S);Qa(S,OY(oe,Ee),{flushSync:$e});let Te=new AbortController,Tt=td(t.history,L,Te.signal,oe);if(be){let Gt=await kp(de,L,Tt.signal);if(Gt.type==="aborted")return;if(Gt.type==="error"){let{error:ua}=Cp(L,Gt);da(S,P,ua,{flushSync:$e});return}else if(Gt.matches){if(de=Gt.matches,B=Wh(de,L),qe(B))return}else{da(S,P,En(404,{pathname:L}),{flushSync:$e});return}}O.set(S,Te);let xt=M,gt=(await Yu("action",Tt,[B],de))[0];if(Tt.signal.aborted){O.get(S)===Te&&O.delete(S);return}if(u.v7_fetcherPersist&&Qe.has(S)){if(Uc(gt)||si(gt)){Qa(S,us(void 0));return}}else{if(Uc(gt))if(O.delete(S),N>xt){Qa(S,us(void 0));return}else return te.add(S),Qa(S,yh(oe)),Ku(Tt,gt,{fetcherSubmission:oe});if(si(gt)){da(S,P,gt.error);return}}if(jc(gt))throw En(400,{type:"defer-action"});let Br=C.navigation.location||C.location,kr=td(t.history,Br,Te.signal),Qu=s||a,Ja=C.navigation.state!=="idle"?Hc(Qu,C.navigation.location,c):C.matches;it(Ja,"Didn't find any matches after fetcher action");let Bl=++M;z.set(S,Bl);let ql=yh(oe,gt.data);C.fetchers.set(S,ql);let[Wl,Io]=P7(t.history,C,Ja,oe,Br,!1,u.v7_skipActionErrorRevalidation,H,Z,F,Qe,se,te,Qu,c,[B.route.id,gt]);Io.filter(Gt=>Gt.key!==S).forEach(Gt=>{let ua=Gt.key,Jb=C.fetchers.get(ua),zM=yh(void 0,Jb?Jb.data:void 0);C.fetchers.set(ua,zM),O.has(ua)&&Xa(ua),Gt.controller&&O.set(ua,Gt.controller)}),Wt({fetchers:new Map(C.fetchers)});let Ep=()=>Io.forEach(Gt=>Xa(Gt.key));Te.signal.addEventListener("abort",Ep);let{loaderResults:Sp,fetcherResults:Tp}=await Ub(C.matches,Ja,Wl,Io,kr);if(Te.signal.aborted)return;Te.signal.removeEventListener("abort",Ep),z.delete(S),O.delete(S),Io.forEach(Gt=>O.delete(Gt.key));let Ge=V7([...Sp,...Tp]);if(Ge){if(Ge.idx>=Wl.length){let Gt=Io[Ge.idx-Wl.length].key;te.add(Gt)}return Ku(kr,Ge.result)}let{loaderData:dr,errors:ni}=H7(C,C.matches,Wl,Sp,void 0,Io,Tp,Ie);if(C.fetchers.has(S)){let Gt=us(gt.data);C.fetchers.set(S,Gt)}Gb(Bl),C.navigation.state==="loading"&&Bl>N?(it(R,"Expected pending action"),Y&&Y.abort(),Ul(C.navigation.location,{matches:Ja,loaderData:dr,errors:ni,fetchers:new Map(C.fetchers)})):(Wt({errors:ni,loaderData:L7(C.loaderData,dr,Ja,ni),fetchers:new Map(C.fetchers)}),H=!1)}async function OM(S,P,L,B,de,be,$e,oe){let qe=C.fetchers.get(S);Qa(S,yh(oe,qe?qe.data:void 0),{flushSync:$e});let Ee=new AbortController,Te=td(t.history,L,Ee.signal);if(be){let gt=await kp(de,L,Te.signal);if(gt.type==="aborted")return;if(gt.type==="error"){let{error:Br}=Cp(L,gt);da(S,P,Br,{flushSync:$e});return}else if(gt.matches)de=gt.matches,B=Wh(de,L);else{da(S,P,En(404,{pathname:L}),{flushSync:$e});return}}O.set(S,Ee);let Tt=M,At=(await Yu("loader",Te,[B],de))[0];if(jc(At)&&(At=await pR(At,Te.signal,!0)||At),O.get(S)===Ee&&O.delete(S),!Te.signal.aborted){if(Qe.has(S)){Qa(S,us(void 0));return}if(Uc(At))if(N>Tt){Qa(S,us(void 0));return}else{te.add(S),await Ku(Te,At);return}if(si(At)){da(S,P,At.error);return}it(!jc(At),"Unhandled fetcher deferred data"),Qa(S,us(At.data))}}async function Ku(S,P,L){let{submission:B,fetcherSubmission:de,replace:be}=L===void 0?{}:L;P.response.headers.has("X-Remix-Revalidate")&&(H=!0);let $e=P.response.headers.get("Location");it($e,"Expected a Location header on the redirect Response"),$e=Z7($e,new URL(S.url),c);let oe=El(C.location,$e,{_isRedirect:!0});if(r){let At=!1;if(P.response.headers.has("X-Remix-Reload-Document"))At=!0;else if(rb.test($e)){const gt=t.history.createURL($e);At=gt.origin!==e.location.origin||ep(gt.pathname,c)==null}if(At){be?e.location.replace($e):e.location.assign($e);return}}Y=null;let qe=be===!0?Qt.Replace:Qt.Push,{formMethod:Ee,formAction:Te,formEncType:Tt}=C.navigation;!B&&!de&&Ee&&Te&&Tt&&(B=z7(C.navigation));let xt=B||de;if(mY.has(P.response.status)&&xt&&oo(xt.formMethod))await sc(qe,oe,{submission:or({},xt,{formAction:$e}),preventScrollReset:$});else{let At=q4(oe,B);await sc(qe,oe,{overrideNavigation:At,fetcherSubmission:de,preventScrollReset:$})}}async function Yu(S,P,L,B){try{let de=await kY(l,S,P,L,B,o,i);return await Promise.all(de.map((be,$e)=>{if(PY(be)){let oe=be.result;return{type:Mt.redirect,response:TY(oe,P,L[$e].route.id,B,c,u.v7_relativeSplatPath)}}return SY(be)}))}catch(de){return L.map(()=>({type:Mt.error,error:de}))}}async function Ub(S,P,L,B,de){let[be,...$e]=await Promise.all([L.length?Yu("loader",de,L,P):[],...B.map(oe=>{if(oe.matches&&oe.match&&oe.controller){let qe=td(t.history,oe.path,oe.controller.signal);return Yu("loader",qe,[oe.match],oe.matches).then(Ee=>Ee[0])}else return Promise.resolve({type:Mt.error,error:En(404,{pathname:oe.path})})})]);return await Promise.all([F7(S,L,be,be.map(()=>de.signal),!1,C.loaderData),F7(S,B.map(oe=>oe.match),$e,B.map(oe=>oe.controller?oe.controller.signal:null),!0)]),{loaderResults:be,fetcherResults:$e}}function Cg(){H=!0,Z.push(...Eg()),se.forEach((S,P)=>{O.has(P)&&(F.push(P),Xa(P))})}function Qa(S,P,L){L===void 0&&(L={}),C.fetchers.set(S,P),Wt({fetchers:new Map(C.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function da(S,P,L,B){B===void 0&&(B={});let de=Fd(C.matches,P);wp(S),Wt({errors:{[de.route.id]:L},fetchers:new Map(C.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function Bb(S){return u.v7_fetcherPersist&&(je.set(S,(je.get(S)||0)+1),Qe.has(S)&&Qe.delete(S)),C.fetchers.get(S)||vY}function wp(S){let P=C.fetchers.get(S);O.has(S)&&!(P&&P.state==="loading"&&z.has(S))&&Xa(S),se.delete(S),z.delete(S),te.delete(S),Qe.delete(S),C.fetchers.delete(S)}function HM(S){if(u.v7_fetcherPersist){let P=(je.get(S)||0)-1;P<=0?(je.delete(S),Qe.add(S)):je.set(S,P)}else wp(S);Wt({fetchers:new Map(C.fetchers)})}function Xa(S){let P=O.get(S);it(P,"Expected fetch controller: "+S),P.abort(),O.delete(S)}function qb(S){for(let P of S){let L=Bb(P),B=us(L.data);C.fetchers.set(P,B)}}function Wb(){let S=[],P=!1;for(let L of te){let B=C.fetchers.get(L);it(B,"Expected fetcher: "+L),B.state==="loading"&&(te.delete(L),S.push(L),P=!0)}return qb(S),P}function Gb(S){let P=[];for(let[L,B]of z)if(B<S){let de=C.fetchers.get(L);it(de,"Expected fetcher: "+L),de.state==="loading"&&(Xa(L),z.delete(L),P.push(L))}return qb(P),P.length>0}function LM(S,P){let L=C.blockers.get(S)||gh;return rt.get(S)!==P&&rt.set(S,P),L}function Kb(S){C.blockers.delete(S),rt.delete(S)}function xp(S,P){let L=C.blockers.get(S)||gh;it(L.state==="unblocked"&&P.state==="blocked"||L.state==="blocked"&&P.state==="blocked"||L.state==="blocked"&&P.state==="proceeding"||L.state==="blocked"&&P.state==="unblocked"||L.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+P.state);let B=new Map(C.blockers);B.set(S,P),Wt({blockers:B})}function Yb(S){let{currentLocation:P,nextLocation:L,historyAction:B}=S;if(rt.size===0)return;rt.size>1&&Xs(!1,"A router only supports one blocker at a time");let de=Array.from(rt.entries()),[be,$e]=de[de.length-1],oe=C.blockers.get(be);if(!(oe&&oe.state==="proceeding")&&$e({currentLocation:P,nextLocation:L,historyAction:B}))return be}function kg(S){let P=En(404,{pathname:S}),L=s||a,{matches:B,route:de}=D7(L);return Eg(),{notFoundMatches:B,route:de,error:P}}function Cp(S,P){return{boundaryId:Fd(P.partialMatches).route.id,error:En(400,{type:"route-discovery",pathname:S,message:P.error!=null&&"message"in P.error?P.error:String(P.error)})}}function Eg(S){let P=[];return Ie.forEach((L,B)=>{(!S||S(B))&&(L.cancel(),P.push(B),Ie.delete(B))}),P}function NM(S,P,L){if(p=S,w=P,m=L||null,!y&&C.navigation===B4){y=!0;let B=Xb(C.location,C.matches);B!=null&&Wt({restoreScrollPosition:B})}return()=>{p=null,w=null,m=null}}function Qb(S,P){return m&&m(S,P.map(B=>BK(B,C.loaderData)))||S.key}function DM(S,P){if(p&&w){let L=Qb(S,P);p[L]=w()}}function Xb(S,P){if(p){let L=Qb(S,P),B=p[L];if(typeof B=="number")return B}return null}function Sg(S,P,L){if(d)if(S){let B=S[S.length-1].route;if(B.path&&(B.path==="*"||B.path.endsWith("/*")))return{active:!0,matches:fm(P,L,c,!0)}}else return{active:!0,matches:fm(P,L,c,!0)||[]};return{active:!1,matches:null}}async function kp(S,P,L){let B=S,de=B.length>0?B[B.length-1].route:null;for(;;){let be=s==null,$e=s||a;try{await xY(d,P,B,$e,o,i,Ur,L)}catch(Te){return{type:"error",error:Te,partialMatches:B}}finally{be&&(a=[...a])}if(L.aborted)return{type:"aborted"};let oe=Hc($e,P,c),qe=!1;if(oe){let Te=oe[oe.length-1].route;if(Te.index)return{type:"success",matches:oe};if(Te.path&&Te.path.length>0)if(Te.path==="*")qe=!0;else return{type:"success",matches:oe}}let Ee=fm($e,P,c,!0);if(!Ee||B.map(Te=>Te.route.id).join("-")===Ee.map(Te=>Te.route.id).join("-"))return{type:"success",matches:qe?oe:null};if(B=Ee,de=B[B.length-1].route,de.path==="*")return{type:"success",matches:B}}}function VM(S){o={},s=xf(S,i,void 0,o)}function FM(S,P){let L=s==null;uR(S,P,s||a,o,i),L&&(a=[...a],Wt({}))}return E={get basename(){return c},get future(){return u},get state(){return C},get routes(){return a},get window(){return e},initialize:la,subscribe:jl,enableScrollRestoration:NM,navigate:zb,fetch:$M,revalidate:IM,createHref:S=>t.history.createHref(S),encodeLocation:S=>t.history.encodeLocation(S),getFetcher:Bb,deleteFetcher:HM,dispose:Gu,getBlocker:LM,deleteBlocker:Kb,patchRoutes:FM,_internalFetchControllers:O,_internalActiveDeferreds:Ie,_internalSetRoutes:VM},E}function _Y(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function ky(t,e,r,n,i,o,a,s){let c,l;if(a){c=[];for(let u of e)if(c.push(u),u.route.id===a){l=u;break}}else c=e,l=e[e.length-1];let d=sY(i||".",aY(c,o),ep(t.pathname,r)||t.pathname,s==="path");return i==null&&(d.search=t.search,d.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!nb(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(d.pathname=d.pathname==="/"?r:al([r,d.pathname])),Nl(d)}function R7(t,e,r,n){if(!n||!_Y(n))return{path:r};if(n.formMethod&&!$Y(n.formMethod))return{path:r,error:En(405,{method:n.formMethod})};let i=()=>({path:r,error:En(400,{type:"invalid-body"})}),o=n.formMethod||"get",a=t?o.toUpperCase():o.toLowerCase(),s=hR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!oo(a))return i();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((f,p)=>{let[m,w]=p;return""+f+m+"="+w+`
|
|
425
425
|
`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!oo(a))return i();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}it(typeof FormData=="function","FormData is not available in this environment");let c,l;if(n.formData)c=Ey(n.formData),l=n.formData;else if(n.body instanceof FormData)c=Ey(n.body),l=n.body;else if(n.body instanceof URLSearchParams)c=n.body,l=O7(c);else if(n.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(n.body),l=O7(c)}catch{return i()}let d={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(oo(d.formMethod))return{path:r,submission:d};let u=oa(r);return e&&u.search&&nb(u.search)&&c.append("index",""),u.search="?"+c,{path:Nl(u),submission:d}}function bY(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function P7(t,e,r,n,i,o,a,s,c,l,d,u,h,f,p,m){let w=m?si(m[1])?m[1].error:m[1].data:void 0,y=t.createURL(e.location),v=t.createURL(i),g=m&&si(m[1])?m[0]:void 0,k=g?bY(r,g):r,E=m?m[1].statusCode:void 0,C=a&&E&&E>=400,R=k.filter((Y,q)=>{let{route:ae}=Y;if(ae.lazy)return!0;if(ae.loader==null)return!1;if(o)return typeof ae.loader!="function"||ae.loader.hydrate?!0:e.loaderData[ae.id]===void 0&&(!e.errors||e.errors[ae.id]===void 0);if(wY(e.loaderData,e.matches[q],Y)||c.some(H=>H===Y.route.id))return!0;let _e=e.matches[q],Ve=Y;return M7(Y,or({currentUrl:y,currentParams:_e.params,nextUrl:v,nextParams:Ve.params},n,{actionResult:w,actionStatus:E,defaultShouldRevalidate:C?!1:s||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||dR(_e,Ve)}))}),$=[];return u.forEach((Y,q)=>{if(o||!r.some(Z=>Z.route.id===Y.routeId)||d.has(q))return;let ae=Hc(f,Y.path,p);if(!ae){$.push({key:q,routeId:Y.routeId,path:Y.path,matches:null,match:null,controller:null});return}let _e=e.fetchers.get(q),Ve=Wh(ae,Y.path),H=!1;h.has(q)?H=!1:l.includes(q)?H=!0:_e&&_e.state!=="idle"&&_e.data===void 0?H=s:H=M7(Ve,or({currentUrl:y,currentParams:e.matches[e.matches.length-1].params,nextUrl:v,nextParams:r[r.length-1].params},n,{actionResult:w,actionStatus:E,defaultShouldRevalidate:C?!1:s})),H&&$.push({key:q,routeId:Y.routeId,path:Y.path,matches:ae,match:Ve,controller:new AbortController})}),[R,$]}function wY(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function dR(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function M7(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function xY(t,e,r,n,i,o,a,s){let c=[e,...r.map(l=>l.route.id)].join("-");try{let l=a.get(c);l||(l=t({path:e,matches:r,patch:(d,u)=>{s.aborted||uR(d,u,n,i,o)}}),a.set(c,l)),l&&RY(l)&&await l}finally{a.delete(c)}}function uR(t,e,r,n,i){if(t){var o;let a=n[t];it(a,"No route found to patch children into: routeId = "+t);let s=xf(e,i,[t,"patch",String(((o=a.children)==null?void 0:o.length)||"0")],n);a.children?a.children.push(...s):a.children=s}else{let a=xf(e,i,["patch",String(r.length||"0")],n);r.push(...a)}}async function $7(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];it(i,"No route found in manifest");let o={};for(let a in n){let c=i[a]!==void 0&&a!=="hasErrorBoundary";Xs(!c,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!jK.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,or({},e(i),{lazy:void 0}))}function CY(t){return Promise.all(t.matches.map(e=>e.resolve()))}async function kY(t,e,r,n,i,o,a,s){let c=n.reduce((u,h)=>u.add(h.route.id),new Set),l=new Set,d=await t({matches:i.map(u=>{let h=c.has(u.route.id);return or({},u,{shouldLoad:h,resolve:p=>(l.add(u.route.id),h?EY(e,r,u,o,a,p,s):Promise.resolve({type:Mt.data,result:void 0}))})}),request:r,params:i[0].params,context:s});return i.forEach(u=>it(l.has(u.route.id),'`match.resolve()` was not called for route id "'+u.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((u,h)=>c.has(i[h].route.id))}async function EY(t,e,r,n,i,o,a){let s,c,l=d=>{let u,h=new Promise((m,w)=>u=w);c=()=>u(),e.signal.addEventListener("abort",c);let f=m=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id+"]"))):d({request:e,params:r.params,context:a},...m!==void 0?[m]:[]),p;return o?p=o(m=>f(m)):p=(async()=>{try{return{type:"data",result:await f()}}catch(m){return{type:"error",result:m}}})(),Promise.race([p,h])};try{let d=r.route[t];if(r.route.lazy)if(d){let u,[h]=await Promise.all([l(d).catch(f=>{u=f}),$7(r.route,i,n)]);if(u!==void 0)throw u;s=h}else if(await $7(r.route,i,n),d=r.route[t],d)s=await l(d);else if(t==="action"){let u=new URL(e.url),h=u.pathname+u.search;throw En(405,{method:e.method,pathname:h,routeId:r.route.id})}else return{type:Mt.data,result:void 0};else if(d)s=await l(d);else{let u=new URL(e.url),h=u.pathname+u.search;throw En(404,{pathname:h})}it(s.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:Mt.error,result:d}}finally{c&&e.signal.removeEventListener("abort",c)}return s}async function SY(t){let{result:e,type:r,status:n}=t;if(fR(e)){let a;try{let s=e.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?e.body==null?a=null:a=await e.json():a=await e.text()}catch(s){return{type:Mt.error,error:s}}return r===Mt.error?{type:Mt.error,error:new sR(e.status,e.statusText,a),statusCode:e.status,headers:e.headers}:{type:Mt.data,data:a,statusCode:e.status,headers:e.headers}}if(r===Mt.error)return{type:Mt.error,error:e,statusCode:Lv(e)?e.status:n};if(MY(e)){var i,o;return{type:Mt.deferred,deferredData:e,statusCode:(i=e.init)==null?void 0:i.status,headers:((o=e.init)==null?void 0:o.headers)&&new Headers(e.init.headers)}}return{type:Mt.data,data:e,statusCode:n}}function TY(t,e,r,n,i,o){let a=t.headers.get("Location");if(it(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!rb.test(a)){let s=n.slice(0,n.findIndex(c=>c.route.id===r)+1);a=ky(new URL(e.url),s,i,!0,a,o),t.headers.set("Location",a)}return t}function Z7(t,e,r){if(rb.test(t)){let n=t,i=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=ep(i.pathname,r)!=null;if(i.origin===e.origin&&o)return i.pathname+i.search+i.hash}return t}function td(t,e,r,n){let i=t.createURL(hR(e)).toString(),o={signal:r};if(n&&oo(n.formMethod)){let{formMethod:a,formEncType:s}=n;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=Ey(n.formData):o.body=n.formData}return new Request(i,o)}function Ey(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function O7(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function AY(t,e,r,n,i,o){let a={},s=null,c,l=!1,d={},u=n&&si(n[1])?n[1].error:void 0;return r.forEach((h,f)=>{let p=e[f].route.id;if(it(!Uc(h),"Cannot handle redirect results in processLoaderData"),si(h)){let m=h.error;u!==void 0&&(m=u,u=void 0),s=s||{};{let w=Fd(t,p);s[w.route.id]==null&&(s[w.route.id]=m)}a[p]=void 0,l||(l=!0,c=Lv(h.error)?h.error.status:500),h.headers&&(d[p]=h.headers)}else jc(h)?(i.set(p,h.deferredData),a[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(c=h.statusCode),h.headers&&(d[p]=h.headers)):(a[p]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(c=h.statusCode),h.headers&&(d[p]=h.headers))}),u!==void 0&&n&&(s={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:s,statusCode:c||200,loaderHeaders:d}}function H7(t,e,r,n,i,o,a,s){let{loaderData:c,errors:l}=AY(e,r,n,i,s);for(let d=0;d<o.length;d++){let{key:u,match:h,controller:f}=o[d];it(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let p=a[d];if(!(f&&f.signal.aborted))if(si(p)){let m=Fd(t.matches,h==null?void 0:h.route.id);l&&l[m.route.id]||(l=or({},l,{[m.route.id]:p.error})),t.fetchers.delete(u)}else if(Uc(p))it(!1,"Unhandled fetcher revalidation redirect");else if(jc(p))it(!1,"Unhandled fetcher deferred data");else{let m=us(p.data);t.fetchers.set(u,m)}}return{loaderData:c,errors:l}}function L7(t,e,r,n){let i=or({},e);for(let o of r){let a=o.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(i[a]=e[a]):t[a]!==void 0&&o.route.loader&&(i[a]=t[a]),n&&n.hasOwnProperty(a))break}return i}function N7(t){return t?si(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function Fd(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function D7(t){let e=t.length===1?t[0]:t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function En(t,e){let{pathname:r,routeId:n,method:i,type:o,message:a}=e===void 0?{}:e,s="Unknown Server Error",c="Unknown @remix-run/router error";return t===400?(s="Bad Request",o==="route-discovery"?c='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnMiss()` '+(`function threw the following error:
|
|
426
426
|
`+a):i&&r&&n?c="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):t===403?(s="Forbidden",c='Route "'+n+'" does not match URL "'+r+'"'):t===404?(s="Not Found",c='No route matches URL "'+r+'"'):t===405&&(s="Method Not Allowed",i&&r&&n?c="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(c='Invalid request method "'+i.toUpperCase()+'"')),new sR(t||500,s,new Error(c),!0)}function V7(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(Uc(r))return{result:r,idx:e}}}function hR(t){let e=typeof t=="string"?oa(t):t;return Nl(or({},e,{hash:""}))}function IY(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function RY(t){return typeof t=="object"&&t!=null&&"then"in t}function PY(t){return fR(t.result)&&pY.has(t.result.status)}function jc(t){return t.type===Mt.deferred}function si(t){return t.type===Mt.error}function Uc(t){return(t&&t.type)===Mt.redirect}function MY(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function fR(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function $Y(t){return fY.has(t.toLowerCase())}function oo(t){return uY.has(t.toLowerCase())}async function F7(t,e,r,n,i,o){for(let a=0;a<r.length;a++){let s=r[a],c=e[a];if(!c)continue;let l=t.find(u=>u.route.id===c.route.id),d=l!=null&&!dR(l,c)&&(o&&o[c.route.id])!==void 0;if(jc(s)&&(i||d)){let u=n[a];it(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await pR(s,u,i).then(h=>{h&&(r[a]=h||r[a])})}}}async function pR(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Mt.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Mt.error,error:i}}return{type:Mt.data,data:t.deferredData.data}}}function nb(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Wh(t,e){let r=typeof e=="string"?oa(e).search:e.search;if(t[t.length-1].route.index&&nb(r||""))return t[t.length-1];let n=aR(t);return n[n.length-1]}function z7(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:o,json:a}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:e,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function q4(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ZY(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function yh(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function OY(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function us(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function HY(t,e){try{let r=t.sessionStorage.getItem(lR);if(r){let n=JSON.parse(r);for(let[i,o]of Object.entries(n||{}))o&&Array.isArray(o)&&e.set(i,new Set(o||[]))}}catch{}}function LY(t,e){if(e.size>0){let r={};for(let[n,i]of e)r[n]=[...i];try{t.sessionStorage.setItem(lR,JSON.stringify(r))}catch(n){Xs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}const NY=t=>{switch(t){case"hash":return FK({v5Compat:!0});case"memory":return DK({v5Compat:!0});case"browser":default:return VK({v5Compat:!0})}};var ur=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},d2=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Ai,pm,Sy,mm,Ho,Gh;const j7=t=>typeof t=="object"&&"key"in t;class DY extends Je{get basename(){return ur(this,pm,"f")}get origin(){return ur(this,Sy,"f")}get state(){return ur(this,Ho,"f").asObservable()}get value(){return ur(this,Ho,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(i=>ur(this,Ho,"f").subscribe(i)),Ai.set(this,void 0),pm.set(this,void 0),Sy.set(this,window.location.origin),mm.set(this,new jr),Ho.set(this,void 0),Gh.set(this,void 0);const{basename:r,history:n}=e;d2(this,Gh,e.logger||console,"f"),d2(this,pm,r,"f"),d2(this,Ai,n,"f"),d2(this,Ho,new Ll({action:ur(this,Ai,"f").action,location:ur(this,Ai,"f").location,delta:null}),"f"),ur(this,mm,"f").add(ur(this,Ai,"f").listen(i=>{i.location.key!==ur(this,Ho,"f").value.location.key&&ur(this,Ho,"f").next(i)}))}encodeLocation(e){return ur(this,Ai,"f").encodeLocation(e)}listen(e){const r=ur(this,Ho,"f").subscribe(e);return ur(this,Gh,"f").debug("Navigator::listen",e),()=>(ur(this,Gh,"f").debug("Navigator::listen[unsubscribe]",e),r.unsubscribe())}createHref(e){return ur(this,Ai,"f").createHref(e)}go(e){ur(this,Ai,"f").go(e)}push(e,r){if(!(j7(e)&&this._isDuplicateLocation(e)))return ur(this,Ai,"f").push(e,r)}replace(e,r){if(!(j7(e)&&this._isDuplicateLocation(e)))return ur(this,Ai,"f").replace(e,r)}createURL(e){return ur(this,Ai,"f").createURL(e)}_isDuplicateLocation(e){return e.key===ur(this,Ho,"f").value.location.key}dispose(){ur(this,mm,"f").unsubscribe()}}Ai=new WeakMap,pm=new WeakMap,Sy=new WeakMap,mm=new WeakMap,Ho=new WeakMap,Gh=new WeakMap;var Ci=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},U7=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ro,Ic;const B7=t=>t.replace(/\/+/g,"/");class VY extends aA{get state$(){return Ci(this,ro,"f").pipe(ze(e=>Ci(this,Ic,"f")?e.location.pathname.startsWith(Ci(this,Ic,"f")):!0),ye(({action:e,location:r})=>({action:e,location:this._localizePath(r)})))}get navigator(){return Ci(this,ro,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),ro.set(this,void 0),Ic.set(this,void 0);const{basename:r,history:n}=e.config;if(U7(this,Ic,r,"f"),!n)throw Error("no history provided!");U7(this,ro,new DY({basename:r,history:n}),"f"),this._addTeardown(()=>Ci(this,ro,"f").dispose())}createRouter(e){const r=Ci(this,ro,"f");console.debug("NavigationProvider::createRouter",e);const n=yY({basename:r.basename,history:r,routes:e,future:{v7_prependBasename:!0}});return n.initialize(),n}createHref(e){return Ci(this,ro,"f").createHref(this._createToPath(e??this.path))}createURL(e){return Ci(this,ro,"f").createURL(this._createToPath(e??this.path))}push(e,r){return Ci(this,ro,"f").push(this._createToPath(e),r)}replace(e,r){return Ci(this,ro,"f").replace(this._createToPath(e),r)}_localizePath(e){var r;const{pathname:n,search:i,hash:o}=e;return{pathname:B7(n.replace((r=Ci(this,Ic,"f"))!==null&&r!==void 0?r:"","")),search:i,hash:o}}_createToPath(e){const{pathname:r,search:n,hash:i}=typeof e=="string"?{pathname:e,search:void 0,hash:void 0}:e;return{pathname:B7([Ci(this,Ic,"f"),r==="/"?void 0:r].filter(o=>!!o).join("/")),search:n,hash:i}}}ro=new WeakMap,Ic=new WeakMap;const q7="4.0.6",FY="navigation",zY={version:new d1(q7),name:FY,configure:t=>{const e=new NK;return t!=null&&t.navigation&&(e.history=t.navigation.navigator),e},initialize:({config:t})=>{var e;return(e=t.history)!==null&&e!==void 0||(t.history=NY()),new VY({version:q7,config:t})},dispose({instance:t}){t.dispose()}},jY=(t,e)=>{const r=e;t.addConfig(Object.assign({module:zY},r))};var UY=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},_h=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ns;const mR="::",BY=t=>{const[e,r]=t.split(mR);return{namespace:e,id:r}};class vR{constructor(e,r){this.namespace=e,ns.set(this,void 0),UY(this,ns,r,"f")}*[(ns=new WeakMap,Symbol.iterator)](){for(const e of Object.values(this.getItems()))yield e}generateId(e){return[this.namespace,e].join(mR)}setItem(e,r){_h(this,ns,"f").setItem(this.generateId(e),JSON.stringify(r))}removeItem(e){_h(this,ns,"f").removeItem(this.generateId(e))}getItem(e){const r=_h(this,ns,"f").getItem(this.generateId(e));return r?JSON.parse(r):void 0}getItems(){return this._getItems().reduce((e,{id:r,value:n})=>Object.assign(e,{[r]:n}),{})}clear(){this._getItems().forEach(e=>{_h(this,ns,"f").removeItem(e.key)})}_getItems(){const{namespace:e}=this;return Object.entries(_h(this,ns,"f")).map(([r,n])=>Object.assign(Object.assign({},BY(r)),{key:r,value:n})).filter(r=>r.namespace===e).map(r=>Object.assign(r,{value:JSON.parse(r.value)}))}}class qY extends vR{constructor(e){super(e,window.localStorage)}}class WY extends vR{constructor(e){super(e,window.sessionStorage)}}const GY=(t,e)=>{switch(e){case"local":return new qY(t);case"session":return new WY(t)}throw Error("invalid type provided")};var W7=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const gR=(t,e)=>()=>W7(void 0,void 0,void 0,function*(){const{name:r,type:n="local"}=e??{},i=["FEATURES",r].filter(a=>!!a).join("_"),o=GY(i,n);return{connect:({provider:a})=>a.onFeatureToggle(({features:s})=>{s.map(c=>o.setItem(c.key,c))}),initial:()=>W7(void 0,void 0,void 0,function*(){const a=yield o.getItems();return t.map(s=>{const c=a[s.key];return Object.assign(Object.assign({},s),{enabled:c?c.enabled:s.enabled})})})}}),KY=t=>!(t.value==="0"||t.value==="false");var G7=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const yR=(t,e)=>{if(!t.length)return()=>Promise.resolve({});const r=t.map(n=>typeof n=="string"?n:n.key);return n=>G7(void 0,void 0,void 0,function*(){if(!n.hasModule("navigation"))throw Error("missing navigation module");const i=yield n.requireInstance("navigation"),{isFeatureEnabled:o=KY}=e??{};return{order:-1,initial:()=>G7(void 0,void 0,void 0,function*(){return t.filter(a=>typeof a!="string")}),connect(a){const{provider:s}=a,c=new jr,l=new rn,d=new rn,u=s.features$.pipe(ye(f=>Object.values(f)),ye(f=>f.filter(p=>r.includes(p.key)))),h=d.pipe(G1(u),ye(([f,p])=>{const m=new URLSearchParams(f.search);return p.reduce((w,y)=>{const{key:v}=y;if(m.has(v)){const g=m.get(v),k=o({feature:y,value:g,path:f});w.push({key:v,enabled:k})}return w},[])}),el(l));return c.add(h.subscribe(f=>s.toggleFeatures(f))),c.add(()=>d.complete()),c.add(i.navigator.listen(f=>{d.next(f.location)})),d.next(i.path),c}}})};var K7=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},vm,_R;class YY extends E6{constructor(){super(...arguments),vm.set(this,[]),_R.set(this,[])}addPlugin(e){return K7(this,vm,"f").push(e),this}enableLocalFeatures(...e){return this.addPlugin(gR(...e))}enableUrlToggle(...e){return this.addPlugin(yR(...e))}_processConfig(e,r){const n=vt(K7(this,vm,"f")).pipe(Yn(a=>a(r)),ze(a=>Object.keys(a).length>0),W1((a,s)=>(a.push(s),a),[]),Ff(),Ev()),i=n.pipe(P3(a=>vt(a.sort((s,c)=>{var l,d;return((l=s.order)!==null&&l!==void 0?l:0)-((d=c.order)!==null&&d!==void 0?d:0)})).pipe(ze(s=>!!s.initial),P3(s=>s.initial()),W1((s,c)=>{for(const l in c)l in s&&console.warn("FeatureFlagConfigurator",`duplicate entry of ${l}`);return s.push(...c),s},[]))));return rD({initial:i,plugins:n}).pipe(ye(a=>Object.assign(Object.assign({},e),a)))}}vm=new WeakMap,_R=new WeakMap;const V0={setFeatures:Jr("set_features_enabled",t=>({payload:t})),toggleFeatures:Jr("toggle_features_enabled",t=>({payload:t}))},QY=t=>Hu(t,e=>{e.addCase(V0.setFeatures,(r,n)=>{n.payload.forEach(i=>{r.features[i.key]=i})}),e.addCase(V0.toggleFeatures,(r,n)=>{n.payload.filter(i=>i.key in r.features).forEach(i=>{const{key:o}=i;r.features[o].enabled=!!i.enabled})})}),XY={features:{}},JY=t=>new jf(QY(t??XY)),eQ=t=>t.reduce((e,r)=>Object.assign(e,{[r.key]:r}),{});var W4=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},ki=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Y7=function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},hs,fs,gm;class tQ{get features(){return ki(this,fs,"f").value.features}get features$(){return ki(this,fs,"f").pipe(ye(e=>e.features))}constructor(e){hs.set(this,new jr),fs.set(this,void 0),gm.set(this,void 0);const{config:r,event:n}=e;Y7(this,gm,n,"f"),Y7(this,fs,JY({features:eQ(r.initial)}),"f"),Object.values(r.plugins).forEach(i=>{i.connect&&ki(this,hs,"f").add(i.connect({provider:this}))}),n&&this.onFeatureToggle(({features:i})=>n.dispatchEvent("onFeatureFlagsToggled",{detail:{features:i}}))}hasFeature(e){return e in this.features}setFeatures(e){ki(this,fs,"f").next(V0.setFeatures(e))}onFeatureToggle(e){const r=this.features$.pipe(a0(),ye(([n,i])=>Object.values(i).filter(o=>{var a;return o.enabled!==((a=n[o.key])===null||a===void 0?void 0:a.enabled)})),ye(n=>({features:n}))).subscribe(e);return ki(this,hs,"f").add(r),()=>ki(this,hs,"f").remove(r)}toggleFeature(e){return W4(this,void 0,void 0,function*(){return this.toggleFeatures([e])})}toggleFeatures(e){return W4(this,void 0,void 0,function*(){const{features:r}=ki(this,fs,"f").value,n=vt(e).pipe(Rt(i=>W4(this,void 0,void 0,function*(){var o;const a=r[i.key];if(a){if(a.readonly){console.warn(`skipped toggling flag [${a.key}], since readonly!`);return}}else{console.warn(`toggling flag [${i.key}] which is not registered`);return}const s=yield(o=ki(this,gm,"f"))===null||o===void 0?void 0:o.dispatchEvent("onFeatureFlagToggle",{source:this,detail:{feature:a,enable:i.enabled},cancelable:!0});if(s!=null&&s.canceled)console.debug(`skipped toggling flag [${a.key}], since aborted!`);else return i})),ze(i=>!!i),W1((i,o)=>i.concat([o]),[]),o0(()=>{ki(this,hs,"f").remove(n)})).subscribe(i=>{ki(this,fs,"f").next(V0.toggleFeatures(i))});ki(this,hs,"f").add(n)})}getFeature(e){return this.features[e]}getFeatures(e){return Object.values(this.features).filter(e)}dispose(){ki(this,hs,"f").unsubscribe()}}hs=new WeakMap,fs=new WeakMap,gm=new WeakMap;var bR=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):i(d.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const rQ="featureFlag",nQ={name:rQ,configure:()=>new YY,initialize:t=>bR(void 0,void 0,void 0,function*(){const e=yield t.config.createConfigAsync(t),r=t.hasModule("event")?yield t.requireInstance("event"):void 0;return new tQ({config:e,event:r})})},iQ=(t,e)=>{t.addConfig({module:nQ,configure:r=>bR(void 0,void 0,void 0,function*(){if(e)return Promise.resolve(e(r))})})},oQ=async t=>{t.configureServiceDiscovery({client:{baseUri:"https://discovery.fusion.equinor.com/service-registry/environments/ci/services",defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),t.configureHttpClient("app",{baseUri:new URL("/apps-proxy/",window.location.href).href,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}),t.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),_K(t),jY(t),EB(t),LK(t,e=>{e.setSourceSystem({subSystem:"CLI",identifier:"fusion-cli",name:"Fusion CLI"})}),iQ(t,e=>{e.addPlugin(gR([{key:"fusionDebug",title:"Fusion debug log",description:"Show Fusion debug log in console"},{key:"pinkBg",title:"Use pink bg?",description:"When enabled the background should be pink"}])),e.addPlugin(yR(["fusionDebug"]))}),t.onConfigured(()=>{console.log("framework config done")}),t.onInitialized(async e=>{e.auth.defaultClient.setLogger(new SA(0)),console.debug("📒 subscribing to all events")})},aQ="bookmarkId",sQ=t=>{const{event:e,context:r,navigation:{navigator:n}}=Cn().modules;_.useLayoutEffect(()=>e.addEventListener("onBookmarkChanged",o=>{var a;const{appKey:s,context:c}=o.detail,l=t.resolveAppPath(s);if(n.location.pathname!==l){const{hash:d,search:u}=n.location,h={pathname:l,search:cQ(u),hash:d};n.push(h)}c&&((a=r.currentContext)===null||a===void 0?void 0:a.id)!==c.id&&r.setCurrentContextByIdAsync(c.id)}),[t,r,e,n])};function cQ(t){const e=new URLSearchParams(t);return e.delete(aQ),`?${e.toString()}`}const lQ=()=>{const t=Cn().modules.event,[e,r]=_.useState(!1);return _.useEffect(()=>{const n=t.addEventListener("onBookmarkChanged",()=>{r(!1)}),i=t.addEventListener("onAddCreator",()=>{r(!0)});return()=>{n(),i()}},[t]),e};/**
|
|
427
427
|
* React Router v6.25.1
|
|
@@ -442,7 +442,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
442
442
|
*
|
|
443
443
|
* @license MIT
|
|
444
444
|
*/const TQ="6";try{window.__reactRouterVersion=TQ}catch{}const AQ=_.createContext({isTransitioning:!1}),IQ=_.createContext(new Map),RQ="startTransition",X7=_E[RQ],PQ="flushSync",J7=gO[PQ];function MQ(t){X7?X7(t):t()}function bh(t){J7?J7(t):t()}class $Q{constructor(){this.status="pending",this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function ZQ(t){let{fallbackElement:e,router:r,future:n}=t,[i,o]=_.useState(r.state),[a,s]=_.useState(),[c,l]=_.useState({isTransitioning:!1}),[d,u]=_.useState(),[h,f]=_.useState(),[p,m]=_.useState(),w=_.useRef(new Map),{v7_startTransition:y}=n||{},v=_.useCallback($=>{y?MQ($):$()},[y]),g=_.useCallback(($,Y)=>{let{deletedFetchers:q,unstable_flushSync:ae,unstable_viewTransitionOpts:_e}=Y;q.forEach(H=>w.current.delete(H)),$.fetchers.forEach((H,Z)=>{H.data!==void 0&&w.current.set(Z,H.data)});let Ve=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!_e||Ve){ae?bh(()=>o($)):v(()=>o($));return}if(ae){bh(()=>{h&&(d&&d.resolve(),h.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:_e.currentLocation,nextLocation:_e.nextLocation})});let H=r.window.document.startViewTransition(()=>{bh(()=>o($))});H.finished.finally(()=>{bh(()=>{u(void 0),f(void 0),s(void 0),l({isTransitioning:!1})})}),bh(()=>f(H));return}h?(d&&d.resolve(),h.skipTransition(),m({state:$,currentLocation:_e.currentLocation,nextLocation:_e.nextLocation})):(s($),l({isTransitioning:!0,flushSync:!1,currentLocation:_e.currentLocation,nextLocation:_e.nextLocation}))},[r.window,h,d,w,v]);_.useLayoutEffect(()=>r.subscribe(g),[r,g]),_.useEffect(()=>{c.isTransitioning&&!c.flushSync&&u(new $Q)},[c]),_.useEffect(()=>{if(d&&a&&r.window){let $=a,Y=d.promise,q=r.window.document.startViewTransition(async()=>{v(()=>o($)),await Y});q.finished.finally(()=>{u(void 0),f(void 0),s(void 0),l({isTransitioning:!1})}),f(q)}},[v,a,d,r.window]),_.useEffect(()=>{d&&a&&i.location.key===a.location.key&&d.resolve()},[d,h,i.location,a]),_.useEffect(()=>{!c.isTransitioning&&p&&(s(p.state),l({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),m(void 0))},[c.isTransitioning,p]),_.useEffect(()=>{},[]);let k=_.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:$=>r.navigate($),push:($,Y,q)=>r.navigate($,{state:Y,preventScrollReset:q==null?void 0:q.preventScrollReset}),replace:($,Y,q)=>r.navigate($,{replace:!0,state:Y,preventScrollReset:q==null?void 0:q.preventScrollReset})}),[r]),E=r.basename||"/",C=_.useMemo(()=>({router:r,navigator:k,static:!1,basename:E}),[r,k,E]),R=_.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return _.createElement(_.Fragment,null,_.createElement(wR.Provider,{value:C},_.createElement(xR.Provider,{value:i},_.createElement(IQ.Provider,{value:w.current},_.createElement(AQ.Provider,{value:c},_.createElement(SQ,{basename:E,location:i.location,navigationType:i.historyAction,navigator:k,future:R},i.initialized||r.future.v7_partialHydration?_.createElement(OQ,{routes:r.routes,future:r.future,state:i}):e))))),null)}const OQ=_.memo(HQ);function HQ(t){let{routes:e,future:r,state:n}=t;return pQ(e,void 0,n,r)}var ex;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(ex||(ex={}));var tx;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(tx||(tx={}));const ER=(t,e,r)=>{_.useEffect(()=>{const n=t.subscribe(e);return n.add(r),()=>n.unsubscribe()},[t,e])},LQ=(t,e,r)=>{_.useLayoutEffect(()=>{const n=t.subscribe(e);return n.add(r),()=>n.unsubscribe()},[t,e])};function Sl(t,e){const r=_.useCallback(()=>{var u,h;return(h=(u=e==null?void 0:e.initial)!==null&&u!==void 0?u:t.value)!==null&&h!==void 0?h:void 0},[t,e==null?void 0:e.initial]),n=_.useRef(r()),[i,o]=_.useState(n.current),[a,s]=_.useState(null),[c,l]=_.useState(!1);_.useLayoutEffect(()=>{n.current=r()},[r]),_.useLayoutEffect(()=>{s(null),l(!1),o(n.current)},[o,s,l,t,n]);const d=_.useMemo(()=>({next:o,error:s,complete:()=>l(!0)}),[o,s,l]);return LQ(t,d,e==null?void 0:e.teardown),{value:i,error:a,complete:c}}var _n=function(){return _n=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_n.apply(this,arguments)};function Cf(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}var Vt="-ms-",k1="-moz-",yt="-webkit-",SR="comm",Nv="rule",ab="decl",NQ="@import",TR="@keyframes",DQ="@layer",AR=Math.abs,sb=String.fromCharCode,Iy=Object.assign;function VQ(t,e){return Fr(t,0)^45?(((e<<2^Fr(t,0))<<2^Fr(t,1))<<2^Fr(t,2))<<2^Fr(t,3):0}function IR(t){return t.trim()}function wa(t,e){return(t=e.exec(t))?t[0]:t}function Ke(t,e,r){return t.replace(e,r)}function ym(t,e,r){return t.indexOf(e,r)}function Fr(t,e){return t.charCodeAt(e)|0}function xu(t,e,r){return t.slice(e,r)}function jo(t){return t.length}function RR(t){return t.length}function Kh(t,e){return e.push(t),t}function FQ(t,e){return t.map(e).join("")}function rx(t,e){return t.filter(function(r){return!wa(r,e)})}var Dv=1,Cu=1,PR=0,ji=0,Ar=0,Vu="";function Vv(t,e,r,n,i,o,a,s){return{value:t,root:e,parent:r,type:n,props:i,children:o,line:Dv,column:Cu,length:a,return:"",siblings:s}}function ps(t,e){return Iy(Vv("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function rd(t){for(;t.root;)t=ps(t.root,{children:[t]});Kh(t,t.siblings)}function zQ(){return Ar}function jQ(){return Ar=ji>0?Fr(Vu,--ji):0,Cu--,Ar===10&&(Cu=1,Dv--),Ar}function vo(){return Ar=ji<PR?Fr(Vu,ji++):0,Cu++,Ar===10&&(Cu=1,Dv++),Ar}function sl(){return Fr(Vu,ji)}function _m(){return ji}function Fv(t,e){return xu(Vu,t,e)}function Ry(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function UQ(t){return Dv=Cu=1,PR=jo(Vu=t),ji=0,[]}function BQ(t){return Vu="",t}function G4(t){return IR(Fv(ji-1,Py(t===91?t+2:t===40?t+1:t)))}function qQ(t){for(;(Ar=sl())&&Ar<33;)vo();return Ry(t)>2||Ry(Ar)>3?"":" "}function WQ(t,e){for(;--e&&vo()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return Fv(t,_m()+(e<6&&sl()==32&&vo()==32))}function Py(t){for(;vo();)switch(Ar){case t:return ji;case 34:case 39:t!==34&&t!==39&&Py(Ar);break;case 40:t===41&&Py(t);break;case 92:vo();break}return ji}function GQ(t,e){for(;vo()&&t+Ar!==57;)if(t+Ar===84&&sl()===47)break;return"/*"+Fv(e,ji-1)+"*"+sb(t===47?t:vo())}function KQ(t){for(;!Ry(sl());)vo();return Fv(t,ji)}function YQ(t){return BQ(bm("",null,null,null,[""],t=UQ(t),0,[0],t))}function bm(t,e,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,h=0,f=0,p=0,m=1,w=1,y=1,v=0,g="",k=i,E=o,C=n,R=g;w;)switch(p=v,v=vo()){case 40:if(p!=108&&Fr(R,u-1)==58){ym(R+=Ke(G4(v),"&","&\f"),"&\f",AR(l?s[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:R+=G4(v);break;case 9:case 10:case 13:case 32:R+=qQ(p);break;case 92:R+=WQ(_m()-1,7);continue;case 47:switch(sl()){case 42:case 47:Kh(QQ(GQ(vo(),_m()),e,r,c),c);break;default:R+="/"}break;case 123*m:s[l++]=jo(R)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+d:y==-1&&(R=Ke(R,/\f/g,"")),f>0&&jo(R)-u&&Kh(f>32?ix(R+";",n,r,u-1,c):ix(Ke(R," ","")+";",n,r,u-2,c),c);break;case 59:R+=";";default:if(Kh(C=nx(R,e,r,l,d,i,s,g,k=[],E=[],u,o),o),v===123)if(d===0)bm(R,e,C,C,k,o,u,s,E);else switch(h===99&&Fr(R,3)===110?100:h){case 100:case 108:case 109:case 115:bm(t,C,C,n&&Kh(nx(t,C,C,0,0,i,s,g,i,k=[],u,E),E),i,E,u,s,n?k:E);break;default:bm(R,C,C,C,[""],E,0,s,E)}}l=d=f=0,m=y=1,g=R="",u=a;break;case 58:u=1+jo(R),f=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&jQ()==125)continue}switch(R+=sb(v),v*m){case 38:y=d>0?1:(R+="\f",-1);break;case 44:s[l++]=(jo(R)-1)*y,y=1;break;case 64:sl()===45&&(R+=G4(vo())),h=sl(),d=u=jo(g=R+=KQ(_m())),v++;break;case 45:p===45&&jo(R)==2&&(m=0)}}return o}function nx(t,e,r,n,i,o,a,s,c,l,d,u){for(var h=i-1,f=i===0?o:[""],p=RR(f),m=0,w=0,y=0;m<n;++m)for(var v=0,g=xu(t,h+1,h=AR(w=a[m])),k=t;v<p;++v)(k=IR(w>0?f[v]+" "+g:Ke(g,/&\f/g,f[v])))&&(c[y++]=k);return Vv(t,e,r,i===0?Nv:s,c,l,d,u)}function QQ(t,e,r,n){return Vv(t,e,r,SR,sb(zQ()),xu(t,2,-2),0,n)}function ix(t,e,r,n,i){return Vv(t,e,r,ab,xu(t,0,n),xu(t,n+1,-1),n,i)}function MR(t,e,r){switch(VQ(t,e)){case 5103:return yt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yt+t+t;case 4789:return k1+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return yt+t+k1+t+Vt+t+t;case 5936:switch(Fr(t,e+11)){case 114:return yt+t+Vt+Ke(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return yt+t+Vt+Ke(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return yt+t+Vt+Ke(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return yt+t+Vt+t+t;case 6165:return yt+t+Vt+"flex-"+t+t;case 5187:return yt+t+Ke(t,/(\w+).+(:[^]+)/,yt+"box-$1$2"+Vt+"flex-$1$2")+t;case 5443:return yt+t+Vt+"flex-item-"+Ke(t,/flex-|-self/g,"")+(wa(t,/flex-|baseline/)?"":Vt+"grid-row-"+Ke(t,/flex-|-self/g,""))+t;case 4675:return yt+t+Vt+"flex-line-pack"+Ke(t,/align-content|flex-|-self/g,"")+t;case 5548:return yt+t+Vt+Ke(t,"shrink","negative")+t;case 5292:return yt+t+Vt+Ke(t,"basis","preferred-size")+t;case 6060:return yt+"box-"+Ke(t,"-grow","")+yt+t+Vt+Ke(t,"grow","positive")+t;case 4554:return yt+Ke(t,/([^-])(transform)/g,"$1"+yt+"$2")+t;case 6187:return Ke(Ke(Ke(t,/(zoom-|grab)/,yt+"$1"),/(image-set)/,yt+"$1"),t,"")+t;case 5495:case 3959:return Ke(t,/(image-set\([^]*)/,yt+"$1$`$1");case 4968:return Ke(Ke(t,/(.+:)(flex-)?(.*)/,yt+"box-pack:$3"+Vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yt+t+t;case 4200:if(!wa(t,/flex-|baseline/))return Vt+"grid-column-align"+xu(t,e)+t;break;case 2592:case 3360:return Vt+Ke(t,"template-","")+t;case 4384:case 3616:return r&&r.some(function(n,i){return e=i,wa(n.props,/grid-\w+-end/)})?~ym(t+(r=r[e].value),"span",0)?t:Vt+Ke(t,"-start","")+t+Vt+"grid-row-span:"+(~ym(r,"span",0)?wa(r,/\d+/):+wa(r,/\d+/)-+wa(t,/\d+/))+";":Vt+Ke(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(n){return wa(n.props,/grid-\w+-start/)})?t:Vt+Ke(Ke(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return Ke(t,/(.+)-inline(.+)/,yt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jo(t)-1-e>6)switch(Fr(t,e+1)){case 109:if(Fr(t,e+4)!==45)break;case 102:return Ke(t,/(.+:)(.+)-([^]+)/,"$1"+yt+"$2-$3$1"+k1+(Fr(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ym(t,"stretch",0)?MR(Ke(t,"stretch","fill-available"),e,r)+t:t}break;case 5152:case 5920:return Ke(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,o,a,s,c,l){return Vt+i+":"+o+l+(a?Vt+i+"-span:"+(s?c:+c-+o)+l:"")+t});case 4949:if(Fr(t,e+6)===121)return Ke(t,":",":"+yt)+t;break;case 6444:switch(Fr(t,Fr(t,14)===45?18:11)){case 120:return Ke(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+yt+(Fr(t,14)===45?"inline-":"")+"box$3$1"+yt+"$2$3$1"+Vt+"$2box$3")+t;case 100:return Ke(t,":",":"+Vt)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ke(t,"scroll-","scroll-snap-")+t}return t}function F0(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function XQ(t,e,r,n){switch(t.type){case DQ:if(t.children.length)break;case NQ:case ab:return t.return=t.return||t.value;case SR:return"";case TR:return t.return=t.value+"{"+F0(t.children,n)+"}";case Nv:if(!jo(t.value=t.props.join(",")))return""}return jo(r=F0(t.children,n))?t.return=t.value+"{"+r+"}":""}function JQ(t){var e=RR(t);return function(r,n,i,o){for(var a="",s=0;s<e;s++)a+=t[s](r,n,i,o)||"";return a}}function eX(t){return function(e){e.root||(e=e.return)&&t(e)}}function tX(t,e,r,n){if(t.length>-1&&!t.return)switch(t.type){case ab:t.return=MR(t.value,t.length,r);return;case TR:return F0([ps(t,{value:Ke(t.value,"@","@"+yt)})],n);case Nv:if(t.length)return FQ(r=t.props,function(i){switch(wa(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":rd(ps(t,{props:[Ke(i,/:(read-\w+)/,":"+k1+"$1")]})),rd(ps(t,{props:[i]})),Iy(t,{props:rx(r,n)});break;case"::placeholder":rd(ps(t,{props:[Ke(i,/:(plac\w+)/,":"+yt+"input-$1")]})),rd(ps(t,{props:[Ke(i,/:(plac\w+)/,":"+k1+"$1")]})),rd(ps(t,{props:[Ke(i,/:(plac\w+)/,Vt+"input-$1")]})),rd(ps(t,{props:[i]})),Iy(t,{props:rx(r,n)});break}return""})}}var rX={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},oi={},ku=typeof process<"u"&&oi!==void 0&&(oi.REACT_APP_SC_ATTR||oi.SC_ATTR)||"data-styled",$R="active",ZR="data-styled-version",zv="6.1.12",cb=`/*!sc*/
|
|
445
|
-
`,z0=typeof window<"u"&&"HTMLElement"in window,nX=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&oi!==void 0&&oi.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&oi.REACT_APP_SC_DISABLE_SPEEDY!==""?oi.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&oi.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&oi!==void 0&&oi.SC_DISABLE_SPEEDY!==void 0&&oi.SC_DISABLE_SPEEDY!==""&&oi.SC_DISABLE_SPEEDY!=="false"&&oi.SC_DISABLE_SPEEDY),jv=Object.freeze([]),Eu=Object.freeze({});function iX(t,e,r){return r===void 0&&(r=Eu),t.theme!==r.theme&&t.theme||e||r.theme}var OR=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),oX=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,aX=/(^-|-$)/g;function ox(t){return t.replace(oX,"-").replace(aX,"")}var sX=/(a)(d)/gi,u2=52,ax=function(t){return String.fromCharCode(t+(t>25?39:97))};function My(t){var e,r="";for(e=Math.abs(t);e>u2;e=e/u2|0)r=ax(e%u2)+r;return(ax(e%u2)+r).replace(sX,"$1-$2")}var K4,HR=5381,zd=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},LR=function(t){return zd(HR,t)};function NR(t){return My(LR(t)>>>0)}function cX(t){return t.displayName||t.name||"Component"}function Y4(t){return typeof t=="string"&&!0}var DR=typeof Symbol=="function"&&Symbol.for,VR=DR?Symbol.for("react.memo"):60115,lX=DR?Symbol.for("react.forward_ref"):60112,dX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hX=((K4={})[lX]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},K4[VR]=FR,K4);function sx(t){return("type"in(e=t)&&e.type.$$typeof)===VR?FR:"$$typeof"in t?hX[t.$$typeof]:dX;var e}var fX=Object.defineProperty,pX=Object.getOwnPropertyNames,cx=Object.getOwnPropertySymbols,mX=Object.getOwnPropertyDescriptor,vX=Object.getPrototypeOf,lx=Object.prototype;function zR(t,e,r){if(typeof e!="string"){if(lx){var n=vX(e);n&&n!==lx&&zR(t,n,r)}var i=pX(e);cx&&(i=i.concat(cx(e)));for(var o=sx(t),a=sx(e),s=0;s<i.length;++s){var c=i[s];if(!(c in uX||r&&r[c]||a&&c in a||o&&c in o)){var l=mX(e,c);try{fX(t,c,l)}catch{}}}}return t}function Tl(t){return typeof t=="function"}function lb(t){return typeof t=="object"&&"styledComponentId"in t}function Bc(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function $y(t,e){if(t.length===0)return"";for(var r=t[0],n=1;n<t.length;n++)r+=t[n];return r}function kf(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function Zy(t,e,r){if(r===void 0&&(r=!1),!r&&!kf(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)t[n]=Zy(t[n],e[n]);else if(kf(e))for(var n in e)t[n]=Zy(t[n],e[n]);return t}function db(t,e){Object.defineProperty(t,"toString",{value:e})}function Al(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var gX=function(){function t(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return t.prototype.indexOfGroup=function(e){for(var r=0,n=0;n<e;n++)r+=this.groupSizes[n];return r},t.prototype.insertRules=function(e,r){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;e>=o;)if((o<<=1)<0)throw Al(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),c=(a=0,r.length);a<c;a++)this.tag.insertRule(s,r[a])&&(this.groupSizes[e]++,s++)},t.prototype.clearGroup=function(e){if(e<this.length){var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r;this.groupSizes[e]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(e){var r="";if(e>=this.length||this.groupSizes[e]===0)return r;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n,a=i;a<o;a++)r+="".concat(this.tag.getRule(a)).concat(cb);return r},t}(),wm=new Map,j0=new Map,xm=1,h2=function(t){if(wm.has(t))return wm.get(t);for(;j0.has(xm);)xm++;var e=xm++;return wm.set(t,e),j0.set(e,t),e},yX=function(t,e){xm=e+1,wm.set(t,e),j0.set(e,t)},_X="style[".concat(ku,"][").concat(ZR,'="').concat(zv,'"]'),bX=new RegExp("^".concat(ku,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wX=function(t,e,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&t.registerName(e,n)},xX=function(t,e){for(var r,n=((r=e.textContent)!==null&&r!==void 0?r:"").split(cb),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var c=s.match(bX);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&(yX(d,l),wX(t,d,c[3]),t.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},dx=function(t){for(var e=document.querySelectorAll(_X),r=0,n=e.length;r<n;r++){var i=e[r];i&&i.getAttribute(ku)!==$R&&(xX(t,i),i.parentNode&&i.parentNode.removeChild(i))}};function CX(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jR=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(s){var c=Array.from(s.querySelectorAll("style[".concat(ku,"]")));return c[c.length-1]}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(ku,$R),n.setAttribute(ZR,zv);var a=CX();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},kX=function(){function t(e){this.element=jR(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,i=0,o=n.length;i<o;i++){var a=n[i];if(a.ownerNode===r)return a}throw Al(17)}(this.element),this.length=0}return t.prototype.insertRule=function(e,r){try{return this.sheet.insertRule(r,e),this.length++,!0}catch{return!1}},t.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.prototype.getRule=function(e){var r=this.sheet.cssRules[e];return r&&r.cssText?r.cssText:""},t}(),EX=function(){function t(e){this.element=jR(e),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(e,r){if(e<=this.length&&e>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},t}(),SX=function(){function t(e){this.rules=[],this.length=0}return t.prototype.insertRule=function(e,r){return e<=this.length&&(this.rules.splice(e,0,r),this.length++,!0)},t.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},t}(),ux=z0,TX={isServer:!z0,useCSSOMInjection:!nX},UR=function(){function t(e,r,n){e===void 0&&(e=Eu),r===void 0&&(r={});var i=this;this.options=_n(_n({},TX),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&z0&&ux&&(ux=!1,dx(this)),db(this,function(){return function(o){for(var a=o.getTag(),s=a.length,c="",l=function(u){var h=function(y){return j0.get(y)}(u);if(h===void 0)return"continue";var f=o.names.get(h),p=a.getGroup(u);if(f===void 0||!f.size||p.length===0)return"continue";var m="".concat(ku,".g").concat(u,'[id="').concat(h,'"]'),w="";f!==void 0&&f.forEach(function(y){y.length>0&&(w+="".concat(y,","))}),c+="".concat(p).concat(m,'{content:"').concat(w,'"}').concat(cb)},d=0;d<s;d++)l(d);return c}(i)})}return t.registerId=function(e){return h2(e)},t.prototype.rehydrate=function(){!this.server&&z0&&dx(this)},t.prototype.reconstructWithOptions=function(e,r){return r===void 0&&(r=!0),new t(_n(_n({},this.options),e),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(r){var n=r.useCSSOMInjection,i=r.target;return r.isServer?new SX(i):n?new kX(i):new EX(i)}(this.options),new gX(e)));var e},t.prototype.hasNameForId=function(e,r){return this.names.has(e)&&this.names.get(e).has(r)},t.prototype.registerName=function(e,r){if(h2(e),this.names.has(e))this.names.get(e).add(r);else{var n=new Set;n.add(r),this.names.set(e,n)}},t.prototype.insertRules=function(e,r,n){this.registerName(e,r),this.getTag().insertRules(h2(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(h2(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),AX=/&/g,IX=/^\s*\/\/.*$/gm;function BR(t,e){return t.map(function(r){return r.type==="rule"&&(r.value="".concat(e," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(e," ")),r.props=r.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=BR(r.children,e)),r})}function RX(t){var e,r,n,i=Eu,o=i.options,a=o===void 0?Eu:o,s=i.plugins,c=s===void 0?jv:s,l=function(h,f,p){return p.startsWith(r)&&p.endsWith(r)&&p.replaceAll(r,"").length>0?".".concat(e):h},d=c.slice();d.push(function(h){h.type===Nv&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(AX,r).replace(n,l))}),a.prefix&&d.push(tX),d.push(XQ);var u=function(h,f,p,m){f===void 0&&(f=""),p===void 0&&(p=""),m===void 0&&(m="&"),e=m,r=f,n=new RegExp("\\".concat(r,"\\b"),"g");var w=h.replace(IX,""),y=YQ(p||f?"".concat(p," ").concat(f," { ").concat(w," }"):w);a.namespace&&(y=BR(y,a.namespace));var v=[];return F0(y,JQ(d.concat(eX(function(g){return v.push(g)})))),v};return u.hash=c.length?c.reduce(function(h,f){return f.name||Al(15),zd(h,f.name)},HR).toString():"",u}var PX=new UR,Oy=RX(),qR=Ut.createContext({shouldForwardProp:void 0,styleSheet:PX,stylis:Oy});qR.Consumer;Ut.createContext(void 0);function hx(){return _.useContext(qR)}var WR=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=Oy);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=r,db(this,function(){throw Al(12,String(n.name))})}return t.prototype.getName=function(e){return e===void 0&&(e=Oy),this.name+e.hash},t}(),MX=function(t){return t>="A"&&t<="Z"};function fx(t){for(var e="",r=0;r<t.length;r++){var n=t[r];if(r===1&&n==="-"&&t[0]==="-")return t;MX(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var GR=function(t){return t==null||t===!1||t===""},KR=function(t){var e,r,n=[];for(var i in t){var o=t[i];t.hasOwnProperty(i)&&!GR(o)&&(Array.isArray(o)&&o.isCss||Tl(o)?n.push("".concat(fx(i),":"),o,";"):kf(o)?n.push.apply(n,Cf(Cf(["".concat(i," {")],KR(o),!1),["}"],!1)):n.push("".concat(fx(i),": ").concat((e=i,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||e in rX||e.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function cl(t,e,r,n){if(GR(t))return[];if(lb(t))return[".".concat(t.styledComponentId)];if(Tl(t)){if(!Tl(o=t)||o.prototype&&o.prototype.isReactComponent||!e)return[t];var i=t(e);return cl(i,e,r,n)}var o;return t instanceof WR?r?(t.inject(r,n),[t.getName(n)]):[t]:kf(t)?KR(t):Array.isArray(t)?Array.prototype.concat.apply(jv,t.map(function(a){return cl(a,e,r,n)})):[t.toString()]}function $X(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(Tl(r)&&!lb(r))return!1}return!0}var ZX=LR(zv),OX=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&$X(e),this.componentId=r,this.baseHash=zd(ZX,r),this.baseStyle=n,UR.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=Bc(i,this.staticRulesId);else{var o=$y(cl(this.rules,e,r,n)),a=My(zd(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,a)){var s=n(o,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,s)}i=Bc(i,a),this.staticRulesId=a}else{for(var c=zd(this.baseHash,n.hash),l="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")l+=u;else if(u){var h=$y(cl(u,e,r,n));c=zd(c,h+d),l+=h}}if(l){var f=My(c>>>0);r.hasNameForId(this.componentId,f)||r.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),i=Bc(i,f)}}return i},t}(),U0=Ut.createContext(void 0);U0.Consumer;function Ga(t){var e=Ut.useContext(U0),r=_.useMemo(function(){return function(n,i){if(!n)throw Al(14);if(Tl(n)){var o=n(i);return o}if(Array.isArray(n)||typeof n!="object")throw Al(8);return i?_n(_n({},i),n):n}(t.theme,e)},[t.theme,e]);return t.children?Ut.createElement(U0.Provider,{value:r},t.children):null}var Q4={};function HX(t,e,r){var n=lb(t),i=t,o=!Y4(t),a=e.attrs,s=a===void 0?jv:a,c=e.componentId,l=c===void 0?function(k,E){var C=typeof k!="string"?"sc":ox(k);Q4[C]=(Q4[C]||0)+1;var R="".concat(C,"-").concat(NR(zv+C+Q4[C]));return E?"".concat(E,"-").concat(R):R}(e.displayName,e.parentComponentId):c,d=e.displayName,u=d===void 0?function(k){return Y4(k)?"styled.".concat(k):"Styled(".concat(cX(k),")")}(t):d,h=e.displayName&&e.componentId?"".concat(ox(e.displayName),"-").concat(e.componentId):e.componentId||l,f=n&&i.attrs?i.attrs.concat(s).filter(Boolean):s,p=e.shouldForwardProp;if(n&&i.shouldForwardProp){var m=i.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;p=function(k,E){return m(k,E)&&w(k,E)}}else p=m}var y=new OX(r,h,n?i.componentStyle:void 0);function v(k,E){return function(C,R,$){var Y=C.attrs,q=C.componentStyle,ae=C.defaultProps,_e=C.foldedComponentIds,Ve=C.styledComponentId,H=C.target,Z=Ut.useContext(U0),F=hx(),O=C.shouldForwardProp||F.shouldForwardProp,M=iX(R,Z,ae)||Eu,N=function(Ie,rt,Ur){for(var Ao,la=_n(_n({},rt),{className:void 0,theme:Ur}),Gu=0;Gu<Ie.length;Gu+=1){var jl=Tl(Ao=Ie[Gu])?Ao(la):Ao;for(var Wt in jl)la[Wt]=Wt==="className"?Bc(la[Wt],jl[Wt]):Wt==="style"?_n(_n({},la[Wt]),jl[Wt]):jl[Wt]}return rt.className&&(la.className=Bc(la.className,rt.className)),la}(Y,R,M),z=N.as||H,te={};for(var se in N)N[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&N.theme===M||(se==="forwardedAs"?te.as=N.forwardedAs:O&&!O(se,z)||(te[se]=N[se]));var je=function(Ie,rt){var Ur=hx(),Ao=Ie.generateAndInjectStyles(rt,Ur.styleSheet,Ur.stylis);return Ao}(q,N),Qe=Bc(_e,Ve);return je&&(Qe+=" "+je),N.className&&(Qe+=" "+N.className),te[Y4(z)&&!OR.has(z)?"class":"className"]=Qe,te.ref=$,_.createElement(z,te)}(g,k,E)}v.displayName=u;var g=Ut.forwardRef(v);return g.attrs=f,g.componentStyle=y,g.displayName=u,g.shouldForwardProp=p,g.foldedComponentIds=n?Bc(i.foldedComponentIds,i.styledComponentId):"",g.styledComponentId=h,g.target=n?i.target:t,Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?function(E){for(var C=[],R=1;R<arguments.length;R++)C[R-1]=arguments[R];for(var $=0,Y=C;$<Y.length;$++)Zy(E,Y[$],!0);return E}({},i.defaultProps,k):k}}),db(g,function(){return".".concat(g.styledComponentId)}),o&&zR(g,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}function px(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r}var mx=function(t){return Object.assign(t,{isCss:!0})};function ke(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(Tl(t)||kf(t))return mx(cl(px(jv,Cf([t],e,!0))));var n=t;return e.length===0&&n.length===1&&typeof n[0]=="string"?cl(n):mx(cl(px(n,e)))}function Hy(t,e,r){if(r===void 0&&(r=Eu),!e)throw Al(1,e);var n=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return t(e,r,ke.apply(void 0,Cf([i],o,!1)))};return n.attrs=function(i){return Hy(t,e,_n(_n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},n.withConfig=function(i){return Hy(t,e,_n(_n({},r),i))},n}var YR=function(t){return Hy(HX,t)},W=YR;OR.forEach(function(t){W[t]=YR(t)});function LX(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=$y(ke.apply(void 0,Cf([t],e,!1))),i=NR(n);return new WR(i,n)}const{typography:{navigation:{button:X4}},colors:{interactive:{disabled__text:{rgba:NX},disabled__border:{rgba:DX},disabled__fill:{rgba:VX}}},spacings:{comfortable:{medium:vx}},shape:{button:{minHeight:gx,borderRadius:yx},_modes:{compact:{button:{minHeight:_x}}}},interactions:{focused:bx},clickbounds:{default__base:wx,compact__standard:xx}}=Ee,Uv={background:"transparent",height:`var(--eds_button__height, ${gx})`,typography:{...X4,textAlign:"center",fontSize:`var(--eds_button__font_size, ${X4.fontSize})`},border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:`var(--eds_button__radius, ${yx})`,style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:`var(--eds_button__padding_x, ${vx})`,right:`var(--eds_button__padding_x, ${vx})`},clickbound:{height:wx,width:"100%",offset:{top:`${(parseInt(wx)-parseInt(gx))/2+1}px`,left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:`var(--eds_button__radius, ${yx})`,style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:bx.color,width:bx.width}},disabled:{background:VX,border:{type:"border",width:"1px",color:DX,style:"solid"},typography:{...X4,color:NX,textAlign:"center"}}},modes:{compact:{height:`var(--eds_button__height_compact, ${_x})`,spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:xx,width:"100%",offset:{top:`${(parseInt(xx)-parseInt(_x))/2+1}px`,left:"0"}}}}};function rr(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function qc(t){return function e(r){return arguments.length===0||rr(r)?e:t.apply(this,arguments)}}function Rc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return rr(r)?e:qc(function(i){return t(r,i)});default:return rr(r)&&rr(n)?e:rr(r)?qc(function(i){return t(i,n)}):rr(n)?qc(function(i){return t(r,i)}):t(r,n)}}}function QR(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return rr(r)?e:Rc(function(o,a){return t(r,o,a)});case 2:return rr(r)&&rr(n)?e:rr(r)?Rc(function(o,a){return t(o,n,a)}):rr(n)?Rc(function(o,a){return t(r,o,a)}):qc(function(o){return t(r,n,o)});default:return rr(r)&&rr(n)&&rr(i)?e:rr(r)&&rr(n)?Rc(function(o,a){return t(o,a,i)}):rr(r)&&rr(i)?Rc(function(o,a){return t(o,n,a)}):rr(n)&&rr(i)?Rc(function(o,a){return t(r,o,a)}):rr(r)?qc(function(o){return t(o,n,i)}):rr(n)?qc(function(o){return t(r,o,i)}):rr(i)?qc(function(o){return t(r,n,o)}):t(r,n,i)}}}function Cx(t){return Object.prototype.toString.call(t)==="[object Object]"}function f2(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var FX=QR(function(e,r,n){var i={},o;r=r||{},n=n||{};for(o in r)f2(o,r)&&(i[o]=f2(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)f2(o,n)&&!f2(o,i)&&(i[o]=n[o]);return i}),zX=QR(function t(e,r,n){return FX(function(i,o,a){return Cx(o)&&Cx(a)?t(e,o,a):e(i,o,a)},r,n)}),xr=Rc(function(e,r){return zX(function(n,i,o){return o},e,r)});const{colors:{text:{static_icons__primary_white:{rgba:jX}},interactive:{primary__resting:{rgba:kx},primary__hover:{rgba:UX},secondary__resting:{rgba:Ex},secondary__link_hover:{rgba:Sx},danger__resting:{rgba:Tx},danger__hover:{rgba:Ax}}},shape:{button:{borderRadius:BX}}}=Ee,Bv=xr(Uv,{background:kx,typography:{color:jX},border:{type:"border",style:"solid",width:"1px",color:kx,radius:`var(--eds_button__radius, ${BX})`},states:{hover:{background:UX}}}),XR=xr(Bv,{background:Ex,border:{color:Ex},states:{hover:{background:Sx,border:{color:Sx}}}}),JR=xr(Bv,{background:Tx,border:{color:Tx},states:{hover:{background:Ax,border:{color:Ax}}}}),{colors:{interactive:{primary__resting:{rgba:Ix},primary__hover:{rgba:Rx},primary__hover_alt:{rgba:qX},secondary__resting:{rgba:Px},secondary__link_hover:{rgba:Mx},secondary__highlight:{rgba:WX},danger__resting:{rgba:$x},danger__hover:{rgba:Zx},danger__highlight:{rgba:GX}}},shape:{button:{borderRadius:KX}}}=Ee,ub=xr(Uv,{typography:{color:Ix},border:{type:"border",style:"solid",width:"1px",color:Ix,radius:`var(--eds_button__radius, ${KX})`},states:{hover:{typography:{color:Rx},background:qX,border:{style:"solid",type:"border",width:"1px",color:Rx}},disabled:{background:"transparent"}}}),YX=xr(ub,{typography:{color:Px},border:{color:Px},states:{hover:{background:WX,typography:{color:Mx},border:{color:Mx}}}}),QX=xr(ub,{typography:{color:$x},border:{color:$x},states:{hover:{background:GX,typography:{color:Zx},border:{color:Zx}}}}),{colors:{interactive:{primary__resting:{rgba:XX},primary__hover:{rgba:JX},primary__hover_alt:{rgba:eJ},secondary__resting:{rgba:tJ},secondary__link_hover:{rgba:rJ},secondary__highlight:{rgba:nJ},danger__resting:{rgba:iJ},danger__hover:{rgba:oJ},danger__highlight:{rgba:aJ}}}}=Ee,hb=xr(Uv,{typography:{color:XX},states:{hover:{background:eJ,typography:{color:JX}},disabled:{background:"transparent",border:{color:"transparent"}}}}),sJ=xr(hb,{typography:{color:tJ},states:{hover:{background:nJ,typography:{color:rJ}}}}),cJ=xr(hb,{typography:{color:iJ},states:{hover:{background:aJ,typography:{color:oJ}}}}),{colors:{interactive:{primary__resting:{rgba:lJ},primary__hover_alt:{rgba:dJ},secondary__resting:{rgba:uJ},secondary__link_hover:{rgba:hJ},secondary__highlight:{rgba:fJ},danger__resting:{rgba:pJ},danger__hover:{rgba:mJ},danger__highlight:{rgba:vJ}}},clickbounds:{default__base:J4,compact__standard:Ox},shape:mc,interactions:{focused:{width:gJ}}}=Ee,fb=xr(Uv,{height:mc.icon_button.minHeight,width:mc.icon_button.minWidth,typography:{color:lJ},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:J4,offset:{top:`${(parseInt(J4)-parseInt(mc.icon_button.minWidth))/2}px`,left:`${(parseInt(J4)-parseInt(mc.icon_button.minWidth))/2}px`}},states:{hover:{background:dJ,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:`-${parseInt(gJ)}px`}}},modes:{compact:{height:mc._modes.compact.icon_button.minHeight,width:mc._modes.compact.icon_button.minWidth,clickbound:{width:Ox,offset:{top:"0",left:`${(parseInt(Ox)-parseInt(mc._modes.compact.icon_button.minWidth))/2}px`}}}}}),yJ=xr(fb,{typography:{color:uJ},states:{hover:{background:fJ,typography:{color:hJ}}}}),_J=xr(fb,{typography:{color:pJ},states:{hover:{background:vJ,typography:{color:mJ}}}}),{clickbounds:{default__base:e5,compact__standard:Hx},shape:vc}=Ee,pb={height:vc.icon_button.minHeight,width:vc.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:e5,offset:{top:`${(parseInt(e5)-parseInt(vc.icon_button.minWidth))/2}px`,left:`${(parseInt(e5)-parseInt(vc.icon_button.minWidth))/2}px`}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:vc._modes.compact.icon_button.minHeight,width:vc._modes.compact.icon_button.minWidth,clickbound:{width:Hx,offset:{top:"0",left:`${(parseInt(Hx)-parseInt(vc._modes.compact.icon_button.minWidth))/2}px`}}}}},bJ=xr(Bv,pb),wJ=xr(XR,pb),xJ=xr(JR,pb),t5={primary:{contained:Bv,outlined:ub,ghost:hb,ghost_icon:fb,contained_icon:bJ},secondary:{contained:XR,outlined:YX,ghost:sJ,ghost_icon:yJ,contained_icon:wJ},danger:{contained:JR,outlined:QX,ghost:cJ,ghost_icon:_J,contained_icon:xJ}},CJ=(t,e)=>{_.useEffect(()=>{const r=n=>{t&&!t.contains(n.target)&&e(n)};return document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}},[t,e])},B0=(t,e)=>{_.useEffect(()=>{const r=n=>{const{key:i}=n;switch(i){case t:e(n);break}};return document.addEventListener("keydown",r,!0),()=>{document.removeEventListener("keydown",r,!0)}},[t,e])},eP=(t,e)=>{const[r,n]=_.useState(t),i=t||r;return _.useEffect(()=>{r==null&&n(`eds-${e?e+"-":""}${Math.round(Math.random()*1e5)}`)},[r,e]),i},kJ=(t,e)=>{_.useEffect(()=>{const r=()=>{t.style.height="auto";const{scrollHeight:n,clientHeight:i}=t;let o=i;e>o&&(o=Math.min(e,Math.max(n,o)),n>e?t.style.overflow="auto":t.style.overflow="hidden",o>i&&(t.style.height=`${o}px`))};return t&&e&&(r(),t.addEventListener("keyup",r,!0)),()=>{t==null||t.removeEventListener("keyup",r,!0)}},[t,e])},EJ=t=>{const e=_.useRef();_.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement,{body:n}=document;if(t){const o=window.innerWidth-r.clientWidth,a=parseInt(window.getComputedStyle(n).getPropertyValue("padding-right"))||0,s={overflow:n.style.overflow,paddingRight:n.style.paddingRight};e.current=s,n.style.overflow="hidden",n.style.paddingRight=`${a+o}px`}else e.current&&(n.style.overflow=e.current.overflow,n.style.paddingRight=e.current.paddingRight);const i=e.current;return()=>{n.style.overflow=i==null?void 0:i.overflow,n.style.paddingRight=i==null?void 0:i.paddingRight}},[t])},Ly=typeof window<"u"?_.useLayoutEffect:_.useEffect;var SJ={"@@functional/placeholder":!0};function nr(t){return t===SJ}function Wc(t){return function e(r){return arguments.length===0||nr(r)?e:t.apply(this,arguments)}}function Pc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return nr(r)?e:Wc(function(i){return t(r,i)});default:return nr(r)&&nr(n)?e:nr(r)?Wc(function(i){return t(i,n)}):nr(n)?Wc(function(i){return t(r,i)}):t(r,n)}}}function tP(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return nr(r)?e:Pc(function(o,a){return t(r,o,a)});case 2:return nr(r)&&nr(n)?e:nr(r)?Pc(function(o,a){return t(o,n,a)}):nr(n)?Pc(function(o,a){return t(r,o,a)}):Wc(function(o){return t(r,n,o)});default:return nr(r)&&nr(n)&&nr(i)?e:nr(r)&&nr(n)?Pc(function(o,a){return t(o,a,i)}):nr(r)&&nr(i)?Pc(function(o,a){return t(o,n,a)}):nr(n)&&nr(i)?Pc(function(o,a){return t(r,o,a)}):nr(r)?Wc(function(o){return t(o,n,i)}):nr(n)?Wc(function(o){return t(r,o,i)}):nr(i)?Wc(function(o){return t(r,n,o)}):t(r,n,i)}}}function Lx(t){return Object.prototype.toString.call(t)==="[object Object]"}function p2(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var TJ=tP(function(e,r,n){var i={},o;r=r||{},n=n||{};for(o in r)p2(o,r)&&(i[o]=p2(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)p2(o,n)&&!p2(o,i)&&(i[o]=n[o]);return i}),AJ=tP(function t(e,r,n){return TJ(function(i,o,a){return Lx(o)&&Lx(a)?t(e,o,a):e(i,o,a)},r,n)}),IJ=Pc(function(e,r){return AJ(function(n,i,o){return o},e,r)});const aa=(t,e)=>_.useCallback(()=>{const{density:r}=t;return r==="compact"?IJ(e,e.modes.compact):e},[t,e]),ra=(...t)=>e=>t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e)}),RJ=(t,e)=>{const r=t.value;t.value=e;const n=t._valueTracker;typeof n<"u"&&n.setValue(r),t.dispatchEvent(new Event("change",{bubbles:!0}))},gd=t=>{if(!t)return;const{width:e="",style:r="",color:n=""}=t;return e?`${e} ${r} ${n}`:null},pi=t=>{var e,r,n,i;if(!t)return ke({});switch(t.type){case"border":return ke({border:gd(t),borderRadius:t.radius});case"bordergroup":return ke({borderBottom:gd(t.bottom),borderTop:gd(t.top),borderLeft:gd(t.left),borderRight:gd(t.right),borderBottomLeftRadius:(e=t==null?void 0:t.left)==null?void 0:e.radius,borderTopLeftRadius:(r=t==null?void 0:t.left)==null?void 0:r.radius,borderBottomRightRadius:(n=t==null?void 0:t.right)==null?void 0:n.radius,borderTopRightRadius:(i=t==null?void 0:t.right)==null?void 0:i.radius});default:return ke({})}},{colors:{interactive:{focus:{rgba:PJ}}}}=Ee,on=t=>{const{color:e=PJ,style:r="dashed",width:n="2px",offset:i="0px",type:o}=t,a={color:e,style:r,width:n,offset:i,type:o};return ke({outline:gd(a),outlineOffset:a.offset})},$n=(t,e)=>{if(!t)return"";let r=`
|
|
445
|
+
`,z0=typeof window<"u"&&"HTMLElement"in window,nX=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&oi!==void 0&&oi.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&oi.REACT_APP_SC_DISABLE_SPEEDY!==""?oi.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&oi.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&oi!==void 0&&oi.SC_DISABLE_SPEEDY!==void 0&&oi.SC_DISABLE_SPEEDY!==""&&oi.SC_DISABLE_SPEEDY!=="false"&&oi.SC_DISABLE_SPEEDY),jv=Object.freeze([]),Eu=Object.freeze({});function iX(t,e,r){return r===void 0&&(r=Eu),t.theme!==r.theme&&t.theme||e||r.theme}var OR=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),oX=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,aX=/(^-|-$)/g;function ox(t){return t.replace(oX,"-").replace(aX,"")}var sX=/(a)(d)/gi,u2=52,ax=function(t){return String.fromCharCode(t+(t>25?39:97))};function My(t){var e,r="";for(e=Math.abs(t);e>u2;e=e/u2|0)r=ax(e%u2)+r;return(ax(e%u2)+r).replace(sX,"$1-$2")}var K4,HR=5381,zd=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},LR=function(t){return zd(HR,t)};function NR(t){return My(LR(t)>>>0)}function cX(t){return t.displayName||t.name||"Component"}function Y4(t){return typeof t=="string"&&!0}var DR=typeof Symbol=="function"&&Symbol.for,VR=DR?Symbol.for("react.memo"):60115,lX=DR?Symbol.for("react.forward_ref"):60112,dX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hX=((K4={})[lX]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},K4[VR]=FR,K4);function sx(t){return("type"in(e=t)&&e.type.$$typeof)===VR?FR:"$$typeof"in t?hX[t.$$typeof]:dX;var e}var fX=Object.defineProperty,pX=Object.getOwnPropertyNames,cx=Object.getOwnPropertySymbols,mX=Object.getOwnPropertyDescriptor,vX=Object.getPrototypeOf,lx=Object.prototype;function zR(t,e,r){if(typeof e!="string"){if(lx){var n=vX(e);n&&n!==lx&&zR(t,n,r)}var i=pX(e);cx&&(i=i.concat(cx(e)));for(var o=sx(t),a=sx(e),s=0;s<i.length;++s){var c=i[s];if(!(c in uX||r&&r[c]||a&&c in a||o&&c in o)){var l=mX(e,c);try{fX(t,c,l)}catch{}}}}return t}function Tl(t){return typeof t=="function"}function lb(t){return typeof t=="object"&&"styledComponentId"in t}function Bc(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function $y(t,e){if(t.length===0)return"";for(var r=t[0],n=1;n<t.length;n++)r+=t[n];return r}function kf(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function Zy(t,e,r){if(r===void 0&&(r=!1),!r&&!kf(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)t[n]=Zy(t[n],e[n]);else if(kf(e))for(var n in e)t[n]=Zy(t[n],e[n]);return t}function db(t,e){Object.defineProperty(t,"toString",{value:e})}function Al(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var gX=function(){function t(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return t.prototype.indexOfGroup=function(e){for(var r=0,n=0;n<e;n++)r+=this.groupSizes[n];return r},t.prototype.insertRules=function(e,r){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;e>=o;)if((o<<=1)<0)throw Al(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),c=(a=0,r.length);a<c;a++)this.tag.insertRule(s,r[a])&&(this.groupSizes[e]++,s++)},t.prototype.clearGroup=function(e){if(e<this.length){var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r;this.groupSizes[e]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(e){var r="";if(e>=this.length||this.groupSizes[e]===0)return r;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n,a=i;a<o;a++)r+="".concat(this.tag.getRule(a)).concat(cb);return r},t}(),wm=new Map,j0=new Map,xm=1,h2=function(t){if(wm.has(t))return wm.get(t);for(;j0.has(xm);)xm++;var e=xm++;return wm.set(t,e),j0.set(e,t),e},yX=function(t,e){xm=e+1,wm.set(t,e),j0.set(e,t)},_X="style[".concat(ku,"][").concat(ZR,'="').concat(zv,'"]'),bX=new RegExp("^".concat(ku,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wX=function(t,e,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&t.registerName(e,n)},xX=function(t,e){for(var r,n=((r=e.textContent)!==null&&r!==void 0?r:"").split(cb),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var c=s.match(bX);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&(yX(d,l),wX(t,d,c[3]),t.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},dx=function(t){for(var e=document.querySelectorAll(_X),r=0,n=e.length;r<n;r++){var i=e[r];i&&i.getAttribute(ku)!==$R&&(xX(t,i),i.parentNode&&i.parentNode.removeChild(i))}};function CX(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jR=function(t){var e=document.head,r=t||e,n=document.createElement("style"),i=function(s){var c=Array.from(s.querySelectorAll("style[".concat(ku,"]")));return c[c.length-1]}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(ku,$R),n.setAttribute(ZR,zv);var a=CX();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},kX=function(){function t(e){this.element=jR(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,i=0,o=n.length;i<o;i++){var a=n[i];if(a.ownerNode===r)return a}throw Al(17)}(this.element),this.length=0}return t.prototype.insertRule=function(e,r){try{return this.sheet.insertRule(r,e),this.length++,!0}catch{return!1}},t.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.prototype.getRule=function(e){var r=this.sheet.cssRules[e];return r&&r.cssText?r.cssText:""},t}(),EX=function(){function t(e){this.element=jR(e),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(e,r){if(e<=this.length&&e>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},t}(),SX=function(){function t(e){this.rules=[],this.length=0}return t.prototype.insertRule=function(e,r){return e<=this.length&&(this.rules.splice(e,0,r),this.length++,!0)},t.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},t}(),ux=z0,TX={isServer:!z0,useCSSOMInjection:!nX},UR=function(){function t(e,r,n){e===void 0&&(e=Eu),r===void 0&&(r={});var i=this;this.options=_n(_n({},TX),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&z0&&ux&&(ux=!1,dx(this)),db(this,function(){return function(o){for(var a=o.getTag(),s=a.length,c="",l=function(u){var h=function(y){return j0.get(y)}(u);if(h===void 0)return"continue";var f=o.names.get(h),p=a.getGroup(u);if(f===void 0||!f.size||p.length===0)return"continue";var m="".concat(ku,".g").concat(u,'[id="').concat(h,'"]'),w="";f!==void 0&&f.forEach(function(y){y.length>0&&(w+="".concat(y,","))}),c+="".concat(p).concat(m,'{content:"').concat(w,'"}').concat(cb)},d=0;d<s;d++)l(d);return c}(i)})}return t.registerId=function(e){return h2(e)},t.prototype.rehydrate=function(){!this.server&&z0&&dx(this)},t.prototype.reconstructWithOptions=function(e,r){return r===void 0&&(r=!0),new t(_n(_n({},this.options),e),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(r){var n=r.useCSSOMInjection,i=r.target;return r.isServer?new SX(i):n?new kX(i):new EX(i)}(this.options),new gX(e)));var e},t.prototype.hasNameForId=function(e,r){return this.names.has(e)&&this.names.get(e).has(r)},t.prototype.registerName=function(e,r){if(h2(e),this.names.has(e))this.names.get(e).add(r);else{var n=new Set;n.add(r),this.names.set(e,n)}},t.prototype.insertRules=function(e,r,n){this.registerName(e,r),this.getTag().insertRules(h2(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(h2(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),AX=/&/g,IX=/^\s*\/\/.*$/gm;function BR(t,e){return t.map(function(r){return r.type==="rule"&&(r.value="".concat(e," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(e," ")),r.props=r.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=BR(r.children,e)),r})}function RX(t){var e,r,n,i=Eu,o=i.options,a=o===void 0?Eu:o,s=i.plugins,c=s===void 0?jv:s,l=function(h,f,p){return p.startsWith(r)&&p.endsWith(r)&&p.replaceAll(r,"").length>0?".".concat(e):h},d=c.slice();d.push(function(h){h.type===Nv&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(AX,r).replace(n,l))}),a.prefix&&d.push(tX),d.push(XQ);var u=function(h,f,p,m){f===void 0&&(f=""),p===void 0&&(p=""),m===void 0&&(m="&"),e=m,r=f,n=new RegExp("\\".concat(r,"\\b"),"g");var w=h.replace(IX,""),y=YQ(p||f?"".concat(p," ").concat(f," { ").concat(w," }"):w);a.namespace&&(y=BR(y,a.namespace));var v=[];return F0(y,JQ(d.concat(eX(function(g){return v.push(g)})))),v};return u.hash=c.length?c.reduce(function(h,f){return f.name||Al(15),zd(h,f.name)},HR).toString():"",u}var PX=new UR,Oy=RX(),qR=Ut.createContext({shouldForwardProp:void 0,styleSheet:PX,stylis:Oy});qR.Consumer;Ut.createContext(void 0);function hx(){return _.useContext(qR)}var WR=function(){function t(e,r){var n=this;this.inject=function(i,o){o===void 0&&(o=Oy);var a=n.name+o.hash;i.hasNameForId(n.id,a)||i.insertRules(n.id,a,o(n.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=r,db(this,function(){throw Al(12,String(n.name))})}return t.prototype.getName=function(e){return e===void 0&&(e=Oy),this.name+e.hash},t}(),MX=function(t){return t>="A"&&t<="Z"};function fx(t){for(var e="",r=0;r<t.length;r++){var n=t[r];if(r===1&&n==="-"&&t[0]==="-")return t;MX(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var GR=function(t){return t==null||t===!1||t===""},KR=function(t){var e,r,n=[];for(var i in t){var o=t[i];t.hasOwnProperty(i)&&!GR(o)&&(Array.isArray(o)&&o.isCss||Tl(o)?n.push("".concat(fx(i),":"),o,";"):kf(o)?n.push.apply(n,Cf(Cf(["".concat(i," {")],KR(o),!1),["}"],!1)):n.push("".concat(fx(i),": ").concat((e=i,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||e in rX||e.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function cl(t,e,r,n){if(GR(t))return[];if(lb(t))return[".".concat(t.styledComponentId)];if(Tl(t)){if(!Tl(o=t)||o.prototype&&o.prototype.isReactComponent||!e)return[t];var i=t(e);return cl(i,e,r,n)}var o;return t instanceof WR?r?(t.inject(r,n),[t.getName(n)]):[t]:kf(t)?KR(t):Array.isArray(t)?Array.prototype.concat.apply(jv,t.map(function(a){return cl(a,e,r,n)})):[t.toString()]}function $X(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(Tl(r)&&!lb(r))return!1}return!0}var ZX=LR(zv),OX=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&$X(e),this.componentId=r,this.baseHash=zd(ZX,r),this.baseStyle=n,UR.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=Bc(i,this.staticRulesId);else{var o=$y(cl(this.rules,e,r,n)),a=My(zd(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,a)){var s=n(o,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,s)}i=Bc(i,a),this.staticRulesId=a}else{for(var c=zd(this.baseHash,n.hash),l="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")l+=u;else if(u){var h=$y(cl(u,e,r,n));c=zd(c,h+d),l+=h}}if(l){var f=My(c>>>0);r.hasNameForId(this.componentId,f)||r.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),i=Bc(i,f)}}return i},t}(),U0=Ut.createContext(void 0);U0.Consumer;function Ga(t){var e=Ut.useContext(U0),r=_.useMemo(function(){return function(n,i){if(!n)throw Al(14);if(Tl(n)){var o=n(i);return o}if(Array.isArray(n)||typeof n!="object")throw Al(8);return i?_n(_n({},i),n):n}(t.theme,e)},[t.theme,e]);return t.children?Ut.createElement(U0.Provider,{value:r},t.children):null}var Q4={};function HX(t,e,r){var n=lb(t),i=t,o=!Y4(t),a=e.attrs,s=a===void 0?jv:a,c=e.componentId,l=c===void 0?function(k,E){var C=typeof k!="string"?"sc":ox(k);Q4[C]=(Q4[C]||0)+1;var R="".concat(C,"-").concat(NR(zv+C+Q4[C]));return E?"".concat(E,"-").concat(R):R}(e.displayName,e.parentComponentId):c,d=e.displayName,u=d===void 0?function(k){return Y4(k)?"styled.".concat(k):"Styled(".concat(cX(k),")")}(t):d,h=e.displayName&&e.componentId?"".concat(ox(e.displayName),"-").concat(e.componentId):e.componentId||l,f=n&&i.attrs?i.attrs.concat(s).filter(Boolean):s,p=e.shouldForwardProp;if(n&&i.shouldForwardProp){var m=i.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;p=function(k,E){return m(k,E)&&w(k,E)}}else p=m}var y=new OX(r,h,n?i.componentStyle:void 0);function v(k,E){return function(C,R,$){var Y=C.attrs,q=C.componentStyle,ae=C.defaultProps,_e=C.foldedComponentIds,Ve=C.styledComponentId,H=C.target,Z=Ut.useContext(U0),F=hx(),O=C.shouldForwardProp||F.shouldForwardProp,M=iX(R,Z,ae)||Eu,N=function(Ie,rt,Ur){for(var Ao,la=_n(_n({},rt),{className:void 0,theme:Ur}),Gu=0;Gu<Ie.length;Gu+=1){var jl=Tl(Ao=Ie[Gu])?Ao(la):Ao;for(var Wt in jl)la[Wt]=Wt==="className"?Bc(la[Wt],jl[Wt]):Wt==="style"?_n(_n({},la[Wt]),jl[Wt]):jl[Wt]}return rt.className&&(la.className=Bc(la.className,rt.className)),la}(Y,R,M),z=N.as||H,te={};for(var se in N)N[se]===void 0||se[0]==="$"||se==="as"||se==="theme"&&N.theme===M||(se==="forwardedAs"?te.as=N.forwardedAs:O&&!O(se,z)||(te[se]=N[se]));var je=function(Ie,rt){var Ur=hx(),Ao=Ie.generateAndInjectStyles(rt,Ur.styleSheet,Ur.stylis);return Ao}(q,N),Qe=Bc(_e,Ve);return je&&(Qe+=" "+je),N.className&&(Qe+=" "+N.className),te[Y4(z)&&!OR.has(z)?"class":"className"]=Qe,te.ref=$,_.createElement(z,te)}(g,k,E)}v.displayName=u;var g=Ut.forwardRef(v);return g.attrs=f,g.componentStyle=y,g.displayName=u,g.shouldForwardProp=p,g.foldedComponentIds=n?Bc(i.foldedComponentIds,i.styledComponentId):"",g.styledComponentId=h,g.target=n?i.target:t,Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?function(E){for(var C=[],R=1;R<arguments.length;R++)C[R-1]=arguments[R];for(var $=0,Y=C;$<Y.length;$++)Zy(E,Y[$],!0);return E}({},i.defaultProps,k):k}}),db(g,function(){return".".concat(g.styledComponentId)}),o&&zR(g,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}function px(t,e){for(var r=[t[0]],n=0,i=e.length;n<i;n+=1)r.push(e[n],t[n+1]);return r}var mx=function(t){return Object.assign(t,{isCss:!0})};function Ce(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(Tl(t)||kf(t))return mx(cl(px(jv,Cf([t],e,!0))));var n=t;return e.length===0&&n.length===1&&typeof n[0]=="string"?cl(n):mx(cl(px(n,e)))}function Hy(t,e,r){if(r===void 0&&(r=Eu),!e)throw Al(1,e);var n=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return t(e,r,Ce.apply(void 0,Cf([i],o,!1)))};return n.attrs=function(i){return Hy(t,e,_n(_n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},n.withConfig=function(i){return Hy(t,e,_n(_n({},r),i))},n}var YR=function(t){return Hy(HX,t)},W=YR;OR.forEach(function(t){W[t]=YR(t)});function LX(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=$y(Ce.apply(void 0,Cf([t],e,!1))),i=NR(n);return new WR(i,n)}const{typography:{navigation:{button:X4}},colors:{interactive:{disabled__text:{rgba:NX},disabled__border:{rgba:DX},disabled__fill:{rgba:VX}}},spacings:{comfortable:{medium:vx}},shape:{button:{minHeight:gx,borderRadius:yx},_modes:{compact:{button:{minHeight:_x}}}},interactions:{focused:bx},clickbounds:{default__base:wx,compact__standard:xx}}=ke,Uv={background:"transparent",height:`var(--eds_button__height, ${gx})`,typography:{...X4,textAlign:"center",fontSize:`var(--eds_button__font_size, ${X4.fontSize})`},border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:`var(--eds_button__radius, ${yx})`,style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:`var(--eds_button__padding_x, ${vx})`,right:`var(--eds_button__padding_x, ${vx})`},clickbound:{height:wx,width:"100%",offset:{top:`${(parseInt(wx)-parseInt(gx))/2+1}px`,left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:`var(--eds_button__radius, ${yx})`,style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:bx.color,width:bx.width}},disabled:{background:VX,border:{type:"border",width:"1px",color:DX,style:"solid"},typography:{...X4,color:NX,textAlign:"center"}}},modes:{compact:{height:`var(--eds_button__height_compact, ${_x})`,spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:xx,width:"100%",offset:{top:`${(parseInt(xx)-parseInt(_x))/2+1}px`,left:"0"}}}}};function rr(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function qc(t){return function e(r){return arguments.length===0||rr(r)?e:t.apply(this,arguments)}}function Rc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return rr(r)?e:qc(function(i){return t(r,i)});default:return rr(r)&&rr(n)?e:rr(r)?qc(function(i){return t(i,n)}):rr(n)?qc(function(i){return t(r,i)}):t(r,n)}}}function QR(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return rr(r)?e:Rc(function(o,a){return t(r,o,a)});case 2:return rr(r)&&rr(n)?e:rr(r)?Rc(function(o,a){return t(o,n,a)}):rr(n)?Rc(function(o,a){return t(r,o,a)}):qc(function(o){return t(r,n,o)});default:return rr(r)&&rr(n)&&rr(i)?e:rr(r)&&rr(n)?Rc(function(o,a){return t(o,a,i)}):rr(r)&&rr(i)?Rc(function(o,a){return t(o,n,a)}):rr(n)&&rr(i)?Rc(function(o,a){return t(r,o,a)}):rr(r)?qc(function(o){return t(o,n,i)}):rr(n)?qc(function(o){return t(r,o,i)}):rr(i)?qc(function(o){return t(r,n,o)}):t(r,n,i)}}}function Cx(t){return Object.prototype.toString.call(t)==="[object Object]"}function f2(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var FX=QR(function(e,r,n){var i={},o;r=r||{},n=n||{};for(o in r)f2(o,r)&&(i[o]=f2(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)f2(o,n)&&!f2(o,i)&&(i[o]=n[o]);return i}),zX=QR(function t(e,r,n){return FX(function(i,o,a){return Cx(o)&&Cx(a)?t(e,o,a):e(i,o,a)},r,n)}),xr=Rc(function(e,r){return zX(function(n,i,o){return o},e,r)});const{colors:{text:{static_icons__primary_white:{rgba:jX}},interactive:{primary__resting:{rgba:kx},primary__hover:{rgba:UX},secondary__resting:{rgba:Ex},secondary__link_hover:{rgba:Sx},danger__resting:{rgba:Tx},danger__hover:{rgba:Ax}}},shape:{button:{borderRadius:BX}}}=ke,Bv=xr(Uv,{background:kx,typography:{color:jX},border:{type:"border",style:"solid",width:"1px",color:kx,radius:`var(--eds_button__radius, ${BX})`},states:{hover:{background:UX}}}),XR=xr(Bv,{background:Ex,border:{color:Ex},states:{hover:{background:Sx,border:{color:Sx}}}}),JR=xr(Bv,{background:Tx,border:{color:Tx},states:{hover:{background:Ax,border:{color:Ax}}}}),{colors:{interactive:{primary__resting:{rgba:Ix},primary__hover:{rgba:Rx},primary__hover_alt:{rgba:qX},secondary__resting:{rgba:Px},secondary__link_hover:{rgba:Mx},secondary__highlight:{rgba:WX},danger__resting:{rgba:$x},danger__hover:{rgba:Zx},danger__highlight:{rgba:GX}}},shape:{button:{borderRadius:KX}}}=ke,ub=xr(Uv,{typography:{color:Ix},border:{type:"border",style:"solid",width:"1px",color:Ix,radius:`var(--eds_button__radius, ${KX})`},states:{hover:{typography:{color:Rx},background:qX,border:{style:"solid",type:"border",width:"1px",color:Rx}},disabled:{background:"transparent"}}}),YX=xr(ub,{typography:{color:Px},border:{color:Px},states:{hover:{background:WX,typography:{color:Mx},border:{color:Mx}}}}),QX=xr(ub,{typography:{color:$x},border:{color:$x},states:{hover:{background:GX,typography:{color:Zx},border:{color:Zx}}}}),{colors:{interactive:{primary__resting:{rgba:XX},primary__hover:{rgba:JX},primary__hover_alt:{rgba:eJ},secondary__resting:{rgba:tJ},secondary__link_hover:{rgba:rJ},secondary__highlight:{rgba:nJ},danger__resting:{rgba:iJ},danger__hover:{rgba:oJ},danger__highlight:{rgba:aJ}}}}=ke,hb=xr(Uv,{typography:{color:XX},states:{hover:{background:eJ,typography:{color:JX}},disabled:{background:"transparent",border:{color:"transparent"}}}}),sJ=xr(hb,{typography:{color:tJ},states:{hover:{background:nJ,typography:{color:rJ}}}}),cJ=xr(hb,{typography:{color:iJ},states:{hover:{background:aJ,typography:{color:oJ}}}}),{colors:{interactive:{primary__resting:{rgba:lJ},primary__hover_alt:{rgba:dJ},secondary__resting:{rgba:uJ},secondary__link_hover:{rgba:hJ},secondary__highlight:{rgba:fJ},danger__resting:{rgba:pJ},danger__hover:{rgba:mJ},danger__highlight:{rgba:vJ}}},clickbounds:{default__base:J4,compact__standard:Ox},shape:mc,interactions:{focused:{width:gJ}}}=ke,fb=xr(Uv,{height:mc.icon_button.minHeight,width:mc.icon_button.minWidth,typography:{color:lJ},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:J4,offset:{top:`${(parseInt(J4)-parseInt(mc.icon_button.minWidth))/2}px`,left:`${(parseInt(J4)-parseInt(mc.icon_button.minWidth))/2}px`}},states:{hover:{background:dJ,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:`-${parseInt(gJ)}px`}}},modes:{compact:{height:mc._modes.compact.icon_button.minHeight,width:mc._modes.compact.icon_button.minWidth,clickbound:{width:Ox,offset:{top:"0",left:`${(parseInt(Ox)-parseInt(mc._modes.compact.icon_button.minWidth))/2}px`}}}}}),yJ=xr(fb,{typography:{color:uJ},states:{hover:{background:fJ,typography:{color:hJ}}}}),_J=xr(fb,{typography:{color:pJ},states:{hover:{background:vJ,typography:{color:mJ}}}}),{clickbounds:{default__base:e5,compact__standard:Hx},shape:vc}=ke,pb={height:vc.icon_button.minHeight,width:vc.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:e5,offset:{top:`${(parseInt(e5)-parseInt(vc.icon_button.minWidth))/2}px`,left:`${(parseInt(e5)-parseInt(vc.icon_button.minWidth))/2}px`}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:vc._modes.compact.icon_button.minHeight,width:vc._modes.compact.icon_button.minWidth,clickbound:{width:Hx,offset:{top:"0",left:`${(parseInt(Hx)-parseInt(vc._modes.compact.icon_button.minWidth))/2}px`}}}}},bJ=xr(Bv,pb),wJ=xr(XR,pb),xJ=xr(JR,pb),t5={primary:{contained:Bv,outlined:ub,ghost:hb,ghost_icon:fb,contained_icon:bJ},secondary:{contained:XR,outlined:YX,ghost:sJ,ghost_icon:yJ,contained_icon:wJ},danger:{contained:JR,outlined:QX,ghost:cJ,ghost_icon:_J,contained_icon:xJ}},CJ=(t,e)=>{_.useEffect(()=>{const r=n=>{t&&!t.contains(n.target)&&e(n)};return document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}},[t,e])},B0=(t,e)=>{_.useEffect(()=>{const r=n=>{const{key:i}=n;switch(i){case t:e(n);break}};return document.addEventListener("keydown",r,!0),()=>{document.removeEventListener("keydown",r,!0)}},[t,e])},eP=(t,e)=>{const[r,n]=_.useState(t),i=t||r;return _.useEffect(()=>{r==null&&n(`eds-${e?e+"-":""}${Math.round(Math.random()*1e5)}`)},[r,e]),i},kJ=(t,e)=>{_.useEffect(()=>{const r=()=>{t.style.height="auto";const{scrollHeight:n,clientHeight:i}=t;let o=i;e>o&&(o=Math.min(e,Math.max(n,o)),n>e?t.style.overflow="auto":t.style.overflow="hidden",o>i&&(t.style.height=`${o}px`))};return t&&e&&(r(),t.addEventListener("keyup",r,!0)),()=>{t==null||t.removeEventListener("keyup",r,!0)}},[t,e])},EJ=t=>{const e=_.useRef();_.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement,{body:n}=document;if(t){const o=window.innerWidth-r.clientWidth,a=parseInt(window.getComputedStyle(n).getPropertyValue("padding-right"))||0,s={overflow:n.style.overflow,paddingRight:n.style.paddingRight};e.current=s,n.style.overflow="hidden",n.style.paddingRight=`${a+o}px`}else e.current&&(n.style.overflow=e.current.overflow,n.style.paddingRight=e.current.paddingRight);const i=e.current;return()=>{n.style.overflow=i==null?void 0:i.overflow,n.style.paddingRight=i==null?void 0:i.paddingRight}},[t])},Ly=typeof window<"u"?_.useLayoutEffect:_.useEffect;var SJ={"@@functional/placeholder":!0};function nr(t){return t===SJ}function Wc(t){return function e(r){return arguments.length===0||nr(r)?e:t.apply(this,arguments)}}function Pc(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return nr(r)?e:Wc(function(i){return t(r,i)});default:return nr(r)&&nr(n)?e:nr(r)?Wc(function(i){return t(i,n)}):nr(n)?Wc(function(i){return t(r,i)}):t(r,n)}}}function tP(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return nr(r)?e:Pc(function(o,a){return t(r,o,a)});case 2:return nr(r)&&nr(n)?e:nr(r)?Pc(function(o,a){return t(o,n,a)}):nr(n)?Pc(function(o,a){return t(r,o,a)}):Wc(function(o){return t(r,n,o)});default:return nr(r)&&nr(n)&&nr(i)?e:nr(r)&&nr(n)?Pc(function(o,a){return t(o,a,i)}):nr(r)&&nr(i)?Pc(function(o,a){return t(o,n,a)}):nr(n)&&nr(i)?Pc(function(o,a){return t(r,o,a)}):nr(r)?Wc(function(o){return t(o,n,i)}):nr(n)?Wc(function(o){return t(r,o,i)}):nr(i)?Wc(function(o){return t(r,n,o)}):t(r,n,i)}}}function Lx(t){return Object.prototype.toString.call(t)==="[object Object]"}function p2(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var TJ=tP(function(e,r,n){var i={},o;r=r||{},n=n||{};for(o in r)p2(o,r)&&(i[o]=p2(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)p2(o,n)&&!p2(o,i)&&(i[o]=n[o]);return i}),AJ=tP(function t(e,r,n){return TJ(function(i,o,a){return Lx(o)&&Lx(a)?t(e,o,a):e(i,o,a)},r,n)}),IJ=Pc(function(e,r){return AJ(function(n,i,o){return o},e,r)});const aa=(t,e)=>_.useCallback(()=>{const{density:r}=t;return r==="compact"?IJ(e,e.modes.compact):e},[t,e]),ra=(...t)=>e=>t.forEach(r=>{typeof r=="function"?r(e):r&&typeof r=="object"&&(r.current=e)}),RJ=(t,e)=>{const r=t.value;t.value=e;const n=t._valueTracker;typeof n<"u"&&n.setValue(r),t.dispatchEvent(new Event("change",{bubbles:!0}))},gd=t=>{if(!t)return;const{width:e="",style:r="",color:n=""}=t;return e?`${e} ${r} ${n}`:null},pi=t=>{var e,r,n,i;if(!t)return Ce({});switch(t.type){case"border":return Ce({border:gd(t),borderRadius:t.radius});case"bordergroup":return Ce({borderBottom:gd(t.bottom),borderTop:gd(t.top),borderLeft:gd(t.left),borderRight:gd(t.right),borderBottomLeftRadius:(e=t==null?void 0:t.left)==null?void 0:e.radius,borderTopLeftRadius:(r=t==null?void 0:t.left)==null?void 0:r.radius,borderBottomRightRadius:(n=t==null?void 0:t.right)==null?void 0:n.radius,borderTopRightRadius:(i=t==null?void 0:t.right)==null?void 0:i.radius});default:return Ce({})}},{colors:{interactive:{focus:{rgba:PJ}}}}=ke,on=t=>{const{color:e=PJ,style:r="dashed",width:n="2px",offset:i="0px",type:o}=t,a={color:e,style:r,width:n,offset:i,type:o};return Ce({outline:gd(a),outlineOffset:a.offset})},$n=(t,e)=>{if(!t)return"";let r=`
|
|
446
446
|
margin: 0;
|
|
447
447
|
color: ${t.color};
|
|
448
448
|
font-family: ${t.fontFamily};
|
|
@@ -456,7 +456,7 @@ text-transform: ${t.textTransform};`),t.textDecoration&&(r+=`
|
|
|
456
456
|
text-decoration: ${t.textDecoration};`),t.textAlign&&(r+=`
|
|
457
457
|
text-align: ${t.textAlign};`),t.fontFeature&&(r+=`
|
|
458
458
|
font-feature-settings: ${t.fontFeature};`),e&&(r+=`
|
|
459
|
-
cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,paddingTop:r,paddingRight:e,paddingBottom:n}),mb=t=>{const{fontFamily:e,fontSize:r,fontWeight:n,lineHeight:i,letterSpacing:o,fontFeature:a,textDecoration:s,textTransform:c,fontStyle:l}=t;return{fontFeatureSettings:a,fontFamily:e,fontSize:r,fontWeight:n,letterSpacing:o,lineHeight:i,textDecoration:s,textTransform:c,fontStyle:l}},MJ=W.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),$J=W.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),ZJ=_.forwardRef(function({children:e},r){const n=_.Children.map(e,i=>typeof i!="object"?b.jsx(MJ,{children:i}):i);return b.jsx($J,{ref:r,children:n})}),OJ={density:"comfortable"},HJ=_.createContext(OJ),So=()=>_.useContext(HJ),r5=(t,e)=>{switch(e){case"ghost":return t.ghost;case"ghost_icon":return t.ghost_icon;case"outlined":return t.outlined;case"contained_icon":return t.contained_icon;case"contained":default:return t.contained}},LJ=(t,e)=>{switch(e){case"danger":return r5(t5.danger,t);case"secondary":return r5(t5.secondary,t);case"primary":default:return r5(t5.primary,t)}},NJ=W.span.withConfig({displayName:"Button__Inner",componentId:"sc-1hs0myn-0"})(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]),DJ=W.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})(({theme:t})=>{var a,s,c;const{states:e,clickbound:r}=t,{focus:n,hover:i,disabled:o}=e;return ke(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:",";height:",";width:",";svg{justify-self:center;}"," "," "," &::after{position:absolute;top:-",";left:-",";width:",";height:",";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:",";color:",";",";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:",";",";",";@media (hover:hover) and (pointer:fine){&:hover{background:",";}}}"],t.background,t.height,t.width,Eo(t.spacings),pi(t.border),$n(t.typography),(a=r==null?void 0:r.offset)==null?void 0:a.top,(s=r==null?void 0:r.offset)==null?void 0:s.left,r==null?void 0:r.width,r==null?void 0:r.height,i.background,(c=i.typography)==null?void 0:c.color,pi(i==null?void 0:i.border),on(n.outline),on(n.outline),o.background,pi(o.border),$n(o.typography),o.background)}),VJ=_.forwardRef(function({color:e="primary",variant:r="contained",children:n,disabled:i=!1,href:o,tabIndex:a=0,fullWidth:s=!1,...c},l){const{density:d}=So(),u=aa({density:d},LJ(r,e)),h=o&&!i?"a":c.as?c.as:"button",f=o||c.as?void 0:"button";a=i?-1:a;const p={ref:l,as:h,href:o,type:f,disabled:i,tabIndex:a,...c};return b.jsx(Ga,{theme:u,children:b.jsx(DJ,{...p,children:s?b.jsx(ZJ,{children:n}):b.jsx(NJ,{children:n})})})}),{shape:{corners:{borderRadius:FJ}}}=Ee,zJ={border:{type:"border",radius:FJ}},{border:Nx}=zJ,is=Nx.type==="border"&&Nx.radius,jJ=W.div.withConfig({displayName:"ButtonGroup__ButtonGroupBase",componentId:"sc-1fn8jon-0"})(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}",""],({$vertical:t})=>ke(t?["flex-direction:column;> :first-child{border-top-left-radius:",";border-top-right-radius:",";}> :last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-bottom:none;}"]:["> :first-child{border-top-left-radius:",";border-bottom-left-radius:",";}> :last-child{border-top-right-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-right:none;}"],is,is,is,is)),rP=_.forwardRef(function({children:e,vertical:r,...n},i){const o={ref:i,$vertical:r,...n};return b.jsx(jJ,{role:"group",...o,children:e})}),{colors:{text:{static_icons__primary_white:{rgba:UJ}},ui:{background__overlay:{rgba:BJ}}},typography:{ui:qJ},spacings:{comfortable:{x_large:WJ,small:wh}},shape:{corners:{borderRadius:GJ}}}=Ee,Pa={typography:{...qJ.tooltip,color:UJ},background:BJ,border:{type:"border",radius:GJ},entities:{tooltip:{height:WJ},arrow:{width:"6px",height:wh,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:wh,right:wh,top:wh,bottom:wh}};function Fu(t){return nP(t)?(t.nodeName||"").toLowerCase():"#document"}function Jn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ka(t){var e;return(e=(nP(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function nP(t){return t instanceof Node||t instanceof Jn(t).Node}function jt(t){return t instanceof Element||t instanceof Jn(t).Element}function gi(t){return t instanceof HTMLElement||t instanceof Jn(t).HTMLElement}function Ny(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Jn(t).ShadowRoot}function tp(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Ui(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function KJ(t){return["table","td","th"].includes(Fu(t))}function qv(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function vb(t){const e=gb(),r=jt(t)?Ui(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function YJ(t){let e=Ba(t);for(;gi(e)&&!Js(e);){if(vb(e))return e;if(qv(e))return null;e=Ba(e)}return null}function gb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Js(t){return["html","body","#document"].includes(Fu(t))}function Ui(t){return Jn(t).getComputedStyle(t)}function Wv(t){return jt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ba(t){if(Fu(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ny(t)&&t.host||Ka(t);return Ny(e)?e.host:e}function iP(t){const e=Ba(t);return Js(e)?t.ownerDocument?t.ownerDocument.body:t.body:gi(e)&&tp(e)?e:iP(e)}function js(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=iP(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),a=Jn(i);if(o){const s=Dy(a);return e.concat(a,a.visualViewport||[],tp(i)?i:[],s&&r?js(s):[])}return e.concat(i,js(i,[],r))}function Dy(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dx(t){let e=t.activeElement;for(;((r=e)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;e=e.shadowRoot.activeElement}return e}function Ef(t,e){if(!t||!e)return!1;const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&Ny(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function yb(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function oP(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function QJ(t){return eee()?!1:!Vx()&&t.width===0&&t.height===0||Vx()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function XJ(){return/apple/i.test(navigator.vendor)}function Vx(){const t=/android/i;return t.test(yb())||t.test(oP())}function JJ(){return yb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function eee(){return oP().includes("jsdom/")}function Vy(t,e){const r=["mouse","pen"];return r.push("",void 0),r.includes(t)}function tee(t){return"nativeEvent"in t}function ree(t){return t.matches("html,body")}function Gc(t){return(t==null?void 0:t.ownerDocument)||document}function n5(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}function yd(t){return"composedPath"in t?t.composedPath()[0]:t.target}const nee="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function iee(t){return gi(t)&&t.matches(nee)}const oee=["top","right","bottom","left"],Fx=["start","end"],zx=oee.reduce((t,e)=>t.concat(e,e+"-"+Fx[0],e+"-"+Fx[1]),[]),Wo=Math.min,ci=Math.max,q0=Math.round,m2=Math.floor,ec=t=>({x:t,y:t}),aee={left:"right",right:"left",bottom:"top",top:"bottom"},see={start:"end",end:"start"};function Fy(t,e,r){return ci(t,Wo(e,r))}function Dl(t,e){return typeof t=="function"?t(e):t}function na(t){return t.split("-")[0]}function go(t){return t.split("-")[1]}function aP(t){return t==="x"?"y":"x"}function _b(t){return t==="y"?"height":"width"}function Il(t){return["top","bottom"].includes(na(t))?"y":"x"}function bb(t){return aP(Il(t))}function sP(t,e,r){r===void 0&&(r=!1);const n=go(t),i=bb(t),o=_b(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=G0(a)),[a,G0(a)]}function cee(t){const e=G0(t);return[W0(t),e,W0(e)]}function W0(t){return t.replace(/start|end/g,e=>see[e])}function lee(t,e,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?o:a;default:return[]}}function dee(t,e,r,n){const i=go(t);let o=lee(na(t),r==="start",n);return i&&(o=o.map(a=>a+"-"+i),e&&(o=o.concat(o.map(W0)))),o}function G0(t){return t.replace(/left|right|bottom|top/g,e=>aee[e])}function uee(t){return{top:0,right:0,bottom:0,left:0,...t}}function cP(t){return typeof t!="number"?uee(t):{top:t,right:t,bottom:t,left:t}}function K0(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function jx(t,e,r){let{reference:n,floating:i}=t;const o=Il(e),a=bb(e),s=_b(a),c=na(e),l=o==="y",d=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let f;switch(c){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-i.width,y:u};break;default:f={x:n.x,y:n.y}}switch(go(e)){case"start":f[a]-=h*(r&&l?-1:1);break;case"end":f[a]+=h*(r&&l?-1:1);break}return f}const hee=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=jx(l,n,c),h=n,f={},p=0;for(let m=0;m<s.length;m++){const{name:w,fn:y}=s[m],{x:v,y:g,data:k,reset:E}=await y({x:d,y:u,initialPlacement:n,placement:h,strategy:i,middlewareData:f,rects:l,platform:a,elements:{reference:t,floating:e}});d=v??d,u=g??u,f={...f,[w]:{...f[w],...k}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=jx(l,h,c)),m=-1)}return{x:d,y:u,placement:h,strategy:i,middlewareData:f}};async function Gv(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:f=0}=Dl(e,t),p=cP(f),w=s[h?u==="floating"?"reference":"floating":u],y=K0(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(w)))==null||r?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),v=u==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),k=await(o.isElement==null?void 0:o.isElement(g))?await(o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},E=K0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:g,strategy:c}):v);return{top:(y.top-E.top+p.top)/k.y,bottom:(E.bottom-y.bottom+p.bottom)/k.y,left:(y.left-E.left+p.left)/k.x,right:(E.right-y.right+p.right)/k.x}}const fee=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:c}=e,{element:l,padding:d=0}=Dl(t,e)||{};if(l==null)return{};const u=cP(d),h={x:r,y:n},f=bb(i),p=_b(f),m=await a.getDimensions(l),w=f==="y",y=w?"top":"left",v=w?"bottom":"right",g=w?"clientHeight":"clientWidth",k=o.reference[p]+o.reference[f]-h[f]-o.floating[p],E=h[f]-o.reference[f],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let R=C?C[g]:0;(!R||!await(a.isElement==null?void 0:a.isElement(C)))&&(R=s.floating[g]||o.floating[p]);const $=k/2-E/2,Y=R/2-m[p]/2-1,q=Wo(u[y],Y),ae=Wo(u[v],Y),_e=q,Ve=R-m[p]-ae,H=R/2-m[p]/2+$,Z=Fy(_e,H,Ve),F=!c.arrow&&go(i)!=null&&H!==Z&&o.reference[p]/2-(H<_e?q:ae)-m[p]/2<0,O=F?H<_e?H-_e:H-Ve:0;return{[f]:h[f]+O,data:{[f]:Z,centerOffset:H-Z-O,...F&&{alignmentOffset:O}},reset:F}}});function pee(t,e,r){return(t?[...r.filter(i=>go(i)===t),...r.filter(i=>go(i)!==t)]:r.filter(i=>na(i)===i)).filter(i=>t?go(i)===t||(e?W0(i)!==i:!1):!0)}const mee=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;const{rects:o,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:h=zx,autoAlignment:f=!0,...p}=Dl(t,e),m=u!==void 0||h===zx?pee(u||null,f,h):h,w=await Gv(e,p),y=((r=a.autoPlacement)==null?void 0:r.index)||0,v=m[y];if(v==null)return{};const g=sP(v,o,await(c.isRTL==null?void 0:c.isRTL(l.floating)));if(s!==v)return{reset:{placement:m[0]}};const k=[w[na(v)],w[g[0]],w[g[1]]],E=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:k}],C=m[y+1];if(C)return{data:{index:y+1,overflows:E},reset:{placement:C}};const R=E.map(q=>{const ae=go(q.placement);return[q.placement,ae&&d?q.overflows.slice(0,2).reduce((_e,Ve)=>_e+Ve,0):q.overflows[0],q.overflows]}).sort((q,ae)=>q[1]-ae[1]),Y=((i=R.filter(q=>q[2].slice(0,go(q[0])?2:3).every(ae=>ae<=0))[0])==null?void 0:i[0])||R[0][0];return Y!==s?{data:{index:y+1,overflows:E},reset:{placement:Y}}:{}}}},vee=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=Dl(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const y=na(i),v=Il(s),g=na(s)===s,k=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=h||(g||!m?[G0(s)]:cee(s)),C=p!=="none";!h&&C&&E.push(...dee(s,m,p,k));const R=[s,...E],$=await Gv(e,w),Y=[];let q=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&Y.push($[y]),u){const H=sP(i,a,k);Y.push($[H[0]],$[H[1]])}if(q=[...q,{placement:i,overflows:Y}],!Y.every(H=>H<=0)){var ae,_e;const H=(((ae=o.flip)==null?void 0:ae.index)||0)+1,Z=R[H];if(Z)return{data:{index:H,overflows:q},reset:{placement:Z}};let F=(_e=q.filter(O=>O.overflows[0]<=0).sort((O,M)=>O.overflows[1]-M.overflows[1])[0])==null?void 0:_e.placement;if(!F)switch(f){case"bestFit":{var Ve;const O=(Ve=q.filter(M=>{if(C){const N=Il(M.placement);return N===v||N==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(N=>N>0).reduce((N,z)=>N+z,0)]).sort((M,N)=>M[1]-N[1])[0])==null?void 0:Ve[0];O&&(F=O);break}case"initialPlacement":F=s;break}if(i!==F)return{reset:{placement:F}}}return{}}}};async function gee(t,e){const{placement:r,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=na(r),s=go(r),c=Il(r)==="y",l=["left","top"].includes(a)?-1:1,d=o&&c?-1:1,u=Dl(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),c?{x:f*d,y:h*l}:{x:h*l,y:f*d}}const yee=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=e,c=await gee(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},_ee=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...c}=Dl(t,e),l={x:r,y:n},d=await Gv(e,c),u=Il(na(i)),h=aP(u);let f=l[h],p=l[u];if(o){const w=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=f+d[w],g=f-d[y];f=Fy(v,f,g)}if(a){const w=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=p+d[w],g=p-d[y];p=Fy(v,p,g)}const m=s.fn({...e,[h]:f,[u]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}},bee=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:i,elements:o}=e,{apply:a=()=>{},...s}=Dl(t,e),c=await Gv(e,s),l=na(r),d=go(r),u=Il(r)==="y",{width:h,height:f}=n.floating;let p,m;l==="top"||l==="bottom"?(p=l,m=d===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=l,p=d==="end"?"top":"bottom");const w=f-c.top-c.bottom,y=h-c.left-c.right,v=Wo(f-c[p],w),g=Wo(h-c[m],y),k=!e.middlewareData.shift;let E=v,C=g;if(u?C=d||k?Wo(g,y):y:E=d||k?Wo(v,w):w,k&&!d){const $=ci(c.left,0),Y=ci(c.right,0),q=ci(c.top,0),ae=ci(c.bottom,0);u?C=h-2*($!==0||Y!==0?$+Y:ci(c.left,c.right)):E=f-2*(q!==0||ae!==0?q+ae:ci(c.top,c.bottom))}await a({...e,availableWidth:C,availableHeight:E});const R=await i.getDimensions(o.floating);return h!==R.width||f!==R.height?{reset:{rects:!0}}:{}}}};function lP(t){const e=Ui(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=gi(t),o=i?t.offsetWidth:r,a=i?t.offsetHeight:n,s=q0(r)!==o||q0(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function wb(t){return jt(t)?t:t.contextElement}function tu(t){const e=wb(t);if(!gi(e))return ec(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:o}=lP(e);let a=(o?q0(r.width):r.width)/n,s=(o?q0(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const wee=ec(0);function dP(t){const e=Jn(t);return!gb()||!e.visualViewport?wee:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xee(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Jn(t)?!1:e}function Rl(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),o=wb(t);let a=ec(1);e&&(n?jt(n)&&(a=tu(n)):a=tu(t));const s=xee(o,r,n)?dP(o):ec(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const h=Jn(o),f=n&&jt(n)?Jn(n):n;let p=h,m=Dy(p);for(;m&&n&&f!==p;){const w=tu(m),y=m.getBoundingClientRect(),v=Ui(m),g=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,k=y.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;c*=w.x,l*=w.y,d*=w.x,u*=w.y,c+=g,l+=k,p=Jn(m),m=Dy(p)}}return K0({width:d,height:u,x:c,y:l})}function Cee(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const o=i==="fixed",a=Ka(n),s=e?qv(e.floating):!1;if(n===a||s&&o)return r;let c={scrollLeft:0,scrollTop:0},l=ec(1);const d=ec(0),u=gi(n);if((u||!u&&!o)&&((Fu(n)!=="body"||tp(a))&&(c=Wv(n)),gi(n))){const h=Rl(n);l=tu(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+d.x,y:r.y*l.y-c.scrollTop*l.y+d.y}}function kee(t){return Array.from(t.getClientRects())}function uP(t){return Rl(Ka(t)).left+Wv(t).scrollLeft}function Eee(t){const e=Ka(t),r=Wv(t),n=t.ownerDocument.body,i=ci(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=ci(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+uP(t);const s=-r.scrollTop;return Ui(n).direction==="rtl"&&(a+=ci(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function See(t,e){const r=Jn(t),n=Ka(t),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;const l=gb();(!l||l&&e==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s,y:c}}function Tee(t,e){const r=Rl(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=gi(t)?tu(t):ec(1),a=t.clientWidth*o.x,s=t.clientHeight*o.y,c=i*o.x,l=n*o.y;return{width:a,height:s,x:c,y:l}}function Ux(t,e,r){let n;if(e==="viewport")n=See(t,r);else if(e==="document")n=Eee(Ka(t));else if(jt(e))n=Tee(e,r);else{const i=dP(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return K0(n)}function hP(t,e){const r=Ba(t);return r===e||!jt(r)||Js(r)?!1:Ui(r).position==="fixed"||hP(r,e)}function Aee(t,e){const r=e.get(t);if(r)return r;let n=js(t,[],!1).filter(s=>jt(s)&&Fu(s)!=="body"),i=null;const o=Ui(t).position==="fixed";let a=o?Ba(t):t;for(;jt(a)&&!Js(a);){const s=Ui(a),c=vb(a);!c&&s.position==="fixed"&&(i=null),(o?!c&&!i:!c&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||tp(a)&&!c&&hP(t,a))?n=n.filter(d=>d!==a):i=s,a=Ba(a)}return e.set(t,n),n}function Iee(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const a=[...r==="clippingAncestors"?qv(e)?[]:Aee(e,this._c):[].concat(r),n],s=a[0],c=a.reduce((l,d)=>{const u=Ux(e,d,i);return l.top=ci(u.top,l.top),l.right=Wo(u.right,l.right),l.bottom=Wo(u.bottom,l.bottom),l.left=ci(u.left,l.left),l},Ux(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ree(t){const{width:e,height:r}=lP(t);return{width:e,height:r}}function Pee(t,e,r){const n=gi(e),i=Ka(e),o=r==="fixed",a=Rl(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const c=ec(0);if(n||!n&&!o)if((Fu(e)!=="body"||tp(i))&&(s=Wv(e)),n){const u=Rl(e,!0,o,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=uP(i));const l=a.left+s.scrollLeft-c.x,d=a.top+s.scrollTop-c.y;return{x:l,y:d,width:a.width,height:a.height}}function i5(t){return Ui(t).position==="static"}function Bx(t,e){return!gi(t)||Ui(t).position==="fixed"?null:e?e(t):t.offsetParent}function fP(t,e){const r=Jn(t);if(qv(t))return r;if(!gi(t)){let i=Ba(t);for(;i&&!Js(i);){if(jt(i)&&!i5(i))return i;i=Ba(i)}return r}let n=Bx(t,e);for(;n&&KJ(n)&&i5(n);)n=Bx(n,e);return n&&Js(n)&&i5(n)&&!vb(n)?r:n||YJ(t)||r}const Mee=async function(t){const e=this.getOffsetParent||fP,r=this.getDimensions,n=await r(t.floating);return{reference:Pee(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $ee(t){return Ui(t).direction==="rtl"}const Zee={convertOffsetParentRelativeRectToViewportRelativeRect:Cee,getDocumentElement:Ka,getClippingRect:Iee,getOffsetParent:fP,getElementRects:Mee,getClientRects:kee,getDimensions:Ree,getScale:tu,isElement:jt,isRTL:$ee};function Oee(t,e){let r=null,n;const i=Ka(t);function o(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),o();const{left:l,top:d,width:u,height:h}=t.getBoundingClientRect();if(s||e(),!u||!h)return;const f=m2(d),p=m2(i.clientWidth-(l+u)),m=m2(i.clientHeight-(d+h)),w=m2(l),v={rootMargin:-f+"px "+-p+"px "+-m+"px "+-w+"px",threshold:ci(0,Wo(1,c))||1};let g=!0;function k(E){const C=E[0].intersectionRatio;if(C!==c){if(!g)return a();C?a(!1,C):n=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{r=new IntersectionObserver(k,{...v,root:i.ownerDocument})}catch{r=new IntersectionObserver(k,v)}r.observe(t)}return a(!0),o}function xb(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=wb(t),d=i||o?[...l?js(l):[],...js(e)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),o&&y.addEventListener("resize",r)});const u=l&&s?Oee(l,r):null;let h=-1,f=null;a&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=f)==null||g.observe(e)})),r()}),l&&!c&&f.observe(l),f.observe(e));let p,m=c?Rl(t):null;c&&w();function w(){const y=Rl(t);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&r(),m=y,p=requestAnimationFrame(w)}return r(),()=>{var y;d.forEach(v=>{i&&v.removeEventListener("scroll",r),o&&v.removeEventListener("resize",r)}),u==null||u(),(y=f)==null||y.disconnect(),f=null,c&&cancelAnimationFrame(p)}}const pP=yee,Hee=mee,mP=_ee,Lee=vee,Nee=bee,qx=fee,vP=(t,e,r)=>{const n=new Map,i={platform:Zee,...r},o={...i.platform,_c:n};return hee(t,e,{...i,platform:o})};var Cm=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Y0(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Y0(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&t.$$typeof)&&!Y0(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function gP(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Wx(t,e){const r=gP(t);return Math.round(e*r)/r}function Gx(t){const e=_.useRef(t);return Cm(()=>{e.current=t}),e}function Dee(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=t,[d,u]=_.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,f]=_.useState(n);Y0(h,n)||f(n);const[p,m]=_.useState(null),[w,y]=_.useState(null),v=_.useCallback(O=>{O!==C.current&&(C.current=O,m(O))},[]),g=_.useCallback(O=>{O!==R.current&&(R.current=O,y(O))},[]),k=o||p,E=a||w,C=_.useRef(null),R=_.useRef(null),$=_.useRef(d),Y=c!=null,q=Gx(c),ae=Gx(i),_e=_.useCallback(()=>{if(!C.current||!R.current)return;const O={placement:e,strategy:r,middleware:h};ae.current&&(O.platform=ae.current),vP(C.current,R.current,O).then(M=>{const N={...M,isPositioned:!0};Ve.current&&!Y0($.current,N)&&($.current=N,Nf.flushSync(()=>{u(N)}))})},[h,e,r,ae]);Cm(()=>{l===!1&&$.current.isPositioned&&($.current.isPositioned=!1,u(O=>({...O,isPositioned:!1})))},[l]);const Ve=_.useRef(!1);Cm(()=>(Ve.current=!0,()=>{Ve.current=!1}),[]),Cm(()=>{if(k&&(C.current=k),E&&(R.current=E),k&&E){if(q.current)return q.current(k,E,_e);_e()}},[k,E,_e,q,Y]);const H=_.useMemo(()=>({reference:C,floating:R,setReference:v,setFloating:g}),[v,g]),Z=_.useMemo(()=>({reference:k,floating:E}),[k,E]),F=_.useMemo(()=>{const O={position:r,left:0,top:0};if(!Z.floating)return O;const M=Wx(Z.floating,d.x),N=Wx(Z.floating,d.y);return s?{...O,transform:"translate("+M+"px, "+N+"px)",...gP(Z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:N}},[r,s,Z.floating,d.x,d.y]);return _.useMemo(()=>({...d,update:_e,refs:H,elements:Z,floatingStyles:F}),[d,_e,H,Z,F])}const Vee=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?qx({element:n.current,padding:i}).fn(r):{}:n?qx({element:n,padding:i}).fn(r):{}}}},yP=(t,e)=>({...pP(t),options:[t,e]}),_P=(t,e)=>({...mP(t),options:[t,e]}),bP=(t,e)=>({...Lee(t),options:[t,e]}),Fee=(t,e)=>({...Nee(t),options:[t,e]}),zee=(t,e)=>({...Vee(t),options:[t,e]}),wP={..._E},jee=wP.useInsertionEffect,Uee=jee||(t=>t());function Ss(t){const e=_.useRef(()=>{});return Uee(()=>{e.current=t}),_.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}var Pl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function zy(){return zy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zy.apply(this,arguments)}let Kx=!1,Bee=0;const Yx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bee++;function qee(){const[t,e]=_.useState(()=>Kx?Yx():void 0);return Pl(()=>{t==null&&e(Yx())},[]),_.useEffect(()=>{Kx=!0},[]),t}const Wee=wP.useId,Cb=Wee||qee;function Gee(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(i=>i(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(i=>i!==r))||[])}}}const Kee=_.createContext(null),Yee=_.createContext(null),kb=()=>{var t;return((t=_.useContext(Kee))==null?void 0:t.id)||null},Eb=()=>_.useContext(Yee);function Sb(t){return"data-floating-ui-"+t}function o5(t){const e=_.useRef(t);return Pl(()=>{e.current=t}),e}const Qx=Sb("safe-polygon");function a5(t,e,r){return r&&!Vy(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function Qee(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:i,events:o,elements:a}=t,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:d=!1,restMs:u=0,move:h=!0}=e,f=Eb(),p=kb(),m=o5(l),w=o5(c),y=o5(r),v=_.useRef(),g=_.useRef(-1),k=_.useRef(),E=_.useRef(-1),C=_.useRef(!0),R=_.useRef(!1),$=_.useRef(()=>{}),Y=_.useCallback(()=>{var Z;const F=(Z=i.current.openEvent)==null?void 0:Z.type;return(F==null?void 0:F.includes("mouse"))&&F!=="mousedown"},[i]);_.useEffect(()=>{if(!s)return;function Z(F){let{open:O}=F;O||(clearTimeout(g.current),clearTimeout(E.current),C.current=!0)}return o.on("openchange",Z),()=>{o.off("openchange",Z)}},[s,o]),_.useEffect(()=>{if(!s||!m.current||!r)return;function Z(O){Y()&&n(!1,O,"hover")}const F=Gc(a.floating).documentElement;return F.addEventListener("mouseleave",Z),()=>{F.removeEventListener("mouseleave",Z)}},[a.floating,r,n,s,m,Y]);const q=_.useCallback(function(Z,F,O){F===void 0&&(F=!0),O===void 0&&(O="hover");const M=a5(w.current,"close",v.current);M&&!k.current?(clearTimeout(g.current),g.current=window.setTimeout(()=>n(!1,Z,O),M)):F&&(clearTimeout(g.current),n(!1,Z,O))},[w,n]),ae=Ss(()=>{$.current(),k.current=void 0}),_e=Ss(()=>{if(R.current){const Z=Gc(a.floating).body;Z.style.pointerEvents="",Z.removeAttribute(Qx),R.current=!1}});_.useEffect(()=>{if(!s)return;function Z(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function F(z){if(clearTimeout(g.current),C.current=!1,d&&!Vy(v.current)||u>0&&!a5(w.current,"open"))return;const te=a5(w.current,"open",v.current);te?g.current=window.setTimeout(()=>{y.current||n(!0,z,"hover")},te):n(!0,z,"hover")}function O(z){if(Z())return;$.current();const te=Gc(a.floating);if(clearTimeout(E.current),m.current&&i.current.floatingContext){r||clearTimeout(g.current),k.current=m.current({...i.current.floatingContext,tree:f,x:z.clientX,y:z.clientY,onClose(){_e(),ae(),q(z,!0,"safe-polygon")}});const je=k.current;te.addEventListener("mousemove",je),$.current=()=>{te.removeEventListener("mousemove",je)};return}(v.current==="touch"?!Ef(a.floating,z.relatedTarget):!0)&&q(z)}function M(z){Z()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:f,x:z.clientX,y:z.clientY,onClose(){_e(),ae(),q(z)}})(z))}if(jt(a.domReference)){var N;const z=a.domReference;return r&&z.addEventListener("mouseleave",M),(N=a.floating)==null||N.addEventListener("mouseleave",M),h&&z.addEventListener("mousemove",F,{once:!0}),z.addEventListener("mouseenter",F),z.addEventListener("mouseleave",O),()=>{var te;r&&z.removeEventListener("mouseleave",M),(te=a.floating)==null||te.removeEventListener("mouseleave",M),h&&z.removeEventListener("mousemove",F),z.removeEventListener("mouseenter",F),z.removeEventListener("mouseleave",O)}}},[a,s,t,d,u,h,q,ae,_e,n,r,y,f,w,m,i]),Pl(()=>{var Z;if(s&&r&&(Z=m.current)!=null&&Z.__options.blockPointerEvents&&Y()){R.current=!0;const O=a.floating;if(jt(a.domReference)&&O){var F;const M=Gc(a.floating).body;M.setAttribute(Qx,"");const N=a.domReference,z=f==null||(F=f.nodesRef.current.find(te=>te.id===p))==null||(F=F.context)==null?void 0:F.elements.floating;return z&&(z.style.pointerEvents=""),M.style.pointerEvents="none",N.style.pointerEvents="auto",O.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents="",O.style.pointerEvents=""}}}},[s,r,p,a,f,m,Y]),Pl(()=>{r||(v.current=void 0,ae(),_e())},[r,ae,_e]),_.useEffect(()=>()=>{ae(),clearTimeout(g.current),clearTimeout(E.current),_e()},[s,a.domReference,ae,_e]);const Ve=_.useMemo(()=>{function Z(F){v.current=F.pointerType}return{onPointerDown:Z,onPointerEnter:Z,onMouseMove(F){const{nativeEvent:O}=F;function M(){!C.current&&!y.current&&n(!0,O,"hover")}d&&!Vy(v.current)||r||u===0||(clearTimeout(E.current),v.current==="touch"?M():E.current=window.setTimeout(M,u))}}},[d,n,r,y,u]),H=_.useMemo(()=>({onMouseEnter(){clearTimeout(g.current)},onMouseLeave(Z){q(Z.nativeEvent,!1)}}),[q]);return _.useMemo(()=>s?{reference:Ve,floating:H}:{},[s,Ve,H])}function s5(t,e){let r=t.filter(i=>{var o;return i.parentId===e&&((o=i.context)==null?void 0:o.open)}),n=r;for(;n.length;)n=t.filter(i=>{var o;return(o=n)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),r=r.concat(n);return r}const Xee="data-floating-ui-focusable",c5=new Set,Jee=_.forwardRef(function(e,r){const{lockScroll:n=!1,...i}=e,o=Cb();return Pl(()=>{if(!n)return;c5.add(o);const a=/iP(hone|ad|od)|iOS/.test(yb()),s=document.body.style,l=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=s.left?parseFloat(s.left):window.scrollX,h=s.top?parseFloat(s.top):window.scrollY;if(s.overflow="hidden",d&&(s[l]=d+"px"),a){var f,p;const m=((f=window.visualViewport)==null?void 0:f.offsetLeft)||0,w=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(s,{position:"fixed",top:-(h-Math.floor(w))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{c5.delete(o),c5.size===0&&(Object.assign(s,{overflow:"",[l]:""}),a&&(Object.assign(s,{position:"",top:"",left:"",right:""}),window.scrollTo(u,h)))}},[o,n]),_.createElement("div",zy({ref:r},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))}),ete={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tte={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xx=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function xP(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,elements:i,dataRef:o}=t,{enabled:a=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:p}=e,m=Eb(),w=Ss(typeof c=="function"?c:()=>!1),y=typeof c=="function"?w:c,v=_.useRef(!1),g=_.useRef(!1),{escapeKey:k,outsidePress:E}=Xx(f),{escapeKey:C,outsidePress:R}=Xx(p),$=Ss(H=>{var Z;if(!r||!a||!s||H.key!=="Escape")return;const F=(Z=o.current.floatingContext)==null?void 0:Z.nodeId,O=m?s5(m.nodesRef.current,F):[];if(!k&&(H.stopPropagation(),O.length>0)){let M=!0;if(O.forEach(N=>{var z;if((z=N.context)!=null&&z.open&&!N.context.dataRef.current.__escapeKeyBubbles){M=!1;return}}),!M)return}n(!1,tee(H)?H.nativeEvent:H,"escape-key")}),Y=Ss(H=>{var Z;const F=()=>{var O;$(H),(O=yd(H))==null||O.removeEventListener("keydown",F)};(Z=yd(H))==null||Z.addEventListener("keydown",F)}),q=Ss(H=>{var Z;const F=v.current;v.current=!1;const O=g.current;if(g.current=!1,l==="click"&&O||F||typeof y=="function"&&!y(H))return;const M=yd(H),N="["+Sb("inert")+"]",z=Gc(i.floating).querySelectorAll(N);let te=jt(M)?M:null;for(;te&&!Js(te);){const Ie=Ba(te);if(Js(Ie)||!jt(Ie))break;te=Ie}if(z.length&&jt(M)&&!ree(M)&&!Ef(M,i.floating)&&Array.from(z).every(Ie=>!Ef(te,Ie)))return;if(gi(M)&&Ve){const Ie=M.clientWidth>0&&M.scrollWidth>M.clientWidth,rt=M.clientHeight>0&&M.scrollHeight>M.clientHeight;let Ur=rt&&H.offsetX>M.clientWidth;if(rt&&Ui(M).direction==="rtl"&&(Ur=H.offsetX<=M.offsetWidth-M.clientWidth),Ur||Ie&&H.offsetY>M.clientHeight)return}const se=(Z=o.current.floatingContext)==null?void 0:Z.nodeId,je=m&&s5(m.nodesRef.current,se).some(Ie=>{var rt;return n5(H,(rt=Ie.context)==null?void 0:rt.elements.floating)});if(n5(H,i.floating)||n5(H,i.domReference)||je)return;const Qe=m?s5(m.nodesRef.current,se):[];if(Qe.length>0){let Ie=!0;if(Qe.forEach(rt=>{var Ur;if((Ur=rt.context)!=null&&Ur.open&&!rt.context.dataRef.current.__outsidePressBubbles){Ie=!1;return}}),!Ie)return}n(!1,H,"outside-press")}),ae=Ss(H=>{var Z;const F=()=>{var O;q(H),(O=yd(H))==null||O.removeEventListener(l,F)};(Z=yd(H))==null||Z.addEventListener(l,F)});_.useEffect(()=>{if(!r||!a)return;o.current.__escapeKeyBubbles=k,o.current.__outsidePressBubbles=E;function H(O){n(!1,O,"ancestor-scroll")}const Z=Gc(i.floating);s&&Z.addEventListener("keydown",C?Y:$,C),y&&Z.addEventListener(l,R?ae:q,R);let F=[];return h&&(jt(i.domReference)&&(F=js(i.domReference)),jt(i.floating)&&(F=F.concat(js(i.floating))),!jt(i.reference)&&i.reference&&i.reference.contextElement&&(F=F.concat(js(i.reference.contextElement)))),F=F.filter(O=>{var M;return O!==((M=Z.defaultView)==null?void 0:M.visualViewport)}),F.forEach(O=>{O.addEventListener("scroll",H,{passive:!0})}),()=>{s&&Z.removeEventListener("keydown",C?Y:$,C),y&&Z.removeEventListener(l,R?ae:q,R),F.forEach(O=>{O.removeEventListener("scroll",H)})}},[o,i,s,y,l,r,n,h,a,k,E,$,C,Y,q,R,ae]),_.useEffect(()=>{v.current=!1},[y,l]);const _e=_.useMemo(()=>({onKeyDown:$,[ete[u]]:H=>{d&&n(!1,H.nativeEvent,"reference-press")}}),[$,n,d,u]),Ve=_.useMemo(()=>({onKeyDown:$,onMouseDown(){g.current=!0},onMouseUp(){g.current=!0},[tte[l]]:()=>{v.current=!0}}),[$,l]);return _.useMemo(()=>a?{reference:_e,floating:Ve}:{},[a,_e,Ve])}function rte(t){const{open:e=!1,onOpenChange:r,elements:n}=t,i=Cb(),o=_.useRef({}),[a]=_.useState(()=>Gee()),s=kb()!=null,[c,l]=_.useState(n.reference),d=Ss((f,p,m)=>{o.current.openEvent=f?p:void 0,a.emit("openchange",{open:f,event:p,reason:m,nested:s}),r==null||r(f,p,m)}),u=_.useMemo(()=>({setPositionReference:l}),[]),h=_.useMemo(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return _.useMemo(()=>({dataRef:o,open:e,onOpenChange:d,elements:h,events:a,floatingId:i,refs:u}),[e,d,h,a,i,u])}function CP(t){t===void 0&&(t={});const{nodeId:e}=t,r=rte({...t,elements:{reference:null,floating:null,...t.elements}}),n=t.rootContext||r,i=n.elements,[o,a]=_.useState(null),[s,c]=_.useState(null),d=(i==null?void 0:i.reference)||o,u=_.useRef(null),h=Eb();Pl(()=>{d&&(u.current=d)},[d]);const f=Dee({...t,elements:{...i,...s&&{reference:s}}}),p=_.useCallback(g=>{const k=jt(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;c(k),f.refs.setReference(k)},[f.refs]),m=_.useCallback(g=>{(jt(g)||g===null)&&(u.current=g,a(g)),(jt(f.refs.reference.current)||f.refs.reference.current===null||g!==null&&!jt(g))&&f.refs.setReference(g)},[f.refs]),w=_.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u}),[f.refs,m,p]),y=_.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),v=_.useMemo(()=>({...f,...n,refs:w,elements:y,nodeId:e}),[f,w,y,e,n]);return Pl(()=>{n.dataRef.current.floatingContext=v;const g=h==null?void 0:h.nodesRef.current.find(k=>k.id===e);g&&(g.context=v)}),_.useMemo(()=>({...f,context:v,refs:w,elements:y}),[f,w,y,v])}function nte(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:i,dataRef:o,elements:a}=t,{enabled:s=!0,visibleOnly:c=!0}=e,l=_.useRef(!1),d=_.useRef(),u=_.useRef(!0);_.useEffect(()=>{if(!s)return;const f=Jn(a.domReference);function p(){!r&&gi(a.domReference)&&a.domReference===Dx(Gc(a.domReference))&&(l.current=!0)}function m(){u.current=!0}return f.addEventListener("blur",p),f.addEventListener("keydown",m,!0),()=>{f.removeEventListener("blur",p),f.removeEventListener("keydown",m,!0)}},[a.domReference,r,s]),_.useEffect(()=>{if(!s)return;function f(p){let{reason:m}=p;(m==="reference-press"||m==="escape-key")&&(l.current=!0)}return i.on("openchange",f),()=>{i.off("openchange",f)}},[i,s]),_.useEffect(()=>()=>{clearTimeout(d.current)},[]);const h=_.useMemo(()=>({onPointerDown(f){QJ(f.nativeEvent)||(u.current=!1)},onMouseLeave(){l.current=!1},onFocus(f){if(l.current)return;const p=yd(f.nativeEvent);if(c&&jt(p))try{if(XJ()&&JJ())throw Error();if(!p.matches(":focus-visible"))return}catch{if(!u.current&&!iee(p))return}n(!0,f.nativeEvent,"focus")},onBlur(f){l.current=!1;const p=f.relatedTarget,m=f.nativeEvent,w=jt(p)&&p.hasAttribute(Sb("focus-guard"))&&p.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var y;const v=Dx(a.domReference?a.domReference.ownerDocument:document);!p&&v===a.domReference||Ef((y=o.current.floatingContext)==null?void 0:y.refs.floating.current,v)||Ef(a.domReference,v)||w||n(!1,m,"focus")})}}),[o,a.domReference,n,c]);return _.useMemo(()=>s?{reference:h}:{},[s,h])}const Jx="active",eC="selected";function l5(t,e,r){const n=new Map,i=r==="item";let o=t;if(i&&t){const{[Jx]:a,[eC]:s,...c}=t;o=c}return{...r==="floating"&&{tabIndex:-1,[Xee]:""},...o,...e.map(a=>{const s=a?a[r]:null;return typeof s=="function"?t?s(t):null:s}).concat(t).reduce((a,s)=>(s&&Object.entries(s).forEach(c=>{let[l,d]=c;if(!(i&&[Jx,eC].includes(l)))if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof d=="function"){var u;(u=n.get(l))==null||u.push(d),a[l]=function(){for(var h,f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return(h=n.get(l))==null?void 0:h.map(w=>w(...p)).find(w=>w!==void 0)}}}else a[l]=d}),a),{})}}function kP(t){t===void 0&&(t=[]);const e=t.map(s=>s==null?void 0:s.reference),r=t.map(s=>s==null?void 0:s.floating),n=t.map(s=>s==null?void 0:s.item),i=_.useCallback(s=>l5(s,t,"reference"),e),o=_.useCallback(s=>l5(s,t,"floating"),r),a=_.useCallback(s=>l5(s,t,"item"),n);return _.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const ite=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ote(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:i}=t,{enabled:o=!0,role:a="dialog"}=e,s=(r=ite.get(a))!=null?r:a,c=Cb(),d=kb()!=null,u=_.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:n?i:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":n?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:c},...s==="menu"&&d&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,i,d,n,c,a]),h=_.useMemo(()=>{const p={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?p:{...p,...s==="menu"&&{"aria-labelledby":c}}},[s,i,c,a]),f=_.useCallback(p=>{let{active:m,selected:w}=p;const y={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...y,"aria-selected":m&&w};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,a]);return _.useMemo(()=>o?{reference:u,floating:h,item:f}:{},[o,u,h,f])}const ate=W("div").withConfig({shouldForwardProp:()=>!0}).withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-m2im2p-0"})(["inset:unset;border:0;overflow:visible;"," "," "," background:",";white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}&::backdrop{background-color:transparent;}"],$n(Pa.typography),Eo(Pa.spacings),pi(Pa.border),Pa.background),ste=W.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],Pa.entities.arrow.width,Pa.entities.arrow.height),cte=W.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],Pa.entities.arrow.width,Pa.entities.arrow.height,Pa.background),jy=_.forwardRef(function({title:e,placement:r="bottom",children:n,style:i,enterDelay:o=100,...a},s){const c=_.useRef(null),[l,d]=_.useState(!1),u=e!=="",{x:h,y:f,refs:p,strategy:m,context:w,middlewareData:{arrow:{x:y,y:v}={}},placement:g}=CP({placement:r,open:l,onOpenChange:d,middleware:[yP(14),bP(),_P({padding:8}),zee({element:c})],whileElementsMounted:xb}),k=_.useMemo(()=>ra(p.setReference,n==null?void 0:n.ref),[p.setReference,n==null?void 0:n.ref]),E=_.useMemo(()=>ra(p.setFloating,s),[p.setFloating,s]),{getReferenceProps:C,getFloatingProps:R}=kP([Qee(w,{delay:{open:o}}),nte(w),ote(w,{role:"tooltip"}),xP(w)]);_.useEffect(()=>{const q={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]];let ae="none";switch(q){case"right":ae="rotateY(180deg)";break;case"left":ae="none";break;case"top":ae="rotate(90deg)";break;case"bottom":ae="rotate(-90deg)";break}c.current&&Object.assign(c.current.style,{left:y!=null?`${y}px`:"",top:v!=null?`${v}px`:"",right:"",bottom:"",[q]:"-6px",transform:ae})});const $=_.cloneElement(n,{...C({ref:k,...n.props})});Ly(()=>{var q;u&&l&&((q=p.floating.current)==null||q.showPopover())},[l,u,p.floating]);const Y=b.jsxs(ate,{popover:"manual",...a,...R({ref:E,style:{...i,position:m,top:f||0,left:h||0}}),children:[e,b.jsx(ste,{ref:c,children:b.jsx(cte,{className:"arrowSvg",children:b.jsx("path",{d:"M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"})})})]});return b.jsxs(b.Fragment,{children:[u&&l&&Y,$]})}),lte=_.forwardRef(function({children:e,multiple:r,selectedIndexes:n,onChange:i,...o},a){const[s,c]=_.useState(n||[]);_.useEffect(()=>{Array.isArray(n)&&c(n)},[n]);function l(u,h,f){const p=u;if(_.isValidElement(u)){const m={"aria-pressed":h?!0:void 0,variant:h?"contained":"outlined",onClick:w=>{var v,g;(g=(v=p.props)==null?void 0:v.onClick)==null||g.call(v,w);let y=[f];r&&(y=s.includes(f)?s.filter(k=>k!==f):[...s,f]),c(y),i&&i(y)}};return _.cloneElement(u,m)}}const d=_.Children.map(e,(u,h)=>{const f=s.includes(h),p=u;if(_.isValidElement(u)&&u.type===jy){const m=_.Children.map(p.props.children,w=>l(w,f,h));return _.cloneElement(p,null,m[0])}else return l(p,f,h)});return b.jsx(rP,{ref:a,...o,children:d})}),Mr=VJ;Mr.Group=rP;Mr.Toggle=lte;Mr.Group.displayName="Button.Group";Mr.Toggle.displayName="Button.Toggle";let Uy={},tC=0;const dte=t=>{Uy={...Uy,...t}},ute=t=>(tC+=1,{icon:Uy[t],count:tC}),hte=W.svg.attrs(({$height:t,$width:e,fill:r})=>({name:null,xmlns:"http://www.w3.org/2000/svg",height:`${t}px`,width:`${e}px`,fill:r})).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],({$rotation:t})=>t?`rotate(${t}deg)`:"none"),rC=W.path.attrs(({$height:t,$size:e})=>({size:null,fillRule:"evenodd",clipRule:"evenodd",transform:e/t!==1?`scale(${e/t})`:null})).withConfig({displayName:"Icon__StyledPath",componentId:"sc-6evbi1-1"})([""]),fte=t=>({icon:t,count:Math.floor(Math.random()*1e3)}),pte=(t,e,r)=>{var o;let{icon:n,count:i}=e?fte(e):ute(t);return r<24&&(n=((o=n.sizes)==null?void 0:o.small)||n),{icon:n,count:i}},mte=_.forwardRef(function({size:e,color:r="currentColor",name:n,rotation:i,title:o,data:a,...s},c){const{icon:l,count:d}=pte(n,a,e);if(typeof l>"u")throw Error(`Icon "${n}" not found. Have you added it using Icon.add() or using data props?`);const u=e||parseInt(l.width),h=e||parseInt(l.height);let f={$height:u,$width:h,fill:r,viewBox:`0 0 ${h} ${u}`,$rotation:i,name:n,"aria-hidden":!0};const p={$height:l.height?parseInt(l.height):e,$size:e||parseInt(l.height)};let m="";return o&&(m=`${l.prefix}-${l.name}-${d}`,f={...f,title:o,role:"img","aria-hidden":void 0,"aria-labelledby":m}),b.jsxs(hte,{...f,...s,ref:c,children:[o&&b.jsx("title",{id:m,children:o}),Array.isArray(l.svgPathData)?l.svgPathData.map(w=>b.jsx(rC,{...p,d:w},w)):b.jsx(rC,{"data-testid":"eds-icon-path",...p,d:l.svgPathData})]})}),Pt=mte;Pt.add=dte;const vte={name:"more_vertical",prefix:"eds",height:"24",width:"24",svgPathData:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2Zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm-2 8c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2Z"},gte={name:"fullscreen_exit",prefix:"eds",height:"24",width:"24",svgPathData:"M5 8h3V5h2v5H5V8Zm3 8H5v-2h5v5H8v-3Zm6 3h2v-3h3v-2h-5v5Zm2-14v3h3v2h-5V5h2Z"},yte={name:"work_outline",prefix:"eds",height:"24",width:"24",svgPathData:"M22 8.5c0-1.11-.89-2-2-2h-4v-2c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19.5c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2v-11Zm-8-2v-2h-4v2h4Zm-10 2v11h16v-11H4Z"},_te={name:"fullscreen",prefix:"eds",height:"24",width:"24",svgPathData:"M7 10H5V5h5v2H7v3Zm-2 4h2v3h3v2H5v-5Zm12 3h-3v2h5v-5h-2v3ZM14 7V5h5v5h-2V7h-3Z",sizes:{small:{name:"fullscreen_small",prefix:"eds",height:"18",width:"18",svgPathData:"M5 7H3V3h4v2H5v2Zm-2 4h2v2h2v2H3v-4Zm10 2h-2v2h4v-4h-2v2Zm-2-8V3h4v4h-2V5h-2Z"}}},bte={name:"edit",prefix:"eds",height:"24",width:"24",svgPathData:"m18.368 3.29 2.34 2.34c.39.39.39 1.02 0 1.41l-1.83 1.83-3.75-3.75 1.83-1.83c.19-.19.44-.29.7-.29.26 0 .51.09.71.29ZM2.998 17.25V21h3.75l11.06-11.06-3.75-3.75-11.06 11.06ZM5.918 19h-.92v-.92l9.06-9.06.92.92L5.918 19Z"},EP={name:"add",prefix:"eds",height:"24",width:"24",svgPathData:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"},wte={name:"update",prefix:"eds",height:"24",width:"24",svgPathData:"M21 3v7h-7l2.95-2.95A7.018 7.018 0 0 0 12 5c-3.86 0-7 3.14-7 7s3.14 7 7 7 7-3.14 7-7h2a9 9 0 1 1-9-9c2.49 0 4.74 1.01 6.36 2.64L21 3ZM11 13V8h1.5v4.15l3.52 2.09-.77 1.28L11 13Z"},xte={name:"delete_to_trash",prefix:"eds",height:"24",width:"24",svgPathData:"M14.5 3h-5l-1 1H5v2h14V4h-3.5l-1-1ZM16 9v10H8V9h8ZM6 7h12v12c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V7Z"},Tb={name:"close",prefix:"eds",height:"24",width:"24",svgPathData:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z",sizes:{small:{name:"close_small",prefix:"eds",height:"18",width:"18",svgPathData:"M14 5.007 12.993 4 9 7.993 5.007 4 4 5.007 7.993 9 4 12.993 5.007 14 9 10.007 12.993 14 14 12.993 10.007 9 14 5.007Z"}}},Cte={name:"search",prefix:"eds",height:"24",width:"24",svgPathData:"M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27Zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5Z",sizes:{small:{name:"search_small",prefix:"eds",height:"18",width:"18",svgPathData:"M11.224 10.691h.592l3.743 3.75-1.118 1.118-3.75-3.743v-.592l-.202-.21a4.853 4.853 0 0 1-3.173 1.177 4.875 4.875 0 1 1 4.875-4.875 4.853 4.853 0 0 1-1.177 3.173l.21.202ZM3.94 7.316a3.37 3.37 0 0 0 3.375 3.375 3.37 3.37 0 0 0 3.375-3.375 3.37 3.37 0 0 0-3.375-3.375 3.37 3.37 0 0 0-3.375 3.375Z"}}},kte={name:"checkbox",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0 1 0-1.41-1.41L10 14.17l-2.88-2.88a.996.996 0 1 0-1.41 1.41l3.59 3.59Z",sizes:{small:{name:"checkbox_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.75 2h10.5c.825 0 1.75.925 1.75 1.75v10.5c0 .825-.925 1.75-1.75 1.75H3.75c-.825 0-1.662-.925-1.662-1.75V3.75c0-.825.837-1.75 1.662-1.75Zm3.225 10.217a.747.747 0 0 0 1.057 0l5.685-5.692a.747.747 0 1 0-1.057-1.058l-5.16 5.16-2.16-2.16a.747.747 0 1 0-1.058 1.058l2.693 2.692Z"}}},Ete={name:"checkbox_outline",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm1 16h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1Z",sizes:{small:{name:"checkbox_outline_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75v10.5c0 .825-1.175 1.75-2 1.75H3.5c-.825 0-1.5-.925-1.5-1.75V3.75C2 2.925 2.675 2 3.5 2Zm1.214 12h8.572a.716.716 0 0 0 .714-.714V4.714A.716.716 0 0 0 13.286 4H4.714A.716.716 0 0 0 4 4.714v8.572c0 .393.321.714.714.714Z"}}},Ste={name:"checkbox_indeterminate",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm3 10h8c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1Z",sizes:{small:{name:"checkbox_indeterminate_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75V14c0 .825-1.175 2-2 2H4c-.825 0-2-1.175-2-2V3.75C2 2.925 2.675 2 3.5 2Zm2.3 8h6.4c.44 0 .8-.45.8-1s-.36-1-.8-1H5.8c-.44 0-.8.45-.8 1s.36 1 .8 1Z"}}},SP={name:"share",prefix:"eds",height:"24",width:"24",svgPathData:"M16.04 16.89c.52-.47 1.2-.77 1.96-.77 1.61 0 2.92 1.31 2.92 2.92 0 1.61-1.31 2.92-2.92 2.92-1.61 0-2.92-1.31-2.92-2.92 0-.22.03-.44.08-.65l-7.12-4.16c-.54.5-1.25.81-2.04.81-1.66 0-3-1.34-3-3s1.34-3 3-3c.79 0 1.5.31 2.04.81l7.05-4.11c-.05-.23-.09-.46-.09-.7 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.79 0-1.5-.31-2.04-.81l-7.05 4.11c.05.23.09.46.09.7 0 .24-.04.47-.09.7l7.13 4.15ZM19 5.04c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1Zm-13 8c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm11 6.02c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1Z"},Tte={name:"security",prefix:"eds",height:"24",width:"24",svgPathData:"m3 5 9-4 9 4v6c0 5.55-3.84 10.74-9 12-5.16-1.26-9-6.45-9-12V5Zm16 6.99h-7v-8.8L5 6.3V12h7v8.93c3.72-1.15 6.47-4.82 7-8.94Z"},km={name:"error_outlined",prefix:"eds",height:"24",width:"24",svgPathData:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM13 13V7h-2v6h2Zm0 4v-2h-2v2h2Zm-9-5c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z"},Ate={name:"menu",prefix:"eds",height:"24",width:"24",svgPathData:"M3 8V6h18v2H3Zm0 5h18v-2H3v2Zm0 5h18v-2H3v2Z"},TP={name:"category",prefix:"eds",height:"24",width:"24",svgPathData:"m6 11 5.5-9 5.5 9H6Zm7.43-2L11.5 5.84 9.56 9h3.87ZM17 13c-2.49 0-4.5 2.01-4.5 4.5S14.51 22 17 22s4.5-2.01 4.5-4.5S19.49 13 17 13Zm-2.5 4.5a2.5 2.5 0 0 0 5 0 2.5 2.5 0 0 0-5 0Zm-12 4h8v-8h-8v8Zm6-6h-4v4h4v-4Z"},Ite={name:"bandage",prefix:"eds",height:"24",width:"24",svgPathData:"m17.745 12 3.98-3.98a.996.996 0 0 0 0-1.41l-4.34-4.34a.996.996 0 0 0-1.41 0l-3.98 3.98-3.98-3.98a1.001 1.001 0 0 0-1.41 0l-4.34 4.34a.996.996 0 0 0 0 1.41L6.245 12l-3.98 3.98a.996.996 0 0 0 0 1.41l4.34 4.34c.39.39 1.02.39 1.41 0l3.98-3.98 3.98 3.98c.2.2.45.29.71.29.26 0 .51-.1.71-.29l4.34-4.34a.996.996 0 0 0 0-1.41L17.745 12Zm-5.73-3.02c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1Zm-8.34-1.66 3.63 3.62 3.62-3.63-3.62-3.62-3.63 3.63Zm6.34 5.66c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm1 1c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1Zm3-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1Zm-.97 5.72 3.63 3.62 3.62-3.63-3.62-3.62-3.63 3.63Z"},Rte={name:"file_description",prefix:"eds",height:"24",width:"24",svgPathData:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6Zm2 10H8v2h8v-2Zm0 4H8v2h8v-2ZM6 20h12V9h-5V4H6v16Z"},Ab={name:"chevron_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6 1.41-1.41Z",sizes:{small:{name:"chevron_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"M5.175 6 9 9.709 12.825 6 14 7.142 9 12 4 7.142 5.175 6Z"}}},Ib={name:"chevron_right",prefix:"eds",height:"24",width:"24",svgPathData:"m8.295 16.59 4.58-4.59-4.58-4.59L9.705 6l6 6-6 6-1.41-1.41Z",sizes:{small:{name:"chevron_right_small",prefix:"eds",height:"18",width:"18",svgPathData:"m6 12.827 3.709-3.825L6 5.177l1.142-1.175 4.858 5-4.858 5L6 12.827Z"}}},Pte={name:"arrow_back",prefix:"eds",height:"24",width:"24",svgPathData:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2Z",sizes:{small:{name:"arrow_back_small",prefix:"eds",height:"18",width:"18",svgPathData:"M15 8H6.5l4-4L9 3 3 9l6 6 1.5-1-4-4H15V8Z"}}},Mte={name:"tag",prefix:"eds",height:"24",width:"24",svgPathData:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42ZM13 20.01 4 11V4h7v-.01l9 9-7 7.02ZM5 6.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"},Kv=_.createContext({variant:"minWidth",scrollable:!1,handleChange:()=>null,activeTab:0,tabsId:"",tabsFocused:!1}),$te=Kv.Provider;Kv.Consumer;const{colors:{text:{static_icons__tertiary:{rgba:Zte}},ui:{background__medium:{rgba:Ote}},interactive:{focus:{rgba:nC},primary__hover_alt:{rgba:Hte},primary__resting:{rgba:iC},primary__hover:{rgba:Lte}}},clickbounds:{default__base:oC},spacings:{comfortable:{medium:v2}},interactions:{focused:{width:d5}},typography:{navigation:{menu_tabs:Nte,menu_title:Dte}}}=Ee,Vte={entities:{panel:{spacings:{top:v2,bottom:v2},states:{focus:{outline:{type:"outline",width:d5,style:"dashed",color:nC}}},typography:{...Dte}},tab:{background:"transparent",height:oC,clickbound:{height:oC,offset:{top:"2px"}},spacings:{left:v2,right:v2},typography:{color:Zte,textAlign:"center",...Nte},border:{type:"bordergroup",bottom:{color:Ote,style:"solid",width:"2px"}},states:{disabled:{border:{type:"border",width:0,color:"transparent",style:"solid"}},hover:{background:Hte},focus:{outline:{type:"outline",width:d5,offset:`-${parseInt(d5)}px`,style:"dashed",color:nC}},active:{typography:{color:iC},border:{type:"bordergroup",bottom:{color:iC,style:"solid",width:"2px"}},states:{hover:{typography:{color:Lte}}}}}}},modes:{compact:{}}},Fte=_.forwardRef(function({activeTab:e=0,onChange:r=()=>null,onBlur:n,onFocus:i,variant:o="minWidth",scrollable:a=!1,id:s,...c},l){const d=eP(s,"tabs"),u=_.useRef(null),h=_.useMemo(()=>ra(u,l),[u,l]),[f,p]=_.useState(!1),[m,w]=_.useState(!1);let y;const v=R=>{w(!1),u.current&&u.current.removeEventListener("keyup",k),y=setTimeout(()=>{f&&p(!1)},0),n&&n(R)},g=R=>{R.target.getAttribute("role")==="tab"&&(clearTimeout(y),!f&&(m||u.current&&(w(!0),u.current.addEventListener("keyup",k,{once:!0,capture:!0})),i&&i(R)))},k=R=>{w(!1),R.key==="Tab"&&p(!0)};_.useEffect(()=>{const R=u.current;return()=>{R&&R.removeEventListener("keyup",k)}},[]);const{density:E}=So(),C=aa({density:E},Vte);return b.jsx(Ga,{theme:C,children:b.jsx($te,{value:{activeTab:e,handleChange:r,tabsId:d,variant:o,scrollable:a,tabsFocused:f},children:b.jsx("div",{ref:h,...c,onBlur:v,onFocus:g})})})}),zte={fullWidth:"minmax(1%, 360px)",minWidth:"max-content"},jte=W.div.attrs(()=>({role:"tablist"})).withConfig({displayName:"TabList__StyledTabList",componentId:"sc-1g1p5i1-0"})(["display:grid;grid-auto-flow:column;grid-auto-columns:",";overflow-x:",";scroll-snap-type:x mandatory;overscroll-behavior-x:contain;@media (prefers-reduced-motion:no-preference){scroll-behavior:smooth;}@media (hover:none){overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:none;& ::-webkit-scrollbar{width:0;height:0;}}"],({$variant:t})=>zte[t],({$scrollable:t})=>t?"auto":"hidden"),Ute=_.forwardRef(function({children:e=[],...r},n){const{activeTab:i,handleChange:o,tabsId:a,variant:s="minWidth",scrollable:c=!1,tabsFocused:l}=_.useContext(Kv),d=_.useRef(),[u,h]=_.useState(!1),f=_.useCallback(k=>{(k!==null&&l||k!==null&&u)&&(h(!1),k.focus())},[u,l]),p=_.Children.map(e,(k,E)=>{const R=k.props.value,$=R?R===i:E===i,Y=$?ra(k.ref,f):k.ref;return $&&(d.current=E),_.cloneElement(k,{id:`${a}-tab-${E+1}`,"aria-controls":`${a}-panel-${E+1}`,active:$,$index:E,onClick:()=>o(E),ref:Y})}),m=p.filter(k=>!k.props.disabled).map(k=>k.props.$index),w=m[0],y=m[m.length-1],v=(k,E)=>{const C=k==="left"?1:-1,R=m[m.indexOf(d.current)-C];h(!0),o(R===void 0?E:R)},g=k=>{const{key:E}=k;E==="ArrowLeft"&&(k.preventDefault(),v("left",y)),E==="ArrowRight"&&(k.preventDefault(),v("right",w))};return b.jsx(jte,{onKeyDown:g,ref:n,...r,$variant:s,$scrollable:c,children:p})}),Bte=W.button.attrs(({$active:t=!1,disabled:e=!1,$value:r})=>({type:"button",role:"tab","aria-selected":t,"aria-disabled":e,tabIndex:r||t?0:-1})).withConfig({displayName:"Tab__StyledTab",componentId:"sc-scjkct-0"})(({theme:t,$active:e,disabled:r})=>{const{entities:{tab:n}}=t;return ke(["appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;border:none;outline:none;height:",";"," "," color:",";background-color:",";position:relative;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;overflow-x:hidden;scroll-snap-align:end;scroll-snap-stop:always;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:",";","}}"," ",""],n.height,Eo(n.spacings),$n(n.typography),e?n.states.active.typography.color:n.typography.color,n.background,on(n.states.focus.outline),on(n.states.focus.outline),e?n.states.active.states.hover.typography.color:n.typography.color,r?ke(["background:",";cursor:not-allowed;"],n.states.disabled.background):ke(["background:",";cursor:pointer;"],n.states.hover.background),pi(r?n.states.disabled.border:n.border),e&&pi(n.states.active.border))}),qte=_.forwardRef(function({active:e,value:r,...n},i){return b.jsx(Bte,{ref:i,$active:e,$value:r,...n})}),Wte=_.forwardRef(function({children:e,conditionalRender:r,...n},i){const{activeTab:o,tabsId:a}=_.useContext(Kv),s=_.Children.map(e,(c,l)=>r&&o!==l?null:_.cloneElement(c,{id:`${a}-panel-${l+1}`,"aria-labelledby":`${a}-tab-${l+1}`,hidden:o!==l}));return b.jsx("div",{ref:i,...n,children:s})}),Gte=W.div.attrs(()=>({tabIndex:0,role:"tabpanel"})).withConfig({displayName:"TabPanel__StyledTabPanel",componentId:"sc-e8v1d4-0"})(({theme:t})=>{const{entities:{panel:e}}=t;return ke([""," "," &:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Eo(e.spacings),$n(e.typography),on(e.states.focus.outline),on(e.states.focus.outline))}),Kte=_.forwardRef(function({...e},r){return b.jsx(Gte,{ref:r,...e,children:e.children})}),Tn=Fte;Tn.Tab=qte;Tn.Panels=Wte;Tn.Panel=Kte;Tn.List=Ute;Tn.Tab.displayName="Tabs.Tab";Tn.Panels.displayName="Tabs.Panels";Tn.Panel.displayName="Tabs.Panel";Tn.List.displayName="Tabs.List";const{elevation:Yte,colors:{ui:{background__default:{rgba:Qte}}}}=Ee,Xte={background:Qte},Jte=W.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],Xte.background,({$elevation:t})=>t),Yv=_.forwardRef(function({elevation:e="none",...r},n){const i={...r,$elevation:Yte[e]??"none"};return b.jsx(Jte,{...i,ref:n})}),{typography:AP,colors:ere,interactions:{focused:{width:tre}}}=Ee,{heading:rre,paragraph:nre}=AP,{interactive:{primary__resting:{rgba:ire},secondary__resting:{rgba:ore},danger__resting:{rgba:are},warning__resting:{rgba:sre},success__resting:{rgba:cre},disabled__text:{rgba:lre},focus:{rgba:dre}}}=ere,aC={primary:ire,secondary:ore,danger:are,warning:sre,success:cre,disabled:lre},sC={...rre,...nre},cC={states:{focus:{outline:{width:tre,color:dre,style:"dashed",type:"outline",offset:"2px"}}}},ure=(t,e)=>{if(e)return"a";switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},hre=(t,e)=>!e&&sC[t]?sC[t]:AP[e][t],fre=(t=null)=>typeof aC[t]>"u"?t:aC[t],pre=(t,e=!1,r=!1,n=!1)=>`${t}${e?"_bold":""}${r?"_italic":""}${n?"_link":""}`,mre=W.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],({$typography:t,$link:e})=>$n(t,e),({$color:t})=>ke({color:fre(t)}),({$lines:t})=>t&&ke(["display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;"],t),({$link:t})=>t&&ke(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],on(cC.states.focus.outline),on(cC.states.focus.outline))),Bi=_.forwardRef(function({variant:e="body_short",children:r,bold:n,italic:i,link:o,lines:a,color:s,group:c,token:l,as:d,...u},h){const f=d||ure(e,o),p=pre(e,n,i,o),m=hre(p,c);if(typeof m>"u")throw new Error(`Typography variant not found for variant "${p}" ("${e}") & group "${c||""}"`);return b.jsx(mre,{as:f,$typography:{...m,...l},$link:o,$lines:a,ref:h,$color:s,...u,children:r})}),{colors:lC,spacings:{comfortable:g2},typography:{navigation:vre}}=Ee,gre={height:"64px",background:lC.ui.background__default.rgba,typography:vre.menu_title,spacings:{left:g2.large,right:g2.large,top:g2.small,bottom:g2.small},border:{type:"bordergroup",bottom:{style:"solid",color:lC.ui.background__light.rgba,width:"2px"}},modes:{compact:{}}},yre=W(Yv).withConfig({displayName:"TopBar__StyledTopBar",componentId:"sc-1yj236q-0"})(({theme:t,$sticky:e})=>ke(["height:",";background:",";box-sizing:border-box;display:grid;grid-column-gap:",";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;"," ",";"," ",""],t.height,t.background,t.spacings.left,pi(t.border),Eo(t.spacings),$n(t.typography),e&&ke(["position:sticky;top:0;z-index:1100;"]))),_re=_.forwardRef(function({children:e,elevation:r="none",sticky:n=!0,...i},o){const{density:a}=So(),s=aa({density:a},gre),c={...i,ref:o};return b.jsx(Ga,{theme:s,children:b.jsx(yre,{forwardedAs:"header",elevation:r,$sticky:n,...c,children:e})})}),bre=W.div.withConfig({displayName:"Actions__StyledActions",componentId:"sc-1251ang-0"})(["grid-area:right;text-align:right;align-items:center;display:flex;"]),wre=_.forwardRef(function({children:e,...r},n){return b.jsx(bre,{ref:n,...r,children:e})}),xre=W.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1fpllve-0"})(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:12px;align-items:center;"]),Cre=_.forwardRef(function({children:e,...r},n){return b.jsx(xre,{ref:n,...r,children:e})}),kre=W.div.withConfig({displayName:"CustomContent__StyledCustomContent",componentId:"sc-d0e83a-0"})(["grid-area:center;"]),Ere=_.forwardRef(function({children:e,...r},n){return b.jsx(kre,{ref:n,...r,children:e})}),Go=_re;Go.Actions=wre;Go.Header=Cre;Go.CustomContent=Ere;Go.Actions.displayName="Topbar.Actions";Go.Header.displayName="Topbar.Header";Go.CustomContent.displayName="Topbar.CustomContent";const{spacings:{comfortable:{medium:xh}},typography:{ui:{accordion_header:dC},paragraph:{body_long:Sre}},colors:{ui:{background__default:{rgba:Tre},background__scrim:{rgba:Are}}},shape:{corners:{borderRadius:Ire}}}=Ee,Rre={width:"252px",background:Tre,typography:dC,border:{type:"border",radius:Ire},spacings:{bottom:xh},entities:{children:{spacings:{top:xh,bottom:xh,left:xh,right:xh}},title:{minHeight:"24px",typography:dC},content:{minHeight:"80px",height:"104px",typography:Sre},actions:{minHeight:"48px"},scrim:{background:Are}},modes:{compact:{}}},Pre=W(Yv).attrs({"aria-labelledby":"eds-dialog-title","aria-describedby":"eds-dialog-customcontent",elevation:"above_scrim"}).withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-1mewo3f-0"})(({theme:t})=>ke(["width:",";background:",";display:grid;grid-auto-columns:auto;",";",";grid-gap:",";"],t.width,t.background,$n(t.typography),pi(t.border),t.spacings.bottom)),Mre=W.dialog.withConfig({displayName:"Dialog__StyledNativeDialog",componentId:"sc-1mewo3f-1"})(({theme:t})=>ke(["padding:0;border:0;overflow:visible;overscroll-behavior:contain;",";&::backdrop{background-color:",";}"],pi(t.border),t.entities.scrim.background)),$re=_.forwardRef(function({children:e,open:r,onClose:n,isDismissable:i=!1,dialogRef:o,...a},s){const{density:c}=So(),l=_.useRef(null),d=aa({density:c},Rre),u=_.useMemo(()=>ra(l,o),[l,o]);_.useEffect(()=>{var f,p;r?(f=l==null?void 0:l.current)==null||f.showModal():(p=l==null?void 0:l.current)==null||p.close()},[r]),EJ(r);const h=f=>{const{target:p}=f;p instanceof HTMLElement&&i&&p.nodeName==="DIALOG"&&n&&n()};return B0("Escape",f=>{f.preventDefault(),i&&n&&r&&n&&n()}),b.jsx(Ga,{theme:d,children:b.jsx(Mre,{ref:u,onMouseDown:h,children:r&&b.jsx(Pre,{...a,ref:s,children:e})})})}),Zre=W.div.withConfig({displayName:"DialogActions__StyledDialogActions",componentId:"sc-16ydtxd-0"})(({theme:t,children:e})=>ke(["align-self:end;justify-self:start;padding:0 "," 0 ",";&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}",""],t.entities.children.spacings.right,t.entities.children.spacings.left,t.entities.children.spacings.top,t.entities.children.spacings.bottom,!e&&ke(["min-height:initial;height:'8px';"]))),Ore=_.forwardRef(function({children:e,...r},n){return b.jsx(Zre,{ref:n,...r,children:e})}),Hre=W.div.withConfig({displayName:"DialogTitle__StyledDialogTitle",componentId:"sc-1t3jljt-0"})(({theme:t,children:e})=>ke([""," min-height:",";align-self:end;justify-self:start;margin-right:",";",""],$n(t.entities.title.typography),t.entities.title.minHeight,t.entities.children.spacings.right,!e&&ke(["min-height:initial;height:'8px';"]))),Lre=_.forwardRef(function({children:e,...r},n){return b.jsx(b.Fragment,{children:b.jsx(Hre,{id:"eds-dialog-title",ref:n,...r,children:e})})}),{colors:{ui:{background__default:{rgba:Nre},background__light:{rgba:Dre},background__medium:{rgba:Vre}}},spacings:{comfortable:{small:uC,medium:hC}}}=Ee,Fre={lighter:{background:Nre},light:{background:Dre},mediumColor:{background:Vre}},zre={spacings:{top:uC,bottom:uC}},jre={spacings:{top:hC,bottom:hC}},By=Object.freeze(Object.defineProperty({__proto__:null,divider:Fre,medium:jre,small:zre},Symbol.toStringTag,{value:"Module"})),{divider:Ure}=By,Bre=W.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1d8osde-0"})(({$backgroundColor:t,$marginTop:e,$marginBottom:r,$dividerHeight:n})=>ke(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],t,e,r,n,n)),zu=_.forwardRef(function({color:e="medium",variant:r="medium",size:n="1",...i},o){const s={$backgroundColor:Ure[e==="medium"?"mediumColor":e].background,$marginTop:By[r].spacings.top,$marginBottom:By[r].spacings.bottom,$dividerHeight:parseInt(n),...i};return b.jsx(Bre,{...s,ref:o})}),qre=W.div.withConfig({displayName:"DialogContent__StyledDialogContent",componentId:"sc-1tze18k-0"})(({theme:t,$scrollable:e})=>ke(["--content-spacing-top:",";"," min-height:",";align-self:stretch;justify-self:stretch;padding:0 "," 0 ",";&:first-child{padding-top:var(--content-spacing-top);}&:last-child{padding-bottom:",";}",""],t.entities.children.spacings.top,$n(t.entities.content.typography),t.entities.content.minHeight,t.entities.children.spacings.right,t.entities.children.spacings.left,t.entities.children.spacings.bottom,e&&ke(["&:not(:first-child){margin-top:calc(var(--content-spacing-top) * -1);}padding-top:var(--content-spacing-top);margin-bottom:calc(var(--content-spacing-top) * -1);padding-bottom:var(--content-spacing-top);min-height:initial;height:",";overflow-y:auto;"],t.entities.content.height))),Wre=W(zu).withConfig({displayName:"DialogContent__StyledDivider",componentId:"sc-1tze18k-1"})(["width:100%;margin:0;"]),IP=_.forwardRef(function({children:e,scrollable:r=!1,...n},i){const o={$scrollable:r,ref:i,...n};return b.jsxs(b.Fragment,{children:[b.jsx(qre,{id:"eds-dialog-customcontent",...o,children:e}),e&&r&&b.jsx(Wre,{color:"medium",variant:"small"})]})}),Gre=W.div.withConfig({displayName:"DialogHeader__StyledDialogHeader",componentId:"sc-mbwcos-0"})(({theme:t})=>ke(["display:flex;justify-content:space-between;align-items:center;padding:"," "," 0 ",";"],t.entities.children.spacings.top,t.entities.children.spacings.right,t.entities.children.spacings.left)),Kre=W(zu).withConfig({displayName:"DialogHeader__StyledDivider",componentId:"sc-mbwcos-1"})(["margin-bottom:0;"]),Yre=_.forwardRef(function({children:e,...r},n){const i={...r,ref:n};return b.jsxs("div",{...i,children:[b.jsx(Gre,{children:e}),b.jsx(Kre,{variant:"small",color:"medium"})]})}),wr=$re;wr.Actions=Ore;wr.Title=Lre;wr.CustomContent=IP;wr.Content=IP;wr.Header=Yre;wr.Actions.displayName="Dialog.Actions";wr.Title.displayName="Dialog.Title";wr.Content.displayName="Dialog.Content";wr.Header.displayName="Dialog.Header";const Qre=W.div.withConfig({displayName:"SnackbarAction__StyledSnackbarAction",componentId:"sc-1v5mjvd-0"})(({theme:t})=>ke(["display:inline-flex;margin-left:",";margin-top:",";margin-bottom:",";"],t.entities.actions.spacings.left,t.entities.actions.spacings.top,t.entities.actions.spacings.bottom)),Xre=_.forwardRef(function({children:e,...r},n){const i={...r,ref:n};return b.jsx(Qre,{...i,children:_.Children.only(e)})}),{typography:{ui:{snackbar:Jre}},colors:{ui:{background__overlay:{rgba:ene}},text:{static_icons__primary_white:{rgba:tne}},interactive:{link_in_snackbars:{rgba:rne}}},spacings:{comfortable:{medium:y2,x_large:nne}},clickbounds:{default__base:ine},shape:{button:{borderRadius:one}}}=Ee,ane={background:ene,minHeight:ine,border:{type:"border",width:0,radius:one},entities:{actions:{spacings:{left:nne,top:"-10px",bottom:"-10px"}},button:{typography:{color:rne}}},spacings:{left:y2,bottom:y2,right:y2,top:y2},typography:{...Jre,color:tne},modes:{compact:{}}},sne=W("div").withConfig({shouldForwardProp:()=>!0,displayName:"Snackbar__PopoverDiv",componentId:"sc-ac6no8-0"})(({theme:t,$placement:e})=>ke(["inset:unset;border:0;overflow:visible;position:fixed;padding:0;background-color:transparent;"," &::backdrop{background-color:transparent;}"],{top:e.includes("top")?t.spacings.top:e==="left"||e==="right"?"50%":void 0,bottom:e.includes("bottom")?t.spacings.bottom:void 0,right:e.includes("right")?t.spacings.right:void 0,left:e.includes("left")?t.spacings.left:e==="top"||e==="bottom"?"50%":void 0,transform:e==="left"||e==="right"?"translateY(-50%)":e==="top"||e==="bottom"?"translateX(-50%)":void 0})),cne=W(Yv).withConfig({displayName:"Snackbar__StyledSnackbar",componentId:"sc-ac6no8-1"})(({theme:t})=>ke(["background-color:",";"," "," "," min-height:",";box-sizing:border-box;a,button{color:",";}"],t.background,Eo(t.spacings),pi(t.border),$n(t.typography),t.minHeight,t.entities.button.typography.color)),lne=_.forwardRef(function({open:e=!1,autoHideDuration:r=7e3,onClose:n,placement:i="bottom",children:o,...a},s){const[c,l]=_.useState(e),d=_.useRef();_.useEffect(()=>(l(e),e&&(d.current=setTimeout(()=>{l(!1),n&&n()},r)),()=>clearTimeout(d.current)),[e,r]);const u={ref:s,...a},{density:h}=So(),f=aa({density:h},ane);return b.jsx(Ga,{theme:f,children:c&&b.jsx(sne,{popover:"manual",$placement:i,ref:p=>p==null?void 0:p.showPopover(),children:b.jsx(cne,{role:"alert",elevation:"overlay",...u,children:o})})})}),RP=lne;RP.Action=Xre;const{colors:{infographic:{primary__moss_green_13:{rgba:dne},primary__moss_green_100:{rgba:une}},interactive:{icon_on_interactive_colors:{rgba:hne}},ui:{background__semitransparent:{rgba:fne}}}}=Ee,pne={background:dne,entities:{progress:{background:une}}},mne={background:fne,entities:{progress:{background:hne}}},fC=Object.freeze(Object.defineProperty({__proto__:null,neutral:mne,primary:pne},Symbol.toStringTag,{value:"Module"})),vne=LX(["100%{transform:rotate(360deg);}"]),gne=W.svg.withConfig({displayName:"CircularProgress__Svg",componentId:"sc-hib054-0"})(["display:inline-block;",";"],({$variant:t})=>t==="indeterminate"?ke(["animation:"," 1.4s linear infinite;"],vne):ke(["transform:rotate(-90deg);"])),yne=W.output.withConfig({displayName:"CircularProgress__SrOnlyOutput",componentId:"sc-hib054-1"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),_ne=W.circle.withConfig({displayName:"CircularProgress__TrackCircle",componentId:"sc-hib054-2"})([""]),bne=W.circle.withConfig({displayName:"CircularProgress__ProgressCircle",componentId:"sc-hib054-3"})([""]),wne=t=>fC[t]?fC[t]:{background:"transparent",entities:{progress:{background:t}}},xne=_.forwardRef(function({variant:e="indeterminate",value:r=null,size:n=48,color:i="primary",...o},a){const c=Math.round(r),l={},d={...o,ref:a,$variant:e},u=wne(i),[h,f]=_.useState(0),p=2*Math.PI*(44/2);e==="determinate"&&(l.stroke=p.toFixed(3),l.strokeDashoffset=`${((100-c)/100*p).toFixed(3)}px`,d["aria-valuenow"]=c,r!==void 0&&(d["aria-valuenow"]=c,d["aria-valuemin"]=0,d["aria-valuemax"]=100)),_.useEffect(()=>{e!=="indeterminate"&&(c>=25&&c<50?f(25):c>=50&&c<75?f(50):c>=75&&c<100?f(75):c===100&&f(100))},[c,e]);const m=()=>`Loading ${h}%`;return b.jsxs(b.Fragment,{children:[b.jsxs(gne,{...d,viewBox:"24 24 48 48",role:"progressbar",height:n,width:n,preserveAspectRatio:"xMidYMid meet",children:[b.jsx(_ne,{style:l,cx:48,cy:48,r:44/2,fill:"none",strokeWidth:4,stroke:u.background}),b.jsx(bne,{style:l,cx:48,cy:48,r:44/2,fill:"none",strokeLinecap:"round",strokeWidth:4,strokeDasharray:e==="determinate"?p:48,stroke:u.entities.progress.background})]}),e==="determinate"&&b.jsx(yne,{children:m()})]})}),PP={focusedIndex:-1,initialFocus:null,onClose:null},MP=_.createContext(PP),Cne=({children:t})=>{const[e,r]=_.useState(PP),{focusedIndex:n,initialFocus:i,onClose:o}=e,a=d=>{r(u=>({...u,focusedIndex:d}))},s=d=>{r(u=>({...u,initialFocus:d}))},l={setFocusedIndex:a,focusedIndex:n,setInitialFocus:s,initialFocus:i,setOnClose:d=>{const u=()=>{a(-1),s(null),d()};r(h=>({...h,onClose:u}))},onClose:o};return b.jsx(MP.Provider,{value:l,children:t})},Rb=()=>_.useContext(MP),{colors:{ui:{background__default:{rgba:kne}},interactive:{primary__selected_highlight:{rgba:Ene},primary__resting:{rgba:Sne},focus:{rgba:Tne},disabled__fill:{rgba:Ane},disabled__text:{rgba:Ine},table__header__fill_hover:{rgba:Rne}},text:{static_icons__default:{rgba:Pne}}},spacings:{comfortable:{medium:pC,large:nd,small:id}},typography:{navigation:{menu_title:u5}}}=Ee,rp={background:kne,spacings:{top:id,bottom:id,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:{...u5,color:Pne},entities:{icon:{states:{disabled:{typography:{color:Ane}}}},item:{spacings:{left:nd,right:nd,top:pC,bottom:pC},states:{active:{typography:{...u5,color:Sne},background:Ene},focus:{outline:{color:Tne,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:Rne},disabled:{typography:{...u5,color:Ine}}}},title:{spacings:{left:nd,right:nd,top:id,bottom:id}}},modes:{compact:{entities:{item:{spacings:{left:nd,right:nd,top:id,bottom:id}}}}}},{typography:Mne,entities:{item:{states:{active:mC,focus:$ne,hover:Zne,disabled:One}},icon:Hne}}=rp,Lne=W.button.attrs(({$isFocused:t})=>({role:"menuitem",tabIndex:t?-1:0})).withConfig({displayName:"MenuItem__Item",componentId:"sc-1g9fpbe-0"})(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;text-decoration:none;"," "," "," ",""],$n(Mne),({theme:t})=>Eo(t.entities.item.spacings),({$active:t})=>t&&ke(["background:",";*{color:",";}"],mC.background,mC.typography.color),({disabled:t})=>t?ke(["*{color:",";}svg{fill:",";}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],One.typography.color,Hne.states.disabled.typography.color):ke(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;background:",";}}&:focus-visible{z-index:3;","}"],Zne.background,on($ne.outline))),Nne=W.div.withConfig({displayName:"MenuItem__Content",componentId:"sc-1g9fpbe-1"})(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]),Qv=_.forwardRef(function({children:e,disabled:r,active:n,index:i=0,as:o="button",onClick:a,closeMenuOnClick:s=!0,...c},l){const{focusedIndex:d,setFocusedIndex:u,onClose:h}=Rb(),f=w=>{d!==w&&u(w)},p=i===d,m={...c,as:o,disabled:r,$isFocused:p};return b.jsx(Lne,{...m,$active:n,ref:ra(l,w=>{p&&requestAnimationFrame(()=>{w!==null&&w.focus()})}),onFocus:()=>f(i),onClick:w=>{a&&(a(w),h!==null&&s&&h(w))},children:b.jsx(Nne,{children:e})})});Qv.displayName="MenuItem";const Dne=W.div.attrs(()=>({tabIndex:0})).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],Eo(rp.entities.title.spacings)),$P=_.memo(function(e){const{children:r,title:n,index:i}=e;return b.jsxs(b.Fragment,{children:[i!==0&&b.jsx("div",{children:b.jsx(zu,{variant:"small"})}),n&&b.jsx(Dne,{role:"group",children:b.jsx(Bi,{group:"navigation",variant:"label",children:n})}),r]})}),Vne=W.div.withConfig({displayName:"MenuList__List",componentId:"sc-104rzof-0"})(["position:relative;list-style:none;display:flex;flex-direction:column;margin:0;"," li:first-child{z-index:3;}"],Eo(rp.spacings));function vC(t){return!!(_.isValidElement(t)&&!t.props.disabled&&t.type===Qv)}function Fne(t){return!!(_.isValidElement(t)&&t.type===Qv&&t.props.closeMenuOnClick!==!1)}const zne=_.forwardRef(function({addCloseMenuOnClickIndex:e,children:r,...n},i){const{focusedIndex:o,setFocusedIndex:a,initialFocus:s}=Rb();let c=-1;const l=_.useMemo(()=>[],[]),d=_.useMemo(()=>_.Children.map(r,m=>{if(!m)return m;if(m.type===$P){c++;const w=c,y=_.Children.map(m.props.children,v=>(c++,vC(v)&&l.push(c),_.cloneElement(v,{index:c})));return _.cloneElement(m,{index:w},y)}else return c++,vC(m)&&l.push(c),Fne(m)&&e(c),_.cloneElement(m,{index:c})}),[r,l,c,e]),u=l[0],h=l[l.length-1];_.useEffect(()=>{s==="first"&&a(u),s==="last"&&a(h)},[s,u,h]);const f=(m,w)=>{const y=m==="down"?1:-1,v=l.indexOf(o),g=l[v+y];a(typeof g>"u"?w:g)},p=m=>{const{key:w}=m;m.stopPropagation(),w==="ArrowDown"&&(m.preventDefault(),f("down",u)),w==="ArrowUp"&&(m.preventDefault(),f("up",h))};return b.jsx(Vne,{onKeyDown:p,role:"menu",...n,ref:i,children:d})}),{border:jne}=rp,Une=W(Yv).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["width:100%;min-width:fit-content;",";"],pi(jne)),Bne=W("div").withConfig({shouldForwardProp:()=>!0}).withConfig({displayName:"Menu__StyledPopover",componentId:"sc-1vlnqcj-1"})(["inset:unset;border:0;padding:0;margin:0;overflow:visible;background-color:transparent;&::backdrop{background-color:transparent;}"]),qne=_.forwardRef(function({children:e,anchorEl:r,onClose:n,open:i,...o},a){const{setOnClose:s,onClose:c,setInitialFocus:l,focusedIndex:d}=Rb(),u=_.useMemo(()=>[],[]);_.useEffect(()=>{c===null&&n&&s(n)},[c,n,s]),_.useEffect(()=>{const f=p=>{const{key:m}=p;switch((m==="ArrowDown"||m==="ArrowUp")&&(p.preventDefault(),p.stopPropagation(),r.dispatchEvent(new Event("click",{bubbles:!0}))),m){case"Enter":case"ArrowDown":l("first");break;case"ArrowUp":l("last");break}};return r&&r.addEventListener("keydown",f),()=>{r&&r.removeEventListener("keydown",f)}},[r]),B0("Escape",()=>{i&&c!==null&&(c(),r.focus())}),B0("Enter",()=>{i&&c!==null&&u.includes(d)&&setTimeout(()=>{window.document.contains(r)&&r.focus()},0)});const h=f=>{u.indexOf(f)<0&&u.push(f)};return b.jsx(zne,{addCloseMenuOnClickIndex:h,...o,ref:a,children:e})}),Wne=_.forwardRef(function({anchorEl:e,open:r,placement:n="bottom",matchAnchorWidth:i=!1,onClose:o,style:a,className:s,...c},l){const{density:d}=So(),u=aa({density:d},rp);let h=[yP(4),bP(),_P({padding:8})];i&&(h=[...h,Fee({apply({rects:R,elements:$}){Object.assign($.floating.style,{width:`${R.reference.width}px`})}})]);const{x:f,y:p,refs:m,update:w,strategy:y,context:v}=CP({elements:{reference:e},placement:n,open:r,onOpenChange:o,middleware:h}),g=_.useMemo(()=>ra(m.setFloating,l),[m.setFloating,l]);Ly(()=>{if(m.reference.current&&m.floating.current&&r)return xb(m.reference.current,m.floating.current,w)},[m.reference,m.floating,w,r]),Ly(()=>{var R,$;r?(R=m.floating.current)==null||R.showPopover():($=m.floating.current)==null||$.hidePopover()},[r,m.floating]);const{getFloatingProps:k}=kP([xP(v,{escapeKey:!1})]),E={className:s},C={...c,onClose:o,anchorEl:e,open:r};return b.jsx(Ga,{theme:u,children:b.jsx(Bne,{popover:"manual",...k({ref:g,style:{...a,position:y,top:p||0,left:f||0}}),children:b.jsx(Une,{elevation:"raised",...E,children:b.jsx(Cne,{children:b.jsx(qne,{...C,ref:l})})})})})}),Su=Wne;Su.Item=Qv;Su.Section=$P;Su.Item.displayName="Menu.Item";Su.Section.displayName="Menu.Section";const{colors:{ui:{background__light:{rgba:Gne}},text:{static_icons__default:Kne,static_icons__tertiary:h5},interactive:{disabled__text:gC,primary__resting:Yne,danger__resting:Qne,danger__hover:yC,warning__resting:Xne,warning__hover:_C,success__resting:Jne,success__hover:bC}},spacings:{comfortable:{small:wC,x_small:_2}},typography:Sf,shape:xC}=Ee,Xv={minHeight:xC.straight.minHeight,background:Gne,spacings:{left:wC,right:wC,top:"6px",bottom:"6px"},typography:{...Sf.input.text,color:Kne.rgba},entities:{placeholder:{typography:{color:h5.rgba}},helperText:{typography:{...Sf.input.label,color:h5.rgba},states:{disabled:{typography:{color:gC.rgba}}}}},states:{disabled:{typography:{color:gC.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"}},focus:{outline:{type:"outline",width:"2px",color:Yne.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+h5.rgba,modes:{compact:{minHeight:xC._modes.compact.straight.minHeight,spacings:{left:_2,right:_2,top:_2,bottom:_2}}}},eie=xr(Xv,{boxShadow:"none",outline:{color:Qne.rgba},states:{focus:{outline:{color:yC.rgba}}},entities:{helperText:{typography:{...Sf.input.label,color:yC.rgba}}}}),tie=xr(Xv,{boxShadow:"none",outline:{color:Xne.rgba},states:{focus:{outline:{color:_C.rgba}}},entities:{helperText:{typography:{...Sf.input.label,color:_C.rgba}}}}),rie=xr(Xv,{boxShadow:"none",outline:{color:Jne.rgba},states:{focus:{outline:{color:bC.rgba}}},entities:{helperText:{typography:{...Sf.input.label,color:bC.rgba}}}}),nie={input:Xv,error:eie,warning:tie,success:rie},{colors:CC,spacings:{comfortable:od},typography:iie}=Ee,ZP={background:CC.ui.background__light.hex,typography:{...iie.input.helper,color:CC.text.static_icons__tertiary.rgba},spacings:{comfortable:{left:od.small,right:od.small,top:od.small,bottom:"6px"},compact:{left:od.small,right:od.small,top:od.xx_small,bottom:"6px"}}},oie=W.div.withConfig({displayName:"HelperText__Container",componentId:"sc-189ug61-0"})(({color:t})=>ke({display:"grid",gap:"8px",gridAutoFlow:"column",alignItems:"start",justifyContent:"start",color:t})),aie=W.p.withConfig({displayName:"HelperText__Text",componentId:"sc-189ug61-1"})(["margin:0;",";white-space:pre-line;"],mb(ZP.typography)),sie=_.forwardRef(function({text:e,icon:r,color:n=ZP.typography.color,...i},o){return e?b.jsxs(oie,{...i,color:n,ref:o,children:[r,b.jsx(aie,{children:e})]}):null}),{colors:f5,spacings:{comfortable:kC},typography:cie}=Ee,Ch={background:f5.ui.background__light.rgba,typography:{...cie.input.label,color:f5.text.static_icons__tertiary.rgba},spacings:{left:kC.small,right:kC.small,top:"6px",bottom:"6px"},states:{disabled:{typography:{color:f5.interactive.disabled__text.rgba}}}},lie=W.label.withConfig({displayName:"Label__LabelBase",componentId:"sc-1gi2bcn-0"})(["display:flex;justify-content:space-between;align-items:flex-end;position:relative;"," margin-left:",";margin-right:",";color:",";"],$n(Ch.typography),Ch.spacings.left,Ch.spacings.right,({$disabledText:t})=>t?Ch.states.disabled.typography.color:Ch.typography.color),EC=W.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Tf=_.forwardRef(function(e,r){const{label:n="",meta:i,disabled:o=!1,...a}=e;return b.jsxs(lie,{ref:r,$disabledText:o,...a,children:[b.jsx(EC,{children:n}),i&&b.jsx(EC,{children:i})]})}),die=W.div.withConfig({displayName:"InputWrapper__Container",componentId:"sc-v6o9z1-0"})([""]),uie=W(sie).withConfig({displayName:"InputWrapper__HelperText",componentId:"sc-v6o9z1-1"})(["margin-top:8px;margin-left:8px;"]),hie=W(Tf).withConfig({displayName:"InputWrapper__Label",componentId:"sc-v6o9z1-2"})(["margin-left:8px;margin-right:8px;"]),OP=_.forwardRef(function({children:e,color:r,label:n,labelProps:i={},helperProps:o={},helperIcon:a,...s},c){const{density:l}=So(),u=nie[r||"input"],h=aa({density:l},u),f=_.useCallback(()=>{const w=h();return s.disabled?w.entities.helperText.states.disabled.typography.color:w.entities.helperText.typography.color},[h,s.disabled])(),p=!!(o!=null&&o.text),m=!!(n||i!=null&&i.label);return b.jsx(Ga,{theme:h,children:b.jsxs(die,{...s,ref:c,children:[m&&b.jsx(hie,{label:n,...i}),e,p&&b.jsx(uie,{color:f,icon:a,...o})]})})}),{colors:{ui:{background__light:{rgba:fie}},text:{static_icons__default:pie,static_icons__tertiary:p5},interactive:{disabled__text:SC,primary__resting:mie,danger__resting:TC,danger__hover:AC,warning__resting:IC,warning__hover:RC,success__resting:PC,success__hover:MC}},spacings:{comfortable:{small:b2,x_small:w2}},typography:Af,shape:$C}=Ee,ju={height:$C.straight.minHeight,width:"100%",background:fie,spacings:{left:b2,right:b2,top:"6px",bottom:"6px"},typography:{...Af.input.text,color:pie.rgba},outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"},entities:{placeholder:{typography:{color:p5.rgba}},adornment:{typography:{...Af.input.label,color:p5.rgba},spacings:{left:b2,right:b2},states:{disabled:{typography:{color:SC.rgba}}}}},states:{disabled:{typography:{color:SC.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{},focus:{outline:{type:"outline",width:"2px",color:mie.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+p5.rgba,modes:{compact:{height:$C._modes.compact.straight.minHeight,spacings:{left:w2,right:w2,top:w2,bottom:w2}}}},HP=xr(ju,{boxShadow:"none",outline:{color:TC.rgba},states:{focus:{outline:{color:AC.rgba}}},entities:{adornment:{typography:{...Af.input.label,color:TC.rgba},states:{focus:{outline:{color:AC.rgba}}}}}}),LP=xr(ju,{boxShadow:"none",outline:{color:IC.rgba},states:{focus:{outline:{color:RC.rgba}}},entities:{adornment:{typography:{...Af.input.label,color:IC.rgba},states:{focus:{outline:{color:RC.rgba}}}}}}),NP=xr(ju,{boxShadow:"none",outline:{color:PC.rgba},states:{focus:{outline:{color:MC.rgba}}},entities:{adornment:{typography:{...Af.input.label,color:PC.rgba},states:{focus:{outline:{color:MC.rgba}}}}}}),Em={input:ju,error:HP,warning:LP,success:NP},vie=Object.freeze(Object.defineProperty({__proto__:null,error:HP,input:ju,inputToken:Em,success:NP,warning:LP},Symbol.toStringTag,{value:"Module"})),gie=W.div.withConfig({displayName:"Input__Container",componentId:"sc-1ykv024-0"})(({$token:t,disabled:e,readOnly:r})=>{var o,a;const{states:n,entities:i}=t;return ke(["--eds-input-adornment-color:",";--eds-input-color:",";position:relative;height:",";width:",";display:flex;flex-direction:row;border:none;box-sizing:border-box;box-shadow:",";background:var(--eds-input-background,",");"," &:focus-within{--eds-input-adornment-color:",";box-shadow:none;","}"," "," & > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"],i.adornment.typography.color,t.typography.color,t.height,t.width,t.boxShadow,t.background,on(t.outline),(a=(o=i.adornment)==null?void 0:o.states.focus)==null?void 0:a.outline.color,on(n.focus.outline),e&&ke(["--eds-input-adornment-color:",";--eds-input-color:",";cursor:not-allowed;box-shadow:none;"],n.disabled.typography.color,n.disabled.typography.color),r&&ke({background:n.readOnly.background,boxShadow:n.readOnly.boxShadow}))}),yie=W.input.withConfig({displayName:"Input__StyledInput",componentId:"sc-1ykv024-1"})(({$token:t,$paddingLeft:e,$paddingRight:r})=>ke(["width:100%;border:none;background:transparent;"," "," outline:none;padding-left:",";padding-right:",";&::placeholder{color:",";}&:disabled{color:var(--eds-input-color);cursor:not-allowed;}"],Eo(t.spacings),mb(t.typography),e,r,t.entities.placeholder.typography.color)),DP=W.div.withConfig({displayName:"Input__Adornments",componentId:"sc-1ykv024-2"})(({$token:t})=>ke(["position:absolute;top:",";bottom:",";display:flex;align-items:center;"," color:var(--eds-input-adornment-color);"],t.spacings.top,t.spacings.bottom,mb(t.entities.adornment.typography))),_ie=W(DP).withConfig({displayName:"Input__LeftAdornments",componentId:"sc-1ykv024-3"})(({$token:t})=>ke(["left:0;padding-left:",";"],t.entities.adornment.spacings.left)),bie=W(DP).withConfig({displayName:"Input__RightAdornments",componentId:"sc-1ykv024-4"})(({$token:t})=>ke(["right:0;padding-right:",";"],t.entities.adornment.spacings.right)),Ml=_.forwardRef(function({variant:e,disabled:r=!1,type:n="text",leftAdornments:i,rightAdornments:o,readOnly:a,className:s,style:c,leftAdornmentsProps:l,rightAdornmentsProps:d,leftAdornmentsWidth:u,rightAdornmentsWidth:h,...f},p){const m=Em[e]?Em[e]:Em.input,{density:w}=So(),y=aa({density:w},m)(),[v,g]=_.useState(),[k,E]=_.useState(),C=_.useCallback(()=>{const ae=u||(k?k.clientWidth:0),_e=h||(v?v.clientWidth:0);return{...y,spacings:{...y.spacings,left:`${ae+parseInt(y.spacings.left)}px`,right:`${_e+parseInt(y.spacings.right)}px`}}},[u,k,h,v,y])(),R={ref:p,type:n,disabled:r,readOnly:a,$token:C,style:{resize:"none"},...f},$={disabled:r,readOnly:a,className:s,style:c,$token:C},Y={...l,ref:E,$token:C},q={...d,ref:g,$token:C};return b.jsxs(gie,{...$,children:[i?b.jsx(_ie,{...Y,children:i}):null,b.jsx(yie,{$paddingLeft:C.spacings.left,$paddingRight:C.spacings.right,...R}),o?b.jsx(bie,{...q,children:o}):null]})}),{input:ZC}=vie,wie=_.forwardRef(function({variant:e,disabled:r=!1,type:n="text",rowsMax:i,...o},a){const[s,c]=_.useState(null),{density:l}=So(),d=l==="compact"?ZC.modes.compact.spacings:ZC.spacings,{lineHeight:u}=ju.typography,{top:h,bottom:f}=d;let p=16;s&&(p=parseInt(window.getComputedStyle(s).fontSize));const m=parseInt(h)+parseInt(f),w=parseFloat(u)*p*i+m;kJ(s,i?w:null);const v={ref:_.useCallback(()=>ra(a,c),[c,a])(),type:n,disabled:r,variant:e,...o},g={style:{alignItems:"flex-start"}},k={style:{alignItems:"flex-start",pointerEvents:"none"}};return b.jsx(Ml,{as:"textarea",rightAdornmentsProps:k,leftAdornmentsProps:g,style:{height:"auto"},...v})}),xie=_.forwardRef(function(e,r){return e.$multiline?b.jsx(wie,{ref:r,...e}):b.jsx(Ml,{ref:r,...e})}),VP=_.forwardRef(function({id:e,label:r,meta:n,unit:i,helperText:o,placeholder:a,disabled:s,multiline:c=!1,className:l,variant:d,inputIcon:u,helperIcon:h,style:f,rowsMax:p,textareaRef:m,inputRef:w,...y},v){const g=eP(null,"helpertext");let E={"aria-invalid":d==="error"||void 0,disabled:s,placeholder:a,id:e,variant:d,rightAdornments:!!(i||u)&&b.jsxs(b.Fragment,{children:[u,b.jsx("span",{children:i})]}),rowsMax:p,ref:w||m,$multiline:c,...y},C={id:null,text:o,icon:h,disabled:s};const R={ref:v,className:l,style:{width:"100%",...f},color:d},$={htmlFor:e,label:r,meta:n,disabled:s};return o&&(E={"aria-describedby":g,...E},C={...C,id:g}),b.jsx(OP,{helperProps:C,labelProps:$,...R,children:b.jsx(xie,{...E})})}),{colors:{ui:{background__scrim:{rgba:Cie}}}}=Ee,kie={background:Cie},{background:Eie}=kie,Sie=W(Jee).withConfig({displayName:"Scrim__StyledScrim",componentId:"sc-1fr7uvy-0"})(["background:",";z-index:1300;align-items:center;justify-content:center;display:flex;"],Eie),Tie=W.div.withConfig({displayName:"Scrim__ScrimContent",componentId:"sc-1fr7uvy-1"})(["width:auto;height:auto;"]),Aie=_.forwardRef(function({children:e,onClose:r,open:n,isDismissable:i=!1,...o},a){const s=_.useRef(null),c=_.useMemo(()=>ra(s,a),[s,a]);B0("Escape",()=>{i&&r&&n&&r()});const l=d=>{d&&d.target===s.current&&d.type==="mousedown"&&i&&n&&r&&r()};return n?b.jsx(Sie,{lockScroll:!0,onMouseDown:l,ref:c,...o,children:b.jsx(Tie,{children:e})}):null}),Iie=W(Ml).withConfig({displayName:"Search__SearchInput",componentId:"sc-v8l23u-0"})(["input{&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}}"]),Rie=W(Mr).withConfig({displayName:"Search__InsideButton",componentId:"sc-v8l23u-1"})(["height:24px;width:24px;"]),Pie=_.forwardRef(function({onChange:e,style:r,className:n,...i},o){const a=_.useRef(null),[s,c]=_.useState(!!i.defaultValue);_.useEffect(()=>{i.disabled?c(!1):i.value&&c(!!i.value)},[i.value,i.disabled]);const l=()=>{const h=a.current;RJ(h,"")},d=h=>{c(!!h.currentTarget.value)},u=_.useMemo(()=>ra(a,o),[a,o]);return b.jsx(OP,{role:"search",style:r,className:n,children:b.jsx(Iie,{onChange:h=>{d(h),e&&e(h)},ref:u,leftAdornmentsWidth:32,leftAdornments:b.jsx(Pt,{data:Cte,"aria-hidden":!0,size:18}),rightAdornmentsWidth:32,rightAdornments:b.jsx(b.Fragment,{children:s&&b.jsx(Rie,{"aria-label":"clear search",title:"clear",variant:"ghost_icon",onClick:h=>{h.stopPropagation(),l()},children:b.jsx(Pt,{data:Tb,size:16})})}),...i})})}),{colors:{interactive:{primary__resting:{rgba:Mie},primary__hover_alt:{rgba:$ie},focus:{rgba:OC},disabled__text:{rgba:Zie}}},typography:{navigation:{menu_title:Oie}},spacings:{comfortable:{medium_small:x2,x_small:C2,x_large:Hie,xx_large:Lie}},clickbounds:{default__base:Nie,compact__standard:Die},interactions:{focused:{width:HC}}}=Ee,E1={background:Mie,typography:Oie,width:Lie,spacings:{bottom:x2,top:x2,left:x2,right:x2},clickbound:{height:Nie},states:{hover:{background:$ie},disabled:{background:Zie},focus:{outline:{type:"outline",style:"dashed",width:HC,color:OC,offset:"10px"}}},modes:{compact:{width:Hie,spacings:{bottom:C2,top:C2,left:C2,right:C2},clickbound:{height:Die},states:{focus:{outline:{type:"outline",style:"dashed",width:HC,color:OC,offset:"2px"}}}}}},m5=W.path.attrs(({$icon:t})=>({fillRule:"evenodd",clipRule:"evenodd",d:t.svgPathData})).withConfig({displayName:"Input__StyledPath",componentId:"sc-rqj7qf-0"})([""]),Vie=W.input.attrs(({type:t="checkbox"})=>({type:t})).withConfig({displayName:"Input",componentId:"sc-rqj7qf-1"})(["--scale:",";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{","}&:focus-visible + svg{","}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"],({theme:t,$iconSize:e})=>parseFloat(t.clickbound.height)/e,({disabled:t})=>t?"not-allowed":"pointer",({theme:t})=>on(t.states.focus.outline),({theme:t})=>on(t.states.focus.outline)),LC=W.svg.attrs(({height:t,width:e,fill:r})=>({name:null,xmlns:"http://www.w3.org/2000/svg",height:t,width:e,fill:r})).withConfig({displayName:"Input__Svg",componentId:"sc-rqj7qf-2"})(["grid-area:input;pointer-events:none;"]),Fie=W.span.withConfig({displayName:"Input__InputWrapper",componentId:"sc-rqj7qf-3"})(["display:inline-grid;grid:[input] 1fr / [input] 1fr;position:relative;isolation:isolate;"," &::before{content:'';position:absolute;width:",";aspect-ratio:1/1;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;}@media (hover:hover) and (pointer:fine){> svg{z-index:1;}&:hover{&::before{background-color:",";}}}"],({theme:t})=>Eo(t.spacings),({theme:t})=>t.width,({disabled:t})=>t?"transparent":E1.states.hover.background),NC=_.forwardRef(function({disabled:e=!1,indeterminate:r,style:n,className:i,...o},a){const{density:s}=So(),c=aa({density:s},E1),l=24,d=e?E1.states.disabled.background:E1.background,u={disabled:e,style:n,className:i},h={ref:a,disabled:e,"data-indeterminate":r,...o};return b.jsx(Ga,{theme:c,children:b.jsxs(Fie,{...u,children:[b.jsx(Vie,{$iconSize:l,...h}),r?b.jsx(LC,{width:l,height:l,viewBox:`0 0 ${l} ${l}`,fill:d,"aria-hidden":!0,children:b.jsx(m5,{$icon:Ste,name:"indeterminate"})}):b.jsxs(LC,{width:l,height:l,viewBox:`0 0 ${l} ${l}`,fill:d,"aria-hidden":!0,children:[b.jsx(m5,{$icon:kte,name:"checked"}),b.jsx(m5,{$icon:Ete,name:"not-checked"})]})]})})}),zie=W.label.withConfig({displayName:"Checkbox__StyledLabel",componentId:"sc-yg6l8h-0"})(["display:inline-flex;align-items:center;cursor:",";"],({$disabled:t})=>t?"not-allowed":"pointer"),jie=W.span.withConfig({displayName:"Checkbox__LabelText",componentId:"sc-yg6l8h-1"})(["",";"],$n(E1.typography)),Q0=_.forwardRef(function({label:e,disabled:r=!1,indeterminate:n,className:i,style:o,...a},s){return e?b.jsxs(zie,{$disabled:r,className:i,style:o,children:[b.jsx(NC,{...a,disabled:r,ref:s,indeterminate:n}),b.jsx(jie,{children:e})]}):b.jsx(NC,{...a,className:i,style:o,disabled:r,ref:s,indeterminate:n})});Q0.displayName="Checkbox";const FP=W.span.withConfig({displayName:"Switchstyles__BaseInputWrapper",componentId:"sc-x39lde-0"})(({theme:{width:t,height:e}})=>ke(["width:",";height:",";border-radius:50%;position:relative;grid-area:input;"],t,e)),zP=W.input.attrs(({type:t="checkbox"})=>({type:t})).withConfig({displayName:"Switchstyles__BaseInput",componentId:"sc-x39lde-1"})(({disabled:t,theme:e})=>ke(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;position:relative;z-index:1;cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}"],t?"not-allowed":"pointer",on(e.states.focus.outline),on(e.states.focus.outline))),jP=W.span.withConfig({displayName:"Switchstyles__GridWrapper",componentId:"sc-x39lde-2"})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;place-items:center;isolation:isolate;"]),Uie=W(zP).withConfig({displayName:"SwitchSmall__Input",componentId:"sc-1a99mis-0"})(({disabled:t,theme:{states:e,entities:{handle:r,track:n}}})=>ke(["&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:",";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:",";}}"],on(e.focus.outline),on(e.focus.outline),t?e.disabled.background:n.states.active.background,r.background,t?"transparent":e.hover.background)),Bie=W.span.withConfig({displayName:"SwitchSmall__Track",componentId:"sc-1a99mis-1"})(({$isDisabled:t,theme:{states:e,entities:{track:r}}})=>ke(["width:",";height:",";border-radius:10px;border:none;background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"],r.width,r.height,t?e.disabled.background:r.states.disabled.background)),qie=W.span.withConfig({displayName:"SwitchSmall__Handle",componentId:"sc-1a99mis-2"})(({theme:{entities:{handle:t}}})=>ke(["background-color:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],t.background,t.width,t.height)),qy=_.forwardRef(function({disabled:e,className:r,style:n,...i},o){return b.jsxs(jP,{className:r,style:n,children:[b.jsx(Uie,{...i,ref:o,disabled:e}),b.jsxs(FP,{children:[b.jsx(Bie,{$isDisabled:e}),b.jsx(qie,{})]})]})});qy.displayName="SwitchSmall";const Wie=W(zP).withConfig({displayName:"SwitchDefault__Input",componentId:"sc-16ym5pn-0"})(({disabled:t,theme:e})=>ke(["width:",";aspect-ratio:1/1;&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:",";}&:hover + span{background-color:",";}&:hover + span > span:last-child{background-color:",";}"],e.clickbound.height,t?e.states.disabled.background:e.entities.track.states.active.background,t?e.states.disabled.background:e.entities.handle.states.active.background,t?"transparent":e.states.hover.background,t?e.states.disabled.background:e.states.hover.entities.handle.background)),Gie=W.span.withConfig({displayName:"SwitchDefault__Track",componentId:"sc-16ym5pn-1"})(({$isDisabled:t,theme:{states:e,entities:{track:r}}})=>ke([""," border:none;width:",";height:",";background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transition:background 0.36s;",""],pi(r.border),r.width,r.height,r.background,t&&{backgroundColor:e.disabled.background})),Kie=W.span.withConfig({displayName:"SwitchDefault__Handle",componentId:"sc-16ym5pn-2"})(({$isDisabled:t,theme:{states:e,entities:{handle:r}}})=>ke(["background-color:",";"," box-shadow:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],r.background,t&&{backgroundColor:e.disabled.background},r.boxShadow,r.width,r.height)),Wy=_.forwardRef(function({disabled:e,className:r,style:n,...i},o){return b.jsxs(jP,{className:r,style:n,children:[b.jsx(Wie,{...i,ref:o,disabled:e}),b.jsxs(FP,{children:[b.jsx(Gie,{$isDisabled:e}),b.jsx(Kie,{$isDisabled:e})]})]})});Wy.displayName="SwitchDefault";const{colors:{ui:{background__medium:{rgba:Yie}},interactive:{primary__hover_alt:{rgba:DC},primary__hover:{rgba:VC},primary__selected_highlight:{rgba:Qie},primary__resting:{rgba:FC},disabled__fill:{rgba:Xie},focus:{rgba:Jie},icon_on_interactive_colors:{rgba:eoe}},text:{static_icons__tertiary:{rgba:zC}}},typography:{navigation:{menu_title:toe}},clickbounds:k2,elevation:{raised:roe},spacings:{comfortable:{medium_small:noe}},shape:{circle:jC,_modes:{compact:{icon_button:UC}}},interactions:{focused:{width:ioe}}}=Ee,ooe={typography:toe,height:jC.minHeight,width:jC.minWidth,clickbound:{height:k2.default__base,width:k2.default__base},entities:{label:{spacings:{left:noe}},track:{width:"32px",height:"8px",background:Yie,border:{type:"border",radius:"4px"},states:{active:{background:Qie},hover:{background:VC}}},handle:{height:"16px",width:"16px",boxShadow:roe,background:zC,states:{active:{background:FC},hover:{background:DC}}}},modes:{compact:{height:UC.minHeight,width:UC.minWidth,clickbound:{height:k2.compact__standard,width:k2.compact__standard},entities:{track:{width:"20px",height:"10px",states:{disabled:{background:zC},active:{background:FC}}},handle:{height:"6px",width:"6px",background:eoe}}}},states:{disabled:{background:Xie},focus:{outline:{width:ioe,type:"outline",style:"dashed",color:Jie}},hover:{background:DC,entities:{handle:{background:VC}}}}},aoe=W.label.withConfig({displayName:"Switch__StyledLabel",componentId:"sc-sdaahx-0"})(["cursor:",";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;gap:",";"],({$isDisabled:t})=>t?"not-allowed":"pointer",({$size:t})=>t==="small"?"12px":"8px"),soe=W.span.withConfig({displayName:"Switch__Label",componentId:"sc-sdaahx-1"})(({theme:t})=>ke(["",";"],$n(t.typography))),Pb=_.forwardRef(function({size:e="default",disabled:r,label:n,className:i,style:o,...a},s){const{density:c}=So(),d=aa({density:e==="small"?"compact":c},ooe);return b.jsx(Ga,{theme:d,children:n?b.jsxs(aoe,{$size:e,$isDisabled:r,className:i,style:o,children:[e==="small"?b.jsx(qy,{disabled:r,...a,ref:s}):b.jsx(Wy,{disabled:r,...a,ref:s}),n&&b.jsx(soe,{children:n})]}):e==="small"?b.jsx(qy,{disabled:r,className:i,style:o,...a,ref:s}):b.jsx(Wy,{disabled:r,className:i,style:o,...a,ref:s})})});Pb.displayName="Switch";const Gy=({error:t})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{style:{marginTop:20,border:"1px solid"},children:[b.jsx(Bi,{variant:"h4",color:"warning",children:t.message}),b.jsx("section",{style:{padding:10},children:t.stack&&b.jsx("pre",{children:t.stack})})]}),t.cause&&b.jsx(Gy,{error:t.cause})]}),coe=t=>{const{appKey:e}=t,r=Cn(),n=_.useRef(null),[i,o]=_.useState(!1),[a,s]=_.useState(),{value:c}=Sl(_.useMemo(()=>r.modules.app.current$,[r.modules.app]));return _.useEffect(()=>{r.modules.app.setCurrentApp(e)},[e,r]),_.useEffect(()=>{o(!0),s(void 0);const l=new jr;return l.add(c==null?void 0:c.initialize().subscribe({next:({manifest:d,script:u,config:h})=>{const[f]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""],p=document.createElement("div");if(!n.current)throw Error("Missing application mounting point");n.current.appendChild(p);const m=u.renderApp??u.default;l.add(m(p,{fusion:r,env:{basename:f,config:h,manifest:d}})),l.add(()=>p.remove())},complete:()=>{o(!1)},error:d=>{s(d)}})),()=>l.unsubscribe()},[r,c,n]),a?a.cause instanceof zs?b.jsxs("div",{children:[b.jsx("h2",{children:"🔥 Failed to load application manifest 🤬"}),b.jsx("h3",{children:a.cause.type}),b.jsx(Gy,{error:a})]}):b.jsxs("div",{children:[b.jsx("h2",{children:"🔥 Failed to load application 🤬"}),b.jsx(Gy,{error:a})]}):b.jsx("section",{id:"application-content",ref:n,style:{display:"contents"},children:i&&b.jsx(XI,{text:"Loading Application"})})};class Jv extends CustomEvent{constructor(e){super(Jv.eventName,e)}}Jv.eventName="select";class Tu extends CustomEvent{constructor(e){super(Tu.eventName,e)}}Tu.eventName="fwc-searchabledropdown-controller-connect";class Mb extends Xn{constructor(){super(...arguments),this.resolverCallbacks=[]}createRenderRoot(){return this}connectResolver(e){this.resolver=e,this.resolverCallbacks.forEach(r=>{r(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(Tu.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Tu.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:r,updateResolver:n}=e.detail;r(()=>{this.resolverCallbacks.filter(i=>i!==n)}),this.resolver&&n(this.resolver),this.resolverCallbacks.push(n),e.preventDefault(),e.stopPropagation()}}x([U()],Mb.prototype,"resolver",void 0);/**
|
|
459
|
+
cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>Ce({paddingLeft:t,paddingTop:r,paddingRight:e,paddingBottom:n}),mb=t=>{const{fontFamily:e,fontSize:r,fontWeight:n,lineHeight:i,letterSpacing:o,fontFeature:a,textDecoration:s,textTransform:c,fontStyle:l}=t;return{fontFeatureSettings:a,fontFamily:e,fontSize:r,fontWeight:n,letterSpacing:o,lineHeight:i,textDecoration:s,textTransform:c,fontStyle:l}},MJ=W.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),$J=W.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),ZJ=_.forwardRef(function({children:e},r){const n=_.Children.map(e,i=>typeof i!="object"?b.jsx(MJ,{children:i}):i);return b.jsx($J,{ref:r,children:n})}),OJ={density:"comfortable"},HJ=_.createContext(OJ),So=()=>_.useContext(HJ),r5=(t,e)=>{switch(e){case"ghost":return t.ghost;case"ghost_icon":return t.ghost_icon;case"outlined":return t.outlined;case"contained_icon":return t.contained_icon;case"contained":default:return t.contained}},LJ=(t,e)=>{switch(e){case"danger":return r5(t5.danger,t);case"secondary":return r5(t5.secondary,t);case"primary":default:return r5(t5.primary,t)}},NJ=W.span.withConfig({displayName:"Button__Inner",componentId:"sc-1hs0myn-0"})(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]),DJ=W.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})(({theme:t})=>{var a,s,c;const{states:e,clickbound:r}=t,{focus:n,hover:i,disabled:o}=e;return Ce(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:",";height:",";width:",";svg{justify-self:center;}"," "," "," &::after{position:absolute;top:-",";left:-",";width:",";height:",";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:",";color:",";",";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:",";",";",";@media (hover:hover) and (pointer:fine){&:hover{background:",";}}}"],t.background,t.height,t.width,Eo(t.spacings),pi(t.border),$n(t.typography),(a=r==null?void 0:r.offset)==null?void 0:a.top,(s=r==null?void 0:r.offset)==null?void 0:s.left,r==null?void 0:r.width,r==null?void 0:r.height,i.background,(c=i.typography)==null?void 0:c.color,pi(i==null?void 0:i.border),on(n.outline),on(n.outline),o.background,pi(o.border),$n(o.typography),o.background)}),VJ=_.forwardRef(function({color:e="primary",variant:r="contained",children:n,disabled:i=!1,href:o,tabIndex:a=0,fullWidth:s=!1,...c},l){const{density:d}=So(),u=aa({density:d},LJ(r,e)),h=o&&!i?"a":c.as?c.as:"button",f=o||c.as?void 0:"button";a=i?-1:a;const p={ref:l,as:h,href:o,type:f,disabled:i,tabIndex:a,...c};return b.jsx(Ga,{theme:u,children:b.jsx(DJ,{...p,children:s?b.jsx(ZJ,{children:n}):b.jsx(NJ,{children:n})})})}),{shape:{corners:{borderRadius:FJ}}}=ke,zJ={border:{type:"border",radius:FJ}},{border:Nx}=zJ,is=Nx.type==="border"&&Nx.radius,jJ=W.div.withConfig({displayName:"ButtonGroup__ButtonGroupBase",componentId:"sc-1fn8jon-0"})(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}",""],({$vertical:t})=>Ce(t?["flex-direction:column;> :first-child{border-top-left-radius:",";border-top-right-radius:",";}> :last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-bottom:none;}"]:["> :first-child{border-top-left-radius:",";border-bottom-left-radius:",";}> :last-child{border-top-right-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-right:none;}"],is,is,is,is)),rP=_.forwardRef(function({children:e,vertical:r,...n},i){const o={ref:i,$vertical:r,...n};return b.jsx(jJ,{role:"group",...o,children:e})}),{colors:{text:{static_icons__primary_white:{rgba:UJ}},ui:{background__overlay:{rgba:BJ}}},typography:{ui:qJ},spacings:{comfortable:{x_large:WJ,small:wh}},shape:{corners:{borderRadius:GJ}}}=ke,Pa={typography:{...qJ.tooltip,color:UJ},background:BJ,border:{type:"border",radius:GJ},entities:{tooltip:{height:WJ},arrow:{width:"6px",height:wh,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:wh,right:wh,top:wh,bottom:wh}};function Fu(t){return nP(t)?(t.nodeName||"").toLowerCase():"#document"}function Jn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ka(t){var e;return(e=(nP(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function nP(t){return t instanceof Node||t instanceof Jn(t).Node}function jt(t){return t instanceof Element||t instanceof Jn(t).Element}function gi(t){return t instanceof HTMLElement||t instanceof Jn(t).HTMLElement}function Ny(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Jn(t).ShadowRoot}function tp(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Ui(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function KJ(t){return["table","td","th"].includes(Fu(t))}function qv(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function vb(t){const e=gb(),r=jt(t)?Ui(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function YJ(t){let e=Ba(t);for(;gi(e)&&!Js(e);){if(vb(e))return e;if(qv(e))return null;e=Ba(e)}return null}function gb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Js(t){return["html","body","#document"].includes(Fu(t))}function Ui(t){return Jn(t).getComputedStyle(t)}function Wv(t){return jt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ba(t){if(Fu(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ny(t)&&t.host||Ka(t);return Ny(e)?e.host:e}function iP(t){const e=Ba(t);return Js(e)?t.ownerDocument?t.ownerDocument.body:t.body:gi(e)&&tp(e)?e:iP(e)}function js(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=iP(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),a=Jn(i);if(o){const s=Dy(a);return e.concat(a,a.visualViewport||[],tp(i)?i:[],s&&r?js(s):[])}return e.concat(i,js(i,[],r))}function Dy(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dx(t){let e=t.activeElement;for(;((r=e)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;e=e.shadowRoot.activeElement}return e}function Ef(t,e){if(!t||!e)return!1;const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&Ny(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function yb(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function oP(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function QJ(t){return eee()?!1:!Vx()&&t.width===0&&t.height===0||Vx()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function XJ(){return/apple/i.test(navigator.vendor)}function Vx(){const t=/android/i;return t.test(yb())||t.test(oP())}function JJ(){return yb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function eee(){return oP().includes("jsdom/")}function Vy(t,e){const r=["mouse","pen"];return r.push("",void 0),r.includes(t)}function tee(t){return"nativeEvent"in t}function ree(t){return t.matches("html,body")}function Gc(t){return(t==null?void 0:t.ownerDocument)||document}function n5(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}function yd(t){return"composedPath"in t?t.composedPath()[0]:t.target}const nee="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function iee(t){return gi(t)&&t.matches(nee)}const oee=["top","right","bottom","left"],Fx=["start","end"],zx=oee.reduce((t,e)=>t.concat(e,e+"-"+Fx[0],e+"-"+Fx[1]),[]),Wo=Math.min,ci=Math.max,q0=Math.round,m2=Math.floor,ec=t=>({x:t,y:t}),aee={left:"right",right:"left",bottom:"top",top:"bottom"},see={start:"end",end:"start"};function Fy(t,e,r){return ci(t,Wo(e,r))}function Dl(t,e){return typeof t=="function"?t(e):t}function na(t){return t.split("-")[0]}function go(t){return t.split("-")[1]}function aP(t){return t==="x"?"y":"x"}function _b(t){return t==="y"?"height":"width"}function Il(t){return["top","bottom"].includes(na(t))?"y":"x"}function bb(t){return aP(Il(t))}function sP(t,e,r){r===void 0&&(r=!1);const n=go(t),i=bb(t),o=_b(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=G0(a)),[a,G0(a)]}function cee(t){const e=G0(t);return[W0(t),e,W0(e)]}function W0(t){return t.replace(/start|end/g,e=>see[e])}function lee(t,e,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?o:a;default:return[]}}function dee(t,e,r,n){const i=go(t);let o=lee(na(t),r==="start",n);return i&&(o=o.map(a=>a+"-"+i),e&&(o=o.concat(o.map(W0)))),o}function G0(t){return t.replace(/left|right|bottom|top/g,e=>aee[e])}function uee(t){return{top:0,right:0,bottom:0,left:0,...t}}function cP(t){return typeof t!="number"?uee(t):{top:t,right:t,bottom:t,left:t}}function K0(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function jx(t,e,r){let{reference:n,floating:i}=t;const o=Il(e),a=bb(e),s=_b(a),c=na(e),l=o==="y",d=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let f;switch(c){case"top":f={x:d,y:n.y-i.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-i.width,y:u};break;default:f={x:n.x,y:n.y}}switch(go(e)){case"start":f[a]-=h*(r&&l?-1:1);break;case"end":f[a]+=h*(r&&l?-1:1);break}return f}const hee=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=jx(l,n,c),h=n,f={},p=0;for(let m=0;m<s.length;m++){const{name:w,fn:y}=s[m],{x:v,y:g,data:k,reset:E}=await y({x:d,y:u,initialPlacement:n,placement:h,strategy:i,middlewareData:f,rects:l,platform:a,elements:{reference:t,floating:e}});d=v??d,u=g??u,f={...f,[w]:{...f[w],...k}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=jx(l,h,c)),m=-1)}return{x:d,y:u,placement:h,strategy:i,middlewareData:f}};async function Gv(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:f=0}=Dl(e,t),p=cP(f),w=s[h?u==="floating"?"reference":"floating":u],y=K0(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(w)))==null||r?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),v=u==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),k=await(o.isElement==null?void 0:o.isElement(g))?await(o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},E=K0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:g,strategy:c}):v);return{top:(y.top-E.top+p.top)/k.y,bottom:(E.bottom-y.bottom+p.bottom)/k.y,left:(y.left-E.left+p.left)/k.x,right:(E.right-y.right+p.right)/k.x}}const fee=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:c}=e,{element:l,padding:d=0}=Dl(t,e)||{};if(l==null)return{};const u=cP(d),h={x:r,y:n},f=bb(i),p=_b(f),m=await a.getDimensions(l),w=f==="y",y=w?"top":"left",v=w?"bottom":"right",g=w?"clientHeight":"clientWidth",k=o.reference[p]+o.reference[f]-h[f]-o.floating[p],E=h[f]-o.reference[f],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let R=C?C[g]:0;(!R||!await(a.isElement==null?void 0:a.isElement(C)))&&(R=s.floating[g]||o.floating[p]);const $=k/2-E/2,Y=R/2-m[p]/2-1,q=Wo(u[y],Y),ae=Wo(u[v],Y),_e=q,Ve=R-m[p]-ae,H=R/2-m[p]/2+$,Z=Fy(_e,H,Ve),F=!c.arrow&&go(i)!=null&&H!==Z&&o.reference[p]/2-(H<_e?q:ae)-m[p]/2<0,O=F?H<_e?H-_e:H-Ve:0;return{[f]:h[f]+O,data:{[f]:Z,centerOffset:H-Z-O,...F&&{alignmentOffset:O}},reset:F}}});function pee(t,e,r){return(t?[...r.filter(i=>go(i)===t),...r.filter(i=>go(i)!==t)]:r.filter(i=>na(i)===i)).filter(i=>t?go(i)===t||(e?W0(i)!==i:!1):!0)}const mee=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;const{rects:o,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:h=zx,autoAlignment:f=!0,...p}=Dl(t,e),m=u!==void 0||h===zx?pee(u||null,f,h):h,w=await Gv(e,p),y=((r=a.autoPlacement)==null?void 0:r.index)||0,v=m[y];if(v==null)return{};const g=sP(v,o,await(c.isRTL==null?void 0:c.isRTL(l.floating)));if(s!==v)return{reset:{placement:m[0]}};const k=[w[na(v)],w[g[0]],w[g[1]]],E=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:v,overflows:k}],C=m[y+1];if(C)return{data:{index:y+1,overflows:E},reset:{placement:C}};const R=E.map(q=>{const ae=go(q.placement);return[q.placement,ae&&d?q.overflows.slice(0,2).reduce((_e,Ve)=>_e+Ve,0):q.overflows[0],q.overflows]}).sort((q,ae)=>q[1]-ae[1]),Y=((i=R.filter(q=>q[2].slice(0,go(q[0])?2:3).every(ae=>ae<=0))[0])==null?void 0:i[0])||R[0][0];return Y!==s?{data:{index:y+1,overflows:E},reset:{placement:Y}}:{}}}},vee=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=Dl(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const y=na(i),v=Il(s),g=na(s)===s,k=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=h||(g||!m?[G0(s)]:cee(s)),C=p!=="none";!h&&C&&E.push(...dee(s,m,p,k));const R=[s,...E],$=await Gv(e,w),Y=[];let q=((n=o.flip)==null?void 0:n.overflows)||[];if(d&&Y.push($[y]),u){const H=sP(i,a,k);Y.push($[H[0]],$[H[1]])}if(q=[...q,{placement:i,overflows:Y}],!Y.every(H=>H<=0)){var ae,_e;const H=(((ae=o.flip)==null?void 0:ae.index)||0)+1,Z=R[H];if(Z)return{data:{index:H,overflows:q},reset:{placement:Z}};let F=(_e=q.filter(O=>O.overflows[0]<=0).sort((O,M)=>O.overflows[1]-M.overflows[1])[0])==null?void 0:_e.placement;if(!F)switch(f){case"bestFit":{var Ve;const O=(Ve=q.filter(M=>{if(C){const N=Il(M.placement);return N===v||N==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(N=>N>0).reduce((N,z)=>N+z,0)]).sort((M,N)=>M[1]-N[1])[0])==null?void 0:Ve[0];O&&(F=O);break}case"initialPlacement":F=s;break}if(i!==F)return{reset:{placement:F}}}return{}}}};async function gee(t,e){const{placement:r,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=na(r),s=go(r),c=Il(r)==="y",l=["left","top"].includes(a)?-1:1,d=o&&c?-1:1,u=Dl(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return s&&typeof p=="number"&&(f=s==="end"?p*-1:p),c?{x:f*d,y:h*l}:{x:h*l,y:f*d}}const yee=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=e,c=await gee(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},_ee=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...c}=Dl(t,e),l={x:r,y:n},d=await Gv(e,c),u=Il(na(i)),h=aP(u);let f=l[h],p=l[u];if(o){const w=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=f+d[w],g=f-d[y];f=Fy(v,f,g)}if(a){const w=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=p+d[w],g=p-d[y];p=Fy(v,p,g)}const m=s.fn({...e,[h]:f,[u]:p});return{...m,data:{x:m.x-r,y:m.y-n}}}}},bee=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:i,elements:o}=e,{apply:a=()=>{},...s}=Dl(t,e),c=await Gv(e,s),l=na(r),d=go(r),u=Il(r)==="y",{width:h,height:f}=n.floating;let p,m;l==="top"||l==="bottom"?(p=l,m=d===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=l,p=d==="end"?"top":"bottom");const w=f-c.top-c.bottom,y=h-c.left-c.right,v=Wo(f-c[p],w),g=Wo(h-c[m],y),k=!e.middlewareData.shift;let E=v,C=g;if(u?C=d||k?Wo(g,y):y:E=d||k?Wo(v,w):w,k&&!d){const $=ci(c.left,0),Y=ci(c.right,0),q=ci(c.top,0),ae=ci(c.bottom,0);u?C=h-2*($!==0||Y!==0?$+Y:ci(c.left,c.right)):E=f-2*(q!==0||ae!==0?q+ae:ci(c.top,c.bottom))}await a({...e,availableWidth:C,availableHeight:E});const R=await i.getDimensions(o.floating);return h!==R.width||f!==R.height?{reset:{rects:!0}}:{}}}};function lP(t){const e=Ui(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=gi(t),o=i?t.offsetWidth:r,a=i?t.offsetHeight:n,s=q0(r)!==o||q0(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function wb(t){return jt(t)?t:t.contextElement}function tu(t){const e=wb(t);if(!gi(e))return ec(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:o}=lP(e);let a=(o?q0(r.width):r.width)/n,s=(o?q0(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const wee=ec(0);function dP(t){const e=Jn(t);return!gb()||!e.visualViewport?wee:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xee(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Jn(t)?!1:e}function Rl(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),o=wb(t);let a=ec(1);e&&(n?jt(n)&&(a=tu(n)):a=tu(t));const s=xee(o,r,n)?dP(o):ec(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const h=Jn(o),f=n&&jt(n)?Jn(n):n;let p=h,m=Dy(p);for(;m&&n&&f!==p;){const w=tu(m),y=m.getBoundingClientRect(),v=Ui(m),g=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,k=y.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;c*=w.x,l*=w.y,d*=w.x,u*=w.y,c+=g,l+=k,p=Jn(m),m=Dy(p)}}return K0({width:d,height:u,x:c,y:l})}function Cee(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const o=i==="fixed",a=Ka(n),s=e?qv(e.floating):!1;if(n===a||s&&o)return r;let c={scrollLeft:0,scrollTop:0},l=ec(1);const d=ec(0),u=gi(n);if((u||!u&&!o)&&((Fu(n)!=="body"||tp(a))&&(c=Wv(n)),gi(n))){const h=Rl(n);l=tu(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+d.x,y:r.y*l.y-c.scrollTop*l.y+d.y}}function kee(t){return Array.from(t.getClientRects())}function uP(t){return Rl(Ka(t)).left+Wv(t).scrollLeft}function Eee(t){const e=Ka(t),r=Wv(t),n=t.ownerDocument.body,i=ci(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=ci(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+uP(t);const s=-r.scrollTop;return Ui(n).direction==="rtl"&&(a+=ci(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function See(t,e){const r=Jn(t),n=Ka(t),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;const l=gb();(!l||l&&e==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s,y:c}}function Tee(t,e){const r=Rl(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=gi(t)?tu(t):ec(1),a=t.clientWidth*o.x,s=t.clientHeight*o.y,c=i*o.x,l=n*o.y;return{width:a,height:s,x:c,y:l}}function Ux(t,e,r){let n;if(e==="viewport")n=See(t,r);else if(e==="document")n=Eee(Ka(t));else if(jt(e))n=Tee(e,r);else{const i=dP(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return K0(n)}function hP(t,e){const r=Ba(t);return r===e||!jt(r)||Js(r)?!1:Ui(r).position==="fixed"||hP(r,e)}function Aee(t,e){const r=e.get(t);if(r)return r;let n=js(t,[],!1).filter(s=>jt(s)&&Fu(s)!=="body"),i=null;const o=Ui(t).position==="fixed";let a=o?Ba(t):t;for(;jt(a)&&!Js(a);){const s=Ui(a),c=vb(a);!c&&s.position==="fixed"&&(i=null),(o?!c&&!i:!c&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||tp(a)&&!c&&hP(t,a))?n=n.filter(d=>d!==a):i=s,a=Ba(a)}return e.set(t,n),n}function Iee(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const a=[...r==="clippingAncestors"?qv(e)?[]:Aee(e,this._c):[].concat(r),n],s=a[0],c=a.reduce((l,d)=>{const u=Ux(e,d,i);return l.top=ci(u.top,l.top),l.right=Wo(u.right,l.right),l.bottom=Wo(u.bottom,l.bottom),l.left=ci(u.left,l.left),l},Ux(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ree(t){const{width:e,height:r}=lP(t);return{width:e,height:r}}function Pee(t,e,r){const n=gi(e),i=Ka(e),o=r==="fixed",a=Rl(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const c=ec(0);if(n||!n&&!o)if((Fu(e)!=="body"||tp(i))&&(s=Wv(e)),n){const u=Rl(e,!0,o,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=uP(i));const l=a.left+s.scrollLeft-c.x,d=a.top+s.scrollTop-c.y;return{x:l,y:d,width:a.width,height:a.height}}function i5(t){return Ui(t).position==="static"}function Bx(t,e){return!gi(t)||Ui(t).position==="fixed"?null:e?e(t):t.offsetParent}function fP(t,e){const r=Jn(t);if(qv(t))return r;if(!gi(t)){let i=Ba(t);for(;i&&!Js(i);){if(jt(i)&&!i5(i))return i;i=Ba(i)}return r}let n=Bx(t,e);for(;n&&KJ(n)&&i5(n);)n=Bx(n,e);return n&&Js(n)&&i5(n)&&!vb(n)?r:n||YJ(t)||r}const Mee=async function(t){const e=this.getOffsetParent||fP,r=this.getDimensions,n=await r(t.floating);return{reference:Pee(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $ee(t){return Ui(t).direction==="rtl"}const Zee={convertOffsetParentRelativeRectToViewportRelativeRect:Cee,getDocumentElement:Ka,getClippingRect:Iee,getOffsetParent:fP,getElementRects:Mee,getClientRects:kee,getDimensions:Ree,getScale:tu,isElement:jt,isRTL:$ee};function Oee(t,e){let r=null,n;const i=Ka(t);function o(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),o();const{left:l,top:d,width:u,height:h}=t.getBoundingClientRect();if(s||e(),!u||!h)return;const f=m2(d),p=m2(i.clientWidth-(l+u)),m=m2(i.clientHeight-(d+h)),w=m2(l),v={rootMargin:-f+"px "+-p+"px "+-m+"px "+-w+"px",threshold:ci(0,Wo(1,c))||1};let g=!0;function k(E){const C=E[0].intersectionRatio;if(C!==c){if(!g)return a();C?a(!1,C):n=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{r=new IntersectionObserver(k,{...v,root:i.ownerDocument})}catch{r=new IntersectionObserver(k,v)}r.observe(t)}return a(!0),o}function xb(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=wb(t),d=i||o?[...l?js(l):[],...js(e)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),o&&y.addEventListener("resize",r)});const u=l&&s?Oee(l,r):null;let h=-1,f=null;a&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var g;(g=f)==null||g.observe(e)})),r()}),l&&!c&&f.observe(l),f.observe(e));let p,m=c?Rl(t):null;c&&w();function w(){const y=Rl(t);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&r(),m=y,p=requestAnimationFrame(w)}return r(),()=>{var y;d.forEach(v=>{i&&v.removeEventListener("scroll",r),o&&v.removeEventListener("resize",r)}),u==null||u(),(y=f)==null||y.disconnect(),f=null,c&&cancelAnimationFrame(p)}}const pP=yee,Hee=mee,mP=_ee,Lee=vee,Nee=bee,qx=fee,vP=(t,e,r)=>{const n=new Map,i={platform:Zee,...r},o={...i.platform,_c:n};return hee(t,e,{...i,platform:o})};var Cm=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Y0(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Y0(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&t.$$typeof)&&!Y0(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function gP(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Wx(t,e){const r=gP(t);return Math.round(e*r)/r}function Gx(t){const e=_.useRef(t);return Cm(()=>{e.current=t}),e}function Dee(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=t,[d,u]=_.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,f]=_.useState(n);Y0(h,n)||f(n);const[p,m]=_.useState(null),[w,y]=_.useState(null),v=_.useCallback(O=>{O!==C.current&&(C.current=O,m(O))},[]),g=_.useCallback(O=>{O!==R.current&&(R.current=O,y(O))},[]),k=o||p,E=a||w,C=_.useRef(null),R=_.useRef(null),$=_.useRef(d),Y=c!=null,q=Gx(c),ae=Gx(i),_e=_.useCallback(()=>{if(!C.current||!R.current)return;const O={placement:e,strategy:r,middleware:h};ae.current&&(O.platform=ae.current),vP(C.current,R.current,O).then(M=>{const N={...M,isPositioned:!0};Ve.current&&!Y0($.current,N)&&($.current=N,Nf.flushSync(()=>{u(N)}))})},[h,e,r,ae]);Cm(()=>{l===!1&&$.current.isPositioned&&($.current.isPositioned=!1,u(O=>({...O,isPositioned:!1})))},[l]);const Ve=_.useRef(!1);Cm(()=>(Ve.current=!0,()=>{Ve.current=!1}),[]),Cm(()=>{if(k&&(C.current=k),E&&(R.current=E),k&&E){if(q.current)return q.current(k,E,_e);_e()}},[k,E,_e,q,Y]);const H=_.useMemo(()=>({reference:C,floating:R,setReference:v,setFloating:g}),[v,g]),Z=_.useMemo(()=>({reference:k,floating:E}),[k,E]),F=_.useMemo(()=>{const O={position:r,left:0,top:0};if(!Z.floating)return O;const M=Wx(Z.floating,d.x),N=Wx(Z.floating,d.y);return s?{...O,transform:"translate("+M+"px, "+N+"px)",...gP(Z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:N}},[r,s,Z.floating,d.x,d.y]);return _.useMemo(()=>({...d,update:_e,refs:H,elements:Z,floatingStyles:F}),[d,_e,H,Z,F])}const Vee=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?qx({element:n.current,padding:i}).fn(r):{}:n?qx({element:n,padding:i}).fn(r):{}}}},yP=(t,e)=>({...pP(t),options:[t,e]}),_P=(t,e)=>({...mP(t),options:[t,e]}),bP=(t,e)=>({...Lee(t),options:[t,e]}),Fee=(t,e)=>({...Nee(t),options:[t,e]}),zee=(t,e)=>({...Vee(t),options:[t,e]}),wP={..._E},jee=wP.useInsertionEffect,Uee=jee||(t=>t());function Ss(t){const e=_.useRef(()=>{});return Uee(()=>{e.current=t}),_.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}var Pl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function zy(){return zy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zy.apply(this,arguments)}let Kx=!1,Bee=0;const Yx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bee++;function qee(){const[t,e]=_.useState(()=>Kx?Yx():void 0);return Pl(()=>{t==null&&e(Yx())},[]),_.useEffect(()=>{Kx=!0},[]),t}const Wee=wP.useId,Cb=Wee||qee;function Gee(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(i=>i(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(i=>i!==r))||[])}}}const Kee=_.createContext(null),Yee=_.createContext(null),kb=()=>{var t;return((t=_.useContext(Kee))==null?void 0:t.id)||null},Eb=()=>_.useContext(Yee);function Sb(t){return"data-floating-ui-"+t}function o5(t){const e=_.useRef(t);return Pl(()=>{e.current=t}),e}const Qx=Sb("safe-polygon");function a5(t,e,r){return r&&!Vy(r)?0:typeof t=="number"?t:t==null?void 0:t[e]}function Qee(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:i,events:o,elements:a}=t,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:d=!1,restMs:u=0,move:h=!0}=e,f=Eb(),p=kb(),m=o5(l),w=o5(c),y=o5(r),v=_.useRef(),g=_.useRef(-1),k=_.useRef(),E=_.useRef(-1),C=_.useRef(!0),R=_.useRef(!1),$=_.useRef(()=>{}),Y=_.useCallback(()=>{var Z;const F=(Z=i.current.openEvent)==null?void 0:Z.type;return(F==null?void 0:F.includes("mouse"))&&F!=="mousedown"},[i]);_.useEffect(()=>{if(!s)return;function Z(F){let{open:O}=F;O||(clearTimeout(g.current),clearTimeout(E.current),C.current=!0)}return o.on("openchange",Z),()=>{o.off("openchange",Z)}},[s,o]),_.useEffect(()=>{if(!s||!m.current||!r)return;function Z(O){Y()&&n(!1,O,"hover")}const F=Gc(a.floating).documentElement;return F.addEventListener("mouseleave",Z),()=>{F.removeEventListener("mouseleave",Z)}},[a.floating,r,n,s,m,Y]);const q=_.useCallback(function(Z,F,O){F===void 0&&(F=!0),O===void 0&&(O="hover");const M=a5(w.current,"close",v.current);M&&!k.current?(clearTimeout(g.current),g.current=window.setTimeout(()=>n(!1,Z,O),M)):F&&(clearTimeout(g.current),n(!1,Z,O))},[w,n]),ae=Ss(()=>{$.current(),k.current=void 0}),_e=Ss(()=>{if(R.current){const Z=Gc(a.floating).body;Z.style.pointerEvents="",Z.removeAttribute(Qx),R.current=!1}});_.useEffect(()=>{if(!s)return;function Z(){return i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1}function F(z){if(clearTimeout(g.current),C.current=!1,d&&!Vy(v.current)||u>0&&!a5(w.current,"open"))return;const te=a5(w.current,"open",v.current);te?g.current=window.setTimeout(()=>{y.current||n(!0,z,"hover")},te):n(!0,z,"hover")}function O(z){if(Z())return;$.current();const te=Gc(a.floating);if(clearTimeout(E.current),m.current&&i.current.floatingContext){r||clearTimeout(g.current),k.current=m.current({...i.current.floatingContext,tree:f,x:z.clientX,y:z.clientY,onClose(){_e(),ae(),q(z,!0,"safe-polygon")}});const je=k.current;te.addEventListener("mousemove",je),$.current=()=>{te.removeEventListener("mousemove",je)};return}(v.current==="touch"?!Ef(a.floating,z.relatedTarget):!0)&&q(z)}function M(z){Z()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:f,x:z.clientX,y:z.clientY,onClose(){_e(),ae(),q(z)}})(z))}if(jt(a.domReference)){var N;const z=a.domReference;return r&&z.addEventListener("mouseleave",M),(N=a.floating)==null||N.addEventListener("mouseleave",M),h&&z.addEventListener("mousemove",F,{once:!0}),z.addEventListener("mouseenter",F),z.addEventListener("mouseleave",O),()=>{var te;r&&z.removeEventListener("mouseleave",M),(te=a.floating)==null||te.removeEventListener("mouseleave",M),h&&z.removeEventListener("mousemove",F),z.removeEventListener("mouseenter",F),z.removeEventListener("mouseleave",O)}}},[a,s,t,d,u,h,q,ae,_e,n,r,y,f,w,m,i]),Pl(()=>{var Z;if(s&&r&&(Z=m.current)!=null&&Z.__options.blockPointerEvents&&Y()){R.current=!0;const O=a.floating;if(jt(a.domReference)&&O){var F;const M=Gc(a.floating).body;M.setAttribute(Qx,"");const N=a.domReference,z=f==null||(F=f.nodesRef.current.find(te=>te.id===p))==null||(F=F.context)==null?void 0:F.elements.floating;return z&&(z.style.pointerEvents=""),M.style.pointerEvents="none",N.style.pointerEvents="auto",O.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents="",O.style.pointerEvents=""}}}},[s,r,p,a,f,m,Y]),Pl(()=>{r||(v.current=void 0,ae(),_e())},[r,ae,_e]),_.useEffect(()=>()=>{ae(),clearTimeout(g.current),clearTimeout(E.current),_e()},[s,a.domReference,ae,_e]);const Ve=_.useMemo(()=>{function Z(F){v.current=F.pointerType}return{onPointerDown:Z,onPointerEnter:Z,onMouseMove(F){const{nativeEvent:O}=F;function M(){!C.current&&!y.current&&n(!0,O,"hover")}d&&!Vy(v.current)||r||u===0||(clearTimeout(E.current),v.current==="touch"?M():E.current=window.setTimeout(M,u))}}},[d,n,r,y,u]),H=_.useMemo(()=>({onMouseEnter(){clearTimeout(g.current)},onMouseLeave(Z){q(Z.nativeEvent,!1)}}),[q]);return _.useMemo(()=>s?{reference:Ve,floating:H}:{},[s,Ve,H])}function s5(t,e){let r=t.filter(i=>{var o;return i.parentId===e&&((o=i.context)==null?void 0:o.open)}),n=r;for(;n.length;)n=t.filter(i=>{var o;return(o=n)==null?void 0:o.some(a=>{var s;return i.parentId===a.id&&((s=i.context)==null?void 0:s.open)})}),r=r.concat(n);return r}const Xee="data-floating-ui-focusable",c5=new Set,Jee=_.forwardRef(function(e,r){const{lockScroll:n=!1,...i}=e,o=Cb();return Pl(()=>{if(!n)return;c5.add(o);const a=/iP(hone|ad|od)|iOS/.test(yb()),s=document.body.style,l=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=s.left?parseFloat(s.left):window.scrollX,h=s.top?parseFloat(s.top):window.scrollY;if(s.overflow="hidden",d&&(s[l]=d+"px"),a){var f,p;const m=((f=window.visualViewport)==null?void 0:f.offsetLeft)||0,w=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(s,{position:"fixed",top:-(h-Math.floor(w))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{c5.delete(o),c5.size===0&&(Object.assign(s,{overflow:"",[l]:""}),a&&(Object.assign(s,{position:"",top:"",left:"",right:""}),window.scrollTo(u,h)))}},[o,n]),_.createElement("div",zy({ref:r},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))}),ete={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tte={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xx=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t==null?void 0:t.outsidePress)!=null?r:!0}};function xP(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,elements:i,dataRef:o}=t,{enabled:a=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:h=!1,bubbles:f,capture:p}=e,m=Eb(),w=Ss(typeof c=="function"?c:()=>!1),y=typeof c=="function"?w:c,v=_.useRef(!1),g=_.useRef(!1),{escapeKey:k,outsidePress:E}=Xx(f),{escapeKey:C,outsidePress:R}=Xx(p),$=Ss(H=>{var Z;if(!r||!a||!s||H.key!=="Escape")return;const F=(Z=o.current.floatingContext)==null?void 0:Z.nodeId,O=m?s5(m.nodesRef.current,F):[];if(!k&&(H.stopPropagation(),O.length>0)){let M=!0;if(O.forEach(N=>{var z;if((z=N.context)!=null&&z.open&&!N.context.dataRef.current.__escapeKeyBubbles){M=!1;return}}),!M)return}n(!1,tee(H)?H.nativeEvent:H,"escape-key")}),Y=Ss(H=>{var Z;const F=()=>{var O;$(H),(O=yd(H))==null||O.removeEventListener("keydown",F)};(Z=yd(H))==null||Z.addEventListener("keydown",F)}),q=Ss(H=>{var Z;const F=v.current;v.current=!1;const O=g.current;if(g.current=!1,l==="click"&&O||F||typeof y=="function"&&!y(H))return;const M=yd(H),N="["+Sb("inert")+"]",z=Gc(i.floating).querySelectorAll(N);let te=jt(M)?M:null;for(;te&&!Js(te);){const Ie=Ba(te);if(Js(Ie)||!jt(Ie))break;te=Ie}if(z.length&&jt(M)&&!ree(M)&&!Ef(M,i.floating)&&Array.from(z).every(Ie=>!Ef(te,Ie)))return;if(gi(M)&&Ve){const Ie=M.clientWidth>0&&M.scrollWidth>M.clientWidth,rt=M.clientHeight>0&&M.scrollHeight>M.clientHeight;let Ur=rt&&H.offsetX>M.clientWidth;if(rt&&Ui(M).direction==="rtl"&&(Ur=H.offsetX<=M.offsetWidth-M.clientWidth),Ur||Ie&&H.offsetY>M.clientHeight)return}const se=(Z=o.current.floatingContext)==null?void 0:Z.nodeId,je=m&&s5(m.nodesRef.current,se).some(Ie=>{var rt;return n5(H,(rt=Ie.context)==null?void 0:rt.elements.floating)});if(n5(H,i.floating)||n5(H,i.domReference)||je)return;const Qe=m?s5(m.nodesRef.current,se):[];if(Qe.length>0){let Ie=!0;if(Qe.forEach(rt=>{var Ur;if((Ur=rt.context)!=null&&Ur.open&&!rt.context.dataRef.current.__outsidePressBubbles){Ie=!1;return}}),!Ie)return}n(!1,H,"outside-press")}),ae=Ss(H=>{var Z;const F=()=>{var O;q(H),(O=yd(H))==null||O.removeEventListener(l,F)};(Z=yd(H))==null||Z.addEventListener(l,F)});_.useEffect(()=>{if(!r||!a)return;o.current.__escapeKeyBubbles=k,o.current.__outsidePressBubbles=E;function H(O){n(!1,O,"ancestor-scroll")}const Z=Gc(i.floating);s&&Z.addEventListener("keydown",C?Y:$,C),y&&Z.addEventListener(l,R?ae:q,R);let F=[];return h&&(jt(i.domReference)&&(F=js(i.domReference)),jt(i.floating)&&(F=F.concat(js(i.floating))),!jt(i.reference)&&i.reference&&i.reference.contextElement&&(F=F.concat(js(i.reference.contextElement)))),F=F.filter(O=>{var M;return O!==((M=Z.defaultView)==null?void 0:M.visualViewport)}),F.forEach(O=>{O.addEventListener("scroll",H,{passive:!0})}),()=>{s&&Z.removeEventListener("keydown",C?Y:$,C),y&&Z.removeEventListener(l,R?ae:q,R),F.forEach(O=>{O.removeEventListener("scroll",H)})}},[o,i,s,y,l,r,n,h,a,k,E,$,C,Y,q,R,ae]),_.useEffect(()=>{v.current=!1},[y,l]);const _e=_.useMemo(()=>({onKeyDown:$,[ete[u]]:H=>{d&&n(!1,H.nativeEvent,"reference-press")}}),[$,n,d,u]),Ve=_.useMemo(()=>({onKeyDown:$,onMouseDown(){g.current=!0},onMouseUp(){g.current=!0},[tte[l]]:()=>{v.current=!0}}),[$,l]);return _.useMemo(()=>a?{reference:_e,floating:Ve}:{},[a,_e,Ve])}function rte(t){const{open:e=!1,onOpenChange:r,elements:n}=t,i=Cb(),o=_.useRef({}),[a]=_.useState(()=>Gee()),s=kb()!=null,[c,l]=_.useState(n.reference),d=Ss((f,p,m)=>{o.current.openEvent=f?p:void 0,a.emit("openchange",{open:f,event:p,reason:m,nested:s}),r==null||r(f,p,m)}),u=_.useMemo(()=>({setPositionReference:l}),[]),h=_.useMemo(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return _.useMemo(()=>({dataRef:o,open:e,onOpenChange:d,elements:h,events:a,floatingId:i,refs:u}),[e,d,h,a,i,u])}function CP(t){t===void 0&&(t={});const{nodeId:e}=t,r=rte({...t,elements:{reference:null,floating:null,...t.elements}}),n=t.rootContext||r,i=n.elements,[o,a]=_.useState(null),[s,c]=_.useState(null),d=(i==null?void 0:i.reference)||o,u=_.useRef(null),h=Eb();Pl(()=>{d&&(u.current=d)},[d]);const f=Dee({...t,elements:{...i,...s&&{reference:s}}}),p=_.useCallback(g=>{const k=jt(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;c(k),f.refs.setReference(k)},[f.refs]),m=_.useCallback(g=>{(jt(g)||g===null)&&(u.current=g,a(g)),(jt(f.refs.reference.current)||f.refs.reference.current===null||g!==null&&!jt(g))&&f.refs.setReference(g)},[f.refs]),w=_.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u}),[f.refs,m,p]),y=_.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),v=_.useMemo(()=>({...f,...n,refs:w,elements:y,nodeId:e}),[f,w,y,e,n]);return Pl(()=>{n.dataRef.current.floatingContext=v;const g=h==null?void 0:h.nodesRef.current.find(k=>k.id===e);g&&(g.context=v)}),_.useMemo(()=>({...f,context:v,refs:w,elements:y}),[f,w,y,v])}function nte(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:i,dataRef:o,elements:a}=t,{enabled:s=!0,visibleOnly:c=!0}=e,l=_.useRef(!1),d=_.useRef(),u=_.useRef(!0);_.useEffect(()=>{if(!s)return;const f=Jn(a.domReference);function p(){!r&&gi(a.domReference)&&a.domReference===Dx(Gc(a.domReference))&&(l.current=!0)}function m(){u.current=!0}return f.addEventListener("blur",p),f.addEventListener("keydown",m,!0),()=>{f.removeEventListener("blur",p),f.removeEventListener("keydown",m,!0)}},[a.domReference,r,s]),_.useEffect(()=>{if(!s)return;function f(p){let{reason:m}=p;(m==="reference-press"||m==="escape-key")&&(l.current=!0)}return i.on("openchange",f),()=>{i.off("openchange",f)}},[i,s]),_.useEffect(()=>()=>{clearTimeout(d.current)},[]);const h=_.useMemo(()=>({onPointerDown(f){QJ(f.nativeEvent)||(u.current=!1)},onMouseLeave(){l.current=!1},onFocus(f){if(l.current)return;const p=yd(f.nativeEvent);if(c&&jt(p))try{if(XJ()&&JJ())throw Error();if(!p.matches(":focus-visible"))return}catch{if(!u.current&&!iee(p))return}n(!0,f.nativeEvent,"focus")},onBlur(f){l.current=!1;const p=f.relatedTarget,m=f.nativeEvent,w=jt(p)&&p.hasAttribute(Sb("focus-guard"))&&p.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var y;const v=Dx(a.domReference?a.domReference.ownerDocument:document);!p&&v===a.domReference||Ef((y=o.current.floatingContext)==null?void 0:y.refs.floating.current,v)||Ef(a.domReference,v)||w||n(!1,m,"focus")})}}),[o,a.domReference,n,c]);return _.useMemo(()=>s?{reference:h}:{},[s,h])}const Jx="active",eC="selected";function l5(t,e,r){const n=new Map,i=r==="item";let o=t;if(i&&t){const{[Jx]:a,[eC]:s,...c}=t;o=c}return{...r==="floating"&&{tabIndex:-1,[Xee]:""},...o,...e.map(a=>{const s=a?a[r]:null;return typeof s=="function"?t?s(t):null:s}).concat(t).reduce((a,s)=>(s&&Object.entries(s).forEach(c=>{let[l,d]=c;if(!(i&&[Jx,eC].includes(l)))if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof d=="function"){var u;(u=n.get(l))==null||u.push(d),a[l]=function(){for(var h,f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return(h=n.get(l))==null?void 0:h.map(w=>w(...p)).find(w=>w!==void 0)}}}else a[l]=d}),a),{})}}function kP(t){t===void 0&&(t=[]);const e=t.map(s=>s==null?void 0:s.reference),r=t.map(s=>s==null?void 0:s.floating),n=t.map(s=>s==null?void 0:s.item),i=_.useCallback(s=>l5(s,t,"reference"),e),o=_.useCallback(s=>l5(s,t,"floating"),r),a=_.useCallback(s=>l5(s,t,"item"),n);return _.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const ite=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ote(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:i}=t,{enabled:o=!0,role:a="dialog"}=e,s=(r=ite.get(a))!=null?r:a,c=Cb(),d=kb()!=null,u=_.useMemo(()=>s==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:n?i:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":n?i:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:c},...s==="menu"&&d&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[s,i,d,n,c,a]),h=_.useMemo(()=>{const p={id:i,...s&&{role:s}};return s==="tooltip"||a==="label"?p:{...p,...s==="menu"&&{"aria-labelledby":c}}},[s,i,c,a]),f=_.useCallback(p=>{let{active:m,selected:w}=p;const y={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...y,"aria-selected":m&&w};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[i,a]);return _.useMemo(()=>o?{reference:u,floating:h,item:f}:{},[o,u,h,f])}const ate=W("div").withConfig({shouldForwardProp:()=>!0}).withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-m2im2p-0"})(["inset:unset;border:0;overflow:visible;"," "," "," background:",";white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}&::backdrop{background-color:transparent;}"],$n(Pa.typography),Eo(Pa.spacings),pi(Pa.border),Pa.background),ste=W.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],Pa.entities.arrow.width,Pa.entities.arrow.height),cte=W.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],Pa.entities.arrow.width,Pa.entities.arrow.height,Pa.background),jy=_.forwardRef(function({title:e,placement:r="bottom",children:n,style:i,enterDelay:o=100,...a},s){const c=_.useRef(null),[l,d]=_.useState(!1),u=e!=="",{x:h,y:f,refs:p,strategy:m,context:w,middlewareData:{arrow:{x:y,y:v}={}},placement:g}=CP({placement:r,open:l,onOpenChange:d,middleware:[yP(14),bP(),_P({padding:8}),zee({element:c})],whileElementsMounted:xb}),k=_.useMemo(()=>ra(p.setReference,n==null?void 0:n.ref),[p.setReference,n==null?void 0:n.ref]),E=_.useMemo(()=>ra(p.setFloating,s),[p.setFloating,s]),{getReferenceProps:C,getFloatingProps:R}=kP([Qee(w,{delay:{open:o}}),nte(w),ote(w,{role:"tooltip"}),xP(w)]);_.useEffect(()=>{const q={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]];let ae="none";switch(q){case"right":ae="rotateY(180deg)";break;case"left":ae="none";break;case"top":ae="rotate(90deg)";break;case"bottom":ae="rotate(-90deg)";break}c.current&&Object.assign(c.current.style,{left:y!=null?`${y}px`:"",top:v!=null?`${v}px`:"",right:"",bottom:"",[q]:"-6px",transform:ae})});const $=_.cloneElement(n,{...C({ref:k,...n.props})});Ly(()=>{var q;u&&l&&((q=p.floating.current)==null||q.showPopover())},[l,u,p.floating]);const Y=b.jsxs(ate,{popover:"manual",...a,...R({ref:E,style:{...i,position:m,top:f||0,left:h||0}}),children:[e,b.jsx(ste,{ref:c,children:b.jsx(cte,{className:"arrowSvg",children:b.jsx("path",{d:"M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"})})})]});return b.jsxs(b.Fragment,{children:[u&&l&&Y,$]})}),lte=_.forwardRef(function({children:e,multiple:r,selectedIndexes:n,onChange:i,...o},a){const[s,c]=_.useState(n||[]);_.useEffect(()=>{Array.isArray(n)&&c(n)},[n]);function l(u,h,f){const p=u;if(_.isValidElement(u)){const m={"aria-pressed":h?!0:void 0,variant:h?"contained":"outlined",onClick:w=>{var v,g;(g=(v=p.props)==null?void 0:v.onClick)==null||g.call(v,w);let y=[f];r&&(y=s.includes(f)?s.filter(k=>k!==f):[...s,f]),c(y),i&&i(y)}};return _.cloneElement(u,m)}}const d=_.Children.map(e,(u,h)=>{const f=s.includes(h),p=u;if(_.isValidElement(u)&&u.type===jy){const m=_.Children.map(p.props.children,w=>l(w,f,h));return _.cloneElement(p,null,m[0])}else return l(p,f,h)});return b.jsx(rP,{ref:a,...o,children:d})}),Mr=VJ;Mr.Group=rP;Mr.Toggle=lte;Mr.Group.displayName="Button.Group";Mr.Toggle.displayName="Button.Toggle";let Uy={},tC=0;const dte=t=>{Uy={...Uy,...t}},ute=t=>(tC+=1,{icon:Uy[t],count:tC}),hte=W.svg.attrs(({$height:t,$width:e,fill:r})=>({name:null,xmlns:"http://www.w3.org/2000/svg",height:`${t}px`,width:`${e}px`,fill:r})).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],({$rotation:t})=>t?`rotate(${t}deg)`:"none"),rC=W.path.attrs(({$height:t,$size:e})=>({size:null,fillRule:"evenodd",clipRule:"evenodd",transform:e/t!==1?`scale(${e/t})`:null})).withConfig({displayName:"Icon__StyledPath",componentId:"sc-6evbi1-1"})([""]),fte=t=>({icon:t,count:Math.floor(Math.random()*1e3)}),pte=(t,e,r)=>{var o;let{icon:n,count:i}=e?fte(e):ute(t);return r<24&&(n=((o=n.sizes)==null?void 0:o.small)||n),{icon:n,count:i}},mte=_.forwardRef(function({size:e,color:r="currentColor",name:n,rotation:i,title:o,data:a,...s},c){const{icon:l,count:d}=pte(n,a,e);if(typeof l>"u")throw Error(`Icon "${n}" not found. Have you added it using Icon.add() or using data props?`);const u=e||parseInt(l.width),h=e||parseInt(l.height);let f={$height:u,$width:h,fill:r,viewBox:`0 0 ${h} ${u}`,$rotation:i,name:n,"aria-hidden":!0};const p={$height:l.height?parseInt(l.height):e,$size:e||parseInt(l.height)};let m="";return o&&(m=`${l.prefix}-${l.name}-${d}`,f={...f,title:o,role:"img","aria-hidden":void 0,"aria-labelledby":m}),b.jsxs(hte,{...f,...s,ref:c,children:[o&&b.jsx("title",{id:m,children:o}),Array.isArray(l.svgPathData)?l.svgPathData.map(w=>b.jsx(rC,{...p,d:w},w)):b.jsx(rC,{"data-testid":"eds-icon-path",...p,d:l.svgPathData})]})}),Pt=mte;Pt.add=dte;const vte={name:"more_vertical",prefix:"eds",height:"24",width:"24",svgPathData:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2Zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm-2 8c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2Z"},gte={name:"fullscreen_exit",prefix:"eds",height:"24",width:"24",svgPathData:"M5 8h3V5h2v5H5V8Zm3 8H5v-2h5v5H8v-3Zm6 3h2v-3h3v-2h-5v5Zm2-14v3h3v2h-5V5h2Z"},yte={name:"work_outline",prefix:"eds",height:"24",width:"24",svgPathData:"M22 8.5c0-1.11-.89-2-2-2h-4v-2c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19.5c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2v-11Zm-8-2v-2h-4v2h4Zm-10 2v11h16v-11H4Z"},_te={name:"fullscreen",prefix:"eds",height:"24",width:"24",svgPathData:"M7 10H5V5h5v2H7v3Zm-2 4h2v3h3v2H5v-5Zm12 3h-3v2h5v-5h-2v3ZM14 7V5h5v5h-2V7h-3Z",sizes:{small:{name:"fullscreen_small",prefix:"eds",height:"18",width:"18",svgPathData:"M5 7H3V3h4v2H5v2Zm-2 4h2v2h2v2H3v-4Zm10 2h-2v2h4v-4h-2v2Zm-2-8V3h4v4h-2V5h-2Z"}}},bte={name:"edit",prefix:"eds",height:"24",width:"24",svgPathData:"m18.368 3.29 2.34 2.34c.39.39.39 1.02 0 1.41l-1.83 1.83-3.75-3.75 1.83-1.83c.19-.19.44-.29.7-.29.26 0 .51.09.71.29ZM2.998 17.25V21h3.75l11.06-11.06-3.75-3.75-11.06 11.06ZM5.918 19h-.92v-.92l9.06-9.06.92.92L5.918 19Z"},EP={name:"add",prefix:"eds",height:"24",width:"24",svgPathData:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"},wte={name:"update",prefix:"eds",height:"24",width:"24",svgPathData:"M21 3v7h-7l2.95-2.95A7.018 7.018 0 0 0 12 5c-3.86 0-7 3.14-7 7s3.14 7 7 7 7-3.14 7-7h2a9 9 0 1 1-9-9c2.49 0 4.74 1.01 6.36 2.64L21 3ZM11 13V8h1.5v4.15l3.52 2.09-.77 1.28L11 13Z"},xte={name:"delete_to_trash",prefix:"eds",height:"24",width:"24",svgPathData:"M14.5 3h-5l-1 1H5v2h14V4h-3.5l-1-1ZM16 9v10H8V9h8ZM6 7h12v12c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V7Z"},Tb={name:"close",prefix:"eds",height:"24",width:"24",svgPathData:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z",sizes:{small:{name:"close_small",prefix:"eds",height:"18",width:"18",svgPathData:"M14 5.007 12.993 4 9 7.993 5.007 4 4 5.007 7.993 9 4 12.993 5.007 14 9 10.007 12.993 14 14 12.993 10.007 9 14 5.007Z"}}},Cte={name:"search",prefix:"eds",height:"24",width:"24",svgPathData:"M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27Zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5Z",sizes:{small:{name:"search_small",prefix:"eds",height:"18",width:"18",svgPathData:"M11.224 10.691h.592l3.743 3.75-1.118 1.118-3.75-3.743v-.592l-.202-.21a4.853 4.853 0 0 1-3.173 1.177 4.875 4.875 0 1 1 4.875-4.875 4.853 4.853 0 0 1-1.177 3.173l.21.202ZM3.94 7.316a3.37 3.37 0 0 0 3.375 3.375 3.37 3.37 0 0 0 3.375-3.375 3.37 3.37 0 0 0-3.375-3.375 3.37 3.37 0 0 0-3.375 3.375Z"}}},kte={name:"checkbox",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0 1 0-1.41-1.41L10 14.17l-2.88-2.88a.996.996 0 1 0-1.41 1.41l3.59 3.59Z",sizes:{small:{name:"checkbox_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.75 2h10.5c.825 0 1.75.925 1.75 1.75v10.5c0 .825-.925 1.75-1.75 1.75H3.75c-.825 0-1.662-.925-1.662-1.75V3.75c0-.825.837-1.75 1.662-1.75Zm3.225 10.217a.747.747 0 0 0 1.057 0l5.685-5.692a.747.747 0 1 0-1.057-1.058l-5.16 5.16-2.16-2.16a.747.747 0 1 0-1.058 1.058l2.693 2.692Z"}}},Ete={name:"checkbox_outline",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm1 16h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1Z",sizes:{small:{name:"checkbox_outline_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75v10.5c0 .825-1.175 1.75-2 1.75H3.5c-.825 0-1.5-.925-1.5-1.75V3.75C2 2.925 2.675 2 3.5 2Zm1.214 12h8.572a.716.716 0 0 0 .714-.714V4.714A.716.716 0 0 0 13.286 4H4.714A.716.716 0 0 0 4 4.714v8.572c0 .393.321.714.714.714Z"}}},Ste={name:"checkbox_indeterminate",prefix:"eds",height:"24",width:"24",svgPathData:"M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2Zm3 10h8c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1s.45 1 1 1Z",sizes:{small:{name:"checkbox_indeterminate_small",prefix:"eds",height:"18",width:"18",svgPathData:"M3.5 2H14c.825 0 2 .925 2 1.75V14c0 .825-1.175 2-2 2H4c-.825 0-2-1.175-2-2V3.75C2 2.925 2.675 2 3.5 2Zm2.3 8h6.4c.44 0 .8-.45.8-1s-.36-1-.8-1H5.8c-.44 0-.8.45-.8 1s.36 1 .8 1Z"}}},SP={name:"share",prefix:"eds",height:"24",width:"24",svgPathData:"M16.04 16.89c.52-.47 1.2-.77 1.96-.77 1.61 0 2.92 1.31 2.92 2.92 0 1.61-1.31 2.92-2.92 2.92-1.61 0-2.92-1.31-2.92-2.92 0-.22.03-.44.08-.65l-7.12-4.16c-.54.5-1.25.81-2.04.81-1.66 0-3-1.34-3-3s1.34-3 3-3c.79 0 1.5.31 2.04.81l7.05-4.11c-.05-.23-.09-.46-.09-.7 0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-.79 0-1.5-.31-2.04-.81l-7.05 4.11c.05.23.09.46.09.7 0 .24-.04.47-.09.7l7.13 4.15ZM19 5.04c0-.55-.45-1-1-1s-1 .45-1 1 .45 1 1 1 1-.45 1-1Zm-13 8c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm11 6.02c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1Z"},Tte={name:"security",prefix:"eds",height:"24",width:"24",svgPathData:"m3 5 9-4 9 4v6c0 5.55-3.84 10.74-9 12-5.16-1.26-9-6.45-9-12V5Zm16 6.99h-7v-8.8L5 6.3V12h7v8.93c3.72-1.15 6.47-4.82 7-8.94Z"},km={name:"error_outlined",prefix:"eds",height:"24",width:"24",svgPathData:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM13 13V7h-2v6h2Zm0 4v-2h-2v2h2Zm-9-5c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z"},Ate={name:"menu",prefix:"eds",height:"24",width:"24",svgPathData:"M3 8V6h18v2H3Zm0 5h18v-2H3v2Zm0 5h18v-2H3v2Z"},TP={name:"category",prefix:"eds",height:"24",width:"24",svgPathData:"m6 11 5.5-9 5.5 9H6Zm7.43-2L11.5 5.84 9.56 9h3.87ZM17 13c-2.49 0-4.5 2.01-4.5 4.5S14.51 22 17 22s4.5-2.01 4.5-4.5S19.49 13 17 13Zm-2.5 4.5a2.5 2.5 0 0 0 5 0 2.5 2.5 0 0 0-5 0Zm-12 4h8v-8h-8v8Zm6-6h-4v4h4v-4Z"},Ite={name:"bandage",prefix:"eds",height:"24",width:"24",svgPathData:"m17.745 12 3.98-3.98a.996.996 0 0 0 0-1.41l-4.34-4.34a.996.996 0 0 0-1.41 0l-3.98 3.98-3.98-3.98a1.001 1.001 0 0 0-1.41 0l-4.34 4.34a.996.996 0 0 0 0 1.41L6.245 12l-3.98 3.98a.996.996 0 0 0 0 1.41l4.34 4.34c.39.39 1.02.39 1.41 0l3.98-3.98 3.98 3.98c.2.2.45.29.71.29.26 0 .51-.1.71-.29l4.34-4.34a.996.996 0 0 0 0-1.41L17.745 12Zm-5.73-3.02c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1Zm-8.34-1.66 3.63 3.62 3.62-3.63-3.62-3.62-3.63 3.63Zm6.34 5.66c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm1 1c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1Zm3-3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1Zm-.97 5.72 3.63 3.62 3.62-3.63-3.62-3.62-3.63 3.63Z"},Rte={name:"file_description",prefix:"eds",height:"24",width:"24",svgPathData:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6Zm2 10H8v2h8v-2Zm0 4H8v2h8v-2ZM6 20h12V9h-5V4H6v16Z"},Ab={name:"chevron_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6 1.41-1.41Z",sizes:{small:{name:"chevron_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"M5.175 6 9 9.709 12.825 6 14 7.142 9 12 4 7.142 5.175 6Z"}}},Ib={name:"chevron_right",prefix:"eds",height:"24",width:"24",svgPathData:"m8.295 16.59 4.58-4.59-4.58-4.59L9.705 6l6 6-6 6-1.41-1.41Z",sizes:{small:{name:"chevron_right_small",prefix:"eds",height:"18",width:"18",svgPathData:"m6 12.827 3.709-3.825L6 5.177l1.142-1.175 4.858 5-4.858 5L6 12.827Z"}}},Pte={name:"arrow_back",prefix:"eds",height:"24",width:"24",svgPathData:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2Z",sizes:{small:{name:"arrow_back_small",prefix:"eds",height:"18",width:"18",svgPathData:"M15 8H6.5l4-4L9 3 3 9l6 6 1.5-1-4-4H15V8Z"}}},Mte={name:"tag",prefix:"eds",height:"24",width:"24",svgPathData:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42ZM13 20.01 4 11V4h7v-.01l9 9-7 7.02ZM5 6.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"},Kv=_.createContext({variant:"minWidth",scrollable:!1,handleChange:()=>null,activeTab:0,tabsId:"",tabsFocused:!1}),$te=Kv.Provider;Kv.Consumer;const{colors:{text:{static_icons__tertiary:{rgba:Zte}},ui:{background__medium:{rgba:Ote}},interactive:{focus:{rgba:nC},primary__hover_alt:{rgba:Hte},primary__resting:{rgba:iC},primary__hover:{rgba:Lte}}},clickbounds:{default__base:oC},spacings:{comfortable:{medium:v2}},interactions:{focused:{width:d5}},typography:{navigation:{menu_tabs:Nte,menu_title:Dte}}}=ke,Vte={entities:{panel:{spacings:{top:v2,bottom:v2},states:{focus:{outline:{type:"outline",width:d5,style:"dashed",color:nC}}},typography:{...Dte}},tab:{background:"transparent",height:oC,clickbound:{height:oC,offset:{top:"2px"}},spacings:{left:v2,right:v2},typography:{color:Zte,textAlign:"center",...Nte},border:{type:"bordergroup",bottom:{color:Ote,style:"solid",width:"2px"}},states:{disabled:{border:{type:"border",width:0,color:"transparent",style:"solid"}},hover:{background:Hte},focus:{outline:{type:"outline",width:d5,offset:`-${parseInt(d5)}px`,style:"dashed",color:nC}},active:{typography:{color:iC},border:{type:"bordergroup",bottom:{color:iC,style:"solid",width:"2px"}},states:{hover:{typography:{color:Lte}}}}}}},modes:{compact:{}}},Fte=_.forwardRef(function({activeTab:e=0,onChange:r=()=>null,onBlur:n,onFocus:i,variant:o="minWidth",scrollable:a=!1,id:s,...c},l){const d=eP(s,"tabs"),u=_.useRef(null),h=_.useMemo(()=>ra(u,l),[u,l]),[f,p]=_.useState(!1),[m,w]=_.useState(!1);let y;const v=R=>{w(!1),u.current&&u.current.removeEventListener("keyup",k),y=setTimeout(()=>{f&&p(!1)},0),n&&n(R)},g=R=>{R.target.getAttribute("role")==="tab"&&(clearTimeout(y),!f&&(m||u.current&&(w(!0),u.current.addEventListener("keyup",k,{once:!0,capture:!0})),i&&i(R)))},k=R=>{w(!1),R.key==="Tab"&&p(!0)};_.useEffect(()=>{const R=u.current;return()=>{R&&R.removeEventListener("keyup",k)}},[]);const{density:E}=So(),C=aa({density:E},Vte);return b.jsx(Ga,{theme:C,children:b.jsx($te,{value:{activeTab:e,handleChange:r,tabsId:d,variant:o,scrollable:a,tabsFocused:f},children:b.jsx("div",{ref:h,...c,onBlur:v,onFocus:g})})})}),zte={fullWidth:"minmax(1%, 360px)",minWidth:"max-content"},jte=W.div.attrs(()=>({role:"tablist"})).withConfig({displayName:"TabList__StyledTabList",componentId:"sc-1g1p5i1-0"})(["display:grid;grid-auto-flow:column;grid-auto-columns:",";overflow-x:",";scroll-snap-type:x mandatory;overscroll-behavior-x:contain;@media (prefers-reduced-motion:no-preference){scroll-behavior:smooth;}@media (hover:none){overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:none;& ::-webkit-scrollbar{width:0;height:0;}}"],({$variant:t})=>zte[t],({$scrollable:t})=>t?"auto":"hidden"),Ute=_.forwardRef(function({children:e=[],...r},n){const{activeTab:i,handleChange:o,tabsId:a,variant:s="minWidth",scrollable:c=!1,tabsFocused:l}=_.useContext(Kv),d=_.useRef(),[u,h]=_.useState(!1),f=_.useCallback(k=>{(k!==null&&l||k!==null&&u)&&(h(!1),k.focus())},[u,l]),p=_.Children.map(e,(k,E)=>{const R=k.props.value,$=R?R===i:E===i,Y=$?ra(k.ref,f):k.ref;return $&&(d.current=E),_.cloneElement(k,{id:`${a}-tab-${E+1}`,"aria-controls":`${a}-panel-${E+1}`,active:$,$index:E,onClick:()=>o(E),ref:Y})}),m=p.filter(k=>!k.props.disabled).map(k=>k.props.$index),w=m[0],y=m[m.length-1],v=(k,E)=>{const C=k==="left"?1:-1,R=m[m.indexOf(d.current)-C];h(!0),o(R===void 0?E:R)},g=k=>{const{key:E}=k;E==="ArrowLeft"&&(k.preventDefault(),v("left",y)),E==="ArrowRight"&&(k.preventDefault(),v("right",w))};return b.jsx(jte,{onKeyDown:g,ref:n,...r,$variant:s,$scrollable:c,children:p})}),Bte=W.button.attrs(({$active:t=!1,disabled:e=!1,$value:r})=>({type:"button",role:"tab","aria-selected":t,"aria-disabled":e,tabIndex:r||t?0:-1})).withConfig({displayName:"Tab__StyledTab",componentId:"sc-scjkct-0"})(({theme:t,$active:e,disabled:r})=>{const{entities:{tab:n}}=t;return Ce(["appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;border:none;outline:none;height:",";"," "," color:",";background-color:",";position:relative;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;overflow-x:hidden;scroll-snap-align:end;scroll-snap-stop:always;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:",";","}}"," ",""],n.height,Eo(n.spacings),$n(n.typography),e?n.states.active.typography.color:n.typography.color,n.background,on(n.states.focus.outline),on(n.states.focus.outline),e?n.states.active.states.hover.typography.color:n.typography.color,r?Ce(["background:",";cursor:not-allowed;"],n.states.disabled.background):Ce(["background:",";cursor:pointer;"],n.states.hover.background),pi(r?n.states.disabled.border:n.border),e&&pi(n.states.active.border))}),qte=_.forwardRef(function({active:e,value:r,...n},i){return b.jsx(Bte,{ref:i,$active:e,$value:r,...n})}),Wte=_.forwardRef(function({children:e,conditionalRender:r,...n},i){const{activeTab:o,tabsId:a}=_.useContext(Kv),s=_.Children.map(e,(c,l)=>r&&o!==l?null:_.cloneElement(c,{id:`${a}-panel-${l+1}`,"aria-labelledby":`${a}-tab-${l+1}`,hidden:o!==l}));return b.jsx("div",{ref:i,...n,children:s})}),Gte=W.div.attrs(()=>({tabIndex:0,role:"tabpanel"})).withConfig({displayName:"TabPanel__StyledTabPanel",componentId:"sc-e8v1d4-0"})(({theme:t})=>{const{entities:{panel:e}}=t;return Ce([""," "," &:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Eo(e.spacings),$n(e.typography),on(e.states.focus.outline),on(e.states.focus.outline))}),Kte=_.forwardRef(function({...e},r){return b.jsx(Gte,{ref:r,...e,children:e.children})}),Tn=Fte;Tn.Tab=qte;Tn.Panels=Wte;Tn.Panel=Kte;Tn.List=Ute;Tn.Tab.displayName="Tabs.Tab";Tn.Panels.displayName="Tabs.Panels";Tn.Panel.displayName="Tabs.Panel";Tn.List.displayName="Tabs.List";const{elevation:Yte,colors:{ui:{background__default:{rgba:Qte}}}}=ke,Xte={background:Qte},Jte=W.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],Xte.background,({$elevation:t})=>t),Yv=_.forwardRef(function({elevation:e="none",...r},n){const i={...r,$elevation:Yte[e]??"none"};return b.jsx(Jte,{...i,ref:n})}),{typography:AP,colors:ere,interactions:{focused:{width:tre}}}=ke,{heading:rre,paragraph:nre}=AP,{interactive:{primary__resting:{rgba:ire},secondary__resting:{rgba:ore},danger__resting:{rgba:are},warning__resting:{rgba:sre},success__resting:{rgba:cre},disabled__text:{rgba:lre},focus:{rgba:dre}}}=ere,aC={primary:ire,secondary:ore,danger:are,warning:sre,success:cre,disabled:lre},sC={...rre,...nre},cC={states:{focus:{outline:{width:tre,color:dre,style:"dashed",type:"outline",offset:"2px"}}}},ure=(t,e)=>{if(e)return"a";switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},hre=(t,e)=>!e&&sC[t]?sC[t]:AP[e][t],fre=(t=null)=>typeof aC[t]>"u"?t:aC[t],pre=(t,e=!1,r=!1,n=!1)=>`${t}${e?"_bold":""}${r?"_italic":""}${n?"_link":""}`,mre=W.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],({$typography:t,$link:e})=>$n(t,e),({$color:t})=>Ce({color:fre(t)}),({$lines:t})=>t&&Ce(["display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;"],t),({$link:t})=>t&&Ce(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],on(cC.states.focus.outline),on(cC.states.focus.outline))),Bi=_.forwardRef(function({variant:e="body_short",children:r,bold:n,italic:i,link:o,lines:a,color:s,group:c,token:l,as:d,...u},h){const f=d||ure(e,o),p=pre(e,n,i,o),m=hre(p,c);if(typeof m>"u")throw new Error(`Typography variant not found for variant "${p}" ("${e}") & group "${c||""}"`);return b.jsx(mre,{as:f,$typography:{...m,...l},$link:o,$lines:a,ref:h,$color:s,...u,children:r})}),{colors:lC,spacings:{comfortable:g2},typography:{navigation:vre}}=ke,gre={height:"64px",background:lC.ui.background__default.rgba,typography:vre.menu_title,spacings:{left:g2.large,right:g2.large,top:g2.small,bottom:g2.small},border:{type:"bordergroup",bottom:{style:"solid",color:lC.ui.background__light.rgba,width:"2px"}},modes:{compact:{}}},yre=W(Yv).withConfig({displayName:"TopBar__StyledTopBar",componentId:"sc-1yj236q-0"})(({theme:t,$sticky:e})=>Ce(["height:",";background:",";box-sizing:border-box;display:grid;grid-column-gap:",";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;"," ",";"," ",""],t.height,t.background,t.spacings.left,pi(t.border),Eo(t.spacings),$n(t.typography),e&&Ce(["position:sticky;top:0;z-index:1100;"]))),_re=_.forwardRef(function({children:e,elevation:r="none",sticky:n=!0,...i},o){const{density:a}=So(),s=aa({density:a},gre),c={...i,ref:o};return b.jsx(Ga,{theme:s,children:b.jsx(yre,{forwardedAs:"header",elevation:r,$sticky:n,...c,children:e})})}),bre=W.div.withConfig({displayName:"Actions__StyledActions",componentId:"sc-1251ang-0"})(["grid-area:right;text-align:right;align-items:center;display:flex;"]),wre=_.forwardRef(function({children:e,...r},n){return b.jsx(bre,{ref:n,...r,children:e})}),xre=W.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1fpllve-0"})(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:12px;align-items:center;"]),Cre=_.forwardRef(function({children:e,...r},n){return b.jsx(xre,{ref:n,...r,children:e})}),kre=W.div.withConfig({displayName:"CustomContent__StyledCustomContent",componentId:"sc-d0e83a-0"})(["grid-area:center;"]),Ere=_.forwardRef(function({children:e,...r},n){return b.jsx(kre,{ref:n,...r,children:e})}),Go=_re;Go.Actions=wre;Go.Header=Cre;Go.CustomContent=Ere;Go.Actions.displayName="Topbar.Actions";Go.Header.displayName="Topbar.Header";Go.CustomContent.displayName="Topbar.CustomContent";const{spacings:{comfortable:{medium:xh}},typography:{ui:{accordion_header:dC},paragraph:{body_long:Sre}},colors:{ui:{background__default:{rgba:Tre},background__scrim:{rgba:Are}}},shape:{corners:{borderRadius:Ire}}}=ke,Rre={width:"252px",background:Tre,typography:dC,border:{type:"border",radius:Ire},spacings:{bottom:xh},entities:{children:{spacings:{top:xh,bottom:xh,left:xh,right:xh}},title:{minHeight:"24px",typography:dC},content:{minHeight:"80px",height:"104px",typography:Sre},actions:{minHeight:"48px"},scrim:{background:Are}},modes:{compact:{}}},Pre=W(Yv).attrs({"aria-labelledby":"eds-dialog-title","aria-describedby":"eds-dialog-customcontent",elevation:"above_scrim"}).withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-1mewo3f-0"})(({theme:t})=>Ce(["width:",";background:",";display:grid;grid-auto-columns:auto;",";",";grid-gap:",";"],t.width,t.background,$n(t.typography),pi(t.border),t.spacings.bottom)),Mre=W.dialog.withConfig({displayName:"Dialog__StyledNativeDialog",componentId:"sc-1mewo3f-1"})(({theme:t})=>Ce(["padding:0;border:0;overflow:visible;overscroll-behavior:contain;",";&::backdrop{background-color:",";}"],pi(t.border),t.entities.scrim.background)),$re=_.forwardRef(function({children:e,open:r,onClose:n,isDismissable:i=!1,dialogRef:o,...a},s){const{density:c}=So(),l=_.useRef(null),d=aa({density:c},Rre),u=_.useMemo(()=>ra(l,o),[l,o]);_.useEffect(()=>{var f,p;r?(f=l==null?void 0:l.current)==null||f.showModal():(p=l==null?void 0:l.current)==null||p.close()},[r]),EJ(r);const h=f=>{const{target:p}=f;p instanceof HTMLElement&&i&&p.nodeName==="DIALOG"&&n&&n()};return B0("Escape",f=>{f.preventDefault(),i&&n&&r&&n&&n()}),b.jsx(Ga,{theme:d,children:b.jsx(Mre,{ref:u,onMouseDown:h,children:r&&b.jsx(Pre,{...a,ref:s,children:e})})})}),Zre=W.div.withConfig({displayName:"DialogActions__StyledDialogActions",componentId:"sc-16ydtxd-0"})(({theme:t,children:e})=>Ce(["align-self:end;justify-self:start;padding:0 "," 0 ",";&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}",""],t.entities.children.spacings.right,t.entities.children.spacings.left,t.entities.children.spacings.top,t.entities.children.spacings.bottom,!e&&Ce(["min-height:initial;height:'8px';"]))),Ore=_.forwardRef(function({children:e,...r},n){return b.jsx(Zre,{ref:n,...r,children:e})}),Hre=W.div.withConfig({displayName:"DialogTitle__StyledDialogTitle",componentId:"sc-1t3jljt-0"})(({theme:t,children:e})=>Ce([""," min-height:",";align-self:end;justify-self:start;margin-right:",";",""],$n(t.entities.title.typography),t.entities.title.minHeight,t.entities.children.spacings.right,!e&&Ce(["min-height:initial;height:'8px';"]))),Lre=_.forwardRef(function({children:e,...r},n){return b.jsx(b.Fragment,{children:b.jsx(Hre,{id:"eds-dialog-title",ref:n,...r,children:e})})}),{colors:{ui:{background__default:{rgba:Nre},background__light:{rgba:Dre},background__medium:{rgba:Vre}}},spacings:{comfortable:{small:uC,medium:hC}}}=ke,Fre={lighter:{background:Nre},light:{background:Dre},mediumColor:{background:Vre}},zre={spacings:{top:uC,bottom:uC}},jre={spacings:{top:hC,bottom:hC}},By=Object.freeze(Object.defineProperty({__proto__:null,divider:Fre,medium:jre,small:zre},Symbol.toStringTag,{value:"Module"})),{divider:Ure}=By,Bre=W.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1d8osde-0"})(({$backgroundColor:t,$marginTop:e,$marginBottom:r,$dividerHeight:n})=>Ce(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],t,e,r,n,n)),zu=_.forwardRef(function({color:e="medium",variant:r="medium",size:n="1",...i},o){const s={$backgroundColor:Ure[e==="medium"?"mediumColor":e].background,$marginTop:By[r].spacings.top,$marginBottom:By[r].spacings.bottom,$dividerHeight:parseInt(n),...i};return b.jsx(Bre,{...s,ref:o})}),qre=W.div.withConfig({displayName:"DialogContent__StyledDialogContent",componentId:"sc-1tze18k-0"})(({theme:t,$scrollable:e})=>Ce(["--content-spacing-top:",";"," min-height:",";align-self:stretch;justify-self:stretch;padding:0 "," 0 ",";&:first-child{padding-top:var(--content-spacing-top);}&:last-child{padding-bottom:",";}",""],t.entities.children.spacings.top,$n(t.entities.content.typography),t.entities.content.minHeight,t.entities.children.spacings.right,t.entities.children.spacings.left,t.entities.children.spacings.bottom,e&&Ce(["&:not(:first-child){margin-top:calc(var(--content-spacing-top) * -1);}padding-top:var(--content-spacing-top);margin-bottom:calc(var(--content-spacing-top) * -1);padding-bottom:var(--content-spacing-top);min-height:initial;height:",";overflow-y:auto;"],t.entities.content.height))),Wre=W(zu).withConfig({displayName:"DialogContent__StyledDivider",componentId:"sc-1tze18k-1"})(["width:100%;margin:0;"]),IP=_.forwardRef(function({children:e,scrollable:r=!1,...n},i){const o={$scrollable:r,ref:i,...n};return b.jsxs(b.Fragment,{children:[b.jsx(qre,{id:"eds-dialog-customcontent",...o,children:e}),e&&r&&b.jsx(Wre,{color:"medium",variant:"small"})]})}),Gre=W.div.withConfig({displayName:"DialogHeader__StyledDialogHeader",componentId:"sc-mbwcos-0"})(({theme:t})=>Ce(["display:flex;justify-content:space-between;align-items:center;padding:"," "," 0 ",";"],t.entities.children.spacings.top,t.entities.children.spacings.right,t.entities.children.spacings.left)),Kre=W(zu).withConfig({displayName:"DialogHeader__StyledDivider",componentId:"sc-mbwcos-1"})(["margin-bottom:0;"]),Yre=_.forwardRef(function({children:e,...r},n){const i={...r,ref:n};return b.jsxs("div",{...i,children:[b.jsx(Gre,{children:e}),b.jsx(Kre,{variant:"small",color:"medium"})]})}),wr=$re;wr.Actions=Ore;wr.Title=Lre;wr.CustomContent=IP;wr.Content=IP;wr.Header=Yre;wr.Actions.displayName="Dialog.Actions";wr.Title.displayName="Dialog.Title";wr.Content.displayName="Dialog.Content";wr.Header.displayName="Dialog.Header";const Qre=W.div.withConfig({displayName:"SnackbarAction__StyledSnackbarAction",componentId:"sc-1v5mjvd-0"})(({theme:t})=>Ce(["display:inline-flex;margin-left:",";margin-top:",";margin-bottom:",";"],t.entities.actions.spacings.left,t.entities.actions.spacings.top,t.entities.actions.spacings.bottom)),Xre=_.forwardRef(function({children:e,...r},n){const i={...r,ref:n};return b.jsx(Qre,{...i,children:_.Children.only(e)})}),{typography:{ui:{snackbar:Jre}},colors:{ui:{background__overlay:{rgba:ene}},text:{static_icons__primary_white:{rgba:tne}},interactive:{link_in_snackbars:{rgba:rne}}},spacings:{comfortable:{medium:y2,x_large:nne}},clickbounds:{default__base:ine},shape:{button:{borderRadius:one}}}=ke,ane={background:ene,minHeight:ine,border:{type:"border",width:0,radius:one},entities:{actions:{spacings:{left:nne,top:"-10px",bottom:"-10px"}},button:{typography:{color:rne}}},spacings:{left:y2,bottom:y2,right:y2,top:y2},typography:{...Jre,color:tne},modes:{compact:{}}},sne=W("div").withConfig({shouldForwardProp:()=>!0,displayName:"Snackbar__PopoverDiv",componentId:"sc-ac6no8-0"})(({theme:t,$placement:e})=>Ce(["inset:unset;border:0;overflow:visible;position:fixed;padding:0;background-color:transparent;"," &::backdrop{background-color:transparent;}"],{top:e.includes("top")?t.spacings.top:e==="left"||e==="right"?"50%":void 0,bottom:e.includes("bottom")?t.spacings.bottom:void 0,right:e.includes("right")?t.spacings.right:void 0,left:e.includes("left")?t.spacings.left:e==="top"||e==="bottom"?"50%":void 0,transform:e==="left"||e==="right"?"translateY(-50%)":e==="top"||e==="bottom"?"translateX(-50%)":void 0})),cne=W(Yv).withConfig({displayName:"Snackbar__StyledSnackbar",componentId:"sc-ac6no8-1"})(({theme:t})=>Ce(["background-color:",";"," "," "," min-height:",";box-sizing:border-box;a,button{color:",";}"],t.background,Eo(t.spacings),pi(t.border),$n(t.typography),t.minHeight,t.entities.button.typography.color)),lne=_.forwardRef(function({open:e=!1,autoHideDuration:r=7e3,onClose:n,placement:i="bottom",children:o,...a},s){const[c,l]=_.useState(e),d=_.useRef();_.useEffect(()=>(l(e),e&&(d.current=setTimeout(()=>{l(!1),n&&n()},r)),()=>clearTimeout(d.current)),[e,r]);const u={ref:s,...a},{density:h}=So(),f=aa({density:h},ane);return b.jsx(Ga,{theme:f,children:c&&b.jsx(sne,{popover:"manual",$placement:i,ref:p=>p==null?void 0:p.showPopover(),children:b.jsx(cne,{role:"alert",elevation:"overlay",...u,children:o})})})}),RP=lne;RP.Action=Xre;const{colors:{infographic:{primary__moss_green_13:{rgba:dne},primary__moss_green_100:{rgba:une}},interactive:{icon_on_interactive_colors:{rgba:hne}},ui:{background__semitransparent:{rgba:fne}}}}=ke,pne={background:dne,entities:{progress:{background:une}}},mne={background:fne,entities:{progress:{background:hne}}},fC=Object.freeze(Object.defineProperty({__proto__:null,neutral:mne,primary:pne},Symbol.toStringTag,{value:"Module"})),vne=LX(["100%{transform:rotate(360deg);}"]),gne=W.svg.withConfig({displayName:"CircularProgress__Svg",componentId:"sc-hib054-0"})(["display:inline-block;",";"],({$variant:t})=>t==="indeterminate"?Ce(["animation:"," 1.4s linear infinite;"],vne):Ce(["transform:rotate(-90deg);"])),yne=W.output.withConfig({displayName:"CircularProgress__SrOnlyOutput",componentId:"sc-hib054-1"})(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;"]),_ne=W.circle.withConfig({displayName:"CircularProgress__TrackCircle",componentId:"sc-hib054-2"})([""]),bne=W.circle.withConfig({displayName:"CircularProgress__ProgressCircle",componentId:"sc-hib054-3"})([""]),wne=t=>fC[t]?fC[t]:{background:"transparent",entities:{progress:{background:t}}},xne=_.forwardRef(function({variant:e="indeterminate",value:r=null,size:n=48,color:i="primary",...o},a){const c=Math.round(r),l={},d={...o,ref:a,$variant:e},u=wne(i),[h,f]=_.useState(0),p=2*Math.PI*(44/2);e==="determinate"&&(l.stroke=p.toFixed(3),l.strokeDashoffset=`${((100-c)/100*p).toFixed(3)}px`,d["aria-valuenow"]=c,r!==void 0&&(d["aria-valuenow"]=c,d["aria-valuemin"]=0,d["aria-valuemax"]=100)),_.useEffect(()=>{e!=="indeterminate"&&(c>=25&&c<50?f(25):c>=50&&c<75?f(50):c>=75&&c<100?f(75):c===100&&f(100))},[c,e]);const m=()=>`Loading ${h}%`;return b.jsxs(b.Fragment,{children:[b.jsxs(gne,{...d,viewBox:"24 24 48 48",role:"progressbar",height:n,width:n,preserveAspectRatio:"xMidYMid meet",children:[b.jsx(_ne,{style:l,cx:48,cy:48,r:44/2,fill:"none",strokeWidth:4,stroke:u.background}),b.jsx(bne,{style:l,cx:48,cy:48,r:44/2,fill:"none",strokeLinecap:"round",strokeWidth:4,strokeDasharray:e==="determinate"?p:48,stroke:u.entities.progress.background})]}),e==="determinate"&&b.jsx(yne,{children:m()})]})}),PP={focusedIndex:-1,initialFocus:null,onClose:null},MP=_.createContext(PP),Cne=({children:t})=>{const[e,r]=_.useState(PP),{focusedIndex:n,initialFocus:i,onClose:o}=e,a=d=>{r(u=>({...u,focusedIndex:d}))},s=d=>{r(u=>({...u,initialFocus:d}))},l={setFocusedIndex:a,focusedIndex:n,setInitialFocus:s,initialFocus:i,setOnClose:d=>{const u=()=>{a(-1),s(null),d()};r(h=>({...h,onClose:u}))},onClose:o};return b.jsx(MP.Provider,{value:l,children:t})},Rb=()=>_.useContext(MP),{colors:{ui:{background__default:{rgba:kne}},interactive:{primary__selected_highlight:{rgba:Ene},primary__resting:{rgba:Sne},focus:{rgba:Tne},disabled__fill:{rgba:Ane},disabled__text:{rgba:Ine},table__header__fill_hover:{rgba:Rne}},text:{static_icons__default:{rgba:Pne}}},spacings:{comfortable:{medium:pC,large:nd,small:id}},typography:{navigation:{menu_title:u5}}}=ke,rp={background:kne,spacings:{top:id,bottom:id,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:{...u5,color:Pne},entities:{icon:{states:{disabled:{typography:{color:Ane}}}},item:{spacings:{left:nd,right:nd,top:pC,bottom:pC},states:{active:{typography:{...u5,color:Sne},background:Ene},focus:{outline:{color:Tne,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:Rne},disabled:{typography:{...u5,color:Ine}}}},title:{spacings:{left:nd,right:nd,top:id,bottom:id}}},modes:{compact:{entities:{item:{spacings:{left:nd,right:nd,top:id,bottom:id}}}}}},{typography:Mne,entities:{item:{states:{active:mC,focus:$ne,hover:Zne,disabled:One}},icon:Hne}}=rp,Lne=W.button.attrs(({$isFocused:t})=>({role:"menuitem",tabIndex:t?-1:0})).withConfig({displayName:"MenuItem__Item",componentId:"sc-1g9fpbe-0"})(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;text-decoration:none;"," "," "," ",""],$n(Mne),({theme:t})=>Eo(t.entities.item.spacings),({$active:t})=>t&&Ce(["background:",";*{color:",";}"],mC.background,mC.typography.color),({disabled:t})=>t?Ce(["*{color:",";}svg{fill:",";}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],One.typography.color,Hne.states.disabled.typography.color):Ce(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;background:",";}}&:focus-visible{z-index:3;","}"],Zne.background,on($ne.outline))),Nne=W.div.withConfig({displayName:"MenuItem__Content",componentId:"sc-1g9fpbe-1"})(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]),Qv=_.forwardRef(function({children:e,disabled:r,active:n,index:i=0,as:o="button",onClick:a,closeMenuOnClick:s=!0,...c},l){const{focusedIndex:d,setFocusedIndex:u,onClose:h}=Rb(),f=w=>{d!==w&&u(w)},p=i===d,m={...c,as:o,disabled:r,$isFocused:p};return b.jsx(Lne,{...m,$active:n,ref:ra(l,w=>{p&&requestAnimationFrame(()=>{w!==null&&w.focus()})}),onFocus:()=>f(i),onClick:w=>{a&&(a(w),h!==null&&s&&h(w))},children:b.jsx(Nne,{children:e})})});Qv.displayName="MenuItem";const Dne=W.div.attrs(()=>({tabIndex:0})).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],Eo(rp.entities.title.spacings)),$P=_.memo(function(e){const{children:r,title:n,index:i}=e;return b.jsxs(b.Fragment,{children:[i!==0&&b.jsx("div",{children:b.jsx(zu,{variant:"small"})}),n&&b.jsx(Dne,{role:"group",children:b.jsx(Bi,{group:"navigation",variant:"label",children:n})}),r]})}),Vne=W.div.withConfig({displayName:"MenuList__List",componentId:"sc-104rzof-0"})(["position:relative;list-style:none;display:flex;flex-direction:column;margin:0;"," li:first-child{z-index:3;}"],Eo(rp.spacings));function vC(t){return!!(_.isValidElement(t)&&!t.props.disabled&&t.type===Qv)}function Fne(t){return!!(_.isValidElement(t)&&t.type===Qv&&t.props.closeMenuOnClick!==!1)}const zne=_.forwardRef(function({addCloseMenuOnClickIndex:e,children:r,...n},i){const{focusedIndex:o,setFocusedIndex:a,initialFocus:s}=Rb();let c=-1;const l=_.useMemo(()=>[],[]),d=_.useMemo(()=>_.Children.map(r,m=>{if(!m)return m;if(m.type===$P){c++;const w=c,y=_.Children.map(m.props.children,v=>(c++,vC(v)&&l.push(c),_.cloneElement(v,{index:c})));return _.cloneElement(m,{index:w},y)}else return c++,vC(m)&&l.push(c),Fne(m)&&e(c),_.cloneElement(m,{index:c})}),[r,l,c,e]),u=l[0],h=l[l.length-1];_.useEffect(()=>{s==="first"&&a(u),s==="last"&&a(h)},[s,u,h]);const f=(m,w)=>{const y=m==="down"?1:-1,v=l.indexOf(o),g=l[v+y];a(typeof g>"u"?w:g)},p=m=>{const{key:w}=m;m.stopPropagation(),w==="ArrowDown"&&(m.preventDefault(),f("down",u)),w==="ArrowUp"&&(m.preventDefault(),f("up",h))};return b.jsx(Vne,{onKeyDown:p,role:"menu",...n,ref:i,children:d})}),{border:jne}=rp,Une=W(Yv).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["width:100%;min-width:fit-content;",";"],pi(jne)),Bne=W("div").withConfig({shouldForwardProp:()=>!0}).withConfig({displayName:"Menu__StyledPopover",componentId:"sc-1vlnqcj-1"})(["inset:unset;border:0;padding:0;margin:0;overflow:visible;background-color:transparent;&::backdrop{background-color:transparent;}"]),qne=_.forwardRef(function({children:e,anchorEl:r,onClose:n,open:i,...o},a){const{setOnClose:s,onClose:c,setInitialFocus:l,focusedIndex:d}=Rb(),u=_.useMemo(()=>[],[]);_.useEffect(()=>{c===null&&n&&s(n)},[c,n,s]),_.useEffect(()=>{const f=p=>{const{key:m}=p;switch((m==="ArrowDown"||m==="ArrowUp")&&(p.preventDefault(),p.stopPropagation(),r.dispatchEvent(new Event("click",{bubbles:!0}))),m){case"Enter":case"ArrowDown":l("first");break;case"ArrowUp":l("last");break}};return r&&r.addEventListener("keydown",f),()=>{r&&r.removeEventListener("keydown",f)}},[r]),B0("Escape",()=>{i&&c!==null&&(c(),r.focus())}),B0("Enter",()=>{i&&c!==null&&u.includes(d)&&setTimeout(()=>{window.document.contains(r)&&r.focus()},0)});const h=f=>{u.indexOf(f)<0&&u.push(f)};return b.jsx(zne,{addCloseMenuOnClickIndex:h,...o,ref:a,children:e})}),Wne=_.forwardRef(function({anchorEl:e,open:r,placement:n="bottom",matchAnchorWidth:i=!1,onClose:o,style:a,className:s,...c},l){const{density:d}=So(),u=aa({density:d},rp);let h=[yP(4),bP(),_P({padding:8})];i&&(h=[...h,Fee({apply({rects:R,elements:$}){Object.assign($.floating.style,{width:`${R.reference.width}px`})}})]);const{x:f,y:p,refs:m,update:w,strategy:y,context:v}=CP({elements:{reference:e},placement:n,open:r,onOpenChange:o,middleware:h}),g=_.useMemo(()=>ra(m.setFloating,l),[m.setFloating,l]);Ly(()=>{if(m.reference.current&&m.floating.current&&r)return xb(m.reference.current,m.floating.current,w)},[m.reference,m.floating,w,r]),Ly(()=>{var R,$;r?(R=m.floating.current)==null||R.showPopover():($=m.floating.current)==null||$.hidePopover()},[r,m.floating]);const{getFloatingProps:k}=kP([xP(v,{escapeKey:!1})]),E={className:s},C={...c,onClose:o,anchorEl:e,open:r};return b.jsx(Ga,{theme:u,children:b.jsx(Bne,{popover:"manual",...k({ref:g,style:{...a,position:y,top:p||0,left:f||0}}),children:b.jsx(Une,{elevation:"raised",...E,children:b.jsx(Cne,{children:b.jsx(qne,{...C,ref:l})})})})})}),Su=Wne;Su.Item=Qv;Su.Section=$P;Su.Item.displayName="Menu.Item";Su.Section.displayName="Menu.Section";const{colors:{ui:{background__light:{rgba:Gne}},text:{static_icons__default:Kne,static_icons__tertiary:h5},interactive:{disabled__text:gC,primary__resting:Yne,danger__resting:Qne,danger__hover:yC,warning__resting:Xne,warning__hover:_C,success__resting:Jne,success__hover:bC}},spacings:{comfortable:{small:wC,x_small:_2}},typography:Sf,shape:xC}=ke,Xv={minHeight:xC.straight.minHeight,background:Gne,spacings:{left:wC,right:wC,top:"6px",bottom:"6px"},typography:{...Sf.input.text,color:Kne.rgba},entities:{placeholder:{typography:{color:h5.rgba}},helperText:{typography:{...Sf.input.label,color:h5.rgba},states:{disabled:{typography:{color:gC.rgba}}}}},states:{disabled:{typography:{color:gC.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"}},focus:{outline:{type:"outline",width:"2px",color:Yne.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+h5.rgba,modes:{compact:{minHeight:xC._modes.compact.straight.minHeight,spacings:{left:_2,right:_2,top:_2,bottom:_2}}}},eie=xr(Xv,{boxShadow:"none",outline:{color:Qne.rgba},states:{focus:{outline:{color:yC.rgba}}},entities:{helperText:{typography:{...Sf.input.label,color:yC.rgba}}}}),tie=xr(Xv,{boxShadow:"none",outline:{color:Xne.rgba},states:{focus:{outline:{color:_C.rgba}}},entities:{helperText:{typography:{...Sf.input.label,color:_C.rgba}}}}),rie=xr(Xv,{boxShadow:"none",outline:{color:Jne.rgba},states:{focus:{outline:{color:bC.rgba}}},entities:{helperText:{typography:{...Sf.input.label,color:bC.rgba}}}}),nie={input:Xv,error:eie,warning:tie,success:rie},{colors:CC,spacings:{comfortable:od},typography:iie}=ke,ZP={background:CC.ui.background__light.hex,typography:{...iie.input.helper,color:CC.text.static_icons__tertiary.rgba},spacings:{comfortable:{left:od.small,right:od.small,top:od.small,bottom:"6px"},compact:{left:od.small,right:od.small,top:od.xx_small,bottom:"6px"}}},oie=W.div.withConfig({displayName:"HelperText__Container",componentId:"sc-189ug61-0"})(({color:t})=>Ce({display:"grid",gap:"8px",gridAutoFlow:"column",alignItems:"start",justifyContent:"start",color:t})),aie=W.p.withConfig({displayName:"HelperText__Text",componentId:"sc-189ug61-1"})(["margin:0;",";white-space:pre-line;"],mb(ZP.typography)),sie=_.forwardRef(function({text:e,icon:r,color:n=ZP.typography.color,...i},o){return e?b.jsxs(oie,{...i,color:n,ref:o,children:[r,b.jsx(aie,{children:e})]}):null}),{colors:f5,spacings:{comfortable:kC},typography:cie}=ke,Ch={background:f5.ui.background__light.rgba,typography:{...cie.input.label,color:f5.text.static_icons__tertiary.rgba},spacings:{left:kC.small,right:kC.small,top:"6px",bottom:"6px"},states:{disabled:{typography:{color:f5.interactive.disabled__text.rgba}}}},lie=W.label.withConfig({displayName:"Label__LabelBase",componentId:"sc-1gi2bcn-0"})(["display:flex;justify-content:space-between;align-items:flex-end;position:relative;"," margin-left:",";margin-right:",";color:",";"],$n(Ch.typography),Ch.spacings.left,Ch.spacings.right,({$disabledText:t})=>t?Ch.states.disabled.typography.color:Ch.typography.color),EC=W.span.withConfig({displayName:"Label__Text",componentId:"sc-1gi2bcn-1"})(["margin:0;"]),Tf=_.forwardRef(function(e,r){const{label:n="",meta:i,disabled:o=!1,...a}=e;return b.jsxs(lie,{ref:r,$disabledText:o,...a,children:[b.jsx(EC,{children:n}),i&&b.jsx(EC,{children:i})]})}),die=W.div.withConfig({displayName:"InputWrapper__Container",componentId:"sc-v6o9z1-0"})([""]),uie=W(sie).withConfig({displayName:"InputWrapper__HelperText",componentId:"sc-v6o9z1-1"})(["margin-top:8px;margin-left:8px;"]),hie=W(Tf).withConfig({displayName:"InputWrapper__Label",componentId:"sc-v6o9z1-2"})(["margin-left:8px;margin-right:8px;"]),OP=_.forwardRef(function({children:e,color:r,label:n,labelProps:i={},helperProps:o={},helperIcon:a,...s},c){const{density:l}=So(),u=nie[r||"input"],h=aa({density:l},u),f=_.useCallback(()=>{const w=h();return s.disabled?w.entities.helperText.states.disabled.typography.color:w.entities.helperText.typography.color},[h,s.disabled])(),p=!!(o!=null&&o.text),m=!!(n||i!=null&&i.label);return b.jsx(Ga,{theme:h,children:b.jsxs(die,{...s,ref:c,children:[m&&b.jsx(hie,{label:n,...i}),e,p&&b.jsx(uie,{color:f,icon:a,...o})]})})}),{colors:{ui:{background__light:{rgba:fie}},text:{static_icons__default:pie,static_icons__tertiary:p5},interactive:{disabled__text:SC,primary__resting:mie,danger__resting:TC,danger__hover:AC,warning__resting:IC,warning__hover:RC,success__resting:PC,success__hover:MC}},spacings:{comfortable:{small:b2,x_small:w2}},typography:Af,shape:$C}=ke,ju={height:$C.straight.minHeight,width:"100%",background:fie,spacings:{left:b2,right:b2,top:"6px",bottom:"6px"},typography:{...Af.input.text,color:pie.rgba},outline:{type:"outline",color:"transparent",width:"1px",style:"solid",offset:"0px"},entities:{placeholder:{typography:{color:p5.rgba}},adornment:{typography:{...Af.input.label,color:p5.rgba},spacings:{left:b2,right:b2},states:{disabled:{typography:{color:SC.rgba}}}}},states:{disabled:{typography:{color:SC.rgba}},readOnly:{background:"transparent",boxShadow:"none"},active:{},focus:{outline:{type:"outline",width:"2px",color:mie.rgba,style:"solid",offset:"0px"}}},boxShadow:"inset 0px -1px 0px 0px "+p5.rgba,modes:{compact:{height:$C._modes.compact.straight.minHeight,spacings:{left:w2,right:w2,top:w2,bottom:w2}}}},HP=xr(ju,{boxShadow:"none",outline:{color:TC.rgba},states:{focus:{outline:{color:AC.rgba}}},entities:{adornment:{typography:{...Af.input.label,color:TC.rgba},states:{focus:{outline:{color:AC.rgba}}}}}}),LP=xr(ju,{boxShadow:"none",outline:{color:IC.rgba},states:{focus:{outline:{color:RC.rgba}}},entities:{adornment:{typography:{...Af.input.label,color:IC.rgba},states:{focus:{outline:{color:RC.rgba}}}}}}),NP=xr(ju,{boxShadow:"none",outline:{color:PC.rgba},states:{focus:{outline:{color:MC.rgba}}},entities:{adornment:{typography:{...Af.input.label,color:PC.rgba},states:{focus:{outline:{color:MC.rgba}}}}}}),Em={input:ju,error:HP,warning:LP,success:NP},vie=Object.freeze(Object.defineProperty({__proto__:null,error:HP,input:ju,inputToken:Em,success:NP,warning:LP},Symbol.toStringTag,{value:"Module"})),gie=W.div.withConfig({displayName:"Input__Container",componentId:"sc-1ykv024-0"})(({$token:t,disabled:e,readOnly:r})=>{var o,a;const{states:n,entities:i}=t;return Ce(["--eds-input-adornment-color:",";--eds-input-color:",";position:relative;height:",";width:",";display:flex;flex-direction:row;border:none;box-sizing:border-box;box-shadow:",";background:var(--eds-input-background,",");"," &:focus-within{--eds-input-adornment-color:",";box-shadow:none;","}"," "," & > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"],i.adornment.typography.color,t.typography.color,t.height,t.width,t.boxShadow,t.background,on(t.outline),(a=(o=i.adornment)==null?void 0:o.states.focus)==null?void 0:a.outline.color,on(n.focus.outline),e&&Ce(["--eds-input-adornment-color:",";--eds-input-color:",";cursor:not-allowed;box-shadow:none;"],n.disabled.typography.color,n.disabled.typography.color),r&&Ce({background:n.readOnly.background,boxShadow:n.readOnly.boxShadow}))}),yie=W.input.withConfig({displayName:"Input__StyledInput",componentId:"sc-1ykv024-1"})(({$token:t,$paddingLeft:e,$paddingRight:r})=>Ce(["width:100%;border:none;background:transparent;"," "," outline:none;padding-left:",";padding-right:",";&::placeholder{color:",";}&:disabled{color:var(--eds-input-color);cursor:not-allowed;}"],Eo(t.spacings),mb(t.typography),e,r,t.entities.placeholder.typography.color)),DP=W.div.withConfig({displayName:"Input__Adornments",componentId:"sc-1ykv024-2"})(({$token:t})=>Ce(["position:absolute;top:",";bottom:",";display:flex;align-items:center;"," color:var(--eds-input-adornment-color);"],t.spacings.top,t.spacings.bottom,mb(t.entities.adornment.typography))),_ie=W(DP).withConfig({displayName:"Input__LeftAdornments",componentId:"sc-1ykv024-3"})(({$token:t})=>Ce(["left:0;padding-left:",";"],t.entities.adornment.spacings.left)),bie=W(DP).withConfig({displayName:"Input__RightAdornments",componentId:"sc-1ykv024-4"})(({$token:t})=>Ce(["right:0;padding-right:",";"],t.entities.adornment.spacings.right)),Ml=_.forwardRef(function({variant:e,disabled:r=!1,type:n="text",leftAdornments:i,rightAdornments:o,readOnly:a,className:s,style:c,leftAdornmentsProps:l,rightAdornmentsProps:d,leftAdornmentsWidth:u,rightAdornmentsWidth:h,...f},p){const m=Em[e]?Em[e]:Em.input,{density:w}=So(),y=aa({density:w},m)(),[v,g]=_.useState(),[k,E]=_.useState(),C=_.useCallback(()=>{const ae=u||(k?k.clientWidth:0),_e=h||(v?v.clientWidth:0);return{...y,spacings:{...y.spacings,left:`${ae+parseInt(y.spacings.left)}px`,right:`${_e+parseInt(y.spacings.right)}px`}}},[u,k,h,v,y])(),R={ref:p,type:n,disabled:r,readOnly:a,$token:C,style:{resize:"none"},...f},$={disabled:r,readOnly:a,className:s,style:c,$token:C},Y={...l,ref:E,$token:C},q={...d,ref:g,$token:C};return b.jsxs(gie,{...$,children:[i?b.jsx(_ie,{...Y,children:i}):null,b.jsx(yie,{$paddingLeft:C.spacings.left,$paddingRight:C.spacings.right,...R}),o?b.jsx(bie,{...q,children:o}):null]})}),{input:ZC}=vie,wie=_.forwardRef(function({variant:e,disabled:r=!1,type:n="text",rowsMax:i,...o},a){const[s,c]=_.useState(null),{density:l}=So(),d=l==="compact"?ZC.modes.compact.spacings:ZC.spacings,{lineHeight:u}=ju.typography,{top:h,bottom:f}=d;let p=16;s&&(p=parseInt(window.getComputedStyle(s).fontSize));const m=parseInt(h)+parseInt(f),w=parseFloat(u)*p*i+m;kJ(s,i?w:null);const v={ref:_.useCallback(()=>ra(a,c),[c,a])(),type:n,disabled:r,variant:e,...o},g={style:{alignItems:"flex-start"}},k={style:{alignItems:"flex-start",pointerEvents:"none"}};return b.jsx(Ml,{as:"textarea",rightAdornmentsProps:k,leftAdornmentsProps:g,style:{height:"auto"},...v})}),xie=_.forwardRef(function(e,r){return e.$multiline?b.jsx(wie,{ref:r,...e}):b.jsx(Ml,{ref:r,...e})}),VP=_.forwardRef(function({id:e,label:r,meta:n,unit:i,helperText:o,placeholder:a,disabled:s,multiline:c=!1,className:l,variant:d,inputIcon:u,helperIcon:h,style:f,rowsMax:p,textareaRef:m,inputRef:w,...y},v){const g=eP(null,"helpertext");let E={"aria-invalid":d==="error"||void 0,disabled:s,placeholder:a,id:e,variant:d,rightAdornments:!!(i||u)&&b.jsxs(b.Fragment,{children:[u,b.jsx("span",{children:i})]}),rowsMax:p,ref:w||m,$multiline:c,...y},C={id:null,text:o,icon:h,disabled:s};const R={ref:v,className:l,style:{width:"100%",...f},color:d},$={htmlFor:e,label:r,meta:n,disabled:s};return o&&(E={"aria-describedby":g,...E},C={...C,id:g}),b.jsx(OP,{helperProps:C,labelProps:$,...R,children:b.jsx(xie,{...E})})}),{colors:{ui:{background__scrim:{rgba:Cie}}}}=ke,kie={background:Cie},{background:Eie}=kie,Sie=W(Jee).withConfig({displayName:"Scrim__StyledScrim",componentId:"sc-1fr7uvy-0"})(["background:",";z-index:1300;align-items:center;justify-content:center;display:flex;"],Eie),Tie=W.div.withConfig({displayName:"Scrim__ScrimContent",componentId:"sc-1fr7uvy-1"})(["width:auto;height:auto;"]),Aie=_.forwardRef(function({children:e,onClose:r,open:n,isDismissable:i=!1,...o},a){const s=_.useRef(null),c=_.useMemo(()=>ra(s,a),[s,a]);B0("Escape",()=>{i&&r&&n&&r()});const l=d=>{d&&d.target===s.current&&d.type==="mousedown"&&i&&n&&r&&r()};return n?b.jsx(Sie,{lockScroll:!0,onMouseDown:l,ref:c,...o,children:b.jsx(Tie,{children:e})}):null}),Iie=W(Ml).withConfig({displayName:"Search__SearchInput",componentId:"sc-v8l23u-0"})(["input{&[type='search']::-webkit-search-decoration,&[type='search']::-webkit-search-cancel-button,&[type='search']::-webkit-search-results-button,&[type='search']::-webkit-search-results-decoration{-webkit-appearance:none;}}"]),Rie=W(Mr).withConfig({displayName:"Search__InsideButton",componentId:"sc-v8l23u-1"})(["height:24px;width:24px;"]),Pie=_.forwardRef(function({onChange:e,style:r,className:n,...i},o){const a=_.useRef(null),[s,c]=_.useState(!!i.defaultValue);_.useEffect(()=>{i.disabled?c(!1):i.value&&c(!!i.value)},[i.value,i.disabled]);const l=()=>{const h=a.current;RJ(h,"")},d=h=>{c(!!h.currentTarget.value)},u=_.useMemo(()=>ra(a,o),[a,o]);return b.jsx(OP,{role:"search",style:r,className:n,children:b.jsx(Iie,{onChange:h=>{d(h),e&&e(h)},ref:u,leftAdornmentsWidth:32,leftAdornments:b.jsx(Pt,{data:Cte,"aria-hidden":!0,size:18}),rightAdornmentsWidth:32,rightAdornments:b.jsx(b.Fragment,{children:s&&b.jsx(Rie,{"aria-label":"clear search",title:"clear",variant:"ghost_icon",onClick:h=>{h.stopPropagation(),l()},children:b.jsx(Pt,{data:Tb,size:16})})}),...i})})}),{colors:{interactive:{primary__resting:{rgba:Mie},primary__hover_alt:{rgba:$ie},focus:{rgba:OC},disabled__text:{rgba:Zie}}},typography:{navigation:{menu_title:Oie}},spacings:{comfortable:{medium_small:x2,x_small:C2,x_large:Hie,xx_large:Lie}},clickbounds:{default__base:Nie,compact__standard:Die},interactions:{focused:{width:HC}}}=ke,E1={background:Mie,typography:Oie,width:Lie,spacings:{bottom:x2,top:x2,left:x2,right:x2},clickbound:{height:Nie},states:{hover:{background:$ie},disabled:{background:Zie},focus:{outline:{type:"outline",style:"dashed",width:HC,color:OC,offset:"10px"}}},modes:{compact:{width:Hie,spacings:{bottom:C2,top:C2,left:C2,right:C2},clickbound:{height:Die},states:{focus:{outline:{type:"outline",style:"dashed",width:HC,color:OC,offset:"2px"}}}}}},m5=W.path.attrs(({$icon:t})=>({fillRule:"evenodd",clipRule:"evenodd",d:t.svgPathData})).withConfig({displayName:"Input__StyledPath",componentId:"sc-rqj7qf-0"})([""]),Vie=W.input.attrs(({type:t="checkbox"})=>({type:t})).withConfig({displayName:"Input",componentId:"sc-rqj7qf-1"})(["--scale:",";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{","}&:focus-visible + svg{","}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"],({theme:t,$iconSize:e})=>parseFloat(t.clickbound.height)/e,({disabled:t})=>t?"not-allowed":"pointer",({theme:t})=>on(t.states.focus.outline),({theme:t})=>on(t.states.focus.outline)),LC=W.svg.attrs(({height:t,width:e,fill:r})=>({name:null,xmlns:"http://www.w3.org/2000/svg",height:t,width:e,fill:r})).withConfig({displayName:"Input__Svg",componentId:"sc-rqj7qf-2"})(["grid-area:input;pointer-events:none;"]),Fie=W.span.withConfig({displayName:"Input__InputWrapper",componentId:"sc-rqj7qf-3"})(["display:inline-grid;grid:[input] 1fr / [input] 1fr;position:relative;isolation:isolate;"," &::before{content:'';position:absolute;width:",";aspect-ratio:1/1;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:100%;}@media (hover:hover) and (pointer:fine){> svg{z-index:1;}&:hover{&::before{background-color:",";}}}"],({theme:t})=>Eo(t.spacings),({theme:t})=>t.width,({disabled:t})=>t?"transparent":E1.states.hover.background),NC=_.forwardRef(function({disabled:e=!1,indeterminate:r,style:n,className:i,...o},a){const{density:s}=So(),c=aa({density:s},E1),l=24,d=e?E1.states.disabled.background:E1.background,u={disabled:e,style:n,className:i},h={ref:a,disabled:e,"data-indeterminate":r,...o};return b.jsx(Ga,{theme:c,children:b.jsxs(Fie,{...u,children:[b.jsx(Vie,{$iconSize:l,...h}),r?b.jsx(LC,{width:l,height:l,viewBox:`0 0 ${l} ${l}`,fill:d,"aria-hidden":!0,children:b.jsx(m5,{$icon:Ste,name:"indeterminate"})}):b.jsxs(LC,{width:l,height:l,viewBox:`0 0 ${l} ${l}`,fill:d,"aria-hidden":!0,children:[b.jsx(m5,{$icon:kte,name:"checked"}),b.jsx(m5,{$icon:Ete,name:"not-checked"})]})]})})}),zie=W.label.withConfig({displayName:"Checkbox__StyledLabel",componentId:"sc-yg6l8h-0"})(["display:inline-flex;align-items:center;cursor:",";"],({$disabled:t})=>t?"not-allowed":"pointer"),jie=W.span.withConfig({displayName:"Checkbox__LabelText",componentId:"sc-yg6l8h-1"})(["",";"],$n(E1.typography)),Q0=_.forwardRef(function({label:e,disabled:r=!1,indeterminate:n,className:i,style:o,...a},s){return e?b.jsxs(zie,{$disabled:r,className:i,style:o,children:[b.jsx(NC,{...a,disabled:r,ref:s,indeterminate:n}),b.jsx(jie,{children:e})]}):b.jsx(NC,{...a,className:i,style:o,disabled:r,ref:s,indeterminate:n})});Q0.displayName="Checkbox";const FP=W.span.withConfig({displayName:"Switchstyles__BaseInputWrapper",componentId:"sc-x39lde-0"})(({theme:{width:t,height:e}})=>Ce(["width:",";height:",";border-radius:50%;position:relative;grid-area:input;"],t,e)),zP=W.input.attrs(({type:t="checkbox"})=>({type:t})).withConfig({displayName:"Switchstyles__BaseInput",componentId:"sc-x39lde-1"})(({disabled:t,theme:e})=>Ce(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;position:relative;z-index:1;cursor:",";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}"],t?"not-allowed":"pointer",on(e.states.focus.outline),on(e.states.focus.outline))),jP=W.span.withConfig({displayName:"Switchstyles__GridWrapper",componentId:"sc-x39lde-2"})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;place-items:center;isolation:isolate;"]),Uie=W(zP).withConfig({displayName:"SwitchSmall__Input",componentId:"sc-1a99mis-0"})(({disabled:t,theme:{states:e,entities:{handle:r,track:n}}})=>Ce(["&[data-focus-visible-added]:focus + span{","}&:focus-visible + span{","}&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:",";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:",";}}"],on(e.focus.outline),on(e.focus.outline),t?e.disabled.background:n.states.active.background,r.background,t?"transparent":e.hover.background)),Bie=W.span.withConfig({displayName:"SwitchSmall__Track",componentId:"sc-1a99mis-1"})(({$isDisabled:t,theme:{states:e,entities:{track:r}}})=>Ce(["width:",";height:",";border-radius:10px;border:none;background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"],r.width,r.height,t?e.disabled.background:r.states.disabled.background)),qie=W.span.withConfig({displayName:"SwitchSmall__Handle",componentId:"sc-1a99mis-2"})(({theme:{entities:{handle:t}}})=>Ce(["background-color:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],t.background,t.width,t.height)),qy=_.forwardRef(function({disabled:e,className:r,style:n,...i},o){return b.jsxs(jP,{className:r,style:n,children:[b.jsx(Uie,{...i,ref:o,disabled:e}),b.jsxs(FP,{children:[b.jsx(Bie,{$isDisabled:e}),b.jsx(qie,{})]})]})});qy.displayName="SwitchSmall";const Wie=W(zP).withConfig({displayName:"SwitchDefault__Input",componentId:"sc-16ym5pn-0"})(({disabled:t,theme:e})=>Ce(["width:",";aspect-ratio:1/1;&:checked + span > span{background-color:",";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:",";}&:hover + span{background-color:",";}&:hover + span > span:last-child{background-color:",";}"],e.clickbound.height,t?e.states.disabled.background:e.entities.track.states.active.background,t?e.states.disabled.background:e.entities.handle.states.active.background,t?"transparent":e.states.hover.background,t?e.states.disabled.background:e.states.hover.entities.handle.background)),Gie=W.span.withConfig({displayName:"SwitchDefault__Track",componentId:"sc-16ym5pn-1"})(({$isDisabled:t,theme:{states:e,entities:{track:r}}})=>Ce([""," border:none;width:",";height:",";background-color:",";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transition:background 0.36s;",""],pi(r.border),r.width,r.height,r.background,t&&{backgroundColor:e.disabled.background})),Kie=W.span.withConfig({displayName:"SwitchDefault__Handle",componentId:"sc-16ym5pn-2"})(({$isDisabled:t,theme:{states:e,entities:{handle:r}}})=>Ce(["background-color:",";"," box-shadow:",";width:",";height:",";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"],r.background,t&&{backgroundColor:e.disabled.background},r.boxShadow,r.width,r.height)),Wy=_.forwardRef(function({disabled:e,className:r,style:n,...i},o){return b.jsxs(jP,{className:r,style:n,children:[b.jsx(Wie,{...i,ref:o,disabled:e}),b.jsxs(FP,{children:[b.jsx(Gie,{$isDisabled:e}),b.jsx(Kie,{$isDisabled:e})]})]})});Wy.displayName="SwitchDefault";const{colors:{ui:{background__medium:{rgba:Yie}},interactive:{primary__hover_alt:{rgba:DC},primary__hover:{rgba:VC},primary__selected_highlight:{rgba:Qie},primary__resting:{rgba:FC},disabled__fill:{rgba:Xie},focus:{rgba:Jie},icon_on_interactive_colors:{rgba:eoe}},text:{static_icons__tertiary:{rgba:zC}}},typography:{navigation:{menu_title:toe}},clickbounds:k2,elevation:{raised:roe},spacings:{comfortable:{medium_small:noe}},shape:{circle:jC,_modes:{compact:{icon_button:UC}}},interactions:{focused:{width:ioe}}}=ke,ooe={typography:toe,height:jC.minHeight,width:jC.minWidth,clickbound:{height:k2.default__base,width:k2.default__base},entities:{label:{spacings:{left:noe}},track:{width:"32px",height:"8px",background:Yie,border:{type:"border",radius:"4px"},states:{active:{background:Qie},hover:{background:VC}}},handle:{height:"16px",width:"16px",boxShadow:roe,background:zC,states:{active:{background:FC},hover:{background:DC}}}},modes:{compact:{height:UC.minHeight,width:UC.minWidth,clickbound:{height:k2.compact__standard,width:k2.compact__standard},entities:{track:{width:"20px",height:"10px",states:{disabled:{background:zC},active:{background:FC}}},handle:{height:"6px",width:"6px",background:eoe}}}},states:{disabled:{background:Xie},focus:{outline:{width:ioe,type:"outline",style:"dashed",color:Jie}},hover:{background:DC,entities:{handle:{background:VC}}}}},aoe=W.label.withConfig({displayName:"Switch__StyledLabel",componentId:"sc-sdaahx-0"})(["cursor:",";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;gap:",";"],({$isDisabled:t})=>t?"not-allowed":"pointer",({$size:t})=>t==="small"?"12px":"8px"),soe=W.span.withConfig({displayName:"Switch__Label",componentId:"sc-sdaahx-1"})(({theme:t})=>Ce(["",";"],$n(t.typography))),Pb=_.forwardRef(function({size:e="default",disabled:r,label:n,className:i,style:o,...a},s){const{density:c}=So(),d=aa({density:e==="small"?"compact":c},ooe);return b.jsx(Ga,{theme:d,children:n?b.jsxs(aoe,{$size:e,$isDisabled:r,className:i,style:o,children:[e==="small"?b.jsx(qy,{disabled:r,...a,ref:s}):b.jsx(Wy,{disabled:r,...a,ref:s}),n&&b.jsx(soe,{children:n})]}):e==="small"?b.jsx(qy,{disabled:r,className:i,style:o,...a,ref:s}):b.jsx(Wy,{disabled:r,className:i,style:o,...a,ref:s})})});Pb.displayName="Switch";const Gy=({error:t})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{style:{marginTop:20,border:"1px solid"},children:[b.jsx(Bi,{variant:"h4",color:"warning",children:t.message}),b.jsx("section",{style:{padding:10},children:t.stack&&b.jsx("pre",{children:t.stack})})]}),t.cause&&b.jsx(Gy,{error:t.cause})]}),coe=t=>{const{appKey:e}=t,r=Cn(),n=_.useRef(null),[i,o]=_.useState(!1),[a,s]=_.useState(),{value:c}=Sl(_.useMemo(()=>r.modules.app.current$,[r.modules.app]));return _.useEffect(()=>{r.modules.app.setCurrentApp(e)},[e,r]),_.useEffect(()=>{o(!0),s(void 0);const l=new jr;return l.add(c==null?void 0:c.initialize().subscribe({next:({manifest:d,script:u,config:h})=>{const[f]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""],p=document.createElement("div");if(!n.current)throw Error("Missing application mounting point");n.current.appendChild(p);const m=u.renderApp??u.default;l.add(m(p,{fusion:r,env:{basename:f,config:h,manifest:d}})),l.add(()=>p.remove())},complete:()=>{o(!1)},error:d=>{s(d)}})),()=>l.unsubscribe()},[r,c,n]),a?a.cause instanceof zs?b.jsxs("div",{children:[b.jsx("h2",{children:"🔥 Failed to load application manifest 🤬"}),b.jsx("h3",{children:a.cause.type}),b.jsx(Gy,{error:a})]}):b.jsxs("div",{children:[b.jsx("h2",{children:"🔥 Failed to load application 🤬"}),b.jsx(Gy,{error:a})]}):b.jsx("section",{id:"application-content",ref:n,style:{display:"contents"},children:i&&b.jsx(XI,{text:"Loading Application"})})};class Jv extends CustomEvent{constructor(e){super(Jv.eventName,e)}}Jv.eventName="select";class Tu extends CustomEvent{constructor(e){super(Tu.eventName,e)}}Tu.eventName="fwc-searchabledropdown-controller-connect";class Mb extends Xn{constructor(){super(...arguments),this.resolverCallbacks=[]}createRenderRoot(){return this}connectResolver(e){this.resolver=e,this.resolverCallbacks.forEach(r=>{r(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(Tu.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Tu.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:r,updateResolver:n}=e.detail;r(()=>{this.resolverCallbacks.filter(i=>i!==n)}),this.resolver&&n(this.resolver),this.resolverCallbacks.push(n),e.preventDefault(),e.stopPropagation()}}x([U()],Mb.prototype,"resolver",void 0);/**
|
|
460
460
|
* @license
|
|
461
461
|
* Copyright 2017 Google LLC
|
|
462
462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1953,7 +1953,7 @@ cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,pa
|
|
|
1953
1953
|
`,ListItem:W.div`
|
|
1954
1954
|
cursor: pointer;
|
|
1955
1955
|
&:hover {
|
|
1956
|
-
background-color: ${
|
|
1956
|
+
background-color: ${ke.colors.ui.background__light.hex};
|
|
1957
1957
|
}
|
|
1958
1958
|
|
|
1959
1959
|
display: flex;
|
|
@@ -1962,8 +1962,8 @@ cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,pa
|
|
|
1962
1962
|
min-height: 32px;
|
|
1963
1963
|
max-height: 32px;
|
|
1964
1964
|
justify-content: space-between;
|
|
1965
|
-
border-bottom: 1px solid ${
|
|
1966
|
-
`},Ege=({name:t,menuOptions:e,children:r,id:n,menuOpen:i,onMenuOpen:o})=>{const a=_.useRef(null),{setCurrentBookmark:s}=qu();return CJ(a.current,()=>o("")),b.jsxs(Ik.ListItem,{onClick:c=>{c.preventDefault(),c.stopPropagation(),s(n)},children:[b.jsx(Bi,{children:t}),b.jsxs(Ik.Icons,{children:[r,!!(e!=null&&e.length)&&b.jsx(Pt,{name:"more_vertical",onClick:c=>{c.preventDefault(),c.stopPropagation(),o(n)},color:
|
|
1965
|
+
border-bottom: 1px solid ${ke.colors.ui.background__medium.hex};
|
|
1966
|
+
`},Ege=({name:t,menuOptions:e,children:r,id:n,menuOpen:i,onMenuOpen:o})=>{const a=_.useRef(null),{setCurrentBookmark:s}=qu();return CJ(a.current,()=>o("")),b.jsxs(Ik.ListItem,{onClick:c=>{c.preventDefault(),c.stopPropagation(),s(n)},children:[b.jsx(Bi,{children:t}),b.jsxs(Ik.Icons,{children:[r,!!(e!=null&&e.length)&&b.jsx(Pt,{name:"more_vertical",onClick:c=>{c.preventDefault(),c.stopPropagation(),o(n)},color:ke.colors.interactive.primary__resting.hex,ref:a}),b.jsx(kge,{open:i,options:e,onClose:()=>{o("")},pRef:a})]})]})},Rk={Button:W(Mr)`
|
|
1967
1967
|
width: 100%;
|
|
1968
1968
|
padding: 0;
|
|
1969
1969
|
padding-top: 0.5rem;
|
|
@@ -1973,7 +1973,7 @@ cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,pa
|
|
|
1973
1973
|
align-items: center;
|
|
1974
1974
|
background: none;
|
|
1975
1975
|
border: none;
|
|
1976
|
-
color: ${
|
|
1976
|
+
color: ${ke.colors.infographic.primary__moss_green_100.hex};
|
|
1977
1977
|
cursor: pointer;
|
|
1978
1978
|
:hover {
|
|
1979
1979
|
background: none;
|
|
@@ -1984,7 +1984,7 @@ cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,pa
|
|
|
1984
1984
|
display: flex;
|
|
1985
1985
|
flex-direction: column;
|
|
1986
1986
|
gap: 1rem;
|
|
1987
|
-
border-left: 1px solid ${
|
|
1987
|
+
border-left: 1px solid ${ke.colors.infographic.primary__moss_green_100.hex};
|
|
1988
1988
|
`};Pt.add({chevron_down:Ab,chevron_right:Ib});const Sge=({children:t,name:e})=>{const[r,n]=_.useState(!0);return b.jsxs("div",{children:[b.jsxs(Rk.Button,{variant:"ghost",onClick:()=>n(i=>!i),children:[b.jsx(Pt,{name:r?Ab.name:Ib.name}),b.jsx(Bi,{variant:"h6",children:e})]}),r&&b.jsx(Rk.List,{children:t})]})},Pk={Row:W.div`
|
|
1989
1989
|
display: flex;
|
|
1990
1990
|
align-items: center;
|
|
@@ -1995,7 +1995,7 @@ cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,pa
|
|
|
1995
1995
|
line-height: 16px;
|
|
1996
1996
|
letter-spacing: 0em;
|
|
1997
1997
|
text-align: right;
|
|
1998
|
-
`},Tge=({createdBy:t,createdById:e})=>{var r;const n=(r=Cn().modules.auth.defaultAccount)===null||r===void 0?void 0:r.localAccountId,i=e===n;return b.jsxs(Pk.Row,{children:[!i&&b.jsxs(Pk.CreatedBy,{children:["shared by ",t]}),b.jsx(Pt,{name:"share",color:i?
|
|
1998
|
+
`},Tge=({createdBy:t,createdById:e})=>{var r;const n=(r=Cn().modules.auth.defaultAccount)===null||r===void 0?void 0:r.localAccountId,i=e===n;return b.jsxs(Pk.Row,{children:[!i&&b.jsxs(Pk.CreatedBy,{children:["shared by ",t]}),b.jsx(Pt,{name:"share",color:i?ke.colors.interactive.primary__resting.hex:ke.colors.interactive.disabled__border.hex})]})},hM=()=>Cn().modules.auth.defaultClient.account,fM=t=>{const e=new URL(window.location.toString());return e.searchParams.set("bookmarkId",t),e.toString()},Age=t=>t.values.length,Ige=(t,e)=>t.name.localeCompare(e.name),Rge=t=>t.split("-").map(e=>`${e[0].toUpperCase()}${e.slice(1)}`).join(" ");Pt.add({delete_to_trash:xte,edit:bte,share:SP,close:Tb,update:wte});const Pge=({bookmarkGroups:t})=>{const{deleteBookmarkById:e,getCurrentAppKey:r,updateBookmark:n,removeBookmarkFavorite:i}=qu(),o=hM(),[a,s]=_.useState(""),{event:c}=Cn().modules,l=_.useCallback(f=>{c.dispatchEvent("onBookmarkEdit",{detail:{bookmarkId:f}})},[c]),d=_.useCallback(f=>{if(!f.isShared){const p=fM(f.id);navigator.clipboard.writeText(p),c.dispatchEvent("onBookmarkUrlCopy",{detail:{url:p}})}n(Object.assign(Object.assign({},f),{isShared:!f.isShared}))},[c,n]),u=_.useCallback(f=>{n(Object.assign({},f),{updatePayload:!0})},[n]),h=f=>Mge(f,e,l,d,i,u,r(),o==null?void 0:o.localAccountId);return b.jsx(b.Fragment,{children:t.filter(Age).map(({groupingProperty:f,values:p})=>b.jsx(Sge,{name:Rge(f),children:p.sort(Ige).map(m=>b.jsx(Ege,{menuOptions:h(m),name:m.name,id:m.id,menuOpen:a===m.id,onMenuOpen:w=>{s(w)},children:m.isShared&&b.jsx(Tge,{createdById:m.createdBy.azureUniqueId,createdBy:m.createdBy.name})},m.id))},f))})};function Mge(t,e,r,n,i,o,a,s){return t.createdBy.azureUniqueId===s?[{name:"Edit",disabled:a!==t.appKey,onClick:()=>{r(t.id)},Icon:b.jsx(Pt,{name:"edit"})},{name:"Update with current view",disabled:a!==t.appKey,onClick:()=>{o(t)},Icon:b.jsx(Pt,{name:"update"})},{name:"Remove",disabled:!1,onClick:()=>{e(t.id)},Icon:b.jsx(Pt,{name:"delete_to_trash"})},{name:t.isShared?"Unshare":"Share",disabled:!1,onClick:()=>{n(t)},Icon:b.jsx(Pt,{name:"share"})}]:[{name:"Unfavourite",disabled:!1,onClick:()=>{i(t.id)},Icon:b.jsx(Pt,{name:"close"})}]}const $ge=t=>{switch(t){case"Error":return{color:ke.colors.interactive.danger__resting.hex,icon:km};case"Info":return{color:ke.colors.interactive.primary__resting.hex,icon:km};case"Warning":return{color:ke.colors.interactive.warning__resting.hex,icon:km};case"NoContent":return{color:ke.colors.interactive.primary__resting.hex,icon:Rte};default:return}},Mk={Wrapper:W.div`
|
|
1999
1999
|
width: 100%;
|
|
2000
2000
|
height: 100%;
|
|
2001
2001
|
display: flex;
|
|
@@ -2009,7 +2009,7 @@ cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,pa
|
|
|
2009
2009
|
align-items: center;
|
|
2010
2010
|
gap: 0.5rem;
|
|
2011
2011
|
justify-content: center;
|
|
2012
|
-
`},Zge=({title:t,type:e="Info",color:r,children:n})=>{const i=$ge(e);return b.jsxs(Mk.Wrapper,{children:[b.jsx(Pt,{"data-testid":"icon",size:40,color:(i==null?void 0:i.color)||r||
|
|
2012
|
+
`},Zge=({title:t,type:e="Info",color:r,children:n})=>{const i=$ge(e);return b.jsxs(Mk.Wrapper,{children:[b.jsx(Pt,{"data-testid":"icon",size:40,color:(i==null?void 0:i.color)||r||ke.colors.text.static_icons__tertiary.hex,data:(i==null?void 0:i.icon)||km}),b.jsxs(Mk.Content,{children:[b.jsx(Bi,{color:ke.colors.text.static_icons__default.hex,variant:"h3","aria-label":`Title for ${e} message`,children:t}),b.jsx(Bi,{children:n&&n})]})]})},Oge=()=>b.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},children:b.jsx(xne,{})});Pt.add({chevron_down:Ab,chevron_right:Ib,share:SP,more_vertical:vte,add:EP});const I5={Wrapper:W.div`
|
|
2013
2013
|
padding-right: 1rem;
|
|
2014
2014
|
display: flex;
|
|
2015
2015
|
flex-direction: column;
|
|
@@ -2101,7 +2101,7 @@ cursor: pointer;`),r},Eo=({left:t,right:e,top:r,bottom:n})=>ke({paddingLeft:t,pa
|
|
|
2101
2101
|
`,xM=W(rv)`
|
|
2102
2102
|
flex-direction: column;
|
|
2103
2103
|
`,l4e=W(xM)`
|
|
2104
|
-
background: ${
|
|
2104
|
+
background: ${ke.colors.ui.background__default.hex};
|
|
2105
2105
|
height: 100%;
|
|
2106
2106
|
`,d4e=W(rv)`
|
|
2107
2107
|
height: 3rem;
|