@pipedream/connect-react 1.0.0-preview.25 → 1.0.0-preview.26

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.
@@ -1,19 +1,45 @@
1
- (function(z,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],D):(z=typeof globalThis<"u"?globalThis:z||self,D(z["connect-react"]={},z["react/jsx-runtime"],z.React,z["@emotion/react"],z.ReactDOM))})(this,function(z,D,G,J,Zr){"use strict";var dl=z=>{throw TypeError(z)};var ho=(z,D,G)=>D.has(z)||dl("Cannot "+G);var C=(z,D,G)=>(ho(z,D,"read from private field"),G?G.call(z):D.get(z)),te=(z,D,G)=>D.has(z)?dl("Cannot add the same private member more than once"):D instanceof WeakSet?D.add(z):D.set(z,G),j=(z,D,G,J)=>(ho(z,D,"write to private field"),J?J.call(z,G):D.set(z,G),G),pe=(z,D,G)=>(ho(z,D,"access private method"),G);var Wr=(z,D,G,J)=>({set _(Zr){j(z,D,Zr,G)},get _(){return C(z,D,J)}});var Wt,wt,pn,Za,fn,Et,hn,ja,Zt,Ja,gn,mn,$e,Ve,Wn,jt,nt,xt,Ya,ct,_a,dt,Ne,Jt,pt,Rt,Ua,Je,Zn,Qa,we,Ft,Pt,bn,yn,kt,In,vn,qa,He,de,jn,Me,Yt,Cn,Gt,ft,Jn,xn,An,_t,Ut,Bt,Sn,be,qn,go,mo,bo,yo,Io,vo,Co,pl,$a;function fl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const re=fl(G);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function xo({prop:e}){return D.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $n={exports:{}};$n.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",y="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",E="[object Object]",w="[object Promise]",S="[object Proxy]",k="[object RegExp]",A="[object Set]",T="[object String]",F="[object Symbol]",O="[object Undefined]",X="[object WeakMap]",N="[object ArrayBuffer]",V="[object DataView]",q="[object Float32Array]",se="[object Float64Array]",H="[object Int8Array]",U="[object Int16Array]",Q="[object Int32Array]",ce="[object Uint8Array]",ye="[object Uint8ClampedArray]",b="[object Uint16Array]",xe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,ne={};ne[q]=ne[se]=ne[H]=ne[U]=ne[Q]=ne[ce]=ne[ye]=ne[b]=ne[xe]=!0,ne[u]=ne[a]=ne[N]=ne[c]=ne[V]=ne[d]=ne[f]=ne[p]=ne[g]=ne[I]=ne[E]=ne[k]=ne[A]=ne[T]=ne[X]=!1;var fe=typeof nn=="object"&&nn&&nn.Object===Object&&nn,Pe=typeof self=="object"&&self&&self.Object===Object&&self,L=fe||Pe||Function("return this")(),Z=t&&!t.nodeType&&t,$=Z&&!0&&e&&!e.nodeType&&e,he=$&&$.exports===Z,ke=he&&fe.process,Ye=function(){try{return ke&&ke.binding&&ke.binding("util")}catch{}}(),Qt=Ye&&Ye.isTypedArray;function wn(h,x){for(var B=-1,W=h==null?0:h.length,Ce=0,oe=[];++B<W;){var Ee=h[B];x(Ee,B,h)&&(oe[Ce++]=Ee)}return oe}function Tr(h,x){for(var B=-1,W=x.length,Ce=h.length;++B<W;)h[Ce+B]=x[B];return h}function Vr(h,x){for(var B=-1,W=h==null?0:h.length;++B<W;)if(x(h[B],B,h))return!0;return!1}function to(h,x){for(var B=-1,W=Array(h);++B<h;)W[B]=x(B);return W}function Dr(h){return function(x){return h(x)}}function Rr(h,x){return h.has(x)}function no(h,x){return h==null?void 0:h[x]}function ro(h){var x=-1,B=Array(h.size);return h.forEach(function(W,Ce){B[++x]=[Ce,W]}),B}function io(h,x){return function(B){return h(x(B))}}function oo(h){var x=-1,B=Array(h.size);return h.forEach(function(W){B[++x]=W}),B}var so=Array.prototype,P=Function.prototype,M=Object.prototype,ee=L["__core-js_shared__"],ue=P.toString,ae=M.hasOwnProperty,We=function(){var h=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ht=M.toString,rt=RegExp("^"+ue.call(ae).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=he?L.Buffer:void 0,gt=L.Symbol,De=L.Uint8Array,It=M.propertyIsEnumerable,it=so.splice,qt=gt?gt.toStringTag:void 0,Ka=Object.getOwnPropertySymbols,Pb=Ot?Ot.isBuffer:void 0,kb=io(Object.keys,Object),uo=En(L,"DataView"),Yn=En(L,"Map"),ao=En(L,"Promise"),lo=En(L,"Set"),co=En(L,"WeakMap"),_n=En(Object,"create"),Gb=en(uo),Bb=en(Yn),Ob=en(ao),Tb=en(lo),Vb=en(co),el=gt?gt.prototype:void 0,po=el?el.valueOf:void 0;function $t(h){var x=-1,B=h==null?0:h.length;for(this.clear();++x<B;){var W=h[x];this.set(W[0],W[1])}}function Db(){this.__data__=_n?_n(null):{},this.size=0}function Rb(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Nb(h){var x=this.__data__;if(_n){var B=x[h];return B===r?void 0:B}return ae.call(x,h)?x[h]:void 0}function Mb(h){var x=this.__data__;return _n?x[h]!==void 0:ae.call(x,h)}function Lb(h,x){var B=this.__data__;return this.size+=this.has(h)?0:1,B[h]=_n&&x===void 0?r:x,this}$t.prototype.clear=Db,$t.prototype.delete=Rb,$t.prototype.get=Nb,$t.prototype.has=Mb,$t.prototype.set=Lb;function vt(h){var x=-1,B=h==null?0:h.length;for(this.clear();++x<B;){var W=h[x];this.set(W[0],W[1])}}function Xb(){this.__data__=[],this.size=0}function zb(h){var x=this.__data__,B=Mr(x,h);if(B<0)return!1;var W=x.length-1;return B==W?x.pop():it.call(x,B,1),--this.size,!0}function Hb(h){var x=this.__data__,B=Mr(x,h);return B<0?void 0:x[B][1]}function Wb(h){return Mr(this.__data__,h)>-1}function Zb(h,x){var B=this.__data__,W=Mr(B,h);return W<0?(++this.size,B.push([h,x])):B[W][1]=x,this}vt.prototype.clear=Xb,vt.prototype.delete=zb,vt.prototype.get=Hb,vt.prototype.has=Wb,vt.prototype.set=Zb;function Kt(h){var x=-1,B=h==null?0:h.length;for(this.clear();++x<B;){var W=h[x];this.set(W[0],W[1])}}function jb(){this.size=0,this.__data__={hash:new $t,map:new(Yn||vt),string:new $t}}function Jb(h){var x=Lr(this,h).delete(h);return this.size-=x?1:0,x}function Yb(h){return Lr(this,h).get(h)}function _b(h){return Lr(this,h).has(h)}function Ub(h,x){var B=Lr(this,h),W=B.size;return B.set(h,x),this.size+=B.size==W?0:1,this}Kt.prototype.clear=jb,Kt.prototype.delete=Jb,Kt.prototype.get=Yb,Kt.prototype.has=_b,Kt.prototype.set=Ub;function Nr(h){var x=-1,B=h==null?0:h.length;for(this.__data__=new Kt;++x<B;)this.add(h[x])}function Qb(h){return this.__data__.set(h,r),this}function qb(h){return this.__data__.has(h)}Nr.prototype.add=Nr.prototype.push=Qb,Nr.prototype.has=qb;function Tt(h){var x=this.__data__=new vt(h);this.size=x.size}function $b(){this.__data__=new vt,this.size=0}function Kb(h){var x=this.__data__,B=x.delete(h);return this.size=x.size,B}function ey(h){return this.__data__.get(h)}function ty(h){return this.__data__.has(h)}function ny(h,x){var B=this.__data__;if(B instanceof vt){var W=B.__data__;if(!Yn||W.length<n-1)return W.push([h,x]),this.size=++B.size,this;B=this.__data__=new Kt(W)}return B.set(h,x),this.size=B.size,this}Tt.prototype.clear=$b,Tt.prototype.delete=Kb,Tt.prototype.get=ey,Tt.prototype.has=ty,Tt.prototype.set=ny;function ry(h,x){var B=Xr(h),W=!B&&yy(h),Ce=!B&&!W&&fo(h),oe=!B&&!W&&!Ce&&ll(h),Ee=B||W||Ce||oe,Ge=Ee?to(h.length,String):[],Oe=Ge.length;for(var Ae in h)ae.call(h,Ae)&&!(Ee&&(Ae=="length"||Ce&&(Ae=="offset"||Ae=="parent")||oe&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||fy(Ae,Oe)))&&Ge.push(Ae);return Ge}function Mr(h,x){for(var B=h.length;B--;)if(ol(h[B][0],x))return B;return-1}function iy(h,x,B){var W=x(h);return Xr(h)?W:Tr(W,B(h))}function Un(h){return h==null?h===void 0?O:v:qt&&qt in Object(h)?dy(h):by(h)}function tl(h){return Qn(h)&&Un(h)==u}function nl(h,x,B,W,Ce){return h===x?!0:h==null||x==null||!Qn(h)&&!Qn(x)?h!==h&&x!==x:oy(h,x,B,W,nl,Ce)}function oy(h,x,B,W,Ce,oe){var Ee=Xr(h),Ge=Xr(x),Oe=Ee?a:Vt(h),Ae=Ge?a:Vt(x);Oe=Oe==u?E:Oe,Ae=Ae==u?E:Ae;var _e=Oe==E,ot=Ae==E,Re=Oe==Ae;if(Re&&fo(h)){if(!fo(x))return!1;Ee=!0,_e=!1}if(Re&&!_e)return oe||(oe=new Tt),Ee||ll(h)?rl(h,x,B,W,Ce,oe):ly(h,x,Oe,B,W,Ce,oe);if(!(B&i)){var Ke=_e&&ae.call(h,"__wrapped__"),et=ot&&ae.call(x,"__wrapped__");if(Ke||et){var Dt=Ke?h.value():h,Ct=et?x.value():x;return oe||(oe=new Tt),Ce(Dt,Ct,B,W,oe)}}return Re?(oe||(oe=new Tt),cy(h,x,B,W,Ce,oe)):!1}function sy(h){if(!al(h)||gy(h))return!1;var x=sl(h)?rt:m;return x.test(en(h))}function uy(h){return Qn(h)&&ul(h.length)&&!!ne[Un(h)]}function ay(h){if(!my(h))return kb(h);var x=[];for(var B in Object(h))ae.call(h,B)&&B!="constructor"&&x.push(B);return x}function rl(h,x,B,W,Ce,oe){var Ee=B&i,Ge=h.length,Oe=x.length;if(Ge!=Oe&&!(Ee&&Oe>Ge))return!1;var Ae=oe.get(h);if(Ae&&oe.get(x))return Ae==x;var _e=-1,ot=!0,Re=B&o?new Nr:void 0;for(oe.set(h,x),oe.set(x,h);++_e<Ge;){var Ke=h[_e],et=x[_e];if(W)var Dt=Ee?W(et,Ke,_e,x,h,oe):W(Ke,et,_e,h,x,oe);if(Dt!==void 0){if(Dt)continue;ot=!1;break}if(Re){if(!Vr(x,function(Ct,tn){if(!Rr(Re,tn)&&(Ke===Ct||Ce(Ke,Ct,B,W,oe)))return Re.push(tn)})){ot=!1;break}}else if(!(Ke===et||Ce(Ke,et,B,W,oe))){ot=!1;break}}return oe.delete(h),oe.delete(x),ot}function ly(h,x,B,W,Ce,oe,Ee){switch(B){case V:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case N:return!(h.byteLength!=x.byteLength||!oe(new De(h),new De(x)));case c:case d:case I:return ol(+h,+x);case f:return h.name==x.name&&h.message==x.message;case k:case T:return h==x+"";case g:var Ge=ro;case A:var Oe=W&i;if(Ge||(Ge=oo),h.size!=x.size&&!Oe)return!1;var Ae=Ee.get(h);if(Ae)return Ae==x;W|=o,Ee.set(h,x);var _e=rl(Ge(h),Ge(x),W,Ce,oe,Ee);return Ee.delete(h),_e;case F:if(po)return po.call(h)==po.call(x)}return!1}function cy(h,x,B,W,Ce,oe){var Ee=B&i,Ge=il(h),Oe=Ge.length,Ae=il(x),_e=Ae.length;if(Oe!=_e&&!Ee)return!1;for(var ot=Oe;ot--;){var Re=Ge[ot];if(!(Ee?Re in x:ae.call(x,Re)))return!1}var Ke=oe.get(h);if(Ke&&oe.get(x))return Ke==x;var et=!0;oe.set(h,x),oe.set(x,h);for(var Dt=Ee;++ot<Oe;){Re=Ge[ot];var Ct=h[Re],tn=x[Re];if(W)var cl=Ee?W(tn,Ct,Re,x,h,oe):W(Ct,tn,Re,h,x,oe);if(!(cl===void 0?Ct===tn||Ce(Ct,tn,B,W,oe):cl)){et=!1;break}Dt||(Dt=Re=="constructor")}if(et&&!Dt){var zr=h.constructor,Hr=x.constructor;zr!=Hr&&"constructor"in h&&"constructor"in x&&!(typeof zr=="function"&&zr instanceof zr&&typeof Hr=="function"&&Hr instanceof Hr)&&(et=!1)}return oe.delete(h),oe.delete(x),et}function il(h){return iy(h,Cy,py)}function Lr(h,x){var B=h.__data__;return hy(x)?B[typeof x=="string"?"string":"hash"]:B.map}function En(h,x){var B=no(h,x);return sy(B)?B:void 0}function dy(h){var x=ae.call(h,qt),B=h[qt];try{h[qt]=void 0;var W=!0}catch{}var Ce=ht.call(h);return W&&(x?h[qt]=B:delete h[qt]),Ce}var py=Ka?function(h){return h==null?[]:(h=Object(h),wn(Ka(h),function(x){return It.call(h,x)}))}:xy,Vt=Un;(uo&&Vt(new uo(new ArrayBuffer(1)))!=V||Yn&&Vt(new Yn)!=g||ao&&Vt(ao.resolve())!=w||lo&&Vt(new lo)!=A||co&&Vt(new co)!=X)&&(Vt=function(h){var x=Un(h),B=x==E?h.constructor:void 0,W=B?en(B):"";if(W)switch(W){case Gb:return V;case Bb:return g;case Ob:return w;case Tb:return A;case Vb:return X}return x});function fy(h,x){return x=x??s,!!x&&(typeof h=="number"||me.test(h))&&h>-1&&h%1==0&&h<x}function hy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function gy(h){return!!We&&We in h}function my(h){var x=h&&h.constructor,B=typeof x=="function"&&x.prototype||M;return h===B}function by(h){return ht.call(h)}function en(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function ol(h,x){return h===x||h!==h&&x!==x}var yy=tl(function(){return arguments}())?tl:function(h){return Qn(h)&&ae.call(h,"callee")&&!It.call(h,"callee")},Xr=Array.isArray;function Iy(h){return h!=null&&ul(h.length)&&!sl(h)}var fo=Pb||Ay;function vy(h,x){return nl(h,x)}function sl(h){if(!al(h))return!1;var x=Un(h);return x==p||x==y||x==l||x==S}function ul(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function al(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Qn(h){return h!=null&&typeof h=="object"}var ll=Qt?Dr(Qt):uy;function Cy(h){return Iy(h)?ry(h):ay(h)}function xy(){return[]}function Ay(){return!1}e.exports=vy}($n,$n.exports);var hl=$n.exports;const gl=Ao(hl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nt=typeof window>"u"||"Deno"in globalThis;function Ue(){}function ml(e,t){return typeof e=="function"?e(t):e}function jr(e){return typeof e=="number"&&e>=0&&e!==1/0}function So(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rn(e,t){return typeof e=="function"?e(t):e}function tt(e,t){return typeof e=="function"?e(t):e}function wo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==Jr(s,t.options))return!1}else if(!kn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function Eo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!kn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>Ur(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!kn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Fo(e)&&Fo(t);if(n||Ur(e)&&Ur(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function _r(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ur(e){if(!Po(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Po(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Po(e){return Object.prototype.toString.call(e)==="[object Object]"}function bl(e){return new Promise(t=>{setTimeout(t,e)})}function Qr(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Yr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Yr(e,t)}return t}function yl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Il(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Kn=Symbol();function ko(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Kn&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Kn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var vl=(Za=class extends Fn{constructor(){super();te(this,Wt);te(this,wt);te(this,pn);j(this,pn,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,pn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),j(this,wt,void 0))}setEventListener(t){var n;j(this,pn,t),(n=C(this,wt))==null||n.call(this),j(this,wt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Wt)!==t&&(j(this,Wt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Wt)=="boolean"?C(this,Wt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wt=new WeakMap,wt=new WeakMap,pn=new WeakMap,Za),qr=new vl,Cl=(ja=class extends Fn{constructor(){super();te(this,fn,!0);te(this,Et);te(this,hn);j(this,hn,t=>{if(!Nt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Et)||this.setEventListener(C(this,hn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Et))==null||t.call(this),j(this,Et,void 0))}setEventListener(t){var n;j(this,hn,t),(n=C(this,Et))==null||n.call(this),j(this,Et,t(this.setOnline.bind(this)))}setOnline(t){C(this,fn)!==t&&(j(this,fn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,fn)}},fn=new WeakMap,Et=new WeakMap,hn=new WeakMap,ja),er=new Cl;function $r(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function xl(e){return Math.min(1e3*2**e,3e4)}function Go(e){return(e??"online")==="online"?er.isOnline():!0}var Bo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Kr(e){return e instanceof Bo}function Oo(e){let t=!1,n=0,r=!1,i;const o=$r(),s=g=>{var I;r||(f(new Bo(g)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>qr.isFocused()&&(e.networkMode==="always"||er.isOnline())&&e.canRun(),c=()=>Go(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),y=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var A;if(r)return;const E=e.retry??(Nt?0:3),w=e.retryDelay??xl,S=typeof w=="function"?w(n,v):w,k=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(t||!k){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),bl(S).then(()=>l()?void 0:p()).then(()=>{t?f(v):y()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?y():p().then(y),o)}}function Al(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Be=Al(),To=(Ja=class{constructor(){te(this,Zt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.gcTime)&&j(this,Zt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Zt)&&(clearTimeout(C(this,Zt)),j(this,Zt,void 0))}},Zt=new WeakMap,Ja),Sl=(Ya=class extends To{constructor(t){super();te(this,nt);te(this,gn);te(this,mn);te(this,$e);te(this,Ve);te(this,Wn);te(this,jt);j(this,jt,!1),j(this,Wn,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,$e,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,gn,wl(this.options)),this.state=t.state??C(this,gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Wn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,$e).remove(this)}setData(t,n){const r=Qr(this.state.data,t,this.options);return pe(this,nt,xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,nt,xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Ve))==null?void 0:r.promise;return(i=C(this,Ve))==null||i.cancel(t),n?n.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,gn))}isActive(){return this.observers.some(t=>tt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!So(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,$e).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ve)&&(C(this,jt)?C(this,Ve).cancel({revert:!0}):C(this,Ve).cancelRetry()),this.scheduleGc()),C(this,$e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,nt,xt).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Ve))return C(this,Ve).continueRetry(),C(this,Ve).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(j(this,jt,!0),r.signal)})},o=()=>{const d=ko(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),j(this,jt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),j(this,mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&pe(this,nt,xt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,y,g;Kr(d)&&d.silent||pe(this,nt,xt).call(this,{type:"error",error:d}),Kr(d)||((p=(f=C(this,$e).config).onError)==null||p.call(f,d,this),(g=(y=C(this,$e).config).onSettled)==null||g.call(y,this.state.data,d,this)),this.scheduleGc()};return j(this,Ve,Oo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,y,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,$e).config).onSuccess)==null||p.call(f,d,this),(g=(y=C(this,$e).config).onSettled)==null||g.call(y,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{pe(this,nt,xt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{pe(this,nt,xt).call(this,{type:"pause"})},onContinue:()=>{pe(this,nt,xt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Ve).start()}},gn=new WeakMap,mn=new WeakMap,$e=new WeakMap,Ve=new WeakMap,Wn=new WeakMap,jt=new WeakMap,nt=new WeakSet,xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vo(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Kr(i)&&i.revert&&C(this,mn)?{...C(this,mn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,$e).notify({query:this,type:"updated",action:t})})},Ya);function Vo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var El=(_a=class extends Fn{constructor(t={}){super();te(this,ct);this.config=t,j(this,ct,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Jr(i,n);let s=this.get(o);return s||(s=new Sl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,ct).has(t.queryHash)||(C(this,ct).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,ct).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,ct).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,ct).get(t)}getAll(){return[...C(this,ct).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wo(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wo(t,r)):n}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ct=new WeakMap,_a),Fl=(Ua=class extends To{constructor(t){super();te(this,pt);te(this,dt);te(this,Ne);te(this,Jt);this.mutationId=t.mutationId,j(this,Ne,t.mutationCache),j(this,dt,[]),this.state=t.state||Pl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,dt).includes(t)||(C(this,dt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,dt,C(this,dt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,dt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).remove(this))}continue(){var t;return((t=C(this,Jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,y,g,I,v,E,w,S,k,A,T;j(this,Jt,Oo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(F,O)=>{pe(this,pt,Rt).call(this,{type:"failed",failureCount:F,error:O})},onPause:()=>{pe(this,pt,Rt).call(this,{type:"pause"})},onContinue:()=>{pe(this,pt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const n=this.state.status==="pending",r=!C(this,Jt).canStart();try{if(!n){pe(this,pt,Rt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,Ne).config).onMutate)==null?void 0:o.call(i,t,this));const O=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));O!==this.state.context&&pe(this,pt,Rt).call(this,{type:"pending",context:O,variables:t,isPaused:r})}const F=await C(this,Jt).start();return await((l=(a=C(this,Ne).config).onSuccess)==null?void 0:l.call(a,F,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,F,t,this.state.context)),await((p=(f=C(this,Ne).config).onSettled)==null?void 0:p.call(f,F,null,this.state.variables,this.state.context,this)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,F,null,t,this.state.context)),pe(this,pt,Rt).call(this,{type:"success",data:F}),F}catch(F){try{throw await((v=(I=C(this,Ne).config).onError)==null?void 0:v.call(I,F,t,this.state.context,this)),await((w=(E=this.options).onError)==null?void 0:w.call(E,F,t,this.state.context)),await((k=(S=C(this,Ne).config).onSettled)==null?void 0:k.call(S,void 0,F,this.state.variables,this.state.context,this)),await((T=(A=this.options).onSettled)==null?void 0:T.call(A,void 0,F,t,this.state.context)),F}finally{pe(this,pt,Rt).call(this,{type:"error",error:F})}}finally{C(this,Ne).runNext(this)}}},dt=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,pt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Be.batch(()=>{C(this,dt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},Ua);function Pl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kl=(Qa=class extends Fn{constructor(t={}){super();te(this,Je);te(this,Zn);this.config=t,j(this,Je,new Map),j(this,Zn,Date.now())}build(t,n,r){const i=new Fl({mutationCache:this,mutationId:++Wr(this,Zn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=tr(t),r=C(this,Je).get(n)??[];r.push(t),C(this,Je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=tr(t);if(C(this,Je).has(n)){const i=(r=C(this,Je).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,Je).delete(n):C(this,Je).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Je).get(tr(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Je).get(tr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eo(n,r))}findAll(t={}){return this.getAll().filter(n=>Eo(t,n))}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ue))))}},Je=new WeakMap,Zn=new WeakMap,Qa);function tr(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Do(e){return{onFetch:(t,n)=>{var c,d,f,p,y;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const I=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=ko(t.options,t.fetchOptions),E=async(w,S,k)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const A={queryKey:t.queryKey,pageParam:S,direction:k?"backward":"forward",meta:t.options.meta};I(A);const T=await v(A),{maxPages:F}=t.options,O=k?Il:yl;return{pages:O(w.pages,T,F),pageParams:O(w.pageParams,S,F)}};if(i&&o.length){const w=i==="backward",S=w?Gl:Ro,k={pages:o,pageParams:s},A=S(r,k);u=await E(k,A,w)}else{const w=e??o.length;do{const S=a===0?s[0]??r.initialPageParam:Ro(r,u);if(a>0&&S==null)break;u=await E(u,S),a++}while(a<w)}return u};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ro(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Bl=(qa=class{constructor(e={}){te(this,we);te(this,Ft);te(this,Pt);te(this,bn);te(this,yn);te(this,kt);te(this,In);te(this,vn);j(this,we,e.queryCache||new El),j(this,Ft,e.mutationCache||new kl),j(this,Pt,e.defaultOptions||{}),j(this,bn,new Map),j(this,yn,new Map),j(this,kt,0)}mount(){Wr(this,kt)._++,C(this,kt)===1&&(j(this,In,qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onFocus())})),j(this,vn,er.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onOnline())})))}unmount(){var e,t;Wr(this,kt)._--,C(this,kt)===0&&((e=C(this,In))==null||e.call(this),j(this,In,void 0),(t=C(this,vn))==null||t.call(this),j(this,vn,void 0))}isFetching(e){return C(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Ft).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,we).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(rn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,we).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,we).get(r.queryHash),o=i==null?void 0:i.state.data,s=ml(t,o);if(s!==void 0)return C(this,we).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>C(this,we).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,we);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,we),r={type:"active",...e};return Be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Be.batch(()=>C(this,we).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(e={},t={}){return Be.batch(()=>{if(C(this,we).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Be.batch(()=>C(this,we).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ue)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,we).build(this,t);return n.isStaleByTime(rn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e.behavior=Do(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}ensureInfiniteQueryData(e){return e.behavior=Do(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return er.isOnline()?C(this,Ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,we)}getMutationCache(){return C(this,Ft)}getDefaultOptions(){return C(this,Pt)}setDefaultOptions(e){j(this,Pt,e)}setQueryDefaults(e,t){C(this,bn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{kn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,yn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,yn).values()];let n={};return t.forEach(r=>{kn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Pt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Kn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,we).clear(),C(this,Ft).clear()}},we=new WeakMap,Ft=new WeakMap,Pt=new WeakMap,bn=new WeakMap,yn=new WeakMap,kt=new WeakMap,In=new WeakMap,vn=new WeakMap,qa),Ol=($a=class extends Fn{constructor(t,n){super();te(this,be);te(this,He);te(this,de);te(this,jn);te(this,Me);te(this,Yt);te(this,Cn);te(this,Gt);te(this,ft);te(this,Jn);te(this,xn);te(this,An);te(this,_t);te(this,Ut);te(this,Bt);te(this,Sn,new Set);this.options=n,j(this,He,t),j(this,ft,null),j(this,Gt,$r()),this.options.experimental_prefetchInRender||C(this,Gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,de).addObserver(this),No(C(this,de),this.options)?pe(this,be,qn).call(this):this.updateResult(),pe(this,be,yo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(C(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(C(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Io).call(this),pe(this,be,vo).call(this),C(this,de).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,de);if(this.options=C(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tt(this.options.enabled,C(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Co).call(this),C(this,de).setOptions(this.options),r._defaulted&&!_r(this.options,r)&&C(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,de),observer:this});const o=this.hasListeners();o&&Mo(C(this,de),i,this.options,r)&&pe(this,be,qn).call(this),this.updateResult(n),o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||rn(this.options.staleTime,C(this,de))!==rn(r.staleTime,C(this,de)))&&pe(this,be,go).call(this);const s=pe(this,be,mo).call(this);o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||s!==C(this,Bt))&&pe(this,be,bo).call(this,s)}getOptimisticResult(t){const n=C(this,He).getQueryCache().build(C(this,He),t),r=this.createResult(n,t);return Vl(this,r)&&(j(this,Me,r),j(this,Cn,this.options),j(this,Yt,C(this,de).state)),r}getCurrentResult(){return C(this,Me)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,Sn).add(t)}getCurrentQuery(){return C(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,He).defaultQueryOptions(t),r=C(this,He).getQueryCache().build(C(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,be,qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Me)))}createResult(t,n){var F;const r=C(this,de),i=this.options,o=C(this,Me),s=C(this,Yt),u=C(this,Cn),l=t!==r?t.state:C(this,jn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const O=this.hasListeners(),X=!O&&No(t,n),N=O&&Mo(t,r,n,i);(X||N)&&(d={...d,...Vo(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Jn))p=C(this,xn);else try{j(this,Jn,n.select),p=n.select(d.data),p=Qr(o==null?void 0:o.data,p,n),j(this,xn,p),j(this,ft,null)}catch(O){j(this,ft,O)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let O;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))O=o.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((F=C(this,An))==null?void 0:F.state.data,C(this,An)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),j(this,ft,null)}catch(X){j(this,ft,X)}O!==void 0&&(I="success",p=Qr(o==null?void 0:o.data,O,n),f=!0)}C(this,ft)&&(y=C(this,ft),p=C(this,xn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",E=I==="pending",w=I==="error",S=E&&v,k=p!==void 0,T={status:I,fetchStatus:d.fetchStatus,isPending:E,isSuccess:I==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!E,isLoadingError:w&&!k,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&k,isStale:ti(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const O=V=>{T.status==="error"?V.reject(T.error):T.data!==void 0&&V.resolve(T.data)},X=()=>{const V=j(this,Gt,T.promise=$r());O(V)},N=C(this,Gt);switch(N.status){case"pending":t.queryHash===r.queryHash&&O(N);break;case"fulfilled":(T.status==="error"||T.data!==N.value)&&X();break;case"rejected":(T.status!=="error"||T.error!==N.reason)&&X();break}}return T}updateResult(t){const n=C(this,Me),r=this.createResult(C(this,de),this.options);if(j(this,Yt,C(this,de).state),j(this,Cn,this.options),C(this,Yt).data!==void 0&&j(this,An,C(this,de)),_r(r,n))return;j(this,Me,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,Sn).size)return!0;const a=new Set(u??C(this,Sn));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Me)).some(l=>{const c=l;return C(this,Me)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),pe(this,be,pl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,yo).call(this)}},He=new WeakMap,de=new WeakMap,jn=new WeakMap,Me=new WeakMap,Yt=new WeakMap,Cn=new WeakMap,Gt=new WeakMap,ft=new WeakMap,Jn=new WeakMap,xn=new WeakMap,An=new WeakMap,_t=new WeakMap,Ut=new WeakMap,Bt=new WeakMap,Sn=new WeakMap,be=new WeakSet,qn=function(t){pe(this,be,Co).call(this);let n=C(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ue)),n},go=function(){pe(this,be,Io).call(this);const t=rn(this.options.staleTime,C(this,de));if(Nt||C(this,Me).isStale||!jr(t))return;const r=So(C(this,Me).dataUpdatedAt,t)+1;j(this,_t,setTimeout(()=>{C(this,Me).isStale||this.updateResult()},r))},mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,de)):this.options.refetchInterval)??!1},bo=function(t){pe(this,be,vo).call(this),j(this,Bt,t),!(Nt||tt(this.options.enabled,C(this,de))===!1||!jr(C(this,Bt))||C(this,Bt)===0)&&j(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||qr.isFocused())&&pe(this,be,qn).call(this)},C(this,Bt)))},yo=function(){pe(this,be,go).call(this),pe(this,be,bo).call(this,pe(this,be,mo).call(this))},Io=function(){C(this,_t)&&(clearTimeout(C(this,_t)),j(this,_t,void 0))},vo=function(){C(this,Ut)&&(clearInterval(C(this,Ut)),j(this,Ut,void 0))},Co=function(){const t=C(this,He).getQueryCache().build(C(this,He),this.options);if(t===C(this,de))return;const n=C(this,de);j(this,de,t),j(this,jn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pl=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Me))}),C(this,He).getQueryCache().notify({query:C(this,de),type:"observerResultsUpdated"})})},$a);function Tl(e,t){return tt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function No(e,t){return Tl(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(tt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ti(e,t)}return!1}function Mo(e,t,n,r){return(e!==t||tt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ti(e,n)}function ti(e,t){return tt(t.enabled,e)!==!1&&e.isStaleByTime(rn(t.staleTime,e))}function Vl(e,t){return!_r(e.getCurrentResult(),t)}var Lo=re.createContext(void 0),Dl=e=>{const t=re.useContext(Lo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Rl=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(Lo.Provider,{value:e,children:t})),Xo=re.createContext(!1),Nl=()=>re.useContext(Xo);Xo.Provider;function Ml(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ll=re.createContext(Ml()),Xl=()=>re.useContext(Ll);function zl(e,t){return typeof e=="function"?e(...t):!!e}function zo(){}var Hl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Wl=e=>{re.useEffect(()=>{e.clearReset()},[e])},Zl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&zl(n,[e.error,r]),jl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Jl=(e,t)=>e.isLoading&&e.isFetching&&!t,Yl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ho=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _l(e,t,n){var c,d,f,p,y;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Dl(),i=Nl(),o=Xl(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",jl(s),Hl(s,o),Wl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=re.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(re.useSyncExternalStore(re.useCallback(g=>{const I=i?zo:a.subscribe(Be.batchCalls(g));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),re.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Yl(s,l))throw Ho(s,a,o);if(Zl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Nt&&Jl(l,i)){const g=u?Ho(s,a,o):(y=r.getQueryCache().get(s.queryHash))==null?void 0:y.promise;g==null||g.catch(zo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Mt(e,t){return _l(e,Ol)}const Wo=G.createContext(void 0),mt=()=>{const e=G.useContext(Wo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Ul=({children:e,client:t})=>{const n=new Bl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return D.jsx(Rl,{client:n,children:D.jsx(Wo.Provider,{value:t,children:e})})};function Zo(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Ql(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else return[];return n}return Array.isArray(e)?e:[]}function ql(e){const t=Ql(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function $l(e){const t=Zo(e.value);if(t==null||typeof t>"u")return["required"]}function Kl(e){const{prop:t,value:n}=e,r=Zo(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function ec(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function tc(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function nc(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId&&t.auth_type){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=tc(t),s=r;for(const u of o)!u.optional&&!s[u.name]&&i.push(`missing custom field: ${u.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const Gn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],ni=G.createContext(void 0),nr=()=>{const e=G.useContext(ni);if(!e)throw new Error("Must be used inside provider");return e},jo=({children:e,props:t})=>{const n=mt(),r=G.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=G.useState(0),[d,f]=G.useState({}),[p,y]=G.useState(!1),[g,I]=G.useState({}),[v,E]=G.useState({});G.useEffect(()=>{E({})},[i.key]);const w=L=>v[L.name];let S=o||{};const[k,A]=G.useState(S),T=t.onUpdateConfiguredProps||A;t.onUpdateConfiguredProps||(S=k);const[F,O]=G.useState(),[X,N]=G.useState(),V={userId:u,componentId:a,configuredProps:S,dynamicPropsId:F==null?void 0:F.id},q={...V},{isFetching:se}=Mt({queryKey:["dynamicProps",q],queryFn:async()=>{var Z;const{dynamicProps:L}=await n.componentReloadProps(V);return L&&((Z=t.onUpdateDynamicProps)==null||Z.call(t,L),O(L)),N(void 0),[]},enabled:X!=null}),[H,U]=G.useState([]);G.useEffect(()=>{ne()},[S]);let Q=(F==null?void 0:F.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const L=[];for(const Z of Q)s.findIndex($=>Z.name===$)>=0&&L.push(Z);Q=L}X!=null&&(Q=Q.slice(0,X+1));const ce=(L,Z)=>{const $=[];if(L.optional||L.hidden||L.disabled||Gn.includes(L.type))return[];if(L.type==="app"){const he=d[L.name];if(he){const ke=he.extra.app;$.push(...nc({prop:L,value:Z,app:ke})??[])}else $.push("field not registered")}else L.type==="boolean"?$.push(...$l({prop:L,value:Z})??[]):L.type==="integer"?$.push(...Kl({prop:L,value:Z})??[]):L.type==="string"?$.push(...ec({prop:L,value:Z})??[]):L.type==="string[]"&&$.push(...ql({prop:L,value:Z})??[]);return $},ye=L=>{let Z;for(let $=0;$<Q.length;$++){const he=Q[$];if(he.hidden||he.optional&&!w(he))continue;if(L[he.name]===void 0&&Z==null&&(he.type==="app"||he.remoteOptions)){Z=$;break}}c(Z)},b=L=>{T(L),ye(L);const Z={};for(let $=0;$<Q.length;$++){const he=Q[$],ke=L[he.name],Ye=ce(he,ke);Ye.length&&(Z[he.name]=Ye)}I(Z)};G.useEffect(()=>{const L={};for(const Z of Q){if(Z.hidden||Gn.includes(Z.type)||Z.optional&&!w(Z))continue;const $=S[Z.name];$===void 0?"default"in Z&&Z.default!=null&&(L[Z.name]=Z.default):Z.type==="integer"&&typeof $!="number"?delete L[Z.name]:L[Z.name]=$}gl(L,S)||b(L)},[Q]);const[xe,le]=G.useState(u);G.useEffect(()=>{xe!==u&&(b({}),le(u))},[u]);const m=(L,Z)=>{const $=Q[L],he={...S};Z===void 0?delete he[$.name]:he[$.name]=Z,T(he),$.reloadProps&&N(L),($.type==="app"||$.remoteOptions)&&ye(he);const ke=ce($,Z),Ye={...g};ke.length?Ye[$.name]=ke:delete Ye[$.name],I(Ye)},me=(L,Z)=>{const $={...v};Z?$[L.name]=!0:delete $[L.name];const he=Q.findIndex(ke=>ke.name===L.name);Z?(o==null?void 0:o[L.name])!==void 0?m(he,o[L.name]):"default"in L&&L.default!=null&&m(he,L.default):m(he,void 0),E($)},ne=()=>{const L=[];for(const Z of Q){if(!Z||Z.optional||Z.hidden||Gn.includes(Z.type))continue;const $=S[Z.name];ce(Z,$).length&&L.push(Z.name)}U(L)},fe=L=>{f(Z=>(Z[L.prop.name]=L,Z))},Pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:Q,configuredProps:S,dynamicProps:F,dynamicPropsQueryIsFetching:se,errors:g,fields:d,optionalPropIsEnabled:w,optionalPropSetEnabled:me,propsNeedConfiguring:H,queryDisabledIdx:l,registerField:fe,setConfiguredProp:m,setSubmitting:y,submitting:p};return D.jsx(ni.Provider,{value:Pe,children:e})};function Lt(e){"@babel/helpers - typeof";return Lt=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},Lt(e)}function rc(e,t){if(Lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jo(e){var t=rc(e,"string");return Lt(t)=="symbol"?t:t+""}function Bn(e,t,n){return(t=Jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(r){Bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){if(Array.isArray(e))return e}function oc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ri(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t){if(e){if(typeof e=="string")return ri(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}function sc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bt(e,t){return ic(e)||oc(e,t)||_o(e,t)||sc()}function uc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function st(e,t){if(e==null)return{};var n,r,i=uc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ac=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Uo(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,y=st(e,ac),g=G.useState(u!==void 0?u:n),I=bt(g,2),v=I[0],E=I[1],w=G.useState(a!==void 0?a:i),S=bt(w,2),k=S[0],A=S[1],T=G.useState(p!==void 0?p:s),F=bt(T,2),O=F[0],X=F[1],N=G.useCallback(function(ce,ye){typeof l=="function"&&l(ce,ye),X(ce)},[l]),V=G.useCallback(function(ce,ye){var b;typeof c=="function"&&(b=c(ce,ye)),E(b!==void 0?b:ce)},[c]),q=G.useCallback(function(){typeof f=="function"&&f(),A(!0)},[f]),se=G.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),H=u!==void 0?u:v,U=a!==void 0?a:k,Q=p!==void 0?p:O;return Y(Y({},y),{},{inputValue:H,menuIsOpen:U,onChange:N,onInputChange:V,onMenuClose:se,onMenuOpen:q,value:Q})}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(null,arguments)}function lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jo(r.key),r)}}function cc(e,t,n){return t&&Qo(e.prototype,t),n&&Qo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ii(e,t)}function dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}function rr(e){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rr(e)}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qo=function(){return!!e})()}function pc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(e,t){if(t&&(Lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}function hc(e){var t=qo();return function(){var n,r=rr(e);if(t){var i=rr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fc(this,n)}}function gc(e){if(Array.isArray(e))return ri(e)}function mc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function on(e){return gc(e)||mc(e)||_o(e)||bc()}function yc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Ic=Math.min,vc=Math.max,ir=Math.round,or=Math.floor,sr=e=>({x:e,y:e});function Cc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ur(){return typeof window<"u"}function $o(e){return es(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ko(e){var t;return(t=(es(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function es(e){return ur()?e instanceof Node||e instanceof yt(e).Node:!1}function xc(e){return ur()?e instanceof Element||e instanceof yt(e).Element:!1}function oi(e){return ur()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function ts(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function ns(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sc(e){return["html","body","#document"].includes($o(e))}function si(e){return yt(e).getComputedStyle(e)}function wc(e){if($o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ts(e)&&e.host||Ko(e);return ts(t)?t.host:t}function rs(e){const t=wc(e);return Sc(t)?e.ownerDocument?e.ownerDocument.body:e.body:oi(t)&&ns(t)?t:rs(t)}function ar(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=rs(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=yt(i);if(o){const u=ui(s);return t.concat(s,s.visualViewport||[],ns(i)?i:[],u&&n?ar(u):[])}return t.concat(i,ar(i,[],n))}function ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=oi(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=ir(n)!==o||ir(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function ai(e){return xc(e)?e:e.contextElement}function is(e){const t=ai(e);if(!oi(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ec(t);let s=(o?ir(n.width):n.width)/r,u=(o?ir(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Fc=sr(0);function Pc(e){const t=yt(e);return!Ac()||!t.visualViewport?Fc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kc(e,t,n){return!1}function os(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ai(e);let s=sr(1);t&&(s=is(e));const u=kc()?Pc(o):sr(0);let a=(i.left+u.x)/s.x,l=(i.top+u.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=yt(o),p=r;let y=f,g=ui(y);for(;g&&r&&p!==y;){const I=is(g),v=g.getBoundingClientRect(),E=si(g),w=v.left+(g.clientLeft+parseFloat(E.paddingLeft))*I.x,S=v.top+(g.clientTop+parseFloat(E.paddingTop))*I.y;a*=I.x,l*=I.y,c*=I.x,d*=I.y,a+=w,l+=S,y=yt(g),g=ui(y)}}return Cc({width:c,height:d,x:a,y:l})}function Gc(e,t){let n=null,r;const i=Ko(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=or(c),y=or(i.clientWidth-(l+d)),g=or(i.clientHeight-(c+f)),I=or(l),E={rootMargin:-p+"px "+-y+"px "+-g+"px "+-I+"px",threshold:vc(0,Ic(1,a))||1};let w=!0;function S(k){const A=k[0].intersectionRatio;if(A!==a){if(!w)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,E)}n.observe(e)}return s(!0),o}function Bc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,l=ai(e),c=i||o?[...l?ar(l):[],...ar(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&u?Gc(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[E]=v;E&&E.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let y,g=a?os(e):null;a&&I();function I(){const v=os(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,y=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(y)}}var li=G.useLayoutEffect,Oc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lr=function(){};function Tc(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Vc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Tc(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var cr=function(t){return Wc(t)?t.filter(Boolean):Lt(t)==="object"&&t!==null?[t]:[]},ss=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=st(t,Oc);return Y({},n)},Se=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},s(n,t),u)}};function dr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Dc(e){return dr(e)?window.innerHeight:e.clientHeight}function us(e){return dr(e)?window.pageYOffset:e.scrollTop}function pr(e,t){if(dr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Rc(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Nc(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function fr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:lr,i=us(e),o=t-i,s=10,u=0;function a(){u+=s;var l=Nc(u,i,o,n);pr(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function as(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?pr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&pr(e,Math.max(t.offsetTop-i,0))}function Mc(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ls(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Lc(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var cs=!1,Xc={get passive(){return cs=!0}},hr=typeof window<"u"?window:{};hr.addEventListener&&hr.removeEventListener&&(hr.addEventListener("p",lr,Xc),hr.removeEventListener("p",lr,!1));var zc=cs;function Hc(e){return e!=null}function Wc(e){return Array.isArray(e)}function On(e,t,n){return e?t:n}function Sy(e){return e}function wy(e){return e}var Zc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var u=bt(s,1),a=u[0];return!r.includes(a)});return o.reduce(function(s,u){var a=bt(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},jc=["children","innerProps"],Jc=["children","innerProps"];function Yc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Rc(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,y=f.height,g=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,E=s?window.innerHeight:Dc(a),w=us(a),S=parseInt(getComputedStyle(n).marginBottom,10),k=parseInt(getComputedStyle(n).marginTop,10),A=v-k,T=E-g,F=A+w,O=d-w-g,X=p-E+w+S,N=w+g-k,V=160;switch(i){case"auto":case"bottom":if(T>=y)return{placement:"bottom",maxHeight:t};if(O>=y&&!s)return o&&fr(a,X,V),{placement:"bottom",maxHeight:t};if(!s&&O>=r||s&&T>=r){o&&fr(a,X,V);var q=s?T-S:O-S;return{placement:"bottom",maxHeight:q}}if(i==="auto"||s){var se=t,H=s?A:F;return H>=r&&(se=Math.min(H-S-u,t)),{placement:"top",maxHeight:se}}if(i==="bottom")return o&&pr(a,X),{placement:"bottom",maxHeight:t};break;case"top":if(A>=y)return{placement:"top",maxHeight:t};if(F>=y&&!s)return o&&fr(a,N,V),{placement:"top",maxHeight:t};if(!s&&F>=r||s&&A>=r){var U=t;return(!s&&F>=r||s&&A>=r)&&(U=s?A-k:F-k),o&&fr(a,N,V),{placement:"top",maxHeight:U}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function _c(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ds=function(t){return t==="auto"?"bottom":t},Uc=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return Y((r={label:"menu"},Bn(r,_c(i),"100%"),Bn(r,"position","absolute"),Bn(r,"width","100%"),Bn(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},ps=G.createContext(null),Qc=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=G.useContext(ps)||{},c=l.setPortalPlacement,d=G.useRef(null),f=G.useState(i),p=bt(f,2),y=p[0],g=p[1],I=G.useState(null),v=bt(I,2),E=v[0],w=v[1],S=a.spacing.controlHeight;return li(function(){var k=d.current;if(k){var A=s==="fixed",T=u&&!A,F=Yc({maxHeight:i,menuEl:k,minHeight:r,placement:o,shouldScroll:T,isFixedPosition:A,controlHeight:S});g(F.maxHeight),w(F.placement),c==null||c(F.placement)}},[i,o,s,u,r,c,S]),n({ref:d,placerProps:Y(Y({},t),{},{placement:E||ds(o),maxHeight:y})})},qc=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return J.jsx("div",_({},Se(t,"menu",{menu:!0}),{ref:r},i),n)},$c=qc,Kc=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Y({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},ed=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return J.jsx("div",_({},Se(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},fs=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return Y({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},td=fs,nd=fs,rd=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=st(t,jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},id=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=st(t,Jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},od=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},sd=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=G.useRef(null),l=G.useRef(null),c=G.useState(ds(s)),d=bt(c,2),f=d[0],p=d[1],y=G.useMemo(function(){return{setPortalPlacement:p}},[]),g=G.useState(null),I=bt(g,2),v=I[0],E=I[1],w=G.useCallback(function(){if(i){var T=Mc(i),F=u==="fixed"?0:window.pageYOffset,O=T[f]+F;(O!==(v==null?void 0:v.offset)||T.left!==(v==null?void 0:v.rect.left)||T.width!==(v==null?void 0:v.rect.width))&&E({offset:O,rect:T})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);li(function(){w()},[w]);var S=G.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=Bc(i,a.current,w,{elementResize:"ResizeObserver"in window}))},[i,w]);li(function(){S()},[S]);var k=G.useCallback(function(T){a.current=T,S()},[S]);if(!n&&u!=="fixed"||!v)return null;var A=J.jsx("div",_({ref:k},Se(Y(Y({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return J.jsx(ps.Provider,{value:y},n?Zr.createPortal(A,n):A)},ud=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ad=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return J.jsx("div",_({},Se(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ld=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Y({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},cd=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return J.jsx("div",_({},Se(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},dd=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},pd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"indicatorsContainer",{indicators:!0}),r),n)},hs,fd=["size"],hd=["innerProps","isRtl","size"];function gd(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var md=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAn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N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:gd},gs=function(t){var n=t.size,r=st(t,fd);return J.jsx("svg",_({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:md},r))},ci=function(t){return J.jsx(gs,_({size:20},t),J.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ms=function(t){return J.jsx(gs,_({size:20},t),J.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},bs=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},bd=bs,yd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||J.jsx(ms,null))},Id=bs,vd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||J.jsx(ci,null))},Cd=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},xd=function(t){var n=t.innerProps;return J.jsx("span",_({},n,Se(t,"indicatorSeparator",{"indicator-separator":!0})))},Ad=J.keyframes(hs||(hs=yc([`
1
+ (function(ue,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],q):(ue=typeof globalThis<"u"?globalThis:ue||self,q(ue["connect-react"]={},ue["react/jsx-runtime"],ue.React,ue["@emotion/react"],ue.ReactDOM))})(this,function(ue,q,Z,ce,Xs){"use strict";var hm=ue=>{throw TypeError(ue)};var Oc=(ue,q,Z)=>q.has(ue)||hm("Cannot "+Z);var T=(ue,q,Z)=>(Oc(ue,q,"read from private field"),Z?Z.call(ue):q.get(ue)),we=(ue,q,Z)=>q.has(ue)?hm("Cannot add the same private member more than once"):q instanceof WeakSet?q.add(ue):q.set(ue,Z),ae=(ue,q,Z,ce)=>(Oc(ue,q,"write to private field"),ce?ce.call(ue,Z):q.set(ue,Z),Z),Ye=(ue,q,Z)=>(Oc(ue,q,"access private method"),Z);var Ws=(ue,q,Z,ce)=>({set _(Xs){ae(ue,q,Xs,Z)},get _(){return T(ue,q,ce)}});var zr,yr,Ii,up,Ci,Ir,xi,op,Zr,sp,Ai,wi,bn,_t,yu,Yr,Bn,mr,lp,Xn,ap,Hn,Lt,Jr,zn,Dr,cp,un,Iu,fp,ht,Cr,xr,Si,Ei,Ar,Fi,Pi,dp,Jt,Xe,Cu,Dt,Ur,Oi,wr,Zn,xu,Ti,Bi,jr,Qr,Sr,_i,Qe,ju,Tc,Bc,_c,Gc,Rc,kc,Lc,pm,hp;function gm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Fe=gm(Z);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function Dc({prop:e}){return q.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var On=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qu={exports:{}};Qu.exports,function(e,t){var r=200,u="__lodash_hash_undefined__",o=1,l=2,a=9007199254740991,c="[object Arguments]",f="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",I="[object Error]",b="[object Function]",E="[object GeneratorFunction]",A="[object Map]",F="[object Number]",P="[object Null]",D="[object Object]",k="[object Promise]",L="[object Proxy]",V="[object RegExp]",R="[object Set]",J="[object String]",N="[object Symbol]",j="[object Undefined]",ne="[object WeakMap]",$="[object ArrayBuffer]",Q="[object DataView]",ve="[object Float32Array]",Be="[object Float64Array]",ie="[object Int8Array]",ge="[object Int16Array]",de="[object Int32Array]",Se="[object Uint8Array]",qe="[object Uint8ClampedArray]",S="[object Uint16Array]",He="[object Uint32Array]",Le=/[\\^$.*+?()[\]{}|]/g,w=/^\[object .+?Constructor\]$/,Je=/^(?:0|[1-9]\d*)$/,me={};me[ve]=me[Be]=me[ie]=me[ge]=me[de]=me[Se]=me[qe]=me[S]=me[He]=!0,me[c]=me[f]=me[$]=me[p]=me[Q]=me[g]=me[I]=me[b]=me[A]=me[F]=me[D]=me[V]=me[R]=me[J]=me[ne]=!1;var De=typeof On=="object"&&On&&On.Object===Object&&On,yt=typeof self=="object"&&self&&self.Object===Object&&self,ee=De||yt||Function("return this")(),oe=t&&!t.nodeType&&t,ye=oe&&!0&&e&&!e.nodeType&&e,Me=ye&&ye.exports===oe,ct=Me&&De.process,Gt=function(){try{return ct&&ct.binding&&ct.binding("util")}catch{}}(),At=Gt&&Gt.isTypedArray;function vn(C,_){for(var Y=-1,se=C==null?0:C.length,nt=0,Pe=[];++Y<se;){var st=C[Y];_(st,Y,C)&&(Pe[nt++]=st)}return Pe}function Gi(C,_){for(var Y=-1,se=_.length,nt=C.length;++Y<se;)C[nt+Y]=_[Y];return C}function Ut(C,_){for(var Y=-1,se=C==null?0:C.length;++Y<se;)if(_(C[Y],Y,C))return!0;return!1}function Ri(C,_){for(var Y=-1,se=Array(C);++Y<C;)se[Y]=_(Y);return se}function ki(C){return function(_){return C(_)}}function Yn(C,_){return C.has(_)}function Mt(C,_){return C==null?void 0:C[_]}function tr(C){var _=-1,Y=Array(C.size);return C.forEach(function(se,nt){Y[++_]=[nt,se]}),Y}function Er(C,_){return function(Y){return C(_(Y))}}function Au(C){var _=-1,Y=Array(C.size);return C.forEach(function(se){Y[++_]=se}),Y}var nr=Array.prototype,X=Function.prototype,te=Object.prototype,pe=ee["__core-js_shared__"],_e=X.toString,Ge=te.hasOwnProperty,Et=function(){var C=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),jt=te.toString,Nt=RegExp("^"+_e.call(Ge).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yn=Me?ee.Buffer:void 0,Qt=ee.Symbol,It=ee.Uint8Array,on=te.propertyIsEnumerable,sn=nr.splice,rr=Qt?Qt.toStringTag:void 0,Go=Object.getOwnPropertySymbols,Ro=yn?yn.isBuffer:void 0,ko=Er(Object.keys,Object),wu=ln(ee,"DataView"),qr=ln(ee,"Map"),Su=ln(ee,"Promise"),Eu=ln(ee,"Set"),Li=ln(ee,"WeakMap"),$r=ln(Object,"create"),ea=or(wu),ta=or(qr),Fu=or(Su),na=or(Eu),Pu=or(Li),Lo=Qt?Qt.prototype:void 0,Ou=Lo?Lo.valueOf:void 0;function ir(C){var _=-1,Y=C==null?0:C.length;for(this.clear();++_<Y;){var se=C[_];this.set(se[0],se[1])}}function ra(){this.__data__=$r?$r(null):{},this.size=0}function ia(C){var _=this.has(C)&&delete this.__data__[C];return this.size-=_?1:0,_}function ua(C){var _=this.__data__;if($r){var Y=_[C];return Y===u?void 0:Y}return Ge.call(_,C)?_[C]:void 0}function oa(C){var _=this.__data__;return $r?_[C]!==void 0:Ge.call(_,C)}function sa(C,_){var Y=this.__data__;return this.size+=this.has(C)?0:1,Y[C]=$r&&_===void 0?u:_,this}ir.prototype.clear=ra,ir.prototype.delete=ia,ir.prototype.get=ua,ir.prototype.has=oa,ir.prototype.set=sa;function In(C){var _=-1,Y=C==null?0:C.length;for(this.clear();++_<Y;){var se=C[_];this.set(se[0],se[1])}}function la(){this.__data__=[],this.size=0}function aa(C){var _=this.__data__,Y=Kr(_,C);if(Y<0)return!1;var se=_.length-1;return Y==se?_.pop():sn.call(_,Y,1),--this.size,!0}function ca(C){var _=this.__data__,Y=Kr(_,C);return Y<0?void 0:_[Y][1]}function fa(C){return Kr(this.__data__,C)>-1}function da(C,_){var Y=this.__data__,se=Kr(Y,C);return se<0?(++this.size,Y.push([C,_])):Y[se][1]=_,this}In.prototype.clear=la,In.prototype.delete=aa,In.prototype.get=ca,In.prototype.has=fa,In.prototype.set=da;function ur(C){var _=-1,Y=C==null?0:C.length;for(this.clear();++_<Y;){var se=C[_];this.set(se[0],se[1])}}function Di(){this.size=0,this.__data__={hash:new ir,map:new(qr||In),string:new ir}}function ha(C){var _=Fr(this,C).delete(C);return this.size-=_?1:0,_}function Mi(C){return Fr(this,C).get(C)}function pa(C){return Fr(this,C).has(C)}function ga(C,_){var Y=Fr(this,C),se=Y.size;return Y.set(C,_),this.size+=Y.size==se?0:1,this}ur.prototype.clear=Di,ur.prototype.delete=ha,ur.prototype.get=Mi,ur.prototype.has=pa,ur.prototype.set=ga;function Ni(C){var _=-1,Y=C==null?0:C.length;for(this.__data__=new ur;++_<Y;)this.add(C[_])}function Do(C){return this.__data__.set(C,u),this}function Mo(C){return this.__data__.has(C)}Ni.prototype.add=Ni.prototype.push=Do,Ni.prototype.has=Mo;function _n(C){var _=this.__data__=new In(C);this.size=_.size}function ma(){this.__data__=new In,this.size=0}function ba(C){var _=this.__data__,Y=_.delete(C);return this.size=_.size,Y}function va(C){return this.__data__.get(C)}function ya(C){return this.__data__.has(C)}function No(C,_){var Y=this.__data__;if(Y instanceof In){var se=Y.__data__;if(!qr||se.length<r-1)return se.push([C,_]),this.size=++Y.size,this;Y=this.__data__=new ur(se)}return Y.set(C,_),this.size=Y.size,this}_n.prototype.clear=ma,_n.prototype.delete=ba,_n.prototype.get=va,_n.prototype.has=ya,_n.prototype.set=No;function Vo(C,_){var Y=Xi(C),se=!Y&&$o(C),nt=!Y&&!se&&_u(C),Pe=!Y&&!se&&!nt&&ts(C),st=Y||se||nt||Pe,Ct=st?Ri(C.length,String):[],ze=Ct.length;for(var rt in C)Ge.call(C,rt)&&!(st&&(rt=="length"||nt&&(rt=="offset"||rt=="parent")||Pe&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||Jo(rt,ze)))&&Ct.push(rt);return Ct}function Kr(C,_){for(var Y=C.length;Y--;)if(qo(C[Y][0],_))return Y;return-1}function Tu(C,_,Y){var se=_(C);return Xi(C)?se:Gi(se,Y(C))}function ei(C){return C==null?C===void 0?j:P:rr&&rr in Object(C)?Zo(C):xa(C)}function Bu(C){return ni(C)&&ei(C)==c}function ti(C,_,Y,se,nt){return C===_?!0:C==null||_==null||!ni(C)&&!ni(_)?C!==C&&_!==_:Wo(C,_,Y,se,ti,nt)}function Wo(C,_,Y,se,nt,Pe){var st=Xi(C),Ct=Xi(_),ze=st?f:Jn(C),rt=Ct?f:Jn(_);ze=ze==c?D:ze,rt=rt==c?D:rt;var gt=ze==D,qt=rt==D,xt=ze==rt;if(xt&&_u(C)){if(!_u(_))return!1;st=!0,gt=!1}if(xt&&!gt)return Pe||(Pe=new _n),st||ts(C)?Vi(C,_,Y,se,nt,Pe):Ca(C,_,ze,Y,se,nt,Pe);if(!(Y&o)){var lt=gt&&Ge.call(C,"__wrapped__"),Vt=qt&&Ge.call(_,"__wrapped__");if(lt||Vt){var Gn=lt?C.value():C,Cn=Vt?_.value():_;return Pe||(Pe=new _n),nt(Gn,Cn,Y,se,Pe)}}return xt?(Pe||(Pe=new _n),zo(C,_,Y,se,nt,Pe)):!1}function Ia(C){if(!es(C)||jo(C))return!1;var _=Hi(C)?Nt:w;return _.test(or(C))}function Xo(C){return ni(C)&&Ko(C.length)&&!!me[ei(C)]}function Ho(C){if(!Qo(C))return ko(C);var _=[];for(var Y in Object(C))Ge.call(C,Y)&&Y!="constructor"&&_.push(Y);return _}function Vi(C,_,Y,se,nt,Pe){var st=Y&o,Ct=C.length,ze=_.length;if(Ct!=ze&&!(st&&ze>Ct))return!1;var rt=Pe.get(C);if(rt&&Pe.get(_))return rt==_;var gt=-1,qt=!0,xt=Y&l?new Ni:void 0;for(Pe.set(C,_),Pe.set(_,C);++gt<Ct;){var lt=C[gt],Vt=_[gt];if(se)var Gn=st?se(Vt,lt,gt,_,C,Pe):se(lt,Vt,gt,C,_,Pe);if(Gn!==void 0){if(Gn)continue;qt=!1;break}if(xt){if(!Ut(_,function(Cn,Un){if(!Yn(xt,Un)&&(lt===Cn||nt(lt,Cn,Y,se,Pe)))return xt.push(Un)})){qt=!1;break}}else if(!(lt===Vt||nt(lt,Vt,Y,se,Pe))){qt=!1;break}}return Pe.delete(C),Pe.delete(_),qt}function Ca(C,_,Y,se,nt,Pe,st){switch(Y){case Q:if(C.byteLength!=_.byteLength||C.byteOffset!=_.byteOffset)return!1;C=C.buffer,_=_.buffer;case $:return!(C.byteLength!=_.byteLength||!Pe(new It(C),new It(_)));case p:case g:case F:return qo(+C,+_);case I:return C.name==_.name&&C.message==_.message;case V:case J:return C==_+"";case A:var Ct=tr;case R:var ze=se&o;if(Ct||(Ct=Au),C.size!=_.size&&!ze)return!1;var rt=st.get(C);if(rt)return rt==_;se|=l,st.set(C,_);var gt=Vi(Ct(C),Ct(_),se,nt,Pe,st);return st.delete(C),gt;case N:if(Ou)return Ou.call(C)==Ou.call(_)}return!1}function zo(C,_,Y,se,nt,Pe){var st=Y&o,Ct=Wi(C),ze=Ct.length,rt=Wi(_),gt=rt.length;if(ze!=gt&&!st)return!1;for(var qt=ze;qt--;){var xt=Ct[qt];if(!(st?xt in _:Ge.call(_,xt)))return!1}var lt=Pe.get(C);if(lt&&Pe.get(_))return lt==_;var Vt=!0;Pe.set(C,_),Pe.set(_,C);for(var Gn=st;++qt<ze;){xt=Ct[qt];var Cn=C[xt],Un=_[xt];if(se)var Gu=st?se(Un,Cn,xt,_,C,Pe):se(Cn,Un,xt,C,_,Pe);if(!(Gu===void 0?Cn===Un||nt(Cn,Un,Y,se,Pe):Gu)){Vt=!1;break}Gn||(Gn=xt=="constructor")}if(Vt&&!Gn){var ri=C.constructor,Ft=_.constructor;ri!=Ft&&"constructor"in C&&"constructor"in _&&!(typeof ri=="function"&&ri instanceof ri&&typeof Ft=="function"&&Ft instanceof Ft)&&(Vt=!1)}return Pe.delete(C),Pe.delete(_),Vt}function Wi(C){return Tu(C,Sa,Yo)}function Fr(C,_){var Y=C.__data__;return Uo(_)?Y[typeof _=="string"?"string":"hash"]:Y.map}function ln(C,_){var Y=Mt(C,_);return Ia(Y)?Y:void 0}function Zo(C){var _=Ge.call(C,rr),Y=C[rr];try{C[rr]=void 0;var se=!0}catch{}var nt=jt.call(C);return se&&(_?C[rr]=Y:delete C[rr]),nt}var Yo=Go?function(C){return C==null?[]:(C=Object(C),vn(Go(C),function(_){return on.call(C,_)}))}:tt,Jn=ei;(wu&&Jn(new wu(new ArrayBuffer(1)))!=Q||qr&&Jn(new qr)!=A||Su&&Jn(Su.resolve())!=k||Eu&&Jn(new Eu)!=R||Li&&Jn(new Li)!=ne)&&(Jn=function(C){var _=ei(C),Y=_==D?C.constructor:void 0,se=Y?or(Y):"";if(se)switch(se){case ea:return Q;case ta:return A;case Fu:return k;case na:return R;case Pu:return ne}return _});function Jo(C,_){return _=_??a,!!_&&(typeof C=="number"||Je.test(C))&&C>-1&&C%1==0&&C<_}function Uo(C){var _=typeof C;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?C!=="__proto__":C===null}function jo(C){return!!Et&&Et in C}function Qo(C){var _=C&&C.constructor,Y=typeof _=="function"&&_.prototype||te;return C===Y}function xa(C){return jt.call(C)}function or(C){if(C!=null){try{return _e.call(C)}catch{}try{return C+""}catch{}}return""}function qo(C,_){return C===_||C!==C&&_!==_}var $o=Bu(function(){return arguments}())?Bu:function(C){return ni(C)&&Ge.call(C,"callee")&&!on.call(C,"callee")},Xi=Array.isArray;function Aa(C){return C!=null&&Ko(C.length)&&!Hi(C)}var _u=Ro||et;function wa(C,_){return ti(C,_)}function Hi(C){if(!es(C))return!1;var _=ei(C);return _==b||_==E||_==h||_==L}function Ko(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=a}function es(C){var _=typeof C;return C!=null&&(_=="object"||_=="function")}function ni(C){return C!=null&&typeof C=="object"}var ts=At?ki(At):Xo;function Sa(C){return Aa(C)?Vo(C):Ho(C)}function tt(){return[]}function et(){return!1}e.exports=wa}(Qu,Qu.exports);var mm=Qu.exports;const bm=Hs(mm);var ru=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Mr=typeof window>"u"||"Deno"in globalThis;function pn(){}function vm(e,t){return typeof e=="function"?e(t):e}function zs(e){return typeof e=="number"&&e>=0&&e!==1/0}function Mc(e,t){return Math.max(e+(t||0)-Date.now(),0)}function di(e,t){return typeof e=="function"?e(t):e}function Tn(e,t){return typeof e=="function"?e(t):e}function Nc(e,t){const{type:r="all",exact:u,fetchStatus:o,predicate:l,queryKey:a,stale:c}=e;if(a){if(u){if(t.queryHash!==Zs(a,t.options))return!1}else if(!uu(t.queryKey,a))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||l&&!l(t))}function Vc(e,t){const{exact:r,status:u,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(iu(t.options.mutationKey)!==iu(l))return!1}else if(!uu(t.options.mutationKey,l))return!1}return!(u&&t.state.status!==u||o&&!o(t))}function Zs(e,t){return((t==null?void 0:t.queryKeyHashFn)||iu)(e)}function iu(e){return JSON.stringify(e,(t,r)=>Us(r)?Object.keys(r).sort().reduce((u,o)=>(u[o]=r[o],u),{}):r)}function uu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!uu(e[r],t[r])):!1}function Ys(e,t){if(e===t)return e;const r=Wc(e)&&Wc(t);if(r||Us(e)&&Us(t)){const u=r?e:Object.keys(e),o=u.length,l=r?t:Object.keys(t),a=l.length,c=r?[]:{};let f=0;for(let h=0;h<a;h++){const p=r?h:l[h];(!r&&u.includes(p)||r)&&e[p]===void 0&&t[p]===void 0?(c[p]=void 0,f++):(c[p]=Ys(e[p],t[p]),c[p]===e[p]&&e[p]!==void 0&&f++)}return o===a&&f===o?e:c}return t}function Js(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Wc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Us(e){if(!Xc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Xc(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Xc(e){return Object.prototype.toString.call(e)==="[object Object]"}function ym(e){return new Promise(t=>{setTimeout(t,e)})}function js(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Ys(e,t)}catch(u){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${u}`)}return Ys(e,t)}return t}function Im(e,t,r=0){const u=[...e,t];return r&&u.length>r?u.slice(1):u}function Cm(e,t,r=0){const u=[t,...e];return r&&u.length>r?u.slice(0,-1):u}var qu=Symbol();function Hc(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===qu&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var xm=(up=class extends ru{constructor(){super();we(this,zr);we(this,yr);we(this,Ii);ae(this,Ii,t=>{if(!Mr&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){T(this,yr)||this.setEventListener(T(this,Ii))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,yr))==null||t.call(this),ae(this,yr,void 0))}setEventListener(t){var r;ae(this,Ii,t),(r=T(this,yr))==null||r.call(this),ae(this,yr,t(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(t){T(this,zr)!==t&&(ae(this,zr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof T(this,zr)=="boolean"?T(this,zr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},zr=new WeakMap,yr=new WeakMap,Ii=new WeakMap,up),Qs=new xm,Am=(op=class extends ru{constructor(){super();we(this,Ci,!0);we(this,Ir);we(this,xi);ae(this,xi,t=>{if(!Mr&&window.addEventListener){const r=()=>t(!0),u=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",u)}}})}onSubscribe(){T(this,Ir)||this.setEventListener(T(this,xi))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ir))==null||t.call(this),ae(this,Ir,void 0))}setEventListener(t){var r;ae(this,xi,t),(r=T(this,Ir))==null||r.call(this),ae(this,Ir,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ci)!==t&&(ae(this,Ci,t),this.listeners.forEach(u=>{u(t)}))}isOnline(){return T(this,Ci)}},Ci=new WeakMap,Ir=new WeakMap,xi=new WeakMap,op),$u=new Am;function qs(){let e,t;const r=new Promise((o,l)=>{e=o,t=l});r.status="pending",r.catch(()=>{});function u(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{u({status:"fulfilled",value:o}),e(o)},r.reject=o=>{u({status:"rejected",reason:o}),t(o)},r}function wm(e){return Math.min(1e3*2**e,3e4)}function zc(e){return(e??"online")==="online"?$u.isOnline():!0}var Zc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $s(e){return e instanceof Zc}function Yc(e){let t=!1,r=0,u=!1,o;const l=qs(),a=A=>{var F;u||(I(new Zc(A)),(F=e.abort)==null||F.call(e))},c=()=>{t=!0},f=()=>{t=!1},h=()=>Qs.isFocused()&&(e.networkMode==="always"||$u.isOnline())&&e.canRun(),p=()=>zc(e.networkMode)&&e.canRun(),g=A=>{var F;u||(u=!0,(F=e.onSuccess)==null||F.call(e,A),o==null||o(),l.resolve(A))},I=A=>{var F;u||(u=!0,(F=e.onError)==null||F.call(e,A),o==null||o(),l.reject(A))},b=()=>new Promise(A=>{var F;o=P=>{(u||h())&&A(P)},(F=e.onPause)==null||F.call(e)}).then(()=>{var A;o=void 0,u||(A=e.onContinue)==null||A.call(e)}),E=()=>{if(u)return;let A;const F=r===0?e.initialPromise:void 0;try{A=F??e.fn()}catch(P){A=Promise.reject(P)}Promise.resolve(A).then(g).catch(P=>{var R;if(u)return;const D=e.retry??(Mr?0:3),k=e.retryDelay??wm,L=typeof k=="function"?k(r,P):k,V=D===!0||typeof D=="number"&&r<D||typeof D=="function"&&D(r,P);if(t||!V){I(P);return}r++,(R=e.onFail)==null||R.call(e,r,P),ym(L).then(()=>h()?void 0:b()).then(()=>{t?I(P):E()})})};return{promise:l,cancel:a,continue:()=>(o==null||o(),l),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?E():b().then(E),l)}}function Sm(){let e=[],t=0,r=c=>{c()},u=c=>{c()},o=c=>setTimeout(c,0);const l=c=>{t?e.push(c):o(()=>{r(c)})},a=()=>{const c=e;e=[],c.length&&o(()=>{u(()=>{c.forEach(f=>{r(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||a()}return f},batchCalls:c=>(...f)=>{l(()=>{c(...f)})},schedule:l,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{u=c},setScheduler:c=>{o=c}}}var Ot=Sm(),Jc=(sp=class{constructor(){we(this,Zr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zs(this.gcTime)&&ae(this,Zr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mr?1/0:5*60*1e3))}clearGcTimeout(){T(this,Zr)&&(clearTimeout(T(this,Zr)),ae(this,Zr,void 0))}},Zr=new WeakMap,sp),Em=(lp=class extends Jc{constructor(t){super();we(this,Bn);we(this,Ai);we(this,wi);we(this,bn);we(this,_t);we(this,yu);we(this,Yr);ae(this,Yr,!1),ae(this,yu,t.defaultOptions),this.setOptions(t.options),this.observers=[],ae(this,bn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ae(this,Ai,Fm(this.options)),this.state=t.state??T(this,Ai),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,_t))==null?void 0:t.promise}setOptions(t){this.options={...T(this,yu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,bn).remove(this)}setData(t,r){const u=js(this.state.data,t,this.options);return Ye(this,Bn,mr).call(this,{data:u,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),u}setState(t,r){Ye(this,Bn,mr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var u,o;const r=(u=T(this,_t))==null?void 0:u.promise;return(o=T(this,_t))==null||o.cancel(t),r?r.then(pn).catch(pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Ai))}isActive(){return this.observers.some(t=>Tn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Mc(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(u=>u.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,_t))==null||r.continue()}onOnline(){var r;const t=this.observers.find(u=>u.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=T(this,_t))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,bn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(T(this,_t)&&(T(this,Yr)?T(this,_t).cancel({revert:!0}):T(this,_t).cancelRetry()),this.scheduleGc()),T(this,bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ye(this,Bn,mr).call(this,{type:"invalidate"})}fetch(t,r){var f,h,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(T(this,_t))return T(this,_t).continueRetry(),T(this,_t).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(I=>I.options.queryFn);g&&this.setOptions(g.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const u=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ae(this,Yr,!0),u.signal)})},l=()=>{const g=Hc(this.options,r),I={queryKey:this.queryKey,meta:this.meta};return o(I),ae(this,Yr,!1),this.options.persister?this.options.persister(g,I,this):g(I)},a={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(a),(f=this.options.behavior)==null||f.onFetch(a,this),ae(this,wi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=a.fetchOptions)==null?void 0:h.meta))&&Ye(this,Bn,mr).call(this,{type:"fetch",meta:(p=a.fetchOptions)==null?void 0:p.meta});const c=g=>{var I,b,E,A;$s(g)&&g.silent||Ye(this,Bn,mr).call(this,{type:"error",error:g}),$s(g)||((b=(I=T(this,bn).config).onError)==null||b.call(I,g,this),(A=(E=T(this,bn).config).onSettled)==null||A.call(E,this.state.data,g,this)),this.scheduleGc()};return ae(this,_t,Yc({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:u.abort.bind(u),onSuccess:g=>{var I,b,E,A;if(g===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(F){c(F);return}(b=(I=T(this,bn).config).onSuccess)==null||b.call(I,g,this),(A=(E=T(this,bn).config).onSettled)==null||A.call(E,g,this.state.error,this),this.scheduleGc()},onError:c,onFail:(g,I)=>{Ye(this,Bn,mr).call(this,{type:"failed",failureCount:g,error:I})},onPause:()=>{Ye(this,Bn,mr).call(this,{type:"pause"})},onContinue:()=>{Ye(this,Bn,mr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,_t).start()}},Ai=new WeakMap,wi=new WeakMap,bn=new WeakMap,_t=new WeakMap,yu=new WeakMap,Yr=new WeakMap,Bn=new WeakSet,mr=function(t){const r=u=>{switch(t.type){case"failed":return{...u,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...Uc(u.data,this.options),fetchMeta:t.meta??null};case"success":return{...u,data:t.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return $s(o)&&o.revert&&T(this,wi)?{...T(this,wi),fetchStatus:"idle"}:{...u,error:o,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...t.state}}};this.state=r(this.state),Ot.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),T(this,bn).notify({query:this,type:"updated",action:t})})},lp);function Uc(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zc(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fm(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,u=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Pm=(ap=class extends ru{constructor(t={}){super();we(this,Xn);this.config=t,ae(this,Xn,new Map)}build(t,r,u){const o=r.queryKey,l=r.queryHash??Zs(o,r);let a=this.get(l);return a||(a=new Em({cache:this,queryKey:o,queryHash:l,options:t.defaultQueryOptions(r),state:u,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){T(this,Xn).has(t.queryHash)||(T(this,Xn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=T(this,Xn).get(t.queryHash);r&&(t.destroy(),r===t&&T(this,Xn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Xn).get(t)}getAll(){return[...T(this,Xn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(u=>Nc(r,u))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(u=>Nc(t,u)):r}notify(t){Ot.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ot.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xn=new WeakMap,ap),Om=(cp=class extends Jc{constructor(t){super();we(this,zn);we(this,Hn);we(this,Lt);we(this,Jr);this.mutationId=t.mutationId,ae(this,Lt,t.mutationCache),ae(this,Hn,[]),this.state=t.state||Tm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Hn).includes(t)||(T(this,Hn).push(t),this.clearGcTimeout(),T(this,Lt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ae(this,Hn,T(this,Hn).filter(r=>r!==t)),this.scheduleGc(),T(this,Lt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Hn).length||(this.state.status==="pending"?this.scheduleGc():T(this,Lt).remove(this))}continue(){var t;return((t=T(this,Jr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,a,c,f,h,p,g,I,b,E,A,F,P,D,k,L,V,R,J;ae(this,Jr,Yc({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,j)=>{Ye(this,zn,Dr).call(this,{type:"failed",failureCount:N,error:j})},onPause:()=>{Ye(this,zn,Dr).call(this,{type:"pause"})},onContinue:()=>{Ye(this,zn,Dr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Lt).canRun(this)}));const r=this.state.status==="pending",u=!T(this,Jr).canStart();try{if(!r){Ye(this,zn,Dr).call(this,{type:"pending",variables:t,isPaused:u}),await((l=(o=T(this,Lt).config).onMutate)==null?void 0:l.call(o,t,this));const j=await((c=(a=this.options).onMutate)==null?void 0:c.call(a,t));j!==this.state.context&&Ye(this,zn,Dr).call(this,{type:"pending",context:j,variables:t,isPaused:u})}const N=await T(this,Jr).start();return await((h=(f=T(this,Lt).config).onSuccess)==null?void 0:h.call(f,N,t,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,N,t,this.state.context)),await((b=(I=T(this,Lt).config).onSettled)==null?void 0:b.call(I,N,null,this.state.variables,this.state.context,this)),await((A=(E=this.options).onSettled)==null?void 0:A.call(E,N,null,t,this.state.context)),Ye(this,zn,Dr).call(this,{type:"success",data:N}),N}catch(N){try{throw await((P=(F=T(this,Lt).config).onError)==null?void 0:P.call(F,N,t,this.state.context,this)),await((k=(D=this.options).onError)==null?void 0:k.call(D,N,t,this.state.context)),await((V=(L=T(this,Lt).config).onSettled)==null?void 0:V.call(L,void 0,N,this.state.variables,this.state.context,this)),await((J=(R=this.options).onSettled)==null?void 0:J.call(R,void 0,N,t,this.state.context)),N}finally{Ye(this,zn,Dr).call(this,{type:"error",error:N})}}finally{T(this,Lt).runNext(this)}}},Hn=new WeakMap,Lt=new WeakMap,Jr=new WeakMap,zn=new WeakSet,Dr=function(t){const r=u=>{switch(t.type){case"failed":return{...u,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...u,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:t.error,failureCount:u.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ot.batch(()=>{T(this,Hn).forEach(u=>{u.onMutationUpdate(t)}),T(this,Lt).notify({mutation:this,type:"updated",action:t})})},cp);function Tm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bm=(fp=class extends ru{constructor(t={}){super();we(this,un);we(this,Iu);this.config=t,ae(this,un,new Map),ae(this,Iu,Date.now())}build(t,r,u){const o=new Om({mutationCache:this,mutationId:++Ws(this,Iu)._,options:t.defaultMutationOptions(r),state:u});return this.add(o),o}add(t){const r=Ku(t),u=T(this,un).get(r)??[];u.push(t),T(this,un).set(r,u),this.notify({type:"added",mutation:t})}remove(t){var u;const r=Ku(t);if(T(this,un).has(r)){const o=(u=T(this,un).get(r))==null?void 0:u.filter(l=>l!==t);o&&(o.length===0?T(this,un).delete(r):T(this,un).set(r,o))}this.notify({type:"removed",mutation:t})}canRun(t){var u;const r=(u=T(this,un).get(Ku(t)))==null?void 0:u.find(o=>o.state.status==="pending");return!r||r===t}runNext(t){var u;const r=(u=T(this,un).get(Ku(t)))==null?void 0:u.find(o=>o!==t&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){Ot.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...T(this,un).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(u=>Vc(r,u))}findAll(t={}){return this.getAll().filter(r=>Vc(t,r))}notify(t){Ot.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ot.batch(()=>Promise.all(t.map(r=>r.continue().catch(pn))))}},un=new WeakMap,Iu=new WeakMap,fp);function Ku(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function jc(e){return{onFetch:(t,r)=>{var p,g,I,b,E;const u=t.options,o=(I=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:I.direction,l=((b=t.state.data)==null?void 0:b.pages)||[],a=((E=t.state.data)==null?void 0:E.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const h=async()=>{let A=!1;const F=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?A=!0:t.signal.addEventListener("abort",()=>{A=!0}),t.signal)})},P=Hc(t.options,t.fetchOptions),D=async(k,L,V)=>{if(A)return Promise.reject();if(L==null&&k.pages.length)return Promise.resolve(k);const R={queryKey:t.queryKey,pageParam:L,direction:V?"backward":"forward",meta:t.options.meta};F(R);const J=await P(R),{maxPages:N}=t.options,j=V?Cm:Im;return{pages:j(k.pages,J,N),pageParams:j(k.pageParams,L,N)}};if(o&&l.length){const k=o==="backward",L=k?_m:Qc,V={pages:l,pageParams:a},R=L(u,V);c=await D(V,R,k)}else{const k=e??l.length;do{const L=f===0?a[0]??u.initialPageParam:Qc(u,c);if(f>0&&L==null)break;c=await D(c,L),f++}while(f<k)}return c};t.options.persister?t.fetchFn=()=>{var A,F;return(F=(A=t.options).persister)==null?void 0:F.call(A,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function Qc(e,{pages:t,pageParams:r}){const u=t.length-1;return t.length>0?e.getNextPageParam(t[u],t,r[u],r):void 0}function _m(e,{pages:t,pageParams:r}){var u;return t.length>0?(u=e.getPreviousPageParam)==null?void 0:u.call(e,t[0],t,r[0],r):void 0}var Gm=(dp=class{constructor(e={}){we(this,ht);we(this,Cr);we(this,xr);we(this,Si);we(this,Ei);we(this,Ar);we(this,Fi);we(this,Pi);ae(this,ht,e.queryCache||new Pm),ae(this,Cr,e.mutationCache||new Bm),ae(this,xr,e.defaultOptions||{}),ae(this,Si,new Map),ae(this,Ei,new Map),ae(this,Ar,0)}mount(){Ws(this,Ar)._++,T(this,Ar)===1&&(ae(this,Fi,Qs.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ht).onFocus())})),ae(this,Pi,$u.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,ht).onOnline())})))}unmount(){var e,t;Ws(this,Ar)._--,T(this,Ar)===0&&((e=T(this,Fi))==null||e.call(this),ae(this,Fi,void 0),(t=T(this,Pi))==null||t.call(this),ae(this,Pi,void 0))}isFetching(e){return T(this,ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Cr).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,ht).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),u=T(this,ht).build(this,r);return e.revalidateIfStale&&u.isStaleByTime(di(r.staleTime,u))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return T(this,ht).findAll(e).map(({queryKey:t,state:r})=>{const u=r.data;return[t,u]})}setQueryData(e,t,r){const u=this.defaultQueryOptions({queryKey:e}),o=T(this,ht).get(u.queryHash),l=o==null?void 0:o.state.data,a=vm(t,l);if(a!==void 0)return T(this,ht).build(this,u).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Ot.batch(()=>T(this,ht).findAll(e).map(({queryKey:u})=>[u,this.setQueryData(u,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=T(this,ht).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=T(this,ht);Ot.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=T(this,ht),u={type:"active",...e};return Ot.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(u,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},u=Ot.batch(()=>T(this,ht).findAll(e).map(o=>o.cancel(r)));return Promise.all(u).then(pn).catch(pn)}invalidateQueries(e={},t={}){return Ot.batch(()=>{if(T(this,ht).findAll(e).forEach(u=>{u.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},u=Ot.batch(()=>T(this,ht).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let l=o.fetch(void 0,r);return r.throwOnError||(l=l.catch(pn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(u).then(pn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=T(this,ht).build(this,t);return r.isStaleByTime(di(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pn).catch(pn)}fetchInfiniteQuery(e){return e.behavior=jc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pn).catch(pn)}ensureInfiniteQueryData(e){return e.behavior=jc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $u.isOnline()?T(this,Cr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,ht)}getMutationCache(){return T(this,Cr)}getDefaultOptions(){return T(this,xr)}setDefaultOptions(e){ae(this,xr,e)}setQueryDefaults(e,t){T(this,Si).set(iu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Si).values()];let r={};return t.forEach(u=>{uu(e,u.queryKey)&&(r={...r,...u.defaultOptions})}),r}setMutationDefaults(e,t){T(this,Ei).set(iu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Ei).values()];let r={};return t.forEach(u=>{uu(e,u.mutationKey)&&(r={...r,...u.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,xr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zs(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===qu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,xr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,ht).clear(),T(this,Cr).clear()}},ht=new WeakMap,Cr=new WeakMap,xr=new WeakMap,Si=new WeakMap,Ei=new WeakMap,Ar=new WeakMap,Fi=new WeakMap,Pi=new WeakMap,dp),Rm=(hp=class extends ru{constructor(t,r){super();we(this,Qe);we(this,Jt);we(this,Xe);we(this,Cu);we(this,Dt);we(this,Ur);we(this,Oi);we(this,wr);we(this,Zn);we(this,xu);we(this,Ti);we(this,Bi);we(this,jr);we(this,Qr);we(this,Sr);we(this,_i,new Set);this.options=r,ae(this,Jt,t),ae(this,Zn,null),ae(this,wr,qs()),this.options.experimental_prefetchInRender||T(this,wr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Xe).addObserver(this),qc(T(this,Xe),this.options)?Ye(this,Qe,ju).call(this):this.updateResult(),Ye(this,Qe,Gc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ks(T(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ks(T(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ye(this,Qe,Rc).call(this),Ye(this,Qe,kc).call(this),T(this,Xe).removeObserver(this)}setOptions(t,r){const u=this.options,o=T(this,Xe);if(this.options=T(this,Jt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tn(this.options.enabled,T(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ye(this,Qe,Lc).call(this),T(this,Xe).setOptions(this.options),u._defaulted&&!Js(this.options,u)&&T(this,Jt).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Xe),observer:this});const l=this.hasListeners();l&&$c(T(this,Xe),o,this.options,u)&&Ye(this,Qe,ju).call(this),this.updateResult(r),l&&(T(this,Xe)!==o||Tn(this.options.enabled,T(this,Xe))!==Tn(u.enabled,T(this,Xe))||di(this.options.staleTime,T(this,Xe))!==di(u.staleTime,T(this,Xe)))&&Ye(this,Qe,Tc).call(this);const a=Ye(this,Qe,Bc).call(this);l&&(T(this,Xe)!==o||Tn(this.options.enabled,T(this,Xe))!==Tn(u.enabled,T(this,Xe))||a!==T(this,Sr))&&Ye(this,Qe,_c).call(this,a)}getOptimisticResult(t){const r=T(this,Jt).getQueryCache().build(T(this,Jt),t),u=this.createResult(r,t);return Lm(this,u)&&(ae(this,Dt,u),ae(this,Oi,this.options),ae(this,Ur,T(this,Xe).state)),u}getCurrentResult(){return T(this,Dt)}trackResult(t,r){const u={};return Object.keys(t).forEach(o=>{Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r==null||r(o),t[o])})}),u}trackProp(t){T(this,_i).add(t)}getCurrentQuery(){return T(this,Xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=T(this,Jt).defaultQueryOptions(t),u=T(this,Jt).getQueryCache().build(T(this,Jt),r);return u.fetch().then(()=>this.createResult(u,r))}fetch(t){return Ye(this,Qe,ju).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Dt)))}createResult(t,r){var N;const u=T(this,Xe),o=this.options,l=T(this,Dt),a=T(this,Ur),c=T(this,Oi),h=t!==u?t.state:T(this,Cu),{state:p}=t;let g={...p},I=!1,b;if(r._optimisticResults){const j=this.hasListeners(),ne=!j&&qc(t,r),$=j&&$c(t,u,r,o);(ne||$)&&(g={...g,...Uc(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:A,status:F}=g;if(r.select&&g.data!==void 0)if(l&&g.data===(a==null?void 0:a.data)&&r.select===T(this,xu))b=T(this,Ti);else try{ae(this,xu,r.select),b=r.select(g.data),b=js(l==null?void 0:l.data,b,r),ae(this,Ti,b),ae(this,Zn,null)}catch(j){ae(this,Zn,j)}else b=g.data;if(r.placeholderData!==void 0&&b===void 0&&F==="pending"){let j;if(l!=null&&l.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData))j=l.data;else if(j=typeof r.placeholderData=="function"?r.placeholderData((N=T(this,Bi))==null?void 0:N.state.data,T(this,Bi)):r.placeholderData,r.select&&j!==void 0)try{j=r.select(j),ae(this,Zn,null)}catch(ne){ae(this,Zn,ne)}j!==void 0&&(F="success",b=js(l==null?void 0:l.data,j,r),I=!0)}T(this,Zn)&&(E=T(this,Zn),b=T(this,Ti),A=Date.now(),F="error");const P=g.fetchStatus==="fetching",D=F==="pending",k=F==="error",L=D&&P,V=b!==void 0,J={status:F,fetchStatus:g.fetchStatus,isPending:D,isSuccess:F==="success",isError:k,isInitialLoading:L,isLoading:L,data:b,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&!D,isLoadingError:k&&!V,isPaused:g.fetchStatus==="paused",isPlaceholderData:I,isRefetchError:k&&V,isStale:el(t,r),refetch:this.refetch,promise:T(this,wr)};if(this.options.experimental_prefetchInRender){const j=Q=>{J.status==="error"?Q.reject(J.error):J.data!==void 0&&Q.resolve(J.data)},ne=()=>{const Q=ae(this,wr,J.promise=qs());j(Q)},$=T(this,wr);switch($.status){case"pending":t.queryHash===u.queryHash&&j($);break;case"fulfilled":(J.status==="error"||J.data!==$.value)&&ne();break;case"rejected":(J.status!=="error"||J.error!==$.reason)&&ne();break}}return J}updateResult(t){const r=T(this,Dt),u=this.createResult(T(this,Xe),this.options);if(ae(this,Ur,T(this,Xe).state),ae(this,Oi,this.options),T(this,Ur).data!==void 0&&ae(this,Bi,T(this,Xe)),Js(u,r))return;ae(this,Dt,u);const o={},l=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,c=typeof a=="function"?a():a;if(c==="all"||!c&&!T(this,_i).size)return!0;const f=new Set(c??T(this,_i));return this.options.throwOnError&&f.add("error"),Object.keys(T(this,Dt)).some(h=>{const p=h;return T(this,Dt)[p]!==r[p]&&f.has(p)})};(t==null?void 0:t.listeners)!==!1&&l()&&(o.listeners=!0),Ye(this,Qe,pm).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ye(this,Qe,Gc).call(this)}},Jt=new WeakMap,Xe=new WeakMap,Cu=new WeakMap,Dt=new WeakMap,Ur=new WeakMap,Oi=new WeakMap,wr=new WeakMap,Zn=new WeakMap,xu=new WeakMap,Ti=new WeakMap,Bi=new WeakMap,jr=new WeakMap,Qr=new WeakMap,Sr=new WeakMap,_i=new WeakMap,Qe=new WeakSet,ju=function(t){Ye(this,Qe,Lc).call(this);let r=T(this,Xe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(pn)),r},Tc=function(){Ye(this,Qe,Rc).call(this);const t=di(this.options.staleTime,T(this,Xe));if(Mr||T(this,Dt).isStale||!zs(t))return;const u=Mc(T(this,Dt).dataUpdatedAt,t)+1;ae(this,jr,setTimeout(()=>{T(this,Dt).isStale||this.updateResult()},u))},Bc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Xe)):this.options.refetchInterval)??!1},_c=function(t){Ye(this,Qe,kc).call(this),ae(this,Sr,t),!(Mr||Tn(this.options.enabled,T(this,Xe))===!1||!zs(T(this,Sr))||T(this,Sr)===0)&&ae(this,Qr,setInterval(()=>{(this.options.refetchIntervalInBackground||Qs.isFocused())&&Ye(this,Qe,ju).call(this)},T(this,Sr)))},Gc=function(){Ye(this,Qe,Tc).call(this),Ye(this,Qe,_c).call(this,Ye(this,Qe,Bc).call(this))},Rc=function(){T(this,jr)&&(clearTimeout(T(this,jr)),ae(this,jr,void 0))},kc=function(){T(this,Qr)&&(clearInterval(T(this,Qr)),ae(this,Qr,void 0))},Lc=function(){const t=T(this,Jt).getQueryCache().build(T(this,Jt),this.options);if(t===T(this,Xe))return;const r=T(this,Xe);ae(this,Xe,t),ae(this,Cu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},pm=function(t){Ot.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(T(this,Dt))}),T(this,Jt).getQueryCache().notify({query:T(this,Xe),type:"observerResultsUpdated"})})},hp);function km(e,t){return Tn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qc(e,t){return km(e,t)||e.state.data!==void 0&&Ks(e,t,t.refetchOnMount)}function Ks(e,t,r){if(Tn(t.enabled,e)!==!1){const u=typeof r=="function"?r(e):r;return u==="always"||u!==!1&&el(e,t)}return!1}function $c(e,t,r,u){return(e!==t||Tn(u.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&el(e,r)}function el(e,t){return Tn(t.enabled,e)!==!1&&e.isStaleByTime(di(t.staleTime,e))}function Lm(e,t){return!Js(e.getCurrentResult(),t)}var Kc=Fe.createContext(void 0),Dm=e=>{const t=Fe.useContext(Kc);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Mm=({client:e,children:t})=>(Fe.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),q.jsx(Kc.Provider,{value:e,children:t})),ef=Fe.createContext(!1),Nm=()=>Fe.useContext(ef);ef.Provider;function Vm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Wm=Fe.createContext(Vm()),Xm=()=>Fe.useContext(Wm);function Hm(e,t){return typeof e=="function"?e(...t):!!e}function tf(){}var zm=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Zm=e=>{Fe.useEffect(()=>{e.clearReset()},[e])},Ym=({result:e,errorResetBoundary:t,throwOnError:r,query:u})=>e.isError&&!t.isReset()&&!e.isFetching&&u&&Hm(r,[e.error,u]),Jm=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Um=(e,t)=>e.isLoading&&e.isFetching&&!t,jm=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,nf=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Qm(e,t,r){var p,g,I,b,E;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const u=Dm(),o=Nm(),l=Xm(),a=u.defaultQueryOptions(e);(g=(p=u.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||g.call(p,a),a._optimisticResults=o?"isRestoring":"optimistic",Jm(a),zm(a,l),Zm(l);const c=!u.getQueryCache().get(a.queryHash),[f]=Fe.useState(()=>new t(u,a)),h=f.getOptimisticResult(a);if(Fe.useSyncExternalStore(Fe.useCallback(A=>{const F=o?tf:f.subscribe(Ot.batchCalls(A));return f.updateResult(),F},[f,o]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),Fe.useEffect(()=>{f.setOptions(a,{listeners:!1})},[a,f]),jm(a,h))throw nf(a,f,l);if(Ym({result:h,errorResetBoundary:l,throwOnError:a.throwOnError,query:u.getQueryCache().get(a.queryHash)}))throw h.error;if((b=(I=u.getDefaultOptions().queries)==null?void 0:I._experimental_afterQuery)==null||b.call(I,a,h),a.experimental_prefetchInRender&&!Mr&&Um(h,o)){const A=c?nf(a,f,l):(E=u.getQueryCache().get(a.queryHash))==null?void 0:E.promise;A==null||A.catch(tf).finally(()=>{f.updateResult()})}return a.notifyOnChangeProps?h:f.trackResult(h)}function Nr(e,t){return Qm(e,Rm)}const rf=Z.createContext(void 0),$n=()=>{const e=Z.useContext(rf);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},qm=({children:e,client:t})=>{const r=new Gm({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return q.jsx(Mm,{client:r,children:q.jsx(rf.Provider,{value:t,children:e})})};function uf(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function $m(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,r=[];for(const u of t)if(typeof u=="object"&&u&&"emitValue"in u){const o=u.emitValue;typeof o=="object"&&o&&"__lv"in o?r.push(o.__lv.value):r.push(o)}else return[];return r}return e&&typeof e=="object"&&Array.isArray(e.__lv)?e.__lv:Array.isArray(e)?e:[]}function Km(e){const t=$m(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function eb(e){const t=uf(e.value);if(t==null||typeof t>"u")return["required"]}function tb(e){const{prop:t,value:r}=e,u=uf(r);if(!t.default&&(u==null||typeof u>"u"))return["required"];const o=typeof u=="number"?u:parseInt(String(u));if(Number.isNaN(o))return["not a number"];const l=[];return typeof t.min=="number"&&o<t.min&&l.push("number too small"),typeof t.max=="number"&&o>t.max&&l.push("number too big"),l}function nb(e){const{prop:t,value:r}=e;if(!t.default&&(r==null||typeof r>"u"))return["required"]}function rb(e){const t=e.auth_type==="oauth",r=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const u=(e.extracted_custom_fields_names||[]).map(o=>({name:o}));r.push(...u)}return r.map(u=>({...u,optional:u.optional||t}))}function ib(e){const{app:t,value:r}=e;if(!t)return["app field not registered"];if(!r)return["no app configured"];if(typeof r!="object")return["not an app"];const u=r;if("authProvisionId"in u&&!u.authProvisionId&&t.auth_type){const o=[];if(t.auth_type==="oauth"&&!u.oauth_access_token&&o.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const l=rb(t),a=u;for(const c of l)!c.optional&&!a[c.name]&&o.push(`missing custom field: ${c.name}`)}return t.auth_type!=="none"&&o.push("no auth provision configured"),o}}var eo={exports:{}};/**
2
+ * @license
3
+ * Lodash <https://lodash.com/>
4
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
+ * Released under MIT license <https://lodash.com/license>
6
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
+ */eo.exports,function(e,t){(function(){var r,u="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",g=1,I=2,b=4,E=1,A=2,F=1,P=2,D=4,k=8,L=16,V=32,R=64,J=128,N=256,j=512,ne=30,$="...",Q=800,ve=16,Be=1,ie=2,ge=3,de=1/0,Se=9007199254740991,qe=17976931348623157e292,S=NaN,He=4294967295,Le=He-1,w=He>>>1,Je=[["ary",J],["bind",F],["bindKey",P],["curry",k],["curryRight",L],["flip",j],["partial",V],["partialRight",R],["rearg",N]],me="[object Arguments]",De="[object Array]",yt="[object AsyncFunction]",ee="[object Boolean]",oe="[object Date]",ye="[object DOMException]",Me="[object Error]",ct="[object Function]",Gt="[object GeneratorFunction]",At="[object Map]",vn="[object Number]",Gi="[object Null]",Ut="[object Object]",Ri="[object Promise]",ki="[object Proxy]",Yn="[object RegExp]",Mt="[object Set]",tr="[object String]",Er="[object Symbol]",Au="[object Undefined]",nr="[object WeakMap]",X="[object WeakSet]",te="[object ArrayBuffer]",pe="[object DataView]",_e="[object Float32Array]",Ge="[object Float64Array]",Et="[object Int8Array]",jt="[object Int16Array]",Nt="[object Int32Array]",yn="[object Uint8Array]",Qt="[object Uint8ClampedArray]",It="[object Uint16Array]",on="[object Uint32Array]",sn=/\b__p \+= '';/g,rr=/\b(__p \+=) '' \+/g,Go=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ro=/&(?:amp|lt|gt|quot|#39);/g,ko=/[&<>"']/g,wu=RegExp(Ro.source),qr=RegExp(ko.source),Su=/<%-([\s\S]+?)%>/g,Eu=/<%([\s\S]+?)%>/g,Li=/<%=([\s\S]+?)%>/g,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ea=/^\w*$/,ta=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fu=/[\\^$.*+?()[\]{}|]/g,na=RegExp(Fu.source),Pu=/^\s+/,Lo=/\s/,Ou=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ir=/\{\n\/\* \[wrapped with (.+)\] \*/,ra=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ua=/[()=,{}\[\]\/\s]/,oa=/\\(\\)?/g,sa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,In=/\w*$/,la=/^[-+]0x[0-9a-f]+$/i,aa=/^0b[01]+$/i,ca=/^\[object .+?Constructor\]$/,fa=/^0o[0-7]+$/i,da=/^(?:0|[1-9]\d*)$/,ur=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Di=/($^)/,ha=/['\n\r\u2028\u2029\\]/g,Mi="\\ud800-\\udfff",pa="\\u0300-\\u036f",ga="\\ufe20-\\ufe2f",Ni="\\u20d0-\\u20ff",Do=pa+ga+Ni,Mo="\\u2700-\\u27bf",_n="a-z\\xdf-\\xf6\\xf8-\\xff",ma="\\xac\\xb1\\xd7\\xf7",ba="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",va="\\u2000-\\u206f",ya=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",No="A-Z\\xc0-\\xd6\\xd8-\\xde",Vo="\\ufe0e\\ufe0f",Kr=ma+ba+va+ya,Tu="['’]",ei="["+Mi+"]",Bu="["+Kr+"]",ti="["+Do+"]",Wo="\\d+",Ia="["+Mo+"]",Xo="["+_n+"]",Ho="[^"+Mi+Kr+Wo+Mo+_n+No+"]",Vi="\\ud83c[\\udffb-\\udfff]",Ca="(?:"+ti+"|"+Vi+")",zo="[^"+Mi+"]",Wi="(?:\\ud83c[\\udde6-\\uddff]){2}",Fr="[\\ud800-\\udbff][\\udc00-\\udfff]",ln="["+No+"]",Zo="\\u200d",Yo="(?:"+Xo+"|"+Ho+")",Jn="(?:"+ln+"|"+Ho+")",Jo="(?:"+Tu+"(?:d|ll|m|re|s|t|ve))?",Uo="(?:"+Tu+"(?:D|LL|M|RE|S|T|VE))?",jo=Ca+"?",Qo="["+Vo+"]?",xa="(?:"+Zo+"(?:"+[zo,Wi,Fr].join("|")+")"+Qo+jo+")*",or="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$o=Qo+jo+xa,Xi="(?:"+[Ia,Wi,Fr].join("|")+")"+$o,Aa="(?:"+[zo+ti+"?",ti,Wi,Fr,ei].join("|")+")",_u=RegExp(Tu,"g"),wa=RegExp(ti,"g"),Hi=RegExp(Vi+"(?="+Vi+")|"+Aa+$o,"g"),Ko=RegExp([ln+"?"+Xo+"+"+Jo+"(?="+[Bu,ln,"$"].join("|")+")",Jn+"+"+Uo+"(?="+[Bu,ln+Yo,"$"].join("|")+")",ln+"?"+Yo+"+"+Jo,ln+"+"+Uo,qo,or,Wo,Xi].join("|"),"g"),es=RegExp("["+Zo+Mi+Do+Vo+"]"),ni=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ts=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sa=-1,tt={};tt[_e]=tt[Ge]=tt[Et]=tt[jt]=tt[Nt]=tt[yn]=tt[Qt]=tt[It]=tt[on]=!0,tt[me]=tt[De]=tt[te]=tt[ee]=tt[pe]=tt[oe]=tt[Me]=tt[ct]=tt[At]=tt[vn]=tt[Ut]=tt[Yn]=tt[Mt]=tt[tr]=tt[nr]=!1;var et={};et[me]=et[De]=et[te]=et[pe]=et[ee]=et[oe]=et[_e]=et[Ge]=et[Et]=et[jt]=et[Nt]=et[At]=et[vn]=et[Ut]=et[Yn]=et[Mt]=et[tr]=et[Er]=et[yn]=et[Qt]=et[It]=et[on]=!0,et[Me]=et[ct]=et[nr]=!1;var C={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",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n:"'n",ſ:"s"},_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nt=parseFloat,Pe=parseInt,st=typeof On=="object"&&On&&On.Object===Object&&On,Ct=typeof self=="object"&&self&&self.Object===Object&&self,ze=st||Ct||Function("return this")(),rt=t&&!t.nodeType&&t,gt=rt&&!0&&e&&!e.nodeType&&e,qt=gt&&gt.exports===rt,xt=qt&&st.process,lt=function(){try{var B=gt&&gt.require&&gt.require("util").types;return B||xt&&xt.binding&&xt.binding("util")}catch{}}(),Vt=lt&&lt.isArrayBuffer,Gn=lt&&lt.isDate,Cn=lt&&lt.isMap,Un=lt&&lt.isRegExp,Gu=lt&&lt.isSet,ri=lt&&lt.isTypedArray;function Ft(B,W,M){switch(M.length){case 0:return B.call(W);case 1:return B.call(W,M[0]);case 2:return B.call(W,M[0],M[1]);case 3:return B.call(W,M[0],M[1],M[2])}return B.apply(W,M)}function Bx(B,W,M,le){for(var Ee=-1,je=B==null?0:B.length;++Ee<je;){var wt=B[Ee];W(le,wt,M(wt),B)}return le}function xn(B,W){for(var M=-1,le=B==null?0:B.length;++M<le&&W(B[M],M,B)!==!1;);return B}function _x(B,W){for(var M=B==null?0:B.length;M--&&W(B[M],M,B)!==!1;);return B}function pp(B,W){for(var M=-1,le=B==null?0:B.length;++M<le;)if(!W(B[M],M,B))return!1;return!0}function Pr(B,W){for(var M=-1,le=B==null?0:B.length,Ee=0,je=[];++M<le;){var wt=B[M];W(wt,M,B)&&(je[Ee++]=wt)}return je}function ns(B,W){var M=B==null?0:B.length;return!!M&&zi(B,W,0)>-1}function Ea(B,W,M){for(var le=-1,Ee=B==null?0:B.length;++le<Ee;)if(M(W,B[le]))return!0;return!1}function at(B,W){for(var M=-1,le=B==null?0:B.length,Ee=Array(le);++M<le;)Ee[M]=W(B[M],M,B);return Ee}function Or(B,W){for(var M=-1,le=W.length,Ee=B.length;++M<le;)B[Ee+M]=W[M];return B}function Fa(B,W,M,le){var Ee=-1,je=B==null?0:B.length;for(le&&je&&(M=B[++Ee]);++Ee<je;)M=W(M,B[Ee],Ee,B);return M}function Gx(B,W,M,le){var Ee=B==null?0:B.length;for(le&&Ee&&(M=B[--Ee]);Ee--;)M=W(M,B[Ee],Ee,B);return M}function Pa(B,W){for(var M=-1,le=B==null?0:B.length;++M<le;)if(W(B[M],M,B))return!0;return!1}var Rx=Oa("length");function kx(B){return B.split("")}function Lx(B){return B.match(ia)||[]}function gp(B,W,M){var le;return M(B,function(Ee,je,wt){if(W(Ee,je,wt))return le=je,!1}),le}function rs(B,W,M,le){for(var Ee=B.length,je=M+(le?1:-1);le?je--:++je<Ee;)if(W(B[je],je,B))return je;return-1}function zi(B,W,M){return W===W?Ux(B,W,M):rs(B,mp,M)}function Dx(B,W,M,le){for(var Ee=M-1,je=B.length;++Ee<je;)if(le(B[Ee],W))return Ee;return-1}function mp(B){return B!==B}function bp(B,W){var M=B==null?0:B.length;return M?Ba(B,W)/M:S}function Oa(B){return function(W){return W==null?r:W[B]}}function Ta(B){return function(W){return B==null?r:B[W]}}function vp(B,W,M,le,Ee){return Ee(B,function(je,wt,it){M=le?(le=!1,je):W(M,je,wt,it)}),M}function Mx(B,W){var M=B.length;for(B.sort(W);M--;)B[M]=B[M].value;return B}function Ba(B,W){for(var M,le=-1,Ee=B.length;++le<Ee;){var je=W(B[le]);je!==r&&(M=M===r?je:M+je)}return M}function _a(B,W){for(var M=-1,le=Array(B);++M<B;)le[M]=W(M);return le}function Nx(B,W){return at(W,function(M){return[M,B[M]]})}function yp(B){return B&&B.slice(0,Ap(B)+1).replace(Pu,"")}function an(B){return function(W){return B(W)}}function Ga(B,W){return at(W,function(M){return B[M]})}function Ru(B,W){return B.has(W)}function Ip(B,W){for(var M=-1,le=B.length;++M<le&&zi(W,B[M],0)>-1;);return M}function Cp(B,W){for(var M=B.length;M--&&zi(W,B[M],0)>-1;);return M}function Vx(B,W){for(var M=B.length,le=0;M--;)B[M]===W&&++le;return le}var Wx=Ta(C),Xx=Ta(_);function Hx(B){return"\\"+se[B]}function zx(B,W){return B==null?r:B[W]}function Zi(B){return es.test(B)}function Zx(B){return ni.test(B)}function Yx(B){for(var W,M=[];!(W=B.next()).done;)M.push(W.value);return M}function Ra(B){var W=-1,M=Array(B.size);return B.forEach(function(le,Ee){M[++W]=[Ee,le]}),M}function xp(B,W){return function(M){return B(W(M))}}function Tr(B,W){for(var M=-1,le=B.length,Ee=0,je=[];++M<le;){var wt=B[M];(wt===W||wt===p)&&(B[M]=p,je[Ee++]=M)}return je}function is(B){var W=-1,M=Array(B.size);return B.forEach(function(le){M[++W]=le}),M}function Jx(B){var W=-1,M=Array(B.size);return B.forEach(function(le){M[++W]=[le,le]}),M}function Ux(B,W,M){for(var le=M-1,Ee=B.length;++le<Ee;)if(B[le]===W)return le;return-1}function jx(B,W,M){for(var le=M+1;le--;)if(B[le]===W)return le;return le}function Yi(B){return Zi(B)?qx(B):Rx(B)}function Rn(B){return Zi(B)?$x(B):kx(B)}function Ap(B){for(var W=B.length;W--&&Lo.test(B.charAt(W)););return W}var Qx=Ta(Y);function qx(B){for(var W=Hi.lastIndex=0;Hi.test(B);)++W;return W}function $x(B){return B.match(Hi)||[]}function Kx(B){return B.match(Ko)||[]}var eA=function B(W){W=W==null?ze:Ji.defaults(ze.Object(),W,Ji.pick(ze,ts));var M=W.Array,le=W.Date,Ee=W.Error,je=W.Function,wt=W.Math,it=W.Object,ka=W.RegExp,tA=W.String,An=W.TypeError,us=M.prototype,nA=je.prototype,Ui=it.prototype,os=W["__core-js_shared__"],ss=nA.toString,Ke=Ui.hasOwnProperty,rA=0,wp=function(){var n=/[^.]+$/.exec(os&&os.keys&&os.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ls=Ui.toString,iA=ss.call(it),uA=ze._,oA=ka("^"+ss.call(Ke).replace(Fu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),as=qt?W.Buffer:r,Br=W.Symbol,cs=W.Uint8Array,Sp=as?as.allocUnsafe:r,fs=xp(it.getPrototypeOf,it),Ep=it.create,Fp=Ui.propertyIsEnumerable,ds=us.splice,Pp=Br?Br.isConcatSpreadable:r,ku=Br?Br.iterator:r,ii=Br?Br.toStringTag:r,hs=function(){try{var n=ai(it,"defineProperty");return n({},"",{}),n}catch{}}(),sA=W.clearTimeout!==ze.clearTimeout&&W.clearTimeout,lA=le&&le.now!==ze.Date.now&&le.now,aA=W.setTimeout!==ze.setTimeout&&W.setTimeout,ps=wt.ceil,gs=wt.floor,La=it.getOwnPropertySymbols,cA=as?as.isBuffer:r,Op=W.isFinite,fA=us.join,dA=xp(it.keys,it),St=wt.max,Rt=wt.min,hA=le.now,pA=W.parseInt,Tp=wt.random,gA=us.reverse,Da=ai(W,"DataView"),Lu=ai(W,"Map"),Ma=ai(W,"Promise"),ji=ai(W,"Set"),Du=ai(W,"WeakMap"),Mu=ai(it,"create"),ms=Du&&new Du,Qi={},mA=ci(Da),bA=ci(Lu),vA=ci(Ma),yA=ci(ji),IA=ci(Du),bs=Br?Br.prototype:r,Nu=bs?bs.valueOf:r,Bp=bs?bs.toString:r;function v(n){if(pt(n)&&!Oe(n)&&!(n instanceof We)){if(n instanceof wn)return n;if(Ke.call(n,"__wrapped__"))return _g(n)}return new wn(n)}var qi=function(){function n(){}return function(i){if(!ft(i))return{};if(Ep)return Ep(i);n.prototype=i;var s=new n;return n.prototype=r,s}}();function vs(){}function wn(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}v.templateSettings={escape:Su,evaluate:Eu,interpolate:Li,variable:"",imports:{_:v}},v.prototype=vs.prototype,v.prototype.constructor=v,wn.prototype=qi(vs.prototype),wn.prototype.constructor=wn;function We(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=He,this.__views__=[]}function CA(){var n=new We(this.__wrapped__);return n.__actions__=$t(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=$t(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=$t(this.__views__),n}function xA(){if(this.__filtered__){var n=new We(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function AA(){var n=this.__wrapped__.value(),i=this.__dir__,s=Oe(n),d=i<0,m=s?n.length:0,y=kw(0,m,this.__views__),x=y.start,O=y.end,G=O-x,H=d?O:x-1,z=this.__iteratees__,U=z.length,re=0,fe=Rt(G,this.__takeCount__);if(!s||!d&&m==G&&fe==G)return tg(n,this.__actions__);var Ce=[];e:for(;G--&&re<fe;){H+=i;for(var ke=-1,xe=n[H];++ke<U;){var Ve=z[ke],Ze=Ve.iteratee,dn=Ve.type,Ht=Ze(xe);if(dn==ie)xe=Ht;else if(!Ht){if(dn==Be)continue e;break e}}Ce[re++]=xe}return Ce}We.prototype=qi(vs.prototype),We.prototype.constructor=We;function ui(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function wA(){this.__data__=Mu?Mu(null):{},this.size=0}function SA(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}function EA(n){var i=this.__data__;if(Mu){var s=i[n];return s===f?r:s}return Ke.call(i,n)?i[n]:r}function FA(n){var i=this.__data__;return Mu?i[n]!==r:Ke.call(i,n)}function PA(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=Mu&&i===r?f:i,this}ui.prototype.clear=wA,ui.prototype.delete=SA,ui.prototype.get=EA,ui.prototype.has=FA,ui.prototype.set=PA;function sr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function OA(){this.__data__=[],this.size=0}function TA(n){var i=this.__data__,s=ys(i,n);if(s<0)return!1;var d=i.length-1;return s==d?i.pop():ds.call(i,s,1),--this.size,!0}function BA(n){var i=this.__data__,s=ys(i,n);return s<0?r:i[s][1]}function _A(n){return ys(this.__data__,n)>-1}function GA(n,i){var s=this.__data__,d=ys(s,n);return d<0?(++this.size,s.push([n,i])):s[d][1]=i,this}sr.prototype.clear=OA,sr.prototype.delete=TA,sr.prototype.get=BA,sr.prototype.has=_A,sr.prototype.set=GA;function lr(n){var i=-1,s=n==null?0:n.length;for(this.clear();++i<s;){var d=n[i];this.set(d[0],d[1])}}function RA(){this.size=0,this.__data__={hash:new ui,map:new(Lu||sr),string:new ui}}function kA(n){var i=Bs(this,n).delete(n);return this.size-=i?1:0,i}function LA(n){return Bs(this,n).get(n)}function DA(n){return Bs(this,n).has(n)}function MA(n,i){var s=Bs(this,n),d=s.size;return s.set(n,i),this.size+=s.size==d?0:1,this}lr.prototype.clear=RA,lr.prototype.delete=kA,lr.prototype.get=LA,lr.prototype.has=DA,lr.prototype.set=MA;function oi(n){var i=-1,s=n==null?0:n.length;for(this.__data__=new lr;++i<s;)this.add(n[i])}function NA(n){return this.__data__.set(n,f),this}function VA(n){return this.__data__.has(n)}oi.prototype.add=oi.prototype.push=NA,oi.prototype.has=VA;function kn(n){var i=this.__data__=new sr(n);this.size=i.size}function WA(){this.__data__=new sr,this.size=0}function XA(n){var i=this.__data__,s=i.delete(n);return this.size=i.size,s}function HA(n){return this.__data__.get(n)}function zA(n){return this.__data__.has(n)}function ZA(n,i){var s=this.__data__;if(s instanceof sr){var d=s.__data__;if(!Lu||d.length<o-1)return d.push([n,i]),this.size=++s.size,this;s=this.__data__=new lr(d)}return s.set(n,i),this.size=s.size,this}kn.prototype.clear=WA,kn.prototype.delete=XA,kn.prototype.get=HA,kn.prototype.has=zA,kn.prototype.set=ZA;function _p(n,i){var s=Oe(n),d=!s&&fi(n),m=!s&&!d&&Lr(n),y=!s&&!d&&!m&&tu(n),x=s||d||m||y,O=x?_a(n.length,tA):[],G=O.length;for(var H in n)(i||Ke.call(n,H))&&!(x&&(H=="length"||m&&(H=="offset"||H=="parent")||y&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||dr(H,G)))&&O.push(H);return O}function Gp(n){var i=n.length;return i?n[ja(0,i-1)]:r}function YA(n,i){return _s($t(n),si(i,0,n.length))}function JA(n){return _s($t(n))}function Na(n,i,s){(s!==r&&!Ln(n[i],s)||s===r&&!(i in n))&&ar(n,i,s)}function Vu(n,i,s){var d=n[i];(!(Ke.call(n,i)&&Ln(d,s))||s===r&&!(i in n))&&ar(n,i,s)}function ys(n,i){for(var s=n.length;s--;)if(Ln(n[s][0],i))return s;return-1}function UA(n,i,s,d){return _r(n,function(m,y,x){i(d,m,s(m),x)}),d}function Rp(n,i){return n&&Qn(i,Pt(i),n)}function jA(n,i){return n&&Qn(i,en(i),n)}function ar(n,i,s){i=="__proto__"&&hs?hs(n,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):n[i]=s}function Va(n,i){for(var s=-1,d=i.length,m=M(d),y=n==null;++s<d;)m[s]=y?r:Ic(n,i[s]);return m}function si(n,i,s){return n===n&&(s!==r&&(n=n<=s?n:s),i!==r&&(n=n>=i?n:i)),n}function Sn(n,i,s,d,m,y){var x,O=i&g,G=i&I,H=i&b;if(s&&(x=m?s(n,d,m,y):s(n)),x!==r)return x;if(!ft(n))return n;var z=Oe(n);if(z){if(x=Dw(n),!O)return $t(n,x)}else{var U=kt(n),re=U==ct||U==Gt;if(Lr(n))return ig(n,O);if(U==Ut||U==me||re&&!m){if(x=G||re?{}:Ag(n),!O)return G?Ew(n,jA(x,n)):Sw(n,Rp(x,n))}else{if(!et[U])return m?n:{};x=Mw(n,U,O)}}y||(y=new kn);var fe=y.get(n);if(fe)return fe;y.set(n,x),$g(n)?n.forEach(function(xe){x.add(Sn(xe,i,s,xe,n,y))}):Qg(n)&&n.forEach(function(xe,Ve){x.set(Ve,Sn(xe,i,s,Ve,n,y))});var Ce=H?G?oc:uc:G?en:Pt,ke=z?r:Ce(n);return xn(ke||n,function(xe,Ve){ke&&(Ve=xe,xe=n[Ve]),Vu(x,Ve,Sn(xe,i,s,Ve,n,y))}),x}function QA(n){var i=Pt(n);return function(s){return kp(s,n,i)}}function kp(n,i,s){var d=s.length;if(n==null)return!d;for(n=it(n);d--;){var m=s[d],y=i[m],x=n[m];if(x===r&&!(m in n)||!y(x))return!1}return!0}function Lp(n,i,s){if(typeof n!="function")throw new An(a);return Ju(function(){n.apply(r,s)},i)}function Wu(n,i,s,d){var m=-1,y=ns,x=!0,O=n.length,G=[],H=i.length;if(!O)return G;s&&(i=at(i,an(s))),d?(y=Ea,x=!1):i.length>=o&&(y=Ru,x=!1,i=new oi(i));e:for(;++m<O;){var z=n[m],U=s==null?z:s(z);if(z=d||z!==0?z:0,x&&U===U){for(var re=H;re--;)if(i[re]===U)continue e;G.push(z)}else y(i,U,d)||G.push(z)}return G}var _r=ag(jn),Dp=ag(Xa,!0);function qA(n,i){var s=!0;return _r(n,function(d,m,y){return s=!!i(d,m,y),s}),s}function Is(n,i,s){for(var d=-1,m=n.length;++d<m;){var y=n[d],x=i(y);if(x!=null&&(O===r?x===x&&!fn(x):s(x,O)))var O=x,G=y}return G}function $A(n,i,s,d){var m=n.length;for(s=Re(s),s<0&&(s=-s>m?0:m+s),d=d===r||d>m?m:Re(d),d<0&&(d+=m),d=s>d?0:em(d);s<d;)n[s++]=i;return n}function Mp(n,i){var s=[];return _r(n,function(d,m,y){i(d,m,y)&&s.push(d)}),s}function Tt(n,i,s,d,m){var y=-1,x=n.length;for(s||(s=Vw),m||(m=[]);++y<x;){var O=n[y];i>0&&s(O)?i>1?Tt(O,i-1,s,d,m):Or(m,O):d||(m[m.length]=O)}return m}var Wa=cg(),Np=cg(!0);function jn(n,i){return n&&Wa(n,i,Pt)}function Xa(n,i){return n&&Np(n,i,Pt)}function Cs(n,i){return Pr(i,function(s){return hr(n[s])})}function li(n,i){i=Rr(i,n);for(var s=0,d=i.length;n!=null&&s<d;)n=n[qn(i[s++])];return s&&s==d?n:r}function Vp(n,i,s){var d=i(n);return Oe(n)?d:Or(d,s(n))}function Wt(n){return n==null?n===r?Au:Gi:ii&&ii in it(n)?Rw(n):Jw(n)}function Ha(n,i){return n>i}function KA(n,i){return n!=null&&Ke.call(n,i)}function ew(n,i){return n!=null&&i in it(n)}function tw(n,i,s){return n>=Rt(i,s)&&n<St(i,s)}function za(n,i,s){for(var d=s?Ea:ns,m=n[0].length,y=n.length,x=y,O=M(y),G=1/0,H=[];x--;){var z=n[x];x&&i&&(z=at(z,an(i))),G=Rt(z.length,G),O[x]=!s&&(i||m>=120&&z.length>=120)?new oi(x&&z):r}z=n[0];var U=-1,re=O[0];e:for(;++U<m&&H.length<G;){var fe=z[U],Ce=i?i(fe):fe;if(fe=s||fe!==0?fe:0,!(re?Ru(re,Ce):d(H,Ce,s))){for(x=y;--x;){var ke=O[x];if(!(ke?Ru(ke,Ce):d(n[x],Ce,s)))continue e}re&&re.push(Ce),H.push(fe)}}return H}function nw(n,i,s,d){return jn(n,function(m,y,x){i(d,s(m),y,x)}),d}function Xu(n,i,s){i=Rr(i,n),n=Fg(n,i);var d=n==null?n:n[qn(Fn(i))];return d==null?r:Ft(d,n,s)}function Wp(n){return pt(n)&&Wt(n)==me}function rw(n){return pt(n)&&Wt(n)==te}function iw(n){return pt(n)&&Wt(n)==oe}function Hu(n,i,s,d,m){return n===i?!0:n==null||i==null||!pt(n)&&!pt(i)?n!==n&&i!==i:uw(n,i,s,d,Hu,m)}function uw(n,i,s,d,m,y){var x=Oe(n),O=Oe(i),G=x?De:kt(n),H=O?De:kt(i);G=G==me?Ut:G,H=H==me?Ut:H;var z=G==Ut,U=H==Ut,re=G==H;if(re&&Lr(n)){if(!Lr(i))return!1;x=!0,z=!1}if(re&&!z)return y||(y=new kn),x||tu(n)?Ig(n,i,s,d,m,y):_w(n,i,G,s,d,m,y);if(!(s&E)){var fe=z&&Ke.call(n,"__wrapped__"),Ce=U&&Ke.call(i,"__wrapped__");if(fe||Ce){var ke=fe?n.value():n,xe=Ce?i.value():i;return y||(y=new kn),m(ke,xe,s,d,y)}}return re?(y||(y=new kn),Gw(n,i,s,d,m,y)):!1}function ow(n){return pt(n)&&kt(n)==At}function Za(n,i,s,d){var m=s.length,y=m,x=!d;if(n==null)return!y;for(n=it(n);m--;){var O=s[m];if(x&&O[2]?O[1]!==n[O[0]]:!(O[0]in n))return!1}for(;++m<y;){O=s[m];var G=O[0],H=n[G],z=O[1];if(x&&O[2]){if(H===r&&!(G in n))return!1}else{var U=new kn;if(d)var re=d(H,z,G,n,i,U);if(!(re===r?Hu(z,H,E|A,d,U):re))return!1}}return!0}function Xp(n){if(!ft(n)||Xw(n))return!1;var i=hr(n)?oA:ca;return i.test(ci(n))}function sw(n){return pt(n)&&Wt(n)==Yn}function lw(n){return pt(n)&&kt(n)==Mt}function aw(n){return pt(n)&&Ms(n.length)&&!!tt[Wt(n)]}function Hp(n){return typeof n=="function"?n:n==null?tn:typeof n=="object"?Oe(n)?Yp(n[0],n[1]):Zp(n):fm(n)}function Ya(n){if(!Yu(n))return dA(n);var i=[];for(var s in it(n))Ke.call(n,s)&&s!="constructor"&&i.push(s);return i}function cw(n){if(!ft(n))return Yw(n);var i=Yu(n),s=[];for(var d in n)d=="constructor"&&(i||!Ke.call(n,d))||s.push(d);return s}function Ja(n,i){return n<i}function zp(n,i){var s=-1,d=Kt(n)?M(n.length):[];return _r(n,function(m,y,x){d[++s]=i(m,y,x)}),d}function Zp(n){var i=lc(n);return i.length==1&&i[0][2]?Sg(i[0][0],i[0][1]):function(s){return s===n||Za(s,n,i)}}function Yp(n,i){return cc(n)&&wg(i)?Sg(qn(n),i):function(s){var d=Ic(s,n);return d===r&&d===i?Cc(s,n):Hu(i,d,E|A)}}function xs(n,i,s,d,m){n!==i&&Wa(i,function(y,x){if(m||(m=new kn),ft(y))fw(n,i,x,s,xs,d,m);else{var O=d?d(dc(n,x),y,x+"",n,i,m):r;O===r&&(O=y),Na(n,x,O)}},en)}function fw(n,i,s,d,m,y,x){var O=dc(n,s),G=dc(i,s),H=x.get(G);if(H){Na(n,s,H);return}var z=y?y(O,G,s+"",n,i,x):r,U=z===r;if(U){var re=Oe(G),fe=!re&&Lr(G),Ce=!re&&!fe&&tu(G);z=G,re||fe||Ce?Oe(O)?z=O:mt(O)?z=$t(O):fe?(U=!1,z=ig(G,!0)):Ce?(U=!1,z=ug(G,!0)):z=[]:Uu(G)||fi(G)?(z=O,fi(O)?z=tm(O):(!ft(O)||hr(O))&&(z=Ag(G))):U=!1}U&&(x.set(G,z),m(z,G,d,y,x),x.delete(G)),Na(n,s,z)}function Jp(n,i){var s=n.length;if(s)return i+=i<0?s:0,dr(i,s)?n[i]:r}function Up(n,i,s){i.length?i=at(i,function(y){return Oe(y)?function(x){return li(x,y.length===1?y[0]:y)}:y}):i=[tn];var d=-1;i=at(i,an(Ie()));var m=zp(n,function(y,x,O){var G=at(i,function(H){return H(y)});return{criteria:G,index:++d,value:y}});return Mx(m,function(y,x){return ww(y,x,s)})}function dw(n,i){return jp(n,i,function(s,d){return Cc(n,d)})}function jp(n,i,s){for(var d=-1,m=i.length,y={};++d<m;){var x=i[d],O=li(n,x);s(O,x)&&zu(y,Rr(x,n),O)}return y}function hw(n){return function(i){return li(i,n)}}function Ua(n,i,s,d){var m=d?Dx:zi,y=-1,x=i.length,O=n;for(n===i&&(i=$t(i)),s&&(O=at(n,an(s)));++y<x;)for(var G=0,H=i[y],z=s?s(H):H;(G=m(O,z,G,d))>-1;)O!==n&&ds.call(O,G,1),ds.call(n,G,1);return n}function Qp(n,i){for(var s=n?i.length:0,d=s-1;s--;){var m=i[s];if(s==d||m!==y){var y=m;dr(m)?ds.call(n,m,1):$a(n,m)}}return n}function ja(n,i){return n+gs(Tp()*(i-n+1))}function pw(n,i,s,d){for(var m=-1,y=St(ps((i-n)/(s||1)),0),x=M(y);y--;)x[d?y:++m]=n,n+=s;return x}function Qa(n,i){var s="";if(!n||i<1||i>Se)return s;do i%2&&(s+=n),i=gs(i/2),i&&(n+=n);while(i);return s}function Ne(n,i){return hc(Eg(n,i,tn),n+"")}function gw(n){return Gp(nu(n))}function mw(n,i){var s=nu(n);return _s(s,si(i,0,s.length))}function zu(n,i,s,d){if(!ft(n))return n;i=Rr(i,n);for(var m=-1,y=i.length,x=y-1,O=n;O!=null&&++m<y;){var G=qn(i[m]),H=s;if(G==="__proto__"||G==="constructor"||G==="prototype")return n;if(m!=x){var z=O[G];H=d?d(z,G,O):r,H===r&&(H=ft(z)?z:dr(i[m+1])?[]:{})}Vu(O,G,H),O=O[G]}return n}var qp=ms?function(n,i){return ms.set(n,i),n}:tn,bw=hs?function(n,i){return hs(n,"toString",{configurable:!0,enumerable:!1,value:Ac(i),writable:!0})}:tn;function vw(n){return _s(nu(n))}function En(n,i,s){var d=-1,m=n.length;i<0&&(i=-i>m?0:m+i),s=s>m?m:s,s<0&&(s+=m),m=i>s?0:s-i>>>0,i>>>=0;for(var y=M(m);++d<m;)y[d]=n[d+i];return y}function yw(n,i){var s;return _r(n,function(d,m,y){return s=i(d,m,y),!s}),!!s}function As(n,i,s){var d=0,m=n==null?d:n.length;if(typeof i=="number"&&i===i&&m<=w){for(;d<m;){var y=d+m>>>1,x=n[y];x!==null&&!fn(x)&&(s?x<=i:x<i)?d=y+1:m=y}return m}return qa(n,i,tn,s)}function qa(n,i,s,d){var m=0,y=n==null?0:n.length;if(y===0)return 0;i=s(i);for(var x=i!==i,O=i===null,G=fn(i),H=i===r;m<y;){var z=gs((m+y)/2),U=s(n[z]),re=U!==r,fe=U===null,Ce=U===U,ke=fn(U);if(x)var xe=d||Ce;else H?xe=Ce&&(d||re):O?xe=Ce&&re&&(d||!fe):G?xe=Ce&&re&&!fe&&(d||!ke):fe||ke?xe=!1:xe=d?U<=i:U<i;xe?m=z+1:y=z}return Rt(y,Le)}function $p(n,i){for(var s=-1,d=n.length,m=0,y=[];++s<d;){var x=n[s],O=i?i(x):x;if(!s||!Ln(O,G)){var G=O;y[m++]=x===0?0:x}}return y}function Kp(n){return typeof n=="number"?n:fn(n)?S:+n}function cn(n){if(typeof n=="string")return n;if(Oe(n))return at(n,cn)+"";if(fn(n))return Bp?Bp.call(n):"";var i=n+"";return i=="0"&&1/n==-de?"-0":i}function Gr(n,i,s){var d=-1,m=ns,y=n.length,x=!0,O=[],G=O;if(s)x=!1,m=Ea;else if(y>=o){var H=i?null:Tw(n);if(H)return is(H);x=!1,m=Ru,G=new oi}else G=i?[]:O;e:for(;++d<y;){var z=n[d],U=i?i(z):z;if(z=s||z!==0?z:0,x&&U===U){for(var re=G.length;re--;)if(G[re]===U)continue e;i&&G.push(U),O.push(z)}else m(G,U,s)||(G!==O&&G.push(U),O.push(z))}return O}function $a(n,i){return i=Rr(i,n),n=Fg(n,i),n==null||delete n[qn(Fn(i))]}function eg(n,i,s,d){return zu(n,i,s(li(n,i)),d)}function ws(n,i,s,d){for(var m=n.length,y=d?m:-1;(d?y--:++y<m)&&i(n[y],y,n););return s?En(n,d?0:y,d?y+1:m):En(n,d?y+1:0,d?m:y)}function tg(n,i){var s=n;return s instanceof We&&(s=s.value()),Fa(i,function(d,m){return m.func.apply(m.thisArg,Or([d],m.args))},s)}function Ka(n,i,s){var d=n.length;if(d<2)return d?Gr(n[0]):[];for(var m=-1,y=M(d);++m<d;)for(var x=n[m],O=-1;++O<d;)O!=m&&(y[m]=Wu(y[m]||x,n[O],i,s));return Gr(Tt(y,1),i,s)}function ng(n,i,s){for(var d=-1,m=n.length,y=i.length,x={};++d<m;){var O=d<y?i[d]:r;s(x,n[d],O)}return x}function ec(n){return mt(n)?n:[]}function tc(n){return typeof n=="function"?n:tn}function Rr(n,i){return Oe(n)?n:cc(n,i)?[n]:Bg($e(n))}var Iw=Ne;function kr(n,i,s){var d=n.length;return s=s===r?d:s,!i&&s>=d?n:En(n,i,s)}var rg=sA||function(n){return ze.clearTimeout(n)};function ig(n,i){if(i)return n.slice();var s=n.length,d=Sp?Sp(s):new n.constructor(s);return n.copy(d),d}function nc(n){var i=new n.constructor(n.byteLength);return new cs(i).set(new cs(n)),i}function Cw(n,i){var s=i?nc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.byteLength)}function xw(n){var i=new n.constructor(n.source,In.exec(n));return i.lastIndex=n.lastIndex,i}function Aw(n){return Nu?it(Nu.call(n)):{}}function ug(n,i){var s=i?nc(n.buffer):n.buffer;return new n.constructor(s,n.byteOffset,n.length)}function og(n,i){if(n!==i){var s=n!==r,d=n===null,m=n===n,y=fn(n),x=i!==r,O=i===null,G=i===i,H=fn(i);if(!O&&!H&&!y&&n>i||y&&x&&G&&!O&&!H||d&&x&&G||!s&&G||!m)return 1;if(!d&&!y&&!H&&n<i||H&&s&&m&&!d&&!y||O&&s&&m||!x&&m||!G)return-1}return 0}function ww(n,i,s){for(var d=-1,m=n.criteria,y=i.criteria,x=m.length,O=s.length;++d<x;){var G=og(m[d],y[d]);if(G){if(d>=O)return G;var H=s[d];return G*(H=="desc"?-1:1)}}return n.index-i.index}function sg(n,i,s,d){for(var m=-1,y=n.length,x=s.length,O=-1,G=i.length,H=St(y-x,0),z=M(G+H),U=!d;++O<G;)z[O]=i[O];for(;++m<x;)(U||m<y)&&(z[s[m]]=n[m]);for(;H--;)z[O++]=n[m++];return z}function lg(n,i,s,d){for(var m=-1,y=n.length,x=-1,O=s.length,G=-1,H=i.length,z=St(y-O,0),U=M(z+H),re=!d;++m<z;)U[m]=n[m];for(var fe=m;++G<H;)U[fe+G]=i[G];for(;++x<O;)(re||m<y)&&(U[fe+s[x]]=n[m++]);return U}function $t(n,i){var s=-1,d=n.length;for(i||(i=M(d));++s<d;)i[s]=n[s];return i}function Qn(n,i,s,d){var m=!s;s||(s={});for(var y=-1,x=i.length;++y<x;){var O=i[y],G=d?d(s[O],n[O],O,s,n):r;G===r&&(G=n[O]),m?ar(s,O,G):Vu(s,O,G)}return s}function Sw(n,i){return Qn(n,ac(n),i)}function Ew(n,i){return Qn(n,Cg(n),i)}function Ss(n,i){return function(s,d){var m=Oe(s)?Bx:UA,y=i?i():{};return m(s,n,Ie(d,2),y)}}function $i(n){return Ne(function(i,s){var d=-1,m=s.length,y=m>1?s[m-1]:r,x=m>2?s[2]:r;for(y=n.length>3&&typeof y=="function"?(m--,y):r,x&&Xt(s[0],s[1],x)&&(y=m<3?r:y,m=1),i=it(i);++d<m;){var O=s[d];O&&n(i,O,d,y)}return i})}function ag(n,i){return function(s,d){if(s==null)return s;if(!Kt(s))return n(s,d);for(var m=s.length,y=i?m:-1,x=it(s);(i?y--:++y<m)&&d(x[y],y,x)!==!1;);return s}}function cg(n){return function(i,s,d){for(var m=-1,y=it(i),x=d(i),O=x.length;O--;){var G=x[n?O:++m];if(s(y[G],G,y)===!1)break}return i}}function Fw(n,i,s){var d=i&F,m=Zu(n);function y(){var x=this&&this!==ze&&this instanceof y?m:n;return x.apply(d?s:this,arguments)}return y}function fg(n){return function(i){i=$e(i);var s=Zi(i)?Rn(i):r,d=s?s[0]:i.charAt(0),m=s?kr(s,1).join(""):i.slice(1);return d[n]()+m}}function Ki(n){return function(i){return Fa(am(lm(i).replace(_u,"")),n,"")}}function Zu(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=qi(n.prototype),d=n.apply(s,i);return ft(d)?d:s}}function Pw(n,i,s){var d=Zu(n);function m(){for(var y=arguments.length,x=M(y),O=y,G=eu(m);O--;)x[O]=arguments[O];var H=y<3&&x[0]!==G&&x[y-1]!==G?[]:Tr(x,G);if(y-=H.length,y<s)return mg(n,i,Es,m.placeholder,r,x,H,r,r,s-y);var z=this&&this!==ze&&this instanceof m?d:n;return Ft(z,this,x)}return m}function dg(n){return function(i,s,d){var m=it(i);if(!Kt(i)){var y=Ie(s,3);i=Pt(i),s=function(O){return y(m[O],O,m)}}var x=n(i,s,d);return x>-1?m[y?i[x]:x]:r}}function hg(n){return fr(function(i){var s=i.length,d=s,m=wn.prototype.thru;for(n&&i.reverse();d--;){var y=i[d];if(typeof y!="function")throw new An(a);if(m&&!x&&Ts(y)=="wrapper")var x=new wn([],!0)}for(d=x?d:s;++d<s;){y=i[d];var O=Ts(y),G=O=="wrapper"?sc(y):r;G&&fc(G[0])&&G[1]==(J|k|V|N)&&!G[4].length&&G[9]==1?x=x[Ts(G[0])].apply(x,G[3]):x=y.length==1&&fc(y)?x[O]():x.thru(y)}return function(){var H=arguments,z=H[0];if(x&&H.length==1&&Oe(z))return x.plant(z).value();for(var U=0,re=s?i[U].apply(this,H):z;++U<s;)re=i[U].call(this,re);return re}})}function Es(n,i,s,d,m,y,x,O,G,H){var z=i&J,U=i&F,re=i&P,fe=i&(k|L),Ce=i&j,ke=re?r:Zu(n);function xe(){for(var Ve=arguments.length,Ze=M(Ve),dn=Ve;dn--;)Ze[dn]=arguments[dn];if(fe)var Ht=eu(xe),hn=Vx(Ze,Ht);if(d&&(Ze=sg(Ze,d,m,fe)),y&&(Ze=lg(Ze,y,x,fe)),Ve-=hn,fe&&Ve<H){var bt=Tr(Ze,Ht);return mg(n,i,Es,xe.placeholder,s,Ze,bt,O,G,H-Ve)}var Dn=U?s:this,gr=re?Dn[n]:n;return Ve=Ze.length,O?Ze=Uw(Ze,O):Ce&&Ve>1&&Ze.reverse(),z&&G<Ve&&(Ze.length=G),this&&this!==ze&&this instanceof xe&&(gr=ke||Zu(gr)),gr.apply(Dn,Ze)}return xe}function pg(n,i){return function(s,d){return nw(s,n,i(d),{})}}function Fs(n,i){return function(s,d){var m;if(s===r&&d===r)return i;if(s!==r&&(m=s),d!==r){if(m===r)return d;typeof s=="string"||typeof d=="string"?(s=cn(s),d=cn(d)):(s=Kp(s),d=Kp(d)),m=n(s,d)}return m}}function rc(n){return fr(function(i){return i=at(i,an(Ie())),Ne(function(s){var d=this;return n(i,function(m){return Ft(m,d,s)})})})}function Ps(n,i){i=i===r?" ":cn(i);var s=i.length;if(s<2)return s?Qa(i,n):i;var d=Qa(i,ps(n/Yi(i)));return Zi(i)?kr(Rn(d),0,n).join(""):d.slice(0,n)}function Ow(n,i,s,d){var m=i&F,y=Zu(n);function x(){for(var O=-1,G=arguments.length,H=-1,z=d.length,U=M(z+G),re=this&&this!==ze&&this instanceof x?y:n;++H<z;)U[H]=d[H];for(;G--;)U[H++]=arguments[++O];return Ft(re,m?s:this,U)}return x}function gg(n){return function(i,s,d){return d&&typeof d!="number"&&Xt(i,s,d)&&(s=d=r),i=pr(i),s===r?(s=i,i=0):s=pr(s),d=d===r?i<s?1:-1:pr(d),pw(i,s,d,n)}}function Os(n){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=Pn(i),s=Pn(s)),n(i,s)}}function mg(n,i,s,d,m,y,x,O,G,H){var z=i&k,U=z?x:r,re=z?r:x,fe=z?y:r,Ce=z?r:y;i|=z?V:R,i&=~(z?R:V),i&D||(i&=~(F|P));var ke=[n,i,m,fe,U,Ce,re,O,G,H],xe=s.apply(r,ke);return fc(n)&&Pg(xe,ke),xe.placeholder=d,Og(xe,n,i)}function ic(n){var i=wt[n];return function(s,d){if(s=Pn(s),d=d==null?0:Rt(Re(d),292),d&&Op(s)){var m=($e(s)+"e").split("e"),y=i(m[0]+"e"+(+m[1]+d));return m=($e(y)+"e").split("e"),+(m[0]+"e"+(+m[1]-d))}return i(s)}}var Tw=ji&&1/is(new ji([,-0]))[1]==de?function(n){return new ji(n)}:Ec;function bg(n){return function(i){var s=kt(i);return s==At?Ra(i):s==Mt?Jx(i):Nx(i,n(i))}}function cr(n,i,s,d,m,y,x,O){var G=i&P;if(!G&&typeof n!="function")throw new An(a);var H=d?d.length:0;if(H||(i&=~(V|R),d=m=r),x=x===r?x:St(Re(x),0),O=O===r?O:Re(O),H-=m?m.length:0,i&R){var z=d,U=m;d=m=r}var re=G?r:sc(n),fe=[n,i,s,d,m,z,U,y,x,O];if(re&&Zw(fe,re),n=fe[0],i=fe[1],s=fe[2],d=fe[3],m=fe[4],O=fe[9]=fe[9]===r?G?0:n.length:St(fe[9]-H,0),!O&&i&(k|L)&&(i&=~(k|L)),!i||i==F)var Ce=Fw(n,i,s);else i==k||i==L?Ce=Pw(n,i,O):(i==V||i==(F|V))&&!m.length?Ce=Ow(n,i,s,d):Ce=Es.apply(r,fe);var ke=re?qp:Pg;return Og(ke(Ce,fe),n,i)}function vg(n,i,s,d){return n===r||Ln(n,Ui[s])&&!Ke.call(d,s)?i:n}function yg(n,i,s,d,m,y){return ft(n)&&ft(i)&&(y.set(i,n),xs(n,i,r,yg,y),y.delete(i)),n}function Bw(n){return Uu(n)?r:n}function Ig(n,i,s,d,m,y){var x=s&E,O=n.length,G=i.length;if(O!=G&&!(x&&G>O))return!1;var H=y.get(n),z=y.get(i);if(H&&z)return H==i&&z==n;var U=-1,re=!0,fe=s&A?new oi:r;for(y.set(n,i),y.set(i,n);++U<O;){var Ce=n[U],ke=i[U];if(d)var xe=x?d(ke,Ce,U,i,n,y):d(Ce,ke,U,n,i,y);if(xe!==r){if(xe)continue;re=!1;break}if(fe){if(!Pa(i,function(Ve,Ze){if(!Ru(fe,Ze)&&(Ce===Ve||m(Ce,Ve,s,d,y)))return fe.push(Ze)})){re=!1;break}}else if(!(Ce===ke||m(Ce,ke,s,d,y))){re=!1;break}}return y.delete(n),y.delete(i),re}function _w(n,i,s,d,m,y,x){switch(s){case pe:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case te:return!(n.byteLength!=i.byteLength||!y(new cs(n),new cs(i)));case ee:case oe:case vn:return Ln(+n,+i);case Me:return n.name==i.name&&n.message==i.message;case Yn:case tr:return n==i+"";case At:var O=Ra;case Mt:var G=d&E;if(O||(O=is),n.size!=i.size&&!G)return!1;var H=x.get(n);if(H)return H==i;d|=A,x.set(n,i);var z=Ig(O(n),O(i),d,m,y,x);return x.delete(n),z;case Er:if(Nu)return Nu.call(n)==Nu.call(i)}return!1}function Gw(n,i,s,d,m,y){var x=s&E,O=uc(n),G=O.length,H=uc(i),z=H.length;if(G!=z&&!x)return!1;for(var U=G;U--;){var re=O[U];if(!(x?re in i:Ke.call(i,re)))return!1}var fe=y.get(n),Ce=y.get(i);if(fe&&Ce)return fe==i&&Ce==n;var ke=!0;y.set(n,i),y.set(i,n);for(var xe=x;++U<G;){re=O[U];var Ve=n[re],Ze=i[re];if(d)var dn=x?d(Ze,Ve,re,i,n,y):d(Ve,Ze,re,n,i,y);if(!(dn===r?Ve===Ze||m(Ve,Ze,s,d,y):dn)){ke=!1;break}xe||(xe=re=="constructor")}if(ke&&!xe){var Ht=n.constructor,hn=i.constructor;Ht!=hn&&"constructor"in n&&"constructor"in i&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof hn=="function"&&hn instanceof hn)&&(ke=!1)}return y.delete(n),y.delete(i),ke}function fr(n){return hc(Eg(n,r,kg),n+"")}function uc(n){return Vp(n,Pt,ac)}function oc(n){return Vp(n,en,Cg)}var sc=ms?function(n){return ms.get(n)}:Ec;function Ts(n){for(var i=n.name+"",s=Qi[i],d=Ke.call(Qi,i)?s.length:0;d--;){var m=s[d],y=m.func;if(y==null||y==n)return m.name}return i}function eu(n){var i=Ke.call(v,"placeholder")?v:n;return i.placeholder}function Ie(){var n=v.iteratee||wc;return n=n===wc?Hp:n,arguments.length?n(arguments[0],arguments[1]):n}function Bs(n,i){var s=n.__data__;return Ww(i)?s[typeof i=="string"?"string":"hash"]:s.map}function lc(n){for(var i=Pt(n),s=i.length;s--;){var d=i[s],m=n[d];i[s]=[d,m,wg(m)]}return i}function ai(n,i){var s=zx(n,i);return Xp(s)?s:r}function Rw(n){var i=Ke.call(n,ii),s=n[ii];try{n[ii]=r;var d=!0}catch{}var m=ls.call(n);return d&&(i?n[ii]=s:delete n[ii]),m}var ac=La?function(n){return n==null?[]:(n=it(n),Pr(La(n),function(i){return Fp.call(n,i)}))}:Fc,Cg=La?function(n){for(var i=[];n;)Or(i,ac(n)),n=fs(n);return i}:Fc,kt=Wt;(Da&&kt(new Da(new ArrayBuffer(1)))!=pe||Lu&&kt(new Lu)!=At||Ma&&kt(Ma.resolve())!=Ri||ji&&kt(new ji)!=Mt||Du&&kt(new Du)!=nr)&&(kt=function(n){var i=Wt(n),s=i==Ut?n.constructor:r,d=s?ci(s):"";if(d)switch(d){case mA:return pe;case bA:return At;case vA:return Ri;case yA:return Mt;case IA:return nr}return i});function kw(n,i,s){for(var d=-1,m=s.length;++d<m;){var y=s[d],x=y.size;switch(y.type){case"drop":n+=x;break;case"dropRight":i-=x;break;case"take":i=Rt(i,n+x);break;case"takeRight":n=St(n,i-x);break}}return{start:n,end:i}}function Lw(n){var i=n.match(ir);return i?i[1].split(ra):[]}function xg(n,i,s){i=Rr(i,n);for(var d=-1,m=i.length,y=!1;++d<m;){var x=qn(i[d]);if(!(y=n!=null&&s(n,x)))break;n=n[x]}return y||++d!=m?y:(m=n==null?0:n.length,!!m&&Ms(m)&&dr(x,m)&&(Oe(n)||fi(n)))}function Dw(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&Ke.call(n,"index")&&(s.index=n.index,s.input=n.input),s}function Ag(n){return typeof n.constructor=="function"&&!Yu(n)?qi(fs(n)):{}}function Mw(n,i,s){var d=n.constructor;switch(i){case te:return nc(n);case ee:case oe:return new d(+n);case pe:return Cw(n,s);case _e:case Ge:case Et:case jt:case Nt:case yn:case Qt:case It:case on:return ug(n,s);case At:return new d;case vn:case tr:return new d(n);case Yn:return xw(n);case Mt:return new d;case Er:return Aw(n)}}function Nw(n,i){var s=i.length;if(!s)return n;var d=s-1;return i[d]=(s>1?"& ":"")+i[d],i=i.join(s>2?", ":" "),n.replace(Ou,`{
9
+ /* [wrapped with `+i+`] */
10
+ `)}function Vw(n){return Oe(n)||fi(n)||!!(Pp&&n&&n[Pp])}function dr(n,i){var s=typeof n;return i=i??Se,!!i&&(s=="number"||s!="symbol"&&da.test(n))&&n>-1&&n%1==0&&n<i}function Xt(n,i,s){if(!ft(s))return!1;var d=typeof i;return(d=="number"?Kt(s)&&dr(i,s.length):d=="string"&&i in s)?Ln(s[i],n):!1}function cc(n,i){if(Oe(n))return!1;var s=typeof n;return s=="number"||s=="symbol"||s=="boolean"||n==null||fn(n)?!0:ea.test(n)||!$r.test(n)||i!=null&&n in it(i)}function Ww(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function fc(n){var i=Ts(n),s=v[i];if(typeof s!="function"||!(i in We.prototype))return!1;if(n===s)return!0;var d=sc(s);return!!d&&n===d[0]}function Xw(n){return!!wp&&wp in n}var Hw=os?hr:Pc;function Yu(n){var i=n&&n.constructor,s=typeof i=="function"&&i.prototype||Ui;return n===s}function wg(n){return n===n&&!ft(n)}function Sg(n,i){return function(s){return s==null?!1:s[n]===i&&(i!==r||n in it(s))}}function zw(n){var i=Ls(n,function(d){return s.size===h&&s.clear(),d}),s=i.cache;return i}function Zw(n,i){var s=n[1],d=i[1],m=s|d,y=m<(F|P|J),x=d==J&&s==k||d==J&&s==N&&n[7].length<=i[8]||d==(J|N)&&i[7].length<=i[8]&&s==k;if(!(y||x))return n;d&F&&(n[2]=i[2],m|=s&F?0:D);var O=i[3];if(O){var G=n[3];n[3]=G?sg(G,O,i[4]):O,n[4]=G?Tr(n[3],p):i[4]}return O=i[5],O&&(G=n[5],n[5]=G?lg(G,O,i[6]):O,n[6]=G?Tr(n[5],p):i[6]),O=i[7],O&&(n[7]=O),d&J&&(n[8]=n[8]==null?i[8]:Rt(n[8],i[8])),n[9]==null&&(n[9]=i[9]),n[0]=i[0],n[1]=m,n}function Yw(n){var i=[];if(n!=null)for(var s in it(n))i.push(s);return i}function Jw(n){return ls.call(n)}function Eg(n,i,s){return i=St(i===r?n.length-1:i,0),function(){for(var d=arguments,m=-1,y=St(d.length-i,0),x=M(y);++m<y;)x[m]=d[i+m];m=-1;for(var O=M(i+1);++m<i;)O[m]=d[m];return O[i]=s(x),Ft(n,this,O)}}function Fg(n,i){return i.length<2?n:li(n,En(i,0,-1))}function Uw(n,i){for(var s=n.length,d=Rt(i.length,s),m=$t(n);d--;){var y=i[d];n[d]=dr(y,s)?m[y]:r}return n}function dc(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}var Pg=Tg(qp),Ju=aA||function(n,i){return ze.setTimeout(n,i)},hc=Tg(bw);function Og(n,i,s){var d=i+"";return hc(n,Nw(d,jw(Lw(d),s)))}function Tg(n){var i=0,s=0;return function(){var d=hA(),m=ve-(d-s);if(s=d,m>0){if(++i>=Q)return arguments[0]}else i=0;return n.apply(r,arguments)}}function _s(n,i){var s=-1,d=n.length,m=d-1;for(i=i===r?d:i;++s<i;){var y=ja(s,m),x=n[y];n[y]=n[s],n[s]=x}return n.length=i,n}var Bg=zw(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(ta,function(s,d,m,y){i.push(m?y.replace(oa,"$1"):d||s)}),i});function qn(n){if(typeof n=="string"||fn(n))return n;var i=n+"";return i=="0"&&1/n==-de?"-0":i}function ci(n){if(n!=null){try{return ss.call(n)}catch{}try{return n+""}catch{}}return""}function jw(n,i){return xn(Je,function(s){var d="_."+s[0];i&s[1]&&!ns(n,d)&&n.push(d)}),n.sort()}function _g(n){if(n instanceof We)return n.clone();var i=new wn(n.__wrapped__,n.__chain__);return i.__actions__=$t(n.__actions__),i.__index__=n.__index__,i.__values__=n.__values__,i}function Qw(n,i,s){(s?Xt(n,i,s):i===r)?i=1:i=St(Re(i),0);var d=n==null?0:n.length;if(!d||i<1)return[];for(var m=0,y=0,x=M(ps(d/i));m<d;)x[y++]=En(n,m,m+=i);return x}function qw(n){for(var i=-1,s=n==null?0:n.length,d=0,m=[];++i<s;){var y=n[i];y&&(m[d++]=y)}return m}function $w(){var n=arguments.length;if(!n)return[];for(var i=M(n-1),s=arguments[0],d=n;d--;)i[d-1]=arguments[d];return Or(Oe(s)?$t(s):[s],Tt(i,1))}var Kw=Ne(function(n,i){return mt(n)?Wu(n,Tt(i,1,mt,!0)):[]}),eS=Ne(function(n,i){var s=Fn(i);return mt(s)&&(s=r),mt(n)?Wu(n,Tt(i,1,mt,!0),Ie(s,2)):[]}),tS=Ne(function(n,i){var s=Fn(i);return mt(s)&&(s=r),mt(n)?Wu(n,Tt(i,1,mt,!0),r,s):[]});function nS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:Re(i),En(n,i<0?0:i,d)):[]}function rS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:Re(i),i=d-i,En(n,0,i<0?0:i)):[]}function iS(n,i){return n&&n.length?ws(n,Ie(i,3),!0,!0):[]}function uS(n,i){return n&&n.length?ws(n,Ie(i,3),!0):[]}function oS(n,i,s,d){var m=n==null?0:n.length;return m?(s&&typeof s!="number"&&Xt(n,i,s)&&(s=0,d=m),$A(n,i,s,d)):[]}function Gg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=s==null?0:Re(s);return m<0&&(m=St(d+m,0)),rs(n,Ie(i,3),m)}function Rg(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=d-1;return s!==r&&(m=Re(s),m=s<0?St(d+m,0):Rt(m,d-1)),rs(n,Ie(i,3),m,!0)}function kg(n){var i=n==null?0:n.length;return i?Tt(n,1):[]}function sS(n){var i=n==null?0:n.length;return i?Tt(n,de):[]}function lS(n,i){var s=n==null?0:n.length;return s?(i=i===r?1:Re(i),Tt(n,i)):[]}function aS(n){for(var i=-1,s=n==null?0:n.length,d={};++i<s;){var m=n[i];d[m[0]]=m[1]}return d}function Lg(n){return n&&n.length?n[0]:r}function cS(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=s==null?0:Re(s);return m<0&&(m=St(d+m,0)),zi(n,i,m)}function fS(n){var i=n==null?0:n.length;return i?En(n,0,-1):[]}var dS=Ne(function(n){var i=at(n,ec);return i.length&&i[0]===n[0]?za(i):[]}),hS=Ne(function(n){var i=Fn(n),s=at(n,ec);return i===Fn(s)?i=r:s.pop(),s.length&&s[0]===n[0]?za(s,Ie(i,2)):[]}),pS=Ne(function(n){var i=Fn(n),s=at(n,ec);return i=typeof i=="function"?i:r,i&&s.pop(),s.length&&s[0]===n[0]?za(s,r,i):[]});function gS(n,i){return n==null?"":fA.call(n,i)}function Fn(n){var i=n==null?0:n.length;return i?n[i-1]:r}function mS(n,i,s){var d=n==null?0:n.length;if(!d)return-1;var m=d;return s!==r&&(m=Re(s),m=m<0?St(d+m,0):Rt(m,d-1)),i===i?jx(n,i,m):rs(n,mp,m,!0)}function bS(n,i){return n&&n.length?Jp(n,Re(i)):r}var vS=Ne(Dg);function Dg(n,i){return n&&n.length&&i&&i.length?Ua(n,i):n}function yS(n,i,s){return n&&n.length&&i&&i.length?Ua(n,i,Ie(s,2)):n}function IS(n,i,s){return n&&n.length&&i&&i.length?Ua(n,i,r,s):n}var CS=fr(function(n,i){var s=n==null?0:n.length,d=Va(n,i);return Qp(n,at(i,function(m){return dr(m,s)?+m:m}).sort(og)),d});function xS(n,i){var s=[];if(!(n&&n.length))return s;var d=-1,m=[],y=n.length;for(i=Ie(i,3);++d<y;){var x=n[d];i(x,d,n)&&(s.push(x),m.push(d))}return Qp(n,m),s}function pc(n){return n==null?n:gA.call(n)}function AS(n,i,s){var d=n==null?0:n.length;return d?(s&&typeof s!="number"&&Xt(n,i,s)?(i=0,s=d):(i=i==null?0:Re(i),s=s===r?d:Re(s)),En(n,i,s)):[]}function wS(n,i){return As(n,i)}function SS(n,i,s){return qa(n,i,Ie(s,2))}function ES(n,i){var s=n==null?0:n.length;if(s){var d=As(n,i);if(d<s&&Ln(n[d],i))return d}return-1}function FS(n,i){return As(n,i,!0)}function PS(n,i,s){return qa(n,i,Ie(s,2),!0)}function OS(n,i){var s=n==null?0:n.length;if(s){var d=As(n,i,!0)-1;if(Ln(n[d],i))return d}return-1}function TS(n){return n&&n.length?$p(n):[]}function BS(n,i){return n&&n.length?$p(n,Ie(i,2)):[]}function _S(n){var i=n==null?0:n.length;return i?En(n,1,i):[]}function GS(n,i,s){return n&&n.length?(i=s||i===r?1:Re(i),En(n,0,i<0?0:i)):[]}function RS(n,i,s){var d=n==null?0:n.length;return d?(i=s||i===r?1:Re(i),i=d-i,En(n,i<0?0:i,d)):[]}function kS(n,i){return n&&n.length?ws(n,Ie(i,3),!1,!0):[]}function LS(n,i){return n&&n.length?ws(n,Ie(i,3)):[]}var DS=Ne(function(n){return Gr(Tt(n,1,mt,!0))}),MS=Ne(function(n){var i=Fn(n);return mt(i)&&(i=r),Gr(Tt(n,1,mt,!0),Ie(i,2))}),NS=Ne(function(n){var i=Fn(n);return i=typeof i=="function"?i:r,Gr(Tt(n,1,mt,!0),r,i)});function VS(n){return n&&n.length?Gr(n):[]}function WS(n,i){return n&&n.length?Gr(n,Ie(i,2)):[]}function XS(n,i){return i=typeof i=="function"?i:r,n&&n.length?Gr(n,r,i):[]}function gc(n){if(!(n&&n.length))return[];var i=0;return n=Pr(n,function(s){if(mt(s))return i=St(s.length,i),!0}),_a(i,function(s){return at(n,Oa(s))})}function Mg(n,i){if(!(n&&n.length))return[];var s=gc(n);return i==null?s:at(s,function(d){return Ft(i,r,d)})}var HS=Ne(function(n,i){return mt(n)?Wu(n,i):[]}),zS=Ne(function(n){return Ka(Pr(n,mt))}),ZS=Ne(function(n){var i=Fn(n);return mt(i)&&(i=r),Ka(Pr(n,mt),Ie(i,2))}),YS=Ne(function(n){var i=Fn(n);return i=typeof i=="function"?i:r,Ka(Pr(n,mt),r,i)}),JS=Ne(gc);function US(n,i){return ng(n||[],i||[],Vu)}function jS(n,i){return ng(n||[],i||[],zu)}var QS=Ne(function(n){var i=n.length,s=i>1?n[i-1]:r;return s=typeof s=="function"?(n.pop(),s):r,Mg(n,s)});function Ng(n){var i=v(n);return i.__chain__=!0,i}function qS(n,i){return i(n),n}function Gs(n,i){return i(n)}var $S=fr(function(n){var i=n.length,s=i?n[0]:0,d=this.__wrapped__,m=function(y){return Va(y,n)};return i>1||this.__actions__.length||!(d instanceof We)||!dr(s)?this.thru(m):(d=d.slice(s,+s+(i?1:0)),d.__actions__.push({func:Gs,args:[m],thisArg:r}),new wn(d,this.__chain__).thru(function(y){return i&&!y.length&&y.push(r),y}))});function KS(){return Ng(this)}function eE(){return new wn(this.value(),this.__chain__)}function tE(){this.__values__===r&&(this.__values__=Kg(this.value()));var n=this.__index__>=this.__values__.length,i=n?r:this.__values__[this.__index__++];return{done:n,value:i}}function nE(){return this}function rE(n){for(var i,s=this;s instanceof vs;){var d=_g(s);d.__index__=0,d.__values__=r,i?m.__wrapped__=d:i=d;var m=d;s=s.__wrapped__}return m.__wrapped__=n,i}function iE(){var n=this.__wrapped__;if(n instanceof We){var i=n;return this.__actions__.length&&(i=new We(this)),i=i.reverse(),i.__actions__.push({func:Gs,args:[pc],thisArg:r}),new wn(i,this.__chain__)}return this.thru(pc)}function uE(){return tg(this.__wrapped__,this.__actions__)}var oE=Ss(function(n,i,s){Ke.call(n,s)?++n[s]:ar(n,s,1)});function sE(n,i,s){var d=Oe(n)?pp:qA;return s&&Xt(n,i,s)&&(i=r),d(n,Ie(i,3))}function lE(n,i){var s=Oe(n)?Pr:Mp;return s(n,Ie(i,3))}var aE=dg(Gg),cE=dg(Rg);function fE(n,i){return Tt(Rs(n,i),1)}function dE(n,i){return Tt(Rs(n,i),de)}function hE(n,i,s){return s=s===r?1:Re(s),Tt(Rs(n,i),s)}function Vg(n,i){var s=Oe(n)?xn:_r;return s(n,Ie(i,3))}function Wg(n,i){var s=Oe(n)?_x:Dp;return s(n,Ie(i,3))}var pE=Ss(function(n,i,s){Ke.call(n,s)?n[s].push(i):ar(n,s,[i])});function gE(n,i,s,d){n=Kt(n)?n:nu(n),s=s&&!d?Re(s):0;var m=n.length;return s<0&&(s=St(m+s,0)),Ns(n)?s<=m&&n.indexOf(i,s)>-1:!!m&&zi(n,i,s)>-1}var mE=Ne(function(n,i,s){var d=-1,m=typeof i=="function",y=Kt(n)?M(n.length):[];return _r(n,function(x){y[++d]=m?Ft(i,x,s):Xu(x,i,s)}),y}),bE=Ss(function(n,i,s){ar(n,s,i)});function Rs(n,i){var s=Oe(n)?at:zp;return s(n,Ie(i,3))}function vE(n,i,s,d){return n==null?[]:(Oe(i)||(i=i==null?[]:[i]),s=d?r:s,Oe(s)||(s=s==null?[]:[s]),Up(n,i,s))}var yE=Ss(function(n,i,s){n[s?0:1].push(i)},function(){return[[],[]]});function IE(n,i,s){var d=Oe(n)?Fa:vp,m=arguments.length<3;return d(n,Ie(i,4),s,m,_r)}function CE(n,i,s){var d=Oe(n)?Gx:vp,m=arguments.length<3;return d(n,Ie(i,4),s,m,Dp)}function xE(n,i){var s=Oe(n)?Pr:Mp;return s(n,Ds(Ie(i,3)))}function AE(n){var i=Oe(n)?Gp:gw;return i(n)}function wE(n,i,s){(s?Xt(n,i,s):i===r)?i=1:i=Re(i);var d=Oe(n)?YA:mw;return d(n,i)}function SE(n){var i=Oe(n)?JA:vw;return i(n)}function EE(n){if(n==null)return 0;if(Kt(n))return Ns(n)?Yi(n):n.length;var i=kt(n);return i==At||i==Mt?n.size:Ya(n).length}function FE(n,i,s){var d=Oe(n)?Pa:yw;return s&&Xt(n,i,s)&&(i=r),d(n,Ie(i,3))}var PE=Ne(function(n,i){if(n==null)return[];var s=i.length;return s>1&&Xt(n,i[0],i[1])?i=[]:s>2&&Xt(i[0],i[1],i[2])&&(i=[i[0]]),Up(n,Tt(i,1),[])}),ks=lA||function(){return ze.Date.now()};function OE(n,i){if(typeof i!="function")throw new An(a);return n=Re(n),function(){if(--n<1)return i.apply(this,arguments)}}function Xg(n,i,s){return i=s?r:i,i=n&&i==null?n.length:i,cr(n,J,r,r,r,r,i)}function Hg(n,i){var s;if(typeof i!="function")throw new An(a);return n=Re(n),function(){return--n>0&&(s=i.apply(this,arguments)),n<=1&&(i=r),s}}var mc=Ne(function(n,i,s){var d=F;if(s.length){var m=Tr(s,eu(mc));d|=V}return cr(n,d,i,s,m)}),zg=Ne(function(n,i,s){var d=F|P;if(s.length){var m=Tr(s,eu(zg));d|=V}return cr(i,d,n,s,m)});function Zg(n,i,s){i=s?r:i;var d=cr(n,k,r,r,r,r,r,i);return d.placeholder=Zg.placeholder,d}function Yg(n,i,s){i=s?r:i;var d=cr(n,L,r,r,r,r,r,i);return d.placeholder=Yg.placeholder,d}function Jg(n,i,s){var d,m,y,x,O,G,H=0,z=!1,U=!1,re=!0;if(typeof n!="function")throw new An(a);i=Pn(i)||0,ft(s)&&(z=!!s.leading,U="maxWait"in s,y=U?St(Pn(s.maxWait)||0,i):y,re="trailing"in s?!!s.trailing:re);function fe(bt){var Dn=d,gr=m;return d=m=r,H=bt,x=n.apply(gr,Dn),x}function Ce(bt){return H=bt,O=Ju(Ve,i),z?fe(bt):x}function ke(bt){var Dn=bt-G,gr=bt-H,dm=i-Dn;return U?Rt(dm,y-gr):dm}function xe(bt){var Dn=bt-G,gr=bt-H;return G===r||Dn>=i||Dn<0||U&&gr>=y}function Ve(){var bt=ks();if(xe(bt))return Ze(bt);O=Ju(Ve,ke(bt))}function Ze(bt){return O=r,re&&d?fe(bt):(d=m=r,x)}function dn(){O!==r&&rg(O),H=0,d=G=m=O=r}function Ht(){return O===r?x:Ze(ks())}function hn(){var bt=ks(),Dn=xe(bt);if(d=arguments,m=this,G=bt,Dn){if(O===r)return Ce(G);if(U)return rg(O),O=Ju(Ve,i),fe(G)}return O===r&&(O=Ju(Ve,i)),x}return hn.cancel=dn,hn.flush=Ht,hn}var TE=Ne(function(n,i){return Lp(n,1,i)}),BE=Ne(function(n,i,s){return Lp(n,Pn(i)||0,s)});function _E(n){return cr(n,j)}function Ls(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new An(a);var s=function(){var d=arguments,m=i?i.apply(this,d):d[0],y=s.cache;if(y.has(m))return y.get(m);var x=n.apply(this,d);return s.cache=y.set(m,x)||y,x};return s.cache=new(Ls.Cache||lr),s}Ls.Cache=lr;function Ds(n){if(typeof n!="function")throw new An(a);return function(){var i=arguments;switch(i.length){case 0:return!n.call(this);case 1:return!n.call(this,i[0]);case 2:return!n.call(this,i[0],i[1]);case 3:return!n.call(this,i[0],i[1],i[2])}return!n.apply(this,i)}}function GE(n){return Hg(2,n)}var RE=Iw(function(n,i){i=i.length==1&&Oe(i[0])?at(i[0],an(Ie())):at(Tt(i,1),an(Ie()));var s=i.length;return Ne(function(d){for(var m=-1,y=Rt(d.length,s);++m<y;)d[m]=i[m].call(this,d[m]);return Ft(n,this,d)})}),bc=Ne(function(n,i){var s=Tr(i,eu(bc));return cr(n,V,r,i,s)}),Ug=Ne(function(n,i){var s=Tr(i,eu(Ug));return cr(n,R,r,i,s)}),kE=fr(function(n,i){return cr(n,N,r,r,r,i)});function LE(n,i){if(typeof n!="function")throw new An(a);return i=i===r?i:Re(i),Ne(n,i)}function DE(n,i){if(typeof n!="function")throw new An(a);return i=i==null?0:St(Re(i),0),Ne(function(s){var d=s[i],m=kr(s,0,i);return d&&Or(m,d),Ft(n,this,m)})}function ME(n,i,s){var d=!0,m=!0;if(typeof n!="function")throw new An(a);return ft(s)&&(d="leading"in s?!!s.leading:d,m="trailing"in s?!!s.trailing:m),Jg(n,i,{leading:d,maxWait:i,trailing:m})}function NE(n){return Xg(n,1)}function VE(n,i){return bc(tc(i),n)}function WE(){if(!arguments.length)return[];var n=arguments[0];return Oe(n)?n:[n]}function XE(n){return Sn(n,b)}function HE(n,i){return i=typeof i=="function"?i:r,Sn(n,b,i)}function zE(n){return Sn(n,g|b)}function ZE(n,i){return i=typeof i=="function"?i:r,Sn(n,g|b,i)}function YE(n,i){return i==null||kp(n,i,Pt(i))}function Ln(n,i){return n===i||n!==n&&i!==i}var JE=Os(Ha),UE=Os(function(n,i){return n>=i}),fi=Wp(function(){return arguments}())?Wp:function(n){return pt(n)&&Ke.call(n,"callee")&&!Fp.call(n,"callee")},Oe=M.isArray,jE=Vt?an(Vt):rw;function Kt(n){return n!=null&&Ms(n.length)&&!hr(n)}function mt(n){return pt(n)&&Kt(n)}function QE(n){return n===!0||n===!1||pt(n)&&Wt(n)==ee}var Lr=cA||Pc,qE=Gn?an(Gn):iw;function $E(n){return pt(n)&&n.nodeType===1&&!Uu(n)}function KE(n){if(n==null)return!0;if(Kt(n)&&(Oe(n)||typeof n=="string"||typeof n.splice=="function"||Lr(n)||tu(n)||fi(n)))return!n.length;var i=kt(n);if(i==At||i==Mt)return!n.size;if(Yu(n))return!Ya(n).length;for(var s in n)if(Ke.call(n,s))return!1;return!0}function e2(n,i){return Hu(n,i)}function t2(n,i,s){s=typeof s=="function"?s:r;var d=s?s(n,i):r;return d===r?Hu(n,i,r,s):!!d}function vc(n){if(!pt(n))return!1;var i=Wt(n);return i==Me||i==ye||typeof n.message=="string"&&typeof n.name=="string"&&!Uu(n)}function n2(n){return typeof n=="number"&&Op(n)}function hr(n){if(!ft(n))return!1;var i=Wt(n);return i==ct||i==Gt||i==yt||i==ki}function jg(n){return typeof n=="number"&&n==Re(n)}function Ms(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Se}function ft(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}function pt(n){return n!=null&&typeof n=="object"}var Qg=Cn?an(Cn):ow;function r2(n,i){return n===i||Za(n,i,lc(i))}function i2(n,i,s){return s=typeof s=="function"?s:r,Za(n,i,lc(i),s)}function u2(n){return qg(n)&&n!=+n}function o2(n){if(Hw(n))throw new Ee(l);return Xp(n)}function s2(n){return n===null}function l2(n){return n==null}function qg(n){return typeof n=="number"||pt(n)&&Wt(n)==vn}function Uu(n){if(!pt(n)||Wt(n)!=Ut)return!1;var i=fs(n);if(i===null)return!0;var s=Ke.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&ss.call(s)==iA}var yc=Un?an(Un):sw;function a2(n){return jg(n)&&n>=-Se&&n<=Se}var $g=Gu?an(Gu):lw;function Ns(n){return typeof n=="string"||!Oe(n)&&pt(n)&&Wt(n)==tr}function fn(n){return typeof n=="symbol"||pt(n)&&Wt(n)==Er}var tu=ri?an(ri):aw;function c2(n){return n===r}function f2(n){return pt(n)&&kt(n)==nr}function d2(n){return pt(n)&&Wt(n)==X}var h2=Os(Ja),p2=Os(function(n,i){return n<=i});function Kg(n){if(!n)return[];if(Kt(n))return Ns(n)?Rn(n):$t(n);if(ku&&n[ku])return Yx(n[ku]());var i=kt(n),s=i==At?Ra:i==Mt?is:nu;return s(n)}function pr(n){if(!n)return n===0?n:0;if(n=Pn(n),n===de||n===-de){var i=n<0?-1:1;return i*qe}return n===n?n:0}function Re(n){var i=pr(n),s=i%1;return i===i?s?i-s:i:0}function em(n){return n?si(Re(n),0,He):0}function Pn(n){if(typeof n=="number")return n;if(fn(n))return S;if(ft(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=ft(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=yp(n);var s=aa.test(n);return s||fa.test(n)?Pe(n.slice(2),s?2:8):la.test(n)?S:+n}function tm(n){return Qn(n,en(n))}function g2(n){return n?si(Re(n),-Se,Se):n===0?n:0}function $e(n){return n==null?"":cn(n)}var m2=$i(function(n,i){if(Yu(i)||Kt(i)){Qn(i,Pt(i),n);return}for(var s in i)Ke.call(i,s)&&Vu(n,s,i[s])}),nm=$i(function(n,i){Qn(i,en(i),n)}),Vs=$i(function(n,i,s,d){Qn(i,en(i),n,d)}),b2=$i(function(n,i,s,d){Qn(i,Pt(i),n,d)}),v2=fr(Va);function y2(n,i){var s=qi(n);return i==null?s:Rp(s,i)}var I2=Ne(function(n,i){n=it(n);var s=-1,d=i.length,m=d>2?i[2]:r;for(m&&Xt(i[0],i[1],m)&&(d=1);++s<d;)for(var y=i[s],x=en(y),O=-1,G=x.length;++O<G;){var H=x[O],z=n[H];(z===r||Ln(z,Ui[H])&&!Ke.call(n,H))&&(n[H]=y[H])}return n}),C2=Ne(function(n){return n.push(r,yg),Ft(rm,r,n)});function x2(n,i){return gp(n,Ie(i,3),jn)}function A2(n,i){return gp(n,Ie(i,3),Xa)}function w2(n,i){return n==null?n:Wa(n,Ie(i,3),en)}function S2(n,i){return n==null?n:Np(n,Ie(i,3),en)}function E2(n,i){return n&&jn(n,Ie(i,3))}function F2(n,i){return n&&Xa(n,Ie(i,3))}function P2(n){return n==null?[]:Cs(n,Pt(n))}function O2(n){return n==null?[]:Cs(n,en(n))}function Ic(n,i,s){var d=n==null?r:li(n,i);return d===r?s:d}function T2(n,i){return n!=null&&xg(n,i,KA)}function Cc(n,i){return n!=null&&xg(n,i,ew)}var B2=pg(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=ls.call(i)),n[i]=s},Ac(tn)),_2=pg(function(n,i,s){i!=null&&typeof i.toString!="function"&&(i=ls.call(i)),Ke.call(n,i)?n[i].push(s):n[i]=[s]},Ie),G2=Ne(Xu);function Pt(n){return Kt(n)?_p(n):Ya(n)}function en(n){return Kt(n)?_p(n,!0):cw(n)}function R2(n,i){var s={};return i=Ie(i,3),jn(n,function(d,m,y){ar(s,i(d,m,y),d)}),s}function k2(n,i){var s={};return i=Ie(i,3),jn(n,function(d,m,y){ar(s,m,i(d,m,y))}),s}var L2=$i(function(n,i,s){xs(n,i,s)}),rm=$i(function(n,i,s,d){xs(n,i,s,d)}),D2=fr(function(n,i){var s={};if(n==null)return s;var d=!1;i=at(i,function(y){return y=Rr(y,n),d||(d=y.length>1),y}),Qn(n,oc(n),s),d&&(s=Sn(s,g|I|b,Bw));for(var m=i.length;m--;)$a(s,i[m]);return s});function M2(n,i){return im(n,Ds(Ie(i)))}var N2=fr(function(n,i){return n==null?{}:dw(n,i)});function im(n,i){if(n==null)return{};var s=at(oc(n),function(d){return[d]});return i=Ie(i),jp(n,s,function(d,m){return i(d,m[0])})}function V2(n,i,s){i=Rr(i,n);var d=-1,m=i.length;for(m||(m=1,n=r);++d<m;){var y=n==null?r:n[qn(i[d])];y===r&&(d=m,y=s),n=hr(y)?y.call(n):y}return n}function W2(n,i,s){return n==null?n:zu(n,i,s)}function X2(n,i,s,d){return d=typeof d=="function"?d:r,n==null?n:zu(n,i,s,d)}var um=bg(Pt),om=bg(en);function H2(n,i,s){var d=Oe(n),m=d||Lr(n)||tu(n);if(i=Ie(i,4),s==null){var y=n&&n.constructor;m?s=d?new y:[]:ft(n)?s=hr(y)?qi(fs(n)):{}:s={}}return(m?xn:jn)(n,function(x,O,G){return i(s,x,O,G)}),s}function z2(n,i){return n==null?!0:$a(n,i)}function Z2(n,i,s){return n==null?n:eg(n,i,tc(s))}function Y2(n,i,s,d){return d=typeof d=="function"?d:r,n==null?n:eg(n,i,tc(s),d)}function nu(n){return n==null?[]:Ga(n,Pt(n))}function J2(n){return n==null?[]:Ga(n,en(n))}function U2(n,i,s){return s===r&&(s=i,i=r),s!==r&&(s=Pn(s),s=s===s?s:0),i!==r&&(i=Pn(i),i=i===i?i:0),si(Pn(n),i,s)}function j2(n,i,s){return i=pr(i),s===r?(s=i,i=0):s=pr(s),n=Pn(n),tw(n,i,s)}function Q2(n,i,s){if(s&&typeof s!="boolean"&&Xt(n,i,s)&&(i=s=r),s===r&&(typeof i=="boolean"?(s=i,i=r):typeof n=="boolean"&&(s=n,n=r)),n===r&&i===r?(n=0,i=1):(n=pr(n),i===r?(i=n,n=0):i=pr(i)),n>i){var d=n;n=i,i=d}if(s||n%1||i%1){var m=Tp();return Rt(n+m*(i-n+nt("1e-"+((m+"").length-1))),i)}return ja(n,i)}var q2=Ki(function(n,i,s){return i=i.toLowerCase(),n+(s?sm(i):i)});function sm(n){return xc($e(n).toLowerCase())}function lm(n){return n=$e(n),n&&n.replace(ur,Wx).replace(wa,"")}function $2(n,i,s){n=$e(n),i=cn(i);var d=n.length;s=s===r?d:si(Re(s),0,d);var m=s;return s-=i.length,s>=0&&n.slice(s,m)==i}function K2(n){return n=$e(n),n&&qr.test(n)?n.replace(ko,Xx):n}function eF(n){return n=$e(n),n&&na.test(n)?n.replace(Fu,"\\$&"):n}var tF=Ki(function(n,i,s){return n+(s?"-":"")+i.toLowerCase()}),nF=Ki(function(n,i,s){return n+(s?" ":"")+i.toLowerCase()}),rF=fg("toLowerCase");function iF(n,i,s){n=$e(n),i=Re(i);var d=i?Yi(n):0;if(!i||d>=i)return n;var m=(i-d)/2;return Ps(gs(m),s)+n+Ps(ps(m),s)}function uF(n,i,s){n=$e(n),i=Re(i);var d=i?Yi(n):0;return i&&d<i?n+Ps(i-d,s):n}function oF(n,i,s){n=$e(n),i=Re(i);var d=i?Yi(n):0;return i&&d<i?Ps(i-d,s)+n:n}function sF(n,i,s){return s||i==null?i=0:i&&(i=+i),pA($e(n).replace(Pu,""),i||0)}function lF(n,i,s){return(s?Xt(n,i,s):i===r)?i=1:i=Re(i),Qa($e(n),i)}function aF(){var n=arguments,i=$e(n[0]);return n.length<3?i:i.replace(n[1],n[2])}var cF=Ki(function(n,i,s){return n+(s?"_":"")+i.toLowerCase()});function fF(n,i,s){return s&&typeof s!="number"&&Xt(n,i,s)&&(i=s=r),s=s===r?He:s>>>0,s?(n=$e(n),n&&(typeof i=="string"||i!=null&&!yc(i))&&(i=cn(i),!i&&Zi(n))?kr(Rn(n),0,s):n.split(i,s)):[]}var dF=Ki(function(n,i,s){return n+(s?" ":"")+xc(i)});function hF(n,i,s){return n=$e(n),s=s==null?0:si(Re(s),0,n.length),i=cn(i),n.slice(s,s+i.length)==i}function pF(n,i,s){var d=v.templateSettings;s&&Xt(n,i,s)&&(i=r),n=$e(n),i=Vs({},i,d,vg);var m=Vs({},i.imports,d.imports,vg),y=Pt(m),x=Ga(m,y),O,G,H=0,z=i.interpolate||Di,U="__p += '",re=ka((i.escape||Di).source+"|"+z.source+"|"+(z===Li?sa:Di).source+"|"+(i.evaluate||Di).source+"|$","g"),fe="//# sourceURL="+(Ke.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sa+"]")+`
11
+ `;n.replace(re,function(xe,Ve,Ze,dn,Ht,hn){return Ze||(Ze=dn),U+=n.slice(H,hn).replace(ha,Hx),Ve&&(O=!0,U+=`' +
12
+ __e(`+Ve+`) +
13
+ '`),Ht&&(G=!0,U+=`';
14
+ `+Ht+`;
15
+ __p += '`),Ze&&(U+=`' +
16
+ ((__t = (`+Ze+`)) == null ? '' : __t) +
17
+ '`),H=hn+xe.length,xe}),U+=`';
18
+ `;var Ce=Ke.call(i,"variable")&&i.variable;if(!Ce)U=`with (obj) {
19
+ `+U+`
20
+ }
21
+ `;else if(ua.test(Ce))throw new Ee(c);U=(G?U.replace(sn,""):U).replace(rr,"$1").replace(Go,"$1;"),U="function("+(Ce||"obj")+`) {
22
+ `+(Ce?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
24
+ function print() { __p += __j.call(arguments, '') }
25
+ `:`;
26
+ `)+U+`return __p
27
+ }`;var ke=cm(function(){return je(y,fe+"return "+U).apply(r,x)});if(ke.source=U,vc(ke))throw ke;return ke}function gF(n){return $e(n).toLowerCase()}function mF(n){return $e(n).toUpperCase()}function bF(n,i,s){if(n=$e(n),n&&(s||i===r))return yp(n);if(!n||!(i=cn(i)))return n;var d=Rn(n),m=Rn(i),y=Ip(d,m),x=Cp(d,m)+1;return kr(d,y,x).join("")}function vF(n,i,s){if(n=$e(n),n&&(s||i===r))return n.slice(0,Ap(n)+1);if(!n||!(i=cn(i)))return n;var d=Rn(n),m=Cp(d,Rn(i))+1;return kr(d,0,m).join("")}function yF(n,i,s){if(n=$e(n),n&&(s||i===r))return n.replace(Pu,"");if(!n||!(i=cn(i)))return n;var d=Rn(n),m=Ip(d,Rn(i));return kr(d,m).join("")}function IF(n,i){var s=ne,d=$;if(ft(i)){var m="separator"in i?i.separator:m;s="length"in i?Re(i.length):s,d="omission"in i?cn(i.omission):d}n=$e(n);var y=n.length;if(Zi(n)){var x=Rn(n);y=x.length}if(s>=y)return n;var O=s-Yi(d);if(O<1)return d;var G=x?kr(x,0,O).join(""):n.slice(0,O);if(m===r)return G+d;if(x&&(O+=G.length-O),yc(m)){if(n.slice(O).search(m)){var H,z=G;for(m.global||(m=ka(m.source,$e(In.exec(m))+"g")),m.lastIndex=0;H=m.exec(z);)var U=H.index;G=G.slice(0,U===r?O:U)}}else if(n.indexOf(cn(m),O)!=O){var re=G.lastIndexOf(m);re>-1&&(G=G.slice(0,re))}return G+d}function CF(n){return n=$e(n),n&&wu.test(n)?n.replace(Ro,Qx):n}var xF=Ki(function(n,i,s){return n+(s?" ":"")+i.toUpperCase()}),xc=fg("toUpperCase");function am(n,i,s){return n=$e(n),i=s?r:i,i===r?Zx(n)?Kx(n):Lx(n):n.match(i)||[]}var cm=Ne(function(n,i){try{return Ft(n,r,i)}catch(s){return vc(s)?s:new Ee(s)}}),AF=fr(function(n,i){return xn(i,function(s){s=qn(s),ar(n,s,mc(n[s],n))}),n});function wF(n){var i=n==null?0:n.length,s=Ie();return n=i?at(n,function(d){if(typeof d[1]!="function")throw new An(a);return[s(d[0]),d[1]]}):[],Ne(function(d){for(var m=-1;++m<i;){var y=n[m];if(Ft(y[0],this,d))return Ft(y[1],this,d)}})}function SF(n){return QA(Sn(n,g))}function Ac(n){return function(){return n}}function EF(n,i){return n==null||n!==n?i:n}var FF=hg(),PF=hg(!0);function tn(n){return n}function wc(n){return Hp(typeof n=="function"?n:Sn(n,g))}function OF(n){return Zp(Sn(n,g))}function TF(n,i){return Yp(n,Sn(i,g))}var BF=Ne(function(n,i){return function(s){return Xu(s,n,i)}}),_F=Ne(function(n,i){return function(s){return Xu(n,s,i)}});function Sc(n,i,s){var d=Pt(i),m=Cs(i,d);s==null&&!(ft(i)&&(m.length||!d.length))&&(s=i,i=n,n=this,m=Cs(i,Pt(i)));var y=!(ft(s)&&"chain"in s)||!!s.chain,x=hr(n);return xn(m,function(O){var G=i[O];n[O]=G,x&&(n.prototype[O]=function(){var H=this.__chain__;if(y||H){var z=n(this.__wrapped__),U=z.__actions__=$t(this.__actions__);return U.push({func:G,args:arguments,thisArg:n}),z.__chain__=H,z}return G.apply(n,Or([this.value()],arguments))})}),n}function GF(){return ze._===this&&(ze._=uA),this}function Ec(){}function RF(n){return n=Re(n),Ne(function(i){return Jp(i,n)})}var kF=rc(at),LF=rc(pp),DF=rc(Pa);function fm(n){return cc(n)?Oa(qn(n)):hw(n)}function MF(n){return function(i){return n==null?r:li(n,i)}}var NF=gg(),VF=gg(!0);function Fc(){return[]}function Pc(){return!1}function WF(){return{}}function XF(){return""}function HF(){return!0}function zF(n,i){if(n=Re(n),n<1||n>Se)return[];var s=He,d=Rt(n,He);i=Ie(i),n-=He;for(var m=_a(d,i);++s<n;)i(s);return m}function ZF(n){return Oe(n)?at(n,qn):fn(n)?[n]:$t(Bg($e(n)))}function YF(n){var i=++rA;return $e(n)+i}var JF=Fs(function(n,i){return n+i},0),UF=ic("ceil"),jF=Fs(function(n,i){return n/i},1),QF=ic("floor");function qF(n){return n&&n.length?Is(n,tn,Ha):r}function $F(n,i){return n&&n.length?Is(n,Ie(i,2),Ha):r}function KF(n){return bp(n,tn)}function eP(n,i){return bp(n,Ie(i,2))}function tP(n){return n&&n.length?Is(n,tn,Ja):r}function nP(n,i){return n&&n.length?Is(n,Ie(i,2),Ja):r}var rP=Fs(function(n,i){return n*i},1),iP=ic("round"),uP=Fs(function(n,i){return n-i},0);function oP(n){return n&&n.length?Ba(n,tn):0}function sP(n,i){return n&&n.length?Ba(n,Ie(i,2)):0}return v.after=OE,v.ary=Xg,v.assign=m2,v.assignIn=nm,v.assignInWith=Vs,v.assignWith=b2,v.at=v2,v.before=Hg,v.bind=mc,v.bindAll=AF,v.bindKey=zg,v.castArray=WE,v.chain=Ng,v.chunk=Qw,v.compact=qw,v.concat=$w,v.cond=wF,v.conforms=SF,v.constant=Ac,v.countBy=oE,v.create=y2,v.curry=Zg,v.curryRight=Yg,v.debounce=Jg,v.defaults=I2,v.defaultsDeep=C2,v.defer=TE,v.delay=BE,v.difference=Kw,v.differenceBy=eS,v.differenceWith=tS,v.drop=nS,v.dropRight=rS,v.dropRightWhile=iS,v.dropWhile=uS,v.fill=oS,v.filter=lE,v.flatMap=fE,v.flatMapDeep=dE,v.flatMapDepth=hE,v.flatten=kg,v.flattenDeep=sS,v.flattenDepth=lS,v.flip=_E,v.flow=FF,v.flowRight=PF,v.fromPairs=aS,v.functions=P2,v.functionsIn=O2,v.groupBy=pE,v.initial=fS,v.intersection=dS,v.intersectionBy=hS,v.intersectionWith=pS,v.invert=B2,v.invertBy=_2,v.invokeMap=mE,v.iteratee=wc,v.keyBy=bE,v.keys=Pt,v.keysIn=en,v.map=Rs,v.mapKeys=R2,v.mapValues=k2,v.matches=OF,v.matchesProperty=TF,v.memoize=Ls,v.merge=L2,v.mergeWith=rm,v.method=BF,v.methodOf=_F,v.mixin=Sc,v.negate=Ds,v.nthArg=RF,v.omit=D2,v.omitBy=M2,v.once=GE,v.orderBy=vE,v.over=kF,v.overArgs=RE,v.overEvery=LF,v.overSome=DF,v.partial=bc,v.partialRight=Ug,v.partition=yE,v.pick=N2,v.pickBy=im,v.property=fm,v.propertyOf=MF,v.pull=vS,v.pullAll=Dg,v.pullAllBy=yS,v.pullAllWith=IS,v.pullAt=CS,v.range=NF,v.rangeRight=VF,v.rearg=kE,v.reject=xE,v.remove=xS,v.rest=LE,v.reverse=pc,v.sampleSize=wE,v.set=W2,v.setWith=X2,v.shuffle=SE,v.slice=AS,v.sortBy=PE,v.sortedUniq=TS,v.sortedUniqBy=BS,v.split=fF,v.spread=DE,v.tail=_S,v.take=GS,v.takeRight=RS,v.takeRightWhile=kS,v.takeWhile=LS,v.tap=qS,v.throttle=ME,v.thru=Gs,v.toArray=Kg,v.toPairs=um,v.toPairsIn=om,v.toPath=ZF,v.toPlainObject=tm,v.transform=H2,v.unary=NE,v.union=DS,v.unionBy=MS,v.unionWith=NS,v.uniq=VS,v.uniqBy=WS,v.uniqWith=XS,v.unset=z2,v.unzip=gc,v.unzipWith=Mg,v.update=Z2,v.updateWith=Y2,v.values=nu,v.valuesIn=J2,v.without=HS,v.words=am,v.wrap=VE,v.xor=zS,v.xorBy=ZS,v.xorWith=YS,v.zip=JS,v.zipObject=US,v.zipObjectDeep=jS,v.zipWith=QS,v.entries=um,v.entriesIn=om,v.extend=nm,v.extendWith=Vs,Sc(v,v),v.add=JF,v.attempt=cm,v.camelCase=q2,v.capitalize=sm,v.ceil=UF,v.clamp=U2,v.clone=XE,v.cloneDeep=zE,v.cloneDeepWith=ZE,v.cloneWith=HE,v.conformsTo=YE,v.deburr=lm,v.defaultTo=EF,v.divide=jF,v.endsWith=$2,v.eq=Ln,v.escape=K2,v.escapeRegExp=eF,v.every=sE,v.find=aE,v.findIndex=Gg,v.findKey=x2,v.findLast=cE,v.findLastIndex=Rg,v.findLastKey=A2,v.floor=QF,v.forEach=Vg,v.forEachRight=Wg,v.forIn=w2,v.forInRight=S2,v.forOwn=E2,v.forOwnRight=F2,v.get=Ic,v.gt=JE,v.gte=UE,v.has=T2,v.hasIn=Cc,v.head=Lg,v.identity=tn,v.includes=gE,v.indexOf=cS,v.inRange=j2,v.invoke=G2,v.isArguments=fi,v.isArray=Oe,v.isArrayBuffer=jE,v.isArrayLike=Kt,v.isArrayLikeObject=mt,v.isBoolean=QE,v.isBuffer=Lr,v.isDate=qE,v.isElement=$E,v.isEmpty=KE,v.isEqual=e2,v.isEqualWith=t2,v.isError=vc,v.isFinite=n2,v.isFunction=hr,v.isInteger=jg,v.isLength=Ms,v.isMap=Qg,v.isMatch=r2,v.isMatchWith=i2,v.isNaN=u2,v.isNative=o2,v.isNil=l2,v.isNull=s2,v.isNumber=qg,v.isObject=ft,v.isObjectLike=pt,v.isPlainObject=Uu,v.isRegExp=yc,v.isSafeInteger=a2,v.isSet=$g,v.isString=Ns,v.isSymbol=fn,v.isTypedArray=tu,v.isUndefined=c2,v.isWeakMap=f2,v.isWeakSet=d2,v.join=gS,v.kebabCase=tF,v.last=Fn,v.lastIndexOf=mS,v.lowerCase=nF,v.lowerFirst=rF,v.lt=h2,v.lte=p2,v.max=qF,v.maxBy=$F,v.mean=KF,v.meanBy=eP,v.min=tP,v.minBy=nP,v.stubArray=Fc,v.stubFalse=Pc,v.stubObject=WF,v.stubString=XF,v.stubTrue=HF,v.multiply=rP,v.nth=bS,v.noConflict=GF,v.noop=Ec,v.now=ks,v.pad=iF,v.padEnd=uF,v.padStart=oF,v.parseInt=sF,v.random=Q2,v.reduce=IE,v.reduceRight=CE,v.repeat=lF,v.replace=aF,v.result=V2,v.round=iP,v.runInContext=B,v.sample=AE,v.size=EE,v.snakeCase=cF,v.some=FE,v.sortedIndex=wS,v.sortedIndexBy=SS,v.sortedIndexOf=ES,v.sortedLastIndex=FS,v.sortedLastIndexBy=PS,v.sortedLastIndexOf=OS,v.startCase=dF,v.startsWith=hF,v.subtract=uP,v.sum=oP,v.sumBy=sP,v.template=pF,v.times=zF,v.toFinite=pr,v.toInteger=Re,v.toLength=em,v.toLower=gF,v.toNumber=Pn,v.toSafeInteger=g2,v.toString=$e,v.toUpper=mF,v.trim=bF,v.trimEnd=vF,v.trimStart=yF,v.truncate=IF,v.unescape=CF,v.uniqueId=YF,v.upperCase=xF,v.upperFirst=xc,v.each=Vg,v.eachRight=Wg,v.first=Lg,Sc(v,function(){var n={};return jn(v,function(i,s){Ke.call(v.prototype,s)||(n[s]=i)}),n}(),{chain:!1}),v.VERSION=u,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){v[n].placeholder=v}),xn(["drop","take"],function(n,i){We.prototype[n]=function(s){s=s===r?1:St(Re(s),0);var d=this.__filtered__&&!i?new We(this):this.clone();return d.__filtered__?d.__takeCount__=Rt(s,d.__takeCount__):d.__views__.push({size:Rt(s,He),type:n+(d.__dir__<0?"Right":"")}),d},We.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),xn(["filter","map","takeWhile"],function(n,i){var s=i+1,d=s==Be||s==ge;We.prototype[n]=function(m){var y=this.clone();return y.__iteratees__.push({iteratee:Ie(m,3),type:s}),y.__filtered__=y.__filtered__||d,y}}),xn(["head","last"],function(n,i){var s="take"+(i?"Right":"");We.prototype[n]=function(){return this[s](1).value()[0]}}),xn(["initial","tail"],function(n,i){var s="drop"+(i?"":"Right");We.prototype[n]=function(){return this.__filtered__?new We(this):this[s](1)}}),We.prototype.compact=function(){return this.filter(tn)},We.prototype.find=function(n){return this.filter(n).head()},We.prototype.findLast=function(n){return this.reverse().find(n)},We.prototype.invokeMap=Ne(function(n,i){return typeof n=="function"?new We(this):this.map(function(s){return Xu(s,n,i)})}),We.prototype.reject=function(n){return this.filter(Ds(Ie(n)))},We.prototype.slice=function(n,i){n=Re(n);var s=this;return s.__filtered__&&(n>0||i<0)?new We(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),i!==r&&(i=Re(i),s=i<0?s.dropRight(-i):s.take(i-n)),s)},We.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},We.prototype.toArray=function(){return this.take(He)},jn(We.prototype,function(n,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),d=/^(?:head|last)$/.test(i),m=v[d?"take"+(i=="last"?"Right":""):i],y=d||/^find/.test(i);m&&(v.prototype[i]=function(){var x=this.__wrapped__,O=d?[1]:arguments,G=x instanceof We,H=O[0],z=G||Oe(x),U=function(Ve){var Ze=m.apply(v,Or([Ve],O));return d&&re?Ze[0]:Ze};z&&s&&typeof H=="function"&&H.length!=1&&(G=z=!1);var re=this.__chain__,fe=!!this.__actions__.length,Ce=y&&!re,ke=G&&!fe;if(!y&&z){x=ke?x:new We(this);var xe=n.apply(x,O);return xe.__actions__.push({func:Gs,args:[U],thisArg:r}),new wn(xe,re)}return Ce&&ke?n.apply(this,O):(xe=this.thru(U),Ce?d?xe.value()[0]:xe.value():xe)})}),xn(["pop","push","shift","sort","splice","unshift"],function(n){var i=us[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",d=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var m=arguments;if(d&&!this.__chain__){var y=this.value();return i.apply(Oe(y)?y:[],m)}return this[s](function(x){return i.apply(Oe(x)?x:[],m)})}}),jn(We.prototype,function(n,i){var s=v[i];if(s){var d=s.name+"";Ke.call(Qi,d)||(Qi[d]=[]),Qi[d].push({name:i,func:s})}}),Qi[Es(r,P).name]=[{name:"wrapper",func:r}],We.prototype.clone=CA,We.prototype.reverse=xA,We.prototype.value=AA,v.prototype.at=$S,v.prototype.chain=KS,v.prototype.commit=eE,v.prototype.next=tE,v.prototype.plant=rE,v.prototype.reverse=iE,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=uE,v.prototype.first=v.prototype.head,ku&&(v.prototype[ku]=nE),v},Ji=eA();gt?((gt.exports=Ji)._=Ji,rt._=Ji):ze._=Ji}).call(On)}(eo,eo.exports);var ub=eo.exports;const ob=Hs(ub),ou=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],tl=Z.createContext(void 0),to=()=>{const e=Z.useContext(tl);if(!e)throw new Error("Must be used inside provider");return e},of=({children:e,props:t})=>{const r=$n(),u=Z.useId(),{component:o,configuredProps:l,propNames:a,userId:c}=t,f=o.key,[h,p]=Z.useState(0),[g,I]=Z.useState({}),[b,E]=Z.useState(!1),[A,F]=Z.useState({}),[P,D]=Z.useState({});Z.useEffect(()=>{D({})},[o.key]);const k=ee=>P[ee.name];let L=l||{};const[V,R]=Z.useState(L),J=t.onUpdateConfiguredProps||R;t.onUpdateConfiguredProps||(L=V);const[N,j]=Z.useState(),[ne,$]=Z.useState(),Q={userId:c,componentId:f,configuredProps:L,dynamicPropsId:N==null?void 0:N.id},ve={...Q},{isFetching:Be}=Nr({queryKey:["dynamicProps",ve],queryFn:async()=>{var oe;const{dynamicProps:ee}=await r.componentReloadProps(Q);return ee&&((oe=t.onUpdateDynamicProps)==null||oe.call(t,ee),j(ee)),$(void 0),[]},enabled:ne!=null}),[ie,ge]=Z.useState([]);Z.useEffect(()=>{me()},[L]);let de=(N==null?void 0:N.configurableProps)||t.component.configurable_props||[];if(a!=null&&a.length){const ee=[];for(const oe of de)a.findIndex(ye=>oe.name===ye)>=0&&ee.push(oe);de=ee}ne!=null&&(de=de.slice(0,ne+1));const Se=(ee,oe)=>{const ye=[];if(ee.optional||ee.hidden||ee.disabled||ou.includes(ee.type))return[];if(ee.type==="app"){const Me=g[ee.name];if(Me){const ct=Me.extra.app;ye.push(...ib({prop:ee,value:oe,app:ct})??[])}else ye.push("field not registered")}else ee.type==="boolean"?ye.push(...eb({prop:ee,value:oe})??[]):ee.type==="integer"?ye.push(...tb({prop:ee,value:oe})??[]):ee.type==="string"?ye.push(...nb({prop:ee,value:oe})??[]):ee.type==="string[]"&&ye.push(...Km({prop:ee,value:oe})??[]);return ye},qe=ee=>{let oe;for(let ye=0;ye<de.length;ye++){const Me=de[ye];if(Me.hidden||Me.optional&&!k(Me))continue;if(ee[Me.name]===void 0&&oe==null&&(Me.type==="app"||Me.remoteOptions)){oe=ye;break}}p(oe)},S=ee=>{J(ee),qe(ee);const oe={};for(let ye=0;ye<de.length;ye++){const Me=de[ye],ct=ee[Me.name],Gt=Se(Me,ct);Gt.length&&(oe[Me.name]=Gt)}F(oe)};Z.useEffect(()=>{qe(V)},[V]),Z.useEffect(()=>{const ee={};for(const oe of de){if(oe.hidden||ou.includes(oe.type)||oe.optional&&!k(oe))continue;const ye=L[oe.name];ye===void 0?"default"in oe&&oe.default!=null&&(ee[oe.name]=oe.default):oe.type==="integer"&&typeof ye!="number"?delete ee[oe.name]:ee[oe.name]=ye}bm(ee,L)||S(ee)},[de]);const[He,Le]=Z.useState(c);Z.useEffect(()=>{He!==c&&(S({}),Le(c))},[c]);const w=(ee,oe)=>{const ye=de[ee],Me={...L};oe===void 0?delete Me[ye.name]:Me[ye.name]=oe,J(Me),ye.reloadProps&&$(ee),(ye.type==="app"||ye.remoteOptions)&&qe(Me);const ct=Se(ye,oe),Gt={...A};ct.length?Gt[ye.name]=ct:delete Gt[ye.name],F(Gt)},Je=(ee,oe)=>{const ye={...P};oe?ye[ee.name]=!0:delete ye[ee.name];const Me=de.findIndex(ct=>ct.name===ee.name);oe?(l==null?void 0:l[ee.name])!==void 0?w(Me,l[ee.name]):"default"in ee&&ee.default!=null&&w(Me,ee.default):w(Me,void 0),D(ye)},me=()=>{const ee=[];for(const oe of de){if(!oe||oe.optional||oe.hidden||ou.includes(oe.type))continue;const ye=L[oe.name];Se(oe,ye).length&&ee.push(oe.name)}ee&&ie&&ob.isEqual(ee,ie)||ge(ee)},De=ee=>{I(oe=>(oe[ee.prop.name]=ee,oe)),me()},yt={id:u,isValid:!Object.keys(A).length,props:t,userId:c,component:o,configurableProps:de,configuredProps:L,dynamicProps:N,dynamicPropsQueryIsFetching:Be,errors:A,fields:g,optionalPropIsEnabled:k,optionalPropSetEnabled:Je,propsNeedConfiguring:ie,queryDisabledIdx:h,registerField:De,setConfiguredProp:w,setSubmitting:E,submitting:b};return q.jsx(tl.Provider,{value:yt,children:e})};function Vr(e){"@babel/helpers - typeof";return Vr=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},Vr(e)}function sb(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var u=r.call(e,t||"default");if(Vr(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sf(e){var t=sb(e,"string");return Vr(t)=="symbol"?t:t+""}function su(e,t,r){return(t=sf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,u)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lf(Object(r),!0).forEach(function(u){su(e,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(r,u))})}return e}function lb(e){if(Array.isArray(e))return e}function ab(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var u,o,l,a,c=[],f=!0,h=!1;try{if(l=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(u=l.call(r)).done)&&(c.push(u.value),c.length!==t);f=!0);}catch(p){h=!0,o=p}finally{try{if(!f&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw o}}return c}}function nl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function af(e,t){if(e){if(typeof e=="string")return nl(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nl(e,t):void 0}}function cb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kn(e,t){return lb(e)||ab(e,t)||af(e,t)||cb()}function fb(e,t){if(e==null)return{};var r={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(t.includes(u))continue;r[u]=e[u]}return r}function Mn(e,t){if(e==null)return{};var r,u,o=fb(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(u=0;u<l.length;u++)r=l[u],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var db=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function cf(e){var t=e.defaultInputValue,r=t===void 0?"":t,u=e.defaultMenuIsOpen,o=u===void 0?!1:u,l=e.defaultValue,a=l===void 0?null:l,c=e.inputValue,f=e.menuIsOpen,h=e.onChange,p=e.onInputChange,g=e.onMenuClose,I=e.onMenuOpen,b=e.value,E=Mn(e,db),A=Z.useState(c!==void 0?c:r),F=Kn(A,2),P=F[0],D=F[1],k=Z.useState(f!==void 0?f:o),L=Kn(k,2),V=L[0],R=L[1],J=Z.useState(b!==void 0?b:a),N=Kn(J,2),j=N[0],ne=N[1],$=Z.useCallback(function(Se,qe){typeof h=="function"&&h(Se,qe),ne(Se)},[h]),Q=Z.useCallback(function(Se,qe){var S;typeof p=="function"&&(S=p(Se,qe)),D(S!==void 0?S:Se)},[p]),ve=Z.useCallback(function(){typeof I=="function"&&I(),R(!0)},[I]),Be=Z.useCallback(function(){typeof g=="function"&&g(),R(!1)},[g]),ie=c!==void 0?c:P,ge=f!==void 0?f:V,de=b!==void 0?b:j;return he(he({},E),{},{inputValue:ie,menuIsOpen:ge,onChange:$,onInputChange:Q,onMenuClose:Be,onMenuOpen:ve,value:de})}function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var u in r)({}).hasOwnProperty.call(r,u)&&(e[u]=r[u])}return e},be.apply(null,arguments)}function hb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ff(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,sf(u.key),u)}}function pb(e,t,r){return t&&ff(e.prototype,t),r&&ff(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,u){return r.__proto__=u,r},rl(e,t)}function gb(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rl(e,t)}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},no(e)}function df(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(df=function(){return!!e})()}function mb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bb(e,t){if(t&&(Vr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mb(e)}function vb(e){var t=df();return function(){var r,u=no(e);if(t){var o=no(this).constructor;r=Reflect.construct(u,arguments,o)}else r=u.apply(this,arguments);return bb(this,r)}}function yb(e){if(Array.isArray(e))return nl(e)}function Ib(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hi(e){return yb(e)||Ib(e)||af(e)||Cb()}function xb(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Ab=Math.min,wb=Math.max,ro=Math.round,io=Math.floor,uo=e=>({x:e,y:e});function Sb(e){const{x:t,y:r,width:u,height:o}=e;return{width:u,height:o,top:r,left:t,right:t+u,bottom:r+o,x:t,y:r}}function oo(){return typeof window<"u"}function hf(e){return gf(e)?(e.nodeName||"").toLowerCase():"#document"}function er(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pf(e){var t;return(t=(gf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gf(e){return oo()?e instanceof Node||e instanceof er(e).Node:!1}function Eb(e){return oo()?e instanceof Element||e instanceof er(e).Element:!1}function il(e){return oo()?e instanceof HTMLElement||e instanceof er(e).HTMLElement:!1}function mf(e){return!oo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof er(e).ShadowRoot}function bf(e){const{overflow:t,overflowX:r,overflowY:u,display:o}=ul(e);return/auto|scroll|overlay|hidden|clip/.test(t+u+r)&&!["inline","contents"].includes(o)}function Fb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pb(e){return["html","body","#document"].includes(hf(e))}function ul(e){return er(e).getComputedStyle(e)}function Ob(e){if(hf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mf(e)&&e.host||pf(e);return mf(t)?t.host:t}function vf(e){const t=Ob(e);return Pb(t)?e.ownerDocument?e.ownerDocument.body:e.body:il(t)&&bf(t)?t:vf(t)}function so(e,t,r){var u;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=vf(e),l=o===((u=e.ownerDocument)==null?void 0:u.body),a=er(o);if(l){const c=ol(a);return t.concat(a,a.visualViewport||[],bf(o)?o:[],c&&r?so(c):[])}return t.concat(o,so(o,[],r))}function ol(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tb(e){const t=ul(e);let r=parseFloat(t.width)||0,u=parseFloat(t.height)||0;const o=il(e),l=o?e.offsetWidth:r,a=o?e.offsetHeight:u,c=ro(r)!==l||ro(u)!==a;return c&&(r=l,u=a),{width:r,height:u,$:c}}function sl(e){return Eb(e)?e:e.contextElement}function yf(e){const t=sl(e);if(!il(t))return uo(1);const r=t.getBoundingClientRect(),{width:u,height:o,$:l}=Tb(t);let a=(l?ro(r.width):r.width)/u,c=(l?ro(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Bb=uo(0);function _b(e){const t=er(e);return!Fb()||!t.visualViewport?Bb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gb(e,t,r){return!1}function If(e,t,r,u){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),l=sl(e);let a=uo(1);t&&(a=yf(e));const c=Gb()?_b(l):uo(0);let f=(o.left+c.x)/a.x,h=(o.top+c.y)/a.y,p=o.width/a.x,g=o.height/a.y;if(l){const I=er(l),b=u;let E=I,A=ol(E);for(;A&&u&&b!==E;){const F=yf(A),P=A.getBoundingClientRect(),D=ul(A),k=P.left+(A.clientLeft+parseFloat(D.paddingLeft))*F.x,L=P.top+(A.clientTop+parseFloat(D.paddingTop))*F.y;f*=F.x,h*=F.y,p*=F.x,g*=F.y,f+=k,h+=L,E=er(A),A=ol(E)}}return Sb({width:p,height:g,x:f,y:h})}function Rb(e,t){let r=null,u;const o=pf(e);function l(){var c;clearTimeout(u),(c=r)==null||c.disconnect(),r=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const{left:h,top:p,width:g,height:I}=e.getBoundingClientRect();if(c||t(),!g||!I)return;const b=io(p),E=io(o.clientWidth-(h+g)),A=io(o.clientHeight-(p+I)),F=io(h),D={rootMargin:-b+"px "+-E+"px "+-A+"px "+-F+"px",threshold:wb(0,Ab(1,f))||1};let k=!0;function L(V){const R=V[0].intersectionRatio;if(R!==f){if(!k)return a();R?a(!1,R):u=setTimeout(()=>{a(!1,1e-7)},1e3)}k=!1}try{r=new IntersectionObserver(L,{...D,root:o.ownerDocument})}catch{r=new IntersectionObserver(L,D)}r.observe(e)}return a(!0),l}function kb(e,t,r,u){u===void 0&&(u={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=u,h=sl(e),p=o||l?[...h?so(h):[],...so(t)]:[];p.forEach(P=>{o&&P.addEventListener("scroll",r,{passive:!0}),l&&P.addEventListener("resize",r)});const g=h&&c?Rb(h,r):null;let I=-1,b=null;a&&(b=new ResizeObserver(P=>{let[D]=P;D&&D.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(I),I=requestAnimationFrame(()=>{var k;(k=b)==null||k.observe(t)})),r()}),h&&!f&&b.observe(h),b.observe(t));let E,A=f?If(e):null;f&&F();function F(){const P=If(e);A&&(P.x!==A.x||P.y!==A.y||P.width!==A.width||P.height!==A.height)&&r(),A=P,E=requestAnimationFrame(F)}return r(),()=>{var P;p.forEach(D=>{o&&D.removeEventListener("scroll",r),l&&D.removeEventListener("resize",r)}),g==null||g(),(P=b)==null||P.disconnect(),b=null,f&&cancelAnimationFrame(E)}}var ll=Z.useLayoutEffect,Lb=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lo=function(){};function Db(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Mb(e,t){for(var r=arguments.length,u=new Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];var l=[].concat(u);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&l.push("".concat(Db(e,a)));return l.filter(function(c){return c}).map(function(c){return String(c).trim()}).join(" ")}var ao=function(t){return Jb(t)?t.filter(Boolean):Vr(t)==="object"&&t!==null?[t]:[]},Cf=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=Mn(t,Lb);return he({},r)},dt=function(t,r,u){var o=t.cx,l=t.getStyles,a=t.getClassNames,c=t.className;return{css:l(r,t),className:o(u??{},a(r,t),c)}};function co(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Nb(e){return co(e)?window.innerHeight:e.clientHeight}function xf(e){return co(e)?window.pageYOffset:e.scrollTop}function fo(e,t){if(co(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Vb(e){var t=getComputedStyle(e),r=t.position==="absolute",u=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&u.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Wb(e,t,r,u){return r*((e=e/u-1)*e*e+1)+t}function ho(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:lo,o=xf(e),l=t-o,a=10,c=0;function f(){c+=a;var h=Wb(c,o,l,r);fo(e,h),c<r?window.requestAnimationFrame(f):u(e)}f()}function Af(e,t){var r=e.getBoundingClientRect(),u=t.getBoundingClientRect(),o=t.offsetHeight/3;u.bottom+o>r.bottom?fo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):u.top-o<r.top&&fo(e,Math.max(t.offsetTop-o,0))}function Xb(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function wf(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Hb(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Sf=!1,zb={get passive(){return Sf=!0}},po=typeof window<"u"?window:{};po.addEventListener&&po.removeEventListener&&(po.addEventListener("p",lo,zb),po.removeEventListener("p",lo,!1));var Zb=Sf;function Yb(e){return e!=null}function Jb(e){return Array.isArray(e)}function lu(e,t,r){return e?t:r}function lP(e){return e}function aP(e){return e}var Ub=function(t){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];var l=Object.entries(t).filter(function(a){var c=Kn(a,1),f=c[0];return!u.includes(f)});return l.reduce(function(a,c){var f=Kn(c,2),h=f[0],p=f[1];return a[h]=p,a},{})},jb=["children","innerProps"],Qb=["children","innerProps"];function qb(e){var t=e.maxHeight,r=e.menuEl,u=e.minHeight,o=e.placement,l=e.shouldScroll,a=e.isFixedPosition,c=e.controlHeight,f=Vb(r),h={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return h;var p=f.getBoundingClientRect(),g=p.height,I=r.getBoundingClientRect(),b=I.bottom,E=I.height,A=I.top,F=r.offsetParent.getBoundingClientRect(),P=F.top,D=a?window.innerHeight:Nb(f),k=xf(f),L=parseInt(getComputedStyle(r).marginBottom,10),V=parseInt(getComputedStyle(r).marginTop,10),R=P-V,J=D-A,N=R+k,j=g-k-A,ne=b-D+k+L,$=k+A-V,Q=160;switch(o){case"auto":case"bottom":if(J>=E)return{placement:"bottom",maxHeight:t};if(j>=E&&!a)return l&&ho(f,ne,Q),{placement:"bottom",maxHeight:t};if(!a&&j>=u||a&&J>=u){l&&ho(f,ne,Q);var ve=a?J-L:j-L;return{placement:"bottom",maxHeight:ve}}if(o==="auto"||a){var Be=t,ie=a?R:N;return ie>=u&&(Be=Math.min(ie-L-c,t)),{placement:"top",maxHeight:Be}}if(o==="bottom")return l&&fo(f,ne),{placement:"bottom",maxHeight:t};break;case"top":if(R>=E)return{placement:"top",maxHeight:t};if(N>=E&&!a)return l&&ho(f,$,Q),{placement:"top",maxHeight:t};if(!a&&N>=u||a&&R>=u){var ge=t;return(!a&&N>=u||a&&R>=u)&&(ge=a?R-V:N-V),l&&ho(f,$,Q),{placement:"top",maxHeight:ge}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return h}function $b(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Ef=function(t){return t==="auto"?"bottom":t},Kb=function(t,r){var u,o=t.placement,l=t.theme,a=l.borderRadius,c=l.spacing,f=l.colors;return he((u={label:"menu"},su(u,$b(o),"100%"),su(u,"position","absolute"),su(u,"width","100%"),su(u,"zIndex",1),u),r?{}:{backgroundColor:f.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:c.menuGutter,marginTop:c.menuGutter})},Ff=Z.createContext(null),e0=function(t){var r=t.children,u=t.minMenuHeight,o=t.maxMenuHeight,l=t.menuPlacement,a=t.menuPosition,c=t.menuShouldScrollIntoView,f=t.theme,h=Z.useContext(Ff)||{},p=h.setPortalPlacement,g=Z.useRef(null),I=Z.useState(o),b=Kn(I,2),E=b[0],A=b[1],F=Z.useState(null),P=Kn(F,2),D=P[0],k=P[1],L=f.spacing.controlHeight;return ll(function(){var V=g.current;if(V){var R=a==="fixed",J=c&&!R,N=qb({maxHeight:o,menuEl:V,minHeight:u,placement:l,shouldScroll:J,isFixedPosition:R,controlHeight:L});A(N.maxHeight),k(N.placement),p==null||p(N.placement)}},[o,l,a,c,u,p,L]),r({ref:g,placerProps:he(he({},t),{},{placement:D||Ef(l),maxHeight:E})})},t0=function(t){var r=t.children,u=t.innerRef,o=t.innerProps;return ce.jsx("div",be({},dt(t,"menu",{menu:!0}),{ref:u},o),r)},n0=t0,r0=function(t,r){var u=t.maxHeight,o=t.theme.spacing.baseUnit;return he({maxHeight:u,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},i0=function(t){var r=t.children,u=t.innerProps,o=t.innerRef,l=t.isMulti;return ce.jsx("div",be({},dt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":l}),{ref:o},u),r)},Pf=function(t,r){var u=t.theme,o=u.spacing.baseUnit,l=u.colors;return he({textAlign:"center"},r?{}:{color:l.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},u0=Pf,o0=Pf,s0=function(t){var r=t.children,u=r===void 0?"No options":r,o=t.innerProps,l=Mn(t,jb);return ce.jsx("div",be({},dt(he(he({},l),{},{children:u,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),u)},l0=function(t){var r=t.children,u=r===void 0?"Loading...":r,o=t.innerProps,l=Mn(t,Qb);return ce.jsx("div",be({},dt(he(he({},l),{},{children:u,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),u)},a0=function(t){var r=t.rect,u=t.offset,o=t.position;return{left:r.left,position:o,top:u,width:r.width,zIndex:1}},c0=function(t){var r=t.appendTo,u=t.children,o=t.controlElement,l=t.innerProps,a=t.menuPlacement,c=t.menuPosition,f=Z.useRef(null),h=Z.useRef(null),p=Z.useState(Ef(a)),g=Kn(p,2),I=g[0],b=g[1],E=Z.useMemo(function(){return{setPortalPlacement:b}},[]),A=Z.useState(null),F=Kn(A,2),P=F[0],D=F[1],k=Z.useCallback(function(){if(o){var J=Xb(o),N=c==="fixed"?0:window.pageYOffset,j=J[I]+N;(j!==(P==null?void 0:P.offset)||J.left!==(P==null?void 0:P.rect.left)||J.width!==(P==null?void 0:P.rect.width))&&D({offset:j,rect:J})}},[o,c,I,P==null?void 0:P.offset,P==null?void 0:P.rect.left,P==null?void 0:P.rect.width]);ll(function(){k()},[k]);var L=Z.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),o&&f.current&&(h.current=kb(o,f.current,k,{elementResize:"ResizeObserver"in window}))},[o,k]);ll(function(){L()},[L]);var V=Z.useCallback(function(J){f.current=J,L()},[L]);if(!r&&c!=="fixed"||!P)return null;var R=ce.jsx("div",be({ref:V},dt(he(he({},t),{},{offset:P.offset,position:c,rect:P.rect}),"menuPortal",{"menu-portal":!0}),l),u);return ce.jsx(Ff.Provider,{value:E},r?Xs.createPortal(R,r):R)},f0=function(t){var r=t.isDisabled,u=t.isRtl;return{label:"container",direction:u?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},d0=function(t){var r=t.children,u=t.innerProps,o=t.isDisabled,l=t.isRtl;return ce.jsx("div",be({},dt(t,"container",{"--is-disabled":o,"--is-rtl":l}),u),r)},h0=function(t,r){var u=t.theme.spacing,o=t.isMulti,l=t.hasValue,a=t.selectProps.controlShouldRenderValue;return he({alignItems:"center",display:o&&l&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(u.baseUnit/2,"px ").concat(u.baseUnit*2,"px")})},p0=function(t){var r=t.children,u=t.innerProps,o=t.isMulti,l=t.hasValue;return ce.jsx("div",be({},dt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l}),u),r)},g0=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},m0=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",be({},dt(t,"indicatorsContainer",{indicators:!0}),u),r)},Of,b0=["size"],v0=["innerProps","isRtl","size"];function y0(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var I0=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1c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2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:y0},Tf=function(t){var r=t.size,u=Mn(t,b0);return ce.jsx("svg",be({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:I0},u))},al=function(t){return ce.jsx(Tf,be({size:20},t),ce.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Bf=function(t){return ce.jsx(Tf,be({size:20},t),ce.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_f=function(t,r){var u=t.isFocused,o=t.theme,l=o.spacing.baseUnit,a=o.colors;return he({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:u?a.neutral60:a.neutral20,padding:l*2,":hover":{color:u?a.neutral80:a.neutral40}})},C0=_f,x0=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",be({},dt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),u),r||ce.jsx(Bf,null))},A0=_f,w0=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",be({},dt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),u),r||ce.jsx(al,null))},S0=function(t,r){var u=t.isDisabled,o=t.theme,l=o.spacing.baseUnit,a=o.colors;return he({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:u?a.neutral10:a.neutral20,marginBottom:l*2,marginTop:l*2})},E0=function(t){var r=t.innerProps;return ce.jsx("span",be({},r,dt(t,"indicatorSeparator",{"indicator-separator":!0})))},F0=ce.keyframes(Of||(Of=xb([`
4
30
  0%, 80%, 100% { opacity: 0; }
5
31
  40% { opacity: 1; }
6
- `]))),Sd=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,s=o.colors,u=o.spacing.baseUnit;return Y({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:u*2})},di=function(t){var n=t.delay,r=t.offset;return J.jsx("span",{css:J.css({animation:"".concat(Ad," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgIC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4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},wd=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,s=st(t,hd);return J.jsx("div",_({},Se(Y(Y({},s),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),J.jsx(di,{delay:0,offset:r}),J.jsx(di,{delay:160,offset:!0}),J.jsx(di,{delay:320,offset:!r}))},Ed=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,s=o.colors,u=o.borderRadius,a=o.spacing;return Y({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:i?s.primary:s.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},Fd=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,s=t.innerProps,u=t.menuIsOpen;return J.jsx("div",_({ref:o},Se(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),s,{"aria-disabled":r||void 0}),n)},Pd=Fd,kd=["data"],Gd=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Bd=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,s=t.Heading,u=t.headingProps,a=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return J.jsx("div",_({},Se(t,"group",{group:!0}),a),J.jsx(s,_({},u,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),l),J.jsx("div",null,n))},Od=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return Y({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Td=function(t){var n=ss(t);n.data;var r=st(n,kd);return J.jsx("div",_({},Se(t,"groupHeading",{"group-heading":!0}),r))},Vd=Bd,Dd=["innerRef","isDisabled","isHidden","inputClassName"],Rd=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,s=o.spacing,u=o.colors;return Y(Y({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Nd),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:u.neutral80})},ys={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Nd={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Y({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ys)},Md=function(t){return Y({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ys)},Ld=function(t){var n=t.cx,r=t.value,i=ss(t),o=i.innerRef,s=i.isDisabled,u=i.isHidden,a=i.inputClassName,l=st(i,Dd);return J.jsx("div",_({},Se(t,"input",{"input-container":!0}),{"data-value":r||""}),J.jsx("input",_({className:n({input:!0},a),ref:o,style:Md(u),disabled:s},l)))},Xd=Ld,zd=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors;return Y({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Hd=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,s=t.cropWithEllipsis;return Y({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Wd=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,s=r.colors,u=t.isFocused;return Y({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:u?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},Is=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",r,n)},Zd=Is,jd=Is;function Jd(e){var t=e.children,n=e.innerProps;return J.jsx("div",_({role:"button"},n),t||J.jsx(ci,{size:14}))}var Yd=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,s=t.isDisabled,u=t.removeProps,a=t.selectProps,l=r.Container,c=r.Label,d=r.Remove;return J.jsx(l,{data:i,innerProps:Y(Y({},Se(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:a},J.jsx(c,{data:i,innerProps:Y({},Se(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},n),J.jsx(d,{data:i,innerProps:Y(Y({},Se(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:a}))},_d=Yd,Ud=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.theme,u=s.spacing,a=s.colors;return Y({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?a.primary:i?a.primary25:"transparent",color:r?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?a.primary:a.primary50}})},Qd=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,s=t.innerRef,u=t.innerProps;return J.jsx("div",_({},Se(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:s,"aria-disabled":r},u),n)},qd=Qd,$d=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return Y({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Kd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"placeholder",{placeholder:!0}),r),n)},ep=Kd,tp=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,s=i.colors;return Y({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},np=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return J.jsx("div",_({},Se(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},rp=np,Tn={ClearIndicator:vd,Control:Pd,DropdownIndicator:yd,DownChevron:ms,CrossIcon:ci,Group:Vd,GroupHeading:Td,IndicatorsContainer:pd,IndicatorSeparator:xd,Input:Xd,LoadingIndicator:wd,Menu:$c,MenuList:ed,MenuPortal:sd,LoadingMessage:id,NoOptionsMessage:rd,MultiValue:_d,MultiValueContainer:Zd,MultiValueLabel:jd,MultiValueRemove:Jd,Option:qd,Placeholder:ep,SelectContainer:ad,SingleValue:rp,ValueContainer:cd},ip=function(t){return Y(Y({},Tn),t.components)},vs=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function op(e,t){return!!(e===t||vs(e)&&vs(t))}function sp(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!op(e[n],t[n]))return!1;return!0}function up(e,t){t===void 0&&(t=sp);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var s=e.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}function ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var lp=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:ap},cp=function(t){return J.jsx("span",_({css:lp},t))},Cs=cp,dp={guidance:function(t){var n=t.isSearchable,r=t.isMulti,i=t.tabSelectsValue,o=t.context,s=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,i=r===void 0?"":r,o=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,s=o===void 0?"":o,u=t.selectValue,a=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(g,I){return g&&g.length?"".concat(g.indexOf(I)+1," of ").concat(g.length):""};if(n==="value"&&u)return"value ".concat(s," focused, ").concat(d(u,r),".");if(n==="menu"&&c){var f=a?" disabled":"",p="".concat(l?" selected":"").concat(f);return"".concat(s).concat(p,", ").concat(d(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},pp=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,s=t.isFocused,u=t.selectValue,a=t.selectProps,l=t.id,c=t.isAppleDevice,d=a.ariaLiveMessages,f=a.getOptionLabel,p=a.inputValue,y=a.isMulti,g=a.isOptionDisabled,I=a.isSearchable,v=a.menuIsOpen,E=a.options,w=a.screenReaderStatus,S=a.tabSelectsValue,k=a.isLoading,A=a["aria-label"],T=a["aria-live"],F=G.useMemo(function(){return Y(Y({},dp),d||{})},[d]),O=G.useMemo(function(){var H="";if(n&&F.onChange){var U=n.option,Q=n.options,ce=n.removedValue,ye=n.removedValues,b=n.value,xe=function(L){return Array.isArray(L)?null:L},le=ce||U||xe(b),m=le?f(le):"",me=Q||ye||void 0,ne=me?me.map(f):[],fe=Y({isDisabled:le&&g(le,u),label:m,labels:ne},n);H=F.onChange(fe)}return H},[n,F,g,u,f]),X=G.useMemo(function(){var H="",U=r||i,Q=!!(r&&u&&u.includes(r));if(U&&F.onFocus){var ce={focused:U,label:f(U),isDisabled:g(U,u),isSelected:Q,options:o,context:U===r?"menu":"value",selectValue:u,isAppleDevice:c};H=F.onFocus(ce)}return H},[r,i,f,g,F,o,u,c]),N=G.useMemo(function(){var H="";if(v&&E.length&&!k&&F.onFilter){var U=w({count:o.length});H=F.onFilter({inputValue:p,resultsMessage:U})}return H},[o,p,v,F,E,w,k]),V=(n==null?void 0:n.action)==="initial-input-focus",q=G.useMemo(function(){var H="";if(F.guidance){var U=i?"value":v?"menu":"input";H=F.guidance({"aria-label":A,context:U,isDisabled:r&&g(r,u),isMulti:y,isSearchable:I,tabSelectsValue:S,isInitialFocus:V})}return H},[A,r,i,y,g,I,v,F,u,S,V]),se=J.jsx(G.Fragment,null,J.jsx("span",{id:"aria-selection"},O),J.jsx("span",{id:"aria-focused"},X),J.jsx("span",{id:"aria-results"},N),J.jsx("span",{id:"aria-guidance"},q));return J.jsx(G.Fragment,null,J.jsx(Cs,{id:l},V&&se),J.jsx(Cs,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!V&&se))},fp=pp,pi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],hp=new RegExp("["+pi.map(function(e){return e.letters}).join("")+"]","g"),xs={},fi=0;fi<pi.length;fi++)for(var hi=pi[fi],gi=0;gi<hi.letters.length;gi++)xs[hi.letters[gi]]=hi.base;var As=function(t){return t.replace(hp,function(n){return xs[n]})},gp=up(As),Ss=function(t){return t.replace(/^\s+|\s+$/g,"")},mp=function(t){return"".concat(t.label," ").concat(t.value)},bp=function(t){return function(n,r){if(n.data.__isNew__)return!0;var i=Y({ignoreCase:!0,ignoreAccents:!0,stringify:mp,trim:!0,matchFrom:"any"},t),o=i.ignoreCase,s=i.ignoreAccents,u=i.stringify,a=i.trim,l=i.matchFrom,c=a?Ss(r):r,d=a?Ss(u(n)):u(n);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),s&&(c=gp(c),d=As(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},yp=["innerRef"];function Ip(e){var t=e.innerRef,n=st(e,yp),r=Zc(n,"onExited","in","enter","exit","appear");return J.jsx("input",_({ref:t},r,{css:J.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyB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CEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var vp=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Cp(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=G.useRef(!1),u=G.useRef(!1),a=G.useRef(0),l=G.useRef(null),c=G.useCallback(function(I,v){if(l.current!==null){var E=l.current,w=E.scrollTop,S=E.scrollHeight,k=E.clientHeight,A=l.current,T=v>0,F=S-k-w,O=!1;F>v&&s.current&&(r&&r(I),s.current=!1),T&&u.current&&(o&&o(I),u.current=!1),T&&v>F?(n&&!s.current&&n(I),A.scrollTop=S,O=!0,s.current=!0):!T&&-v>w&&(i&&!u.current&&i(I),A.scrollTop=0,O=!0,u.current=!0),O&&vp(I)}},[n,r,i,o]),d=G.useCallback(function(I){c(I,I.deltaY)},[c]),f=G.useCallback(function(I){a.current=I.changedTouches[0].clientY},[]),p=G.useCallback(function(I){var v=a.current-I.changedTouches[0].clientY;c(I,v)},[c]),y=G.useCallback(function(I){if(I){var v=zc?{passive:!1}:!1;I.addEventListener("wheel",d,v),I.addEventListener("touchstart",f,v),I.addEventListener("touchmove",p,v)}},[p,f,d]),g=G.useCallback(function(I){I&&(I.removeEventListener("wheel",d,!1),I.removeEventListener("touchstart",f,!1),I.removeEventListener("touchmove",p,!1))},[p,f,d]);return G.useEffect(function(){if(t){var I=l.current;return y(I),function(){g(I)}}},[t,y,g]),function(I){l.current=I}}var ws=["boxSizing","height","overflow","paddingRight","position"],Es={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Fs(e){e.cancelable&&e.preventDefault()}function Ps(e){e.stopPropagation()}function ks(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Gs(){return"ontouchstart"in window||navigator.maxTouchPoints}var Bs=!!(typeof window<"u"&&window.document&&window.document.createElement),Vn=0,sn={capture:!1,passive:!1};function xp(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=G.useRef({}),o=G.useRef(null),s=G.useCallback(function(a){if(Bs){var l=document.body,c=l&&l.style;if(r&&ws.forEach(function(y){var g=c&&c[y];i.current[y]=g}),r&&Vn<1){var d=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(Es).forEach(function(y){var g=Es[y];c&&(c[y]=g)}),c&&(c.paddingRight="".concat(p,"px"))}l&&Gs()&&(l.addEventListener("touchmove",Fs,sn),a&&(a.addEventListener("touchstart",ks,sn),a.addEventListener("touchmove",Ps,sn))),Vn+=1}},[r]),u=G.useCallback(function(a){if(Bs){var l=document.body,c=l&&l.style;Vn=Math.max(Vn-1,0),r&&Vn<1&&ws.forEach(function(d){var f=i.current[d];c&&(c[d]=f)}),l&&Gs()&&(l.removeEventListener("touchmove",Fs,sn),a&&(a.removeEventListener("touchstart",ks,sn),a.removeEventListener("touchmove",Ps,sn)))}},[r]);return G.useEffect(function(){if(t){var a=o.current;return s(a),function(){u(a)}}},[t,s,u]),function(a){o.current=a}}function Ap(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Sp=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wp=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb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tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Ap};function Ep(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,u=e.onTopArrive,a=e.onTopLeave,l=Cp({isEnabled:i,onBottomArrive:o,onBottomLeave:s,onTopArrive:u,onTopLeave:a}),c=xp({isEnabled:n}),d=function(p){l(p),c(p)};return J.jsx(G.Fragment,null,n&&J.jsx("div",{onClick:Sp,css:wp}),t(d))}function Fp(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Pp=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Fp},kp=function(t){var n=t.name,r=t.onFocus;return J.jsx("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Pp,value:"",onChange:function(){}})},Gp=kp;function mi(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Bp(){return mi(/^iPhone/i)}function Os(){return mi(/^Mac/i)}function Op(){return mi(/^iPad/i)||Os()&&navigator.maxTouchPoints>1}function Tp(){return Bp()||Op()}function Vp(){return Os()||Tp()}var Dp=function(t){return t.label},Ts=function(t){return t.label},Vs=function(t){return t.value},Rp=function(t){return!!t.isDisabled},Np={clearIndicator:Id,container:ud,control:Ed,dropdownIndicator:bd,group:Gd,groupHeading:Od,indicatorsContainer:dd,indicatorSeparator:Cd,input:Rd,loadingIndicator:Sd,loadingMessage:nd,menu:Uc,menuList:Kc,menuPortal:od,multiValue:zd,multiValueLabel:Hd,multiValueRemove:Wd,noOptionsMessage:td,option:Ud,placeholder:$d,singleValue:tp,valueContainer:ld};function Mp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Y({},e);return Object.keys(t).forEach(function(r){var i=r;e[i]?n[i]=function(o,s){return t[i](e[i](o,s),s)}:n[i]=t[i]}),n}var Lp={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Xp=4,Ds=4,zp=38,Hp=Ds*2,Wp={baseUnit:Ds,controlHeight:zp,menuGutter:Hp},Dn={borderRadius:Xp,colors:Lp,spacing:Wp},Zp={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ls(),captureMenuScroll:!ls(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:bp(),formatGroupLabel:Dp,getOptionLabel:Ts,getOptionValue:Vs,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Rp,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Lc(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Rs(e,t,n,r){var i=zs(e,t,n),o=Hs(e,t,n),s=Xs(e,t),u=mr(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:s,value:u,index:r}}function gr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(s,u){return Rs(e,s,t,u)}).filter(function(s){return Ls(e,s)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=Rs(e,n,t,r);return Ls(e,o)?o:void 0}).filter(Hc)}function Ns(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,on(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Ms(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,on(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function jp(e,t){return Ns(gr(e,t))}function Ls(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,s=t.label,u=t.value;return(!Zs(e)||!o)&&Ws(e,{label:s,value:u,data:i},r)}function Jp(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i<t.length)return t[i]}return null}function Yp(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var bi=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},Xs=function(t,n){return t.getOptionLabel(n)},mr=function(t,n){return t.getOptionValue(n)};function zs(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function Hs(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=mr(e,t);return n.some(function(i){return mr(e,i)===r})}function Ws(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Zs=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},_p=1,yi=function(e){dc(n,e);var t=hc(n);function n(r){var i;if(lc(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=Vp(),i.controlRef=null,i.getControlRef=function(a){i.controlRef=a},i.focusedOptionRef=null,i.getFocusedOptionRef=function(a){i.focusedOptionRef=a},i.menuListRef=null,i.getMenuListRef=function(a){i.menuListRef=a},i.inputRef=null,i.getInputRef=function(a){i.inputRef=a},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(a,l){var c=i.props,d=c.onChange,f=c.name;l.name=f,i.ariaOnChange(a,l),d(a,l)},i.setValue=function(a,l,c){var d=i.props,f=d.closeMenuOnSelect,p=d.isMulti,y=d.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:y}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(a,{action:l,option:c})},i.selectOption=function(a){var l=i.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,p=i.state.selectValue,y=d&&i.isOptionSelected(a,p),g=i.isOptionDisabled(a,p);if(y){var I=i.getOptionValue(a);i.setValue(p.filter(function(v){return i.getOptionValue(v)!==I}),"deselect-option",a)}else if(!g)d?i.setValue([].concat(on(p),[a]),"select-option",a):i.setValue(a,"select-option");else{i.ariaOnChange(a,{action:"select-option",option:a,name:f});return}c&&i.blurInput()},i.removeValue=function(a){var l=i.props.isMulti,c=i.state.selectValue,d=i.getOptionValue(a),f=c.filter(function(y){return i.getOptionValue(y)!==d}),p=On(l,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:a}),i.focusInput()},i.clearValue=function(){var a=i.state.selectValue;i.onChange(On(i.props.isMulti,[],null),{action:"clear",removedValues:a})},i.popValue=function(){var a=i.props.isMulti,l=i.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=On(a,d,d[0]||null);c&&i.onChange(f,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(a){return bi(i.state.focusableOptionsWithIds,a)},i.getFocusableOptionsWithIds=function(){return Ms(gr(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return Vc.apply(void 0,[i.props.classNamePrefix].concat(l))},i.getOptionLabel=function(a){return Xs(i.props,a)},i.getOptionValue=function(a){return mr(i.props,a)},i.getStyles=function(a,l){var c=i.props.unstyled,d=Np[a](l,c);d.boxSizing="border-box";var f=i.props.styles[a];return f?f(d,l):d},i.getClassNames=function(a,l){var c,d;return(c=(d=i.props.classNames)[a])===null||c===void 0?void 0:c.call(d,l)},i.getElementId=function(a){return"".concat(i.state.instancePrefix,"-").concat(a)},i.getComponents=function(){return ip(i.props)},i.buildCategorizedOptions=function(){return gr(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return Ns(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(a,l){i.setState({ariaSelection:Y({value:a},l)})},i.onMenuMouseDown=function(a){a.button===0&&(a.stopPropagation(),a.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(a){i.blockOptionHover=!1},i.onControlMouseDown=function(a){if(!a.defaultPrevented){var l=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&i.onMenuClose():l&&i.openMenu("first"):(l&&(i.openAfterFocus=!0),i.focusInput()),a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.preventDefault()}},i.onDropdownIndicatorMouseDown=function(a){if(!(a&&a.type==="mousedown"&&a.button!==0)&&!i.props.isDisabled){var l=i.props,c=l.isMulti,d=l.menuIsOpen;i.focusInput(),d?(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()):i.openMenu("first"),a.preventDefault()}},i.onClearIndicatorMouseDown=function(a){a&&a.type==="mousedown"&&a.button!==0||(i.clearValue(),a.preventDefault(),i.openAfterFocus=!1,a.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(a){typeof i.props.closeMenuOnScroll=="boolean"?a.target instanceof HTMLElement&&dr(a.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(a)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(a){var l=a.touches,c=l&&l.item(0);c&&(i.initialTouchX=c.clientX,i.initialTouchY=c.clientY,i.userIsDragging=!1)},i.onTouchMove=function(a){var l=a.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-i.initialTouchX),f=Math.abs(c.clientY-i.initialTouchY),p=5;i.userIsDragging=d>p||f>p}},i.onTouchEnd=function(a){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(a.target)&&i.menuListRef&&!i.menuListRef.contains(a.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(a){i.userIsDragging||i.onControlMouseDown(a)},i.onClearIndicatorTouchEnd=function(a){i.userIsDragging||i.onClearIndicatorMouseDown(a)},i.onDropdownIndicatorTouchEnd=function(a){i.userIsDragging||i.onDropdownIndicatorMouseDown(a)},i.handleInputChange=function(a){var l=i.props.inputValue,c=a.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(a){i.props.onFocus&&i.props.onFocus(a),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(a){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(a),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(a){if(!(i.blockOptionHover||i.state.focusedOption===a)){var l=i.getFocusableOptions(),c=l.indexOf(a);i.setState({focusedOption:a,focusedOptionId:c>-1?i.getFocusedOptionId(a):null})}},i.shouldHideSelectedOptions=function(){return Zs(i.props)},i.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),i.focus()},i.onKeyDown=function(a){var l=i.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,y=l.isClearable,g=l.isDisabled,I=l.menuIsOpen,v=l.onKeyDown,E=l.tabSelectsValue,w=l.openMenuOnFocus,S=i.state,k=S.focusedOption,A=S.focusedValue,T=S.selectValue;if(!g&&!(typeof v=="function"&&(v(a),a.defaultPrevented))){switch(i.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||p)return;i.focusValue("previous");break;case"ArrowRight":if(!c||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(A)i.removeValue(A);else{if(!d)return;c?i.popValue():y&&i.clearValue()}break;case"Tab":if(i.isComposing||a.shiftKey||!I||!E||!k||w&&i.isOptionSelected(k,T))return;i.selectOption(k);break;case"Enter":if(a.keyCode===229)break;if(I){if(!k||i.isComposing)return;i.selectOption(k);break}return;case"Escape":I?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):y&&f&&i.clearValue();break;case" ":if(p)return;if(!I){i.openMenu("first");break}if(!k)return;i.selectOption(k);break;case"ArrowUp":I?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":I?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!I)return;i.focusOption("pageup");break;case"PageDown":if(!I)return;i.focusOption("pagedown");break;case"Home":if(!I)return;i.focusOption("first");break;case"End":if(!I)return;i.focusOption("last");break;default:return}a.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++_p),i.state.selectValue=cr(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),u=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=s[u],i.state.focusedOptionId=bi(o,s[u])}return i}return cc(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&as(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isDisabled,u=o.menuIsOpen,a=this.state.isFocused;(a&&!s&&i.isDisabled||a&&u&&!i.menuIsOpen)&&this.focusInput(),a&&s&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!a&&!s&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(as(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,s=this.state,u=s.selectValue,a=s.isFocused,l=this.buildFocusableOptions(),c=i==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,s=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=s.indexOf(u);u||(a=-1);var l=s.length-1,c=-1;if(s.length){switch(i){case"previous":a===0?c=0:a===-1?c=l:c=a-1;break;case"next":a>-1&&a<l&&(c=a+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:s[c]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var a=0,l=u.indexOf(s);s||(l=-1),i==="up"?a=l>0?l-1:u.length-1:i==="down"?a=(l+1)%u.length:i==="pageup"?(a=l-o,a<0&&(a=0)):i==="pagedown"?(a=l+o,a>u.length-1&&(a=u.length-1)):i==="last"&&(a=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[a])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Dn):Y(Y({},Dn),this.props.theme):Dn}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,s=this.getStyles,u=this.getClassNames,a=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,y=d.options,g=this.hasValue();return{clearValue:i,cx:o,getStyles:s,getClassNames:u,getValue:a,hasValue:g,isMulti:f,isRtl:p,options:y,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,s=i.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(i,o){return zs(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return Hs(this.props,i,o)}},{key:"filterOption",value:function(i,o){return Ws(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:s,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,s=i.isSearchable,u=i.inputId,a=i.inputValue,l=i.tabIndex,c=i.form,d=i.menuIsOpen,f=i.required,p=this.getComponents(),y=p.Input,g=this.state,I=g.inputIsHidden,v=g.ariaSelection,E=this.commonProps,w=u||this.getElementId("input"),S=Y(Y(Y({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?re.createElement(y,_({},E,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:o,isHidden:I,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:a},S)):re.createElement(Ip,_({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lr,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),s=o.MultiValue,u=o.MultiValueContainer,a=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,p=this.props,y=p.controlShouldRenderValue,g=p.isDisabled,I=p.isMulti,v=p.inputValue,E=p.placeholder,w=this.state,S=w.selectValue,k=w.focusedValue,A=w.isFocused;if(!this.hasValue()||!y)return v?null:re.createElement(d,_({},f,{key:"placeholder",isDisabled:g,isFocused:A,innerProps:{id:this.getElementId("placeholder")}}),E);if(I)return S.map(function(F,O){var X=F===k,N="".concat(i.getOptionLabel(F),"-").concat(i.getOptionValue(F));return re.createElement(s,_({},f,{components:{Container:u,Label:a,Remove:l},isFocused:X,isDisabled:g,key:N,index:O,removeProps:{onClick:function(){return i.removeValue(F)},onTouchEnd:function(){return i.removeValue(F)},onMouseDown:function(q){q.preventDefault()}},data:F}),i.formatOptionLabel(F,"value"))});if(v)return null;var T=S[0];return re.createElement(c,_({},f,{data:T,isDisabled:g}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||a||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,s=this.commonProps,u=this.props,a=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:d,isDisabled:a,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,s=i.IndicatorSeparator;if(!o||!s)return null;var u=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused;return re.createElement(s,_({},u,{isDisabled:a,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var s=this.commonProps,u=this.props.isDisabled,a=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return re.createElement(o,_({},s,{innerProps:l,isDisabled:u,isFocused:a}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),s=o.Group,u=o.GroupHeading,a=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,p=o.Option,y=this.commonProps,g=this.state.focusedOption,I=this.props,v=I.captureMenuScroll,E=I.inputValue,w=I.isLoading,S=I.loadingMessage,k=I.minMenuHeight,A=I.maxMenuHeight,T=I.menuIsOpen,F=I.menuPlacement,O=I.menuPosition,X=I.menuPortalTarget,N=I.menuShouldBlockScroll,V=I.menuShouldScrollIntoView,q=I.noOptionsMessage,se=I.onMenuScrollToTop,H=I.onMenuScrollToBottom;if(!T)return null;var U=function(m,me){var ne=m.type,fe=m.data,Pe=m.isDisabled,L=m.isSelected,Z=m.label,$=m.value,he=g===fe,ke=Pe?void 0:function(){return i.onOptionHover(fe)},Ye=Pe?void 0:function(){return i.selectOption(fe)},Qt="".concat(i.getElementId("option"),"-").concat(me),wn={id:Qt,onClick:Ye,onMouseMove:ke,onMouseOver:ke,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:L};return re.createElement(p,_({},y,{innerProps:wn,data:fe,isDisabled:Pe,isSelected:L,key:Qt,label:Z,type:ne,value:$,isFocused:he,innerRef:he?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(m.data,"menu"))},Q;if(this.hasOptions())Q=this.getCategorizedOptions().map(function(le){if(le.type==="group"){var m=le.data,me=le.options,ne=le.index,fe="".concat(i.getElementId("group"),"-").concat(ne),Pe="".concat(fe,"-heading");return re.createElement(s,_({},y,{key:fe,data:m,options:me,Heading:u,headingProps:{id:Pe,data:le.data},label:i.formatGroupLabel(le.data)}),le.options.map(function(L){return U(L,"".concat(ne,"-").concat(L.index))}))}else if(le.type==="option")return U(le,"".concat(le.index))});else if(w){var ce=S({inputValue:E});if(ce===null)return null;Q=re.createElement(d,y,ce)}else{var ye=q({inputValue:E});if(ye===null)return null;Q=re.createElement(f,y,ye)}var b={minMenuHeight:k,maxMenuHeight:A,menuPlacement:F,menuPosition:O,menuShouldScrollIntoView:V},xe=re.createElement(Qc,_({},y,b),function(le){var m=le.ref,me=le.placerProps,ne=me.placement,fe=me.maxHeight;return re.createElement(a,_({},y,b,{innerRef:m,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:w,placement:ne}),re.createElement(Ep,{captureEnabled:v,onTopArrive:se,onBottomArrive:H,lockEnabled:N},function(Pe){return re.createElement(l,_({},y,{innerRef:function(Z){i.getMenuListRef(Z),Pe(Z)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:i.getElementId("listbox")},isLoading:w,maxHeight:fe,focusedOption:g}),Q)}))});return X||O==="fixed"?re.createElement(c,_({},y,{appendTo:X,controlElement:this.controlRef,menuPlacement:F,menuPosition:O}),xe):xe}},{key:"renderFormField",value:function(){var i=this,o=this.props,s=o.delimiter,u=o.isDisabled,a=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return re.createElement(Gp,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(a)if(s){var f=d.map(function(g){return i.getOptionValue(g)}).join(s);return re.createElement("input",{name:l,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(g,I){return re.createElement("input",{key:"i-".concat(I),name:l,type:"hidden",value:i.getOptionValue(g)})}):re.createElement("input",{name:l,type:"hidden",value:""});return re.createElement("div",null,p)}else{var y=d[0]?this.getOptionValue(d[0]):"";return re.createElement("input",{name:l,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,s=o.ariaSelection,u=o.focusedOption,a=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return re.createElement(fp,_({},i,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:u,focusedValue:a,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,s=i.IndicatorsContainer,u=i.SelectContainer,a=i.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,p=l.menuIsOpen,y=this.state.isFocused,g=this.commonProps=this.getCommonProps();return re.createElement(u,_({},g,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:y}),this.renderLiveRegion(),re.createElement(o,_({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:y,menuIsOpen:p}),re.createElement(a,_({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),re.createElement(s,_({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var s=o.prevProps,u=o.clearFocusValueOnUpdate,a=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,p=i.options,y=i.value,g=i.menuIsOpen,I=i.inputValue,v=i.isMulti,E=cr(y),w={};if(s&&(y!==s.value||p!==s.options||g!==s.menuIsOpen||I!==s.inputValue)){var S=g?jp(i,E):[],k=g?Ms(gr(i,E),"".concat(f,"-option")):[],A=u?Jp(o,E):null,T=Yp(o,S),F=bi(k,T);w={selectValue:E,focusedOption:T,focusedOptionId:F,focusableOptionsWithIds:k,focusedValue:A,clearFocusValueOnUpdate:!1}}var O=a!=null&&i!==s?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},X=l,N=c&&d;return c&&!N&&(X={value:On(v,E,E[0]||null),options:E,action:"initial-input-focus"},N=!d),(l==null?void 0:l.action)==="initial-input-focus"&&(X=null),Y(Y(Y({},w),O),{},{prevProps:i,ariaSelection:X,prevWasFocused:N})}}]),n}(G.Component);yi.defaultProps=Zp;var Up=G.forwardRef(function(e,t){var n=Uo(e);return re.createElement(yi,_({ref:t},n))}),br=Up;const Qp=Dn,yr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},js={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function Js(e){if(!e)return Dn;const t=typeof e=="function"?e(yr):e,{colors:n,spacing:r,borderRadius:i}=Ir(Qp,t);return{borderRadius:i,colors:n,spacing:r}}function Ir(e,...t){const n={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const r of t)r&&(n.borderRadius=r.borderRadius??n.borderRadius,Object.assign(n.boxShadow,r.boxShadow),Object.assign(n.colors,r.colors),Object.assign(n.spacing,r.spacing));return n}function Ey(){}function Fy(){}function qp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $p=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kp=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ef={};function Ys(e,t){return(ef.jsx?Kp:$p).test(e)}const tf=/[ \t\n\f\r]/g;function nf(e){return typeof e=="object"?e.type==="text"?_s(e.value):!1:_s(e)}function _s(e){return e.replace(tf,"")===""}class Rn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Rn.prototype.property={},Rn.prototype.normal={},Rn.prototype.space=null;function Us(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Rn(n,r,t)}function Ii(e){return e.toLowerCase()}class Qe{constructor(t,n){this.property=t,this.attribute=n}}Qe.prototype.space=null,Qe.prototype.boolean=!1,Qe.prototype.booleanish=!1,Qe.prototype.overloadedBoolean=!1,Qe.prototype.number=!1,Qe.prototype.commaSeparated=!1,Qe.prototype.spaceSeparated=!1,Qe.prototype.commaOrSpaceSeparated=!1,Qe.prototype.mustUseProperty=!1,Qe.prototype.defined=!1;let rf=0;const ie=Xt(),Fe=Xt(),Qs=Xt(),R=Xt(),Ie=Xt(),un=Xt(),Ze=Xt();function Xt(){return 2**++rf}const vi=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Fe,commaOrSpaceSeparated:Ze,commaSeparated:un,number:R,overloadedBoolean:Qs,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Ci=Object.keys(vi);class xi extends Qe{constructor(t,n,r,i){let o=-1;if(super(t,n),qs(this,"space",i),typeof r=="number")for(;++o<Ci.length;){const s=Ci[o];qs(this,Ci[o],(r&vi[s])===vi[s])}}}xi.prototype.defined=!0;function qs(e,t,n){n&&(e[t]=n)}const of={}.hasOwnProperty;function an(e){const t={},n={};let r;for(r in e.properties)if(of.call(e.properties,r)){const i=e.properties[r],o=new xi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ii(r)]=r,n[Ii(o.attribute)]=r}return new Rn(t,n,e.space)}const $s=an({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ks=an({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function eu(e,t){return t in e?e[t]:t}function tu(e,t){return eu(e,t.toLowerCase())}const nu=an({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tu,properties:{xmlns:null,xmlnsXLink:null}}),ru=an({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Ie,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:R,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Ie,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:Fe,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null}}),sf=an({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:un,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Ie,autoFocus:ie,autoPlay:ie,blocking:Ie,capture:null,charSet:null,checked:ie,cite:null,className:Ie,cols:R,colSpan:null,content:null,contentEditable:Fe,controls:ie,controlsList:Ie,coords:R|un,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Qs,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Ie,height:R,hidden:ie,high:R,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:ie,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:R,pattern:null,ping:Ie,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Ie,required:ie,reversed:ie,rows:R,rowSpan:R,sandbox:Ie,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Fe,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:R,security:null,unselectable:null}}),uf=an({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:eu,properties:{about:Ze,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:un,g2:un,glyphName:un,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),af=/^data[-\w.:]+$/i,iu=/-[a-z]/g,lf=/[A-Z]/g;function cf(e,t){const n=Ii(t);let r=t,i=Qe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&af.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(iu,pf);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!iu.test(o)){let s=o.replace(lf,df);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=xi}return new i(r,t)}function df(e){return"-"+e.toLowerCase()}function pf(e){return e.charAt(1).toUpperCase()}const ff={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hf=Us([Ks,$s,nu,ru,sf],"html"),Ai=Us([Ks,$s,nu,ru,uf],"svg");function gf(e){return e.join(" ").trim()}var ou={},su=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mf=/\n/g,bf=/^\s*/,yf=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,If=/^:\s*/,vf=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Cf=/^[;\s]*/,xf=/^\s+|\s+$/g,Af=`
7
- `,uu="/",au="*",zt="",Sf="comment",wf="declaration",Ef=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var g=y.match(mf);g&&(n+=g.length);var I=y.lastIndexOf(Af);r=~I?y.length-I:r+y.length}function o(){var y={line:n,column:r};return function(g){return g.position=new s(y),l(),g}}function s(y){this.start=y,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function u(y){var g=new Error(t.source+":"+n+":"+r+": "+y);if(g.reason=y,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function a(y){var g=y.exec(e);if(g){var I=g[0];return i(I),e=e.slice(I.length),g}}function l(){a(bf)}function c(y){var g;for(y=y||[];g=d();)g!==!1&&y.push(g);return y}function d(){var y=o();if(!(uu!=e.charAt(0)||au!=e.charAt(1))){for(var g=2;zt!=e.charAt(g)&&(au!=e.charAt(g)||uu!=e.charAt(g+1));)++g;if(g+=2,zt===e.charAt(g-1))return u("End of comment missing");var I=e.slice(2,g-2);return r+=2,i(I),e=e.slice(g),r+=2,y({type:Sf,comment:I})}}function f(){var y=o(),g=a(yf);if(g){if(d(),!a(If))return u("property missing ':'");var I=a(vf),v=y({type:wf,property:lu(g[0].replace(su,zt)),value:I?lu(I[0].replace(su,zt)):zt});return a(Cf),v}}function p(){var y=[];c(y);for(var g;g=f();)g!==!1&&(y.push(g),c(y));return y}return l(),p()};function lu(e){return e?e.replace(xf,zt):zt}var Ff=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ou,"__esModule",{value:!0});var cu=ou.default=kf,Pf=Ff(Ef);function kf(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Pf.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var s=o.property,u=o.value;i?t(s,u,o):u&&(n=n||{},n[s]=u)}}),n}const Gf=cu.default||cu,du=pu("end"),Si=pu("start");function pu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Bf(e){const t=Si(e),n=du(e);if(t&&n)return{start:t,end:n}}function Nn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fu(e.position):"start"in e||"end"in e?fu(e):"line"in e||"column"in e?wi(e):""}function wi(e){return hu(e&&e.line)+":"+hu(e&&e.column)}function fu(e){return wi(e&&e.start)+"-"+wi(e&&e.end)}function hu(e){return e&&typeof e=="number"?e:1}class Te extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=u?u.line:void 0,this.name=Nn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Te.prototype.file="",Te.prototype.name="",Te.prototype.reason="",Te.prototype.message="",Te.prototype.stack="",Te.prototype.column=void 0,Te.prototype.line=void 0,Te.prototype.ancestors=void 0,Te.prototype.cause=void 0,Te.prototype.fatal=void 0,Te.prototype.place=void 0,Te.prototype.ruleId=void 0,Te.prototype.source=void 0;const Ei={}.hasOwnProperty,Of=new Map,Tf=/[A-Z]/g,Vf=/-([a-z])/g,Df=new Set(["table","tbody","thead","tfoot","tr"]),Rf=new Set(["td","th"]),gu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Nf(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jf(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Zf(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ai:hf,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=mu(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function mu(e,t,n){if(t.type==="element")return Mf(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Lf(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zf(e,t,n);if(t.type==="mdxjsEsm")return Xf(e,t);if(t.type==="root")return Hf(e,t,n);if(t.type==="text")return Wf(e,t)}function Mf(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ai,e.schema=i),e.ancestors.push(t);const o=yu(e,t.tagName,!1),s=Jf(e,t);let u=Pi(e,t);return Df.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!nf(a):!0})),bu(e,s,o,t),Fi(s,u),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Lf(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Mn(e,t.position)}function Xf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Mn(e,t.position)}function zf(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ai,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:yu(e,t.name,!0),s=Yf(e,t),u=Pi(e,t);return bu(e,s,o,t),Fi(s,u),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Hf(e,t,n){const r={};return Fi(r,Pi(e,t)),e.create(t,e.Fragment,r,n)}function Wf(e,t){return t.value}function bu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Fi(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zf(e,t,n){return r;function r(i,o,s,u){const l=Array.isArray(s.children)?n:t;return u?l(o,s,u):l(o,s)}}function jf(e,t){return n;function n(r,i,o,s){const u=Array.isArray(o.children),a=Si(r);return t(i,o,s,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Jf(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ei.call(t.properties,i)){const o=_f(e,i,t.properties[i]);if(o){const[s,u]=o;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&Rf.has(t.tagName)?r=u:n[s]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Yf(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const u=s.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Mn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Mn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Pi(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Of;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const l=i.get(a)||0;s=a+"-"+l,i.set(a,l+1)}}const u=mu(e,o,s);u!==void 0&&n.push(u)}return n}function _f(e,t,n){const r=cf(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qp(n):gf(n)),r.property==="style"){let i=typeof n=="object"?n:Uf(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Qf(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ff[r.property]||r.property:r.attribute,n]}}function Uf(e,t){const n={};try{Gf(t,r)}catch(i){if(!e.ignoreInvalidStyle){const o=i,s=new Te("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=gu+"#cannot-parse-style-attribute",s}}return n;function r(i,o){let s=i;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Vf,$f)),n[s]=o}}function yu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const u=Ys(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=s}else r=Ys(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Ei.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Mn(e)}function Mn(e,t){const n=new Te("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=gu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Qf(e){const t={};let n;for(n in e)Ei.call(e,n)&&(t[qf(n)]=e[n]);return t}function qf(e){let t=e.replace(Tf,Kf);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function $f(e,t){return t.toUpperCase()}function Kf(e){return"-"+e.toLowerCase()}const ki={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},eh={};function th(e,t){const n=eh,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Iu(e,r,i)}function Iu(e,t,n){if(nh(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vu(e.children,t,n)}return Array.isArray(e)?vu(e,t,n):""}function vu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Iu(e[i],t,n);return r.join("")}function nh(e){return!!(e&&typeof e=="object")}const Cu=document.createElement("i");function Gi(e){const t="&"+e+";";Cu.innerHTML=t;const n=Cu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ut(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function qe(e,t){return e.length>0?(ut(e,e.length,0,t),e):t}const xu={}.hasOwnProperty;function rh(e){const t={};let n=-1;for(;++n<e.length;)ih(t,e[n]);return t}function ih(e,t){let n;for(n in t){const i=(xu.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){xu.call(i,s)||(i[s]=[]);const u=o[s];oh(i[s],Array.isArray(u)?u:u?[u]:[])}}}function oh(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ut(e,0,0,r)}function Au(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const at=At(/[A-Za-z]/),je=At(/[\dA-Za-z]/),sh=At(/[#-'*+\--9=?A-Z^-~]/);function Bi(e){return e!==null&&(e<32||e===127)}const Oi=At(/\d/),uh=At(/[\dA-Fa-f]/),ah=At(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function ge(e){return e===-2||e===-1||e===32}const lh=At(new RegExp("\\p{P}|\\p{S}","u")),ch=At(/\s/);function At(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function cn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&je(e.charCodeAt(n+1))&&je(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(s=String.fromCharCode(o,u),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ve(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(a){return ge(a)?(e.enter(n),u(a)):t(a)}function u(a){return ge(a)&&o++<i?(e.consume(a),u):(e.exit(n),t(a))}}const dh={tokenize:ph};function ph(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ve(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return K(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),s)}}const fh={tokenize:hh},Su={tokenize:gh};function hh(e){const t=this,n=[];let r=0,i,o,s;return u;function u(w){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,a,l)(w)}return l(w)}function a(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const S=t.events.length;let k=S,A;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){A=t.events[k][1].end;break}v(r);let T=S;for(;T<t.events.length;)t.events[T][1].end={...A},T++;return ut(t.events,k+1,0,t.events.slice(S)),t.events.length=T,l(w)}return u(w)}function l(w){if(r===n.length){if(!i)return f(w);if(i.currentConstruct&&i.currentConstruct.concrete)return y(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Su,c,d)(w)}function c(w){return i&&E(),v(r),f(w)}function d(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,y(w)}function f(w){return t.containerState={},e.attempt(Su,p,y)(w)}function p(w){return r++,n.push([t.currentConstruct,t.containerState]),f(w)}function y(w){if(w===null){i&&E(),v(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(w)}function g(w){if(w===null){I(e.exit("chunkFlow"),!0),v(0),e.consume(w);return}return K(w)?(e.consume(w),I(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(w),g)}function I(w,S){const k=t.sliceStream(w);if(S&&k.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(k),t.parser.lazy[w.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<s&&(!i.events[A][1].end||i.events[A][1].end.offset>s))return;const T=t.events.length;let F=T,O,X;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(O){X=t.events[F][1].end;break}O=!0}for(v(r),A=T;A<t.events.length;)t.events[A][1].end={...X},A++;ut(t.events,F+1,0,t.events.slice(T)),t.events.length=A}}function v(w){let S=n.length;for(;S-- >w;){const k=n[S];t.containerState=k[1],k[0].exit.call(t,e)}n.length=w}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function gh(e,t,n){return ve(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wu(e){if(e===null||Le(e)||ch(e))return 1;if(lh(e))return 2}function Ti(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Vi={name:"attention",resolveAll:mh,tokenize:bh};function mh(e,t){let n=-1,r,i,o,s,u,a,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[n][1].start};Eu(d,-a),Eu(f,a),s={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[r][1].end={...s.start},e[n][1].start={...u.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=qe(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=qe(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),l=qe(l,Ti(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=qe(l,[["exit",o,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=qe(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ut(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function bh(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wu(r);let o;return s;function s(a){return o=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===o)return e.consume(a),u;const l=e.exit("attentionSequence"),c=wu(a),d=!c||c===2&&i||n.includes(a),f=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?d:d&&(i||!f)),l._close=!!(o===42?f:f&&(c||!d)),t(a)}}function Eu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const yh={name:"autolink",tokenize:Ih};function Ih(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return at(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||je(p)?(r=1,u(p)):l(p)}function u(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||je(p))&&r++<32?(e.consume(p),u):(r=0,l(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Bi(p)?n(p):(e.consume(p),a)}function l(p){return p===64?(e.consume(p),c):sh(p)?(e.consume(p),l):n(p)}function c(p){return je(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||je(p))&&r++<63){const y=p===45?f:d;return e.consume(p),y}return n(p)}}const vr={partial:!0,tokenize:vh};function vh(e,t,n){return r;function r(o){return ge(o)?ve(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||K(o)?t(o):n(o)}}const Fu={continuation:{tokenize:xh},exit:Ah,name:"blockQuote",tokenize:Ch};function Ch(e,t,n){const r=this;return i;function i(s){if(s===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ge(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function xh(e,t,n){const r=this;return i;function i(s){return ge(s)?ve(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(Fu,t,n)(s)}}function Ah(e){e.exit("blockQuote")}const Pu={name:"characterEscape",tokenize:Sh};function Sh(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ah(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const ku={name:"characterReference",tokenize:wh};function wh(e,t,n){const r=this;let i=0,o,s;return u;function u(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),a}function a(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,s=je,c(d))}function l(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=uh,c):(e.enter("characterReferenceValue"),o=7,s=Oi,c(d))}function c(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===je&&!Gi(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<o?(e.consume(d),c):n(d)}}const Gu={partial:!0,tokenize:Fh},Bu={concrete:!0,name:"codeFenced",tokenize:Eh};function Eh(e,t,n){const r=this,i={partial:!0,tokenize:k};let o=0,s=0,u;return a;function a(A){return l(A)}function l(A){const T=r.events[r.events.length-1];return o=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,u=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===u?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),ge(A)?ve(e,d,"whitespace")(A):d(A))}function d(A){return A===null||K(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(Gu,g,S)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||K(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):ge(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ve(e,p,"whitespace")(A)):A===96&&A===u?n(A):(e.consume(A),f)}function p(A){return A===null||K(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(A))}function y(A){return A===null||K(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===u?n(A):(e.consume(A),y)}function g(A){return e.attempt(i,S,I)(A)}function I(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),v}function v(A){return o>0&&ge(A)?ve(e,E,"linePrefix",o+1)(A):E(A)}function E(A){return A===null||K(A)?e.check(Gu,g,S)(A):(e.enter("codeFlowValue"),w(A))}function w(A){return A===null||K(A)?(e.exit("codeFlowValue"),E(A)):(e.consume(A),w)}function S(A){return e.exit("codeFenced"),t(A)}function k(A,T,F){let O=0;return X;function X(H){return A.enter("lineEnding"),A.consume(H),A.exit("lineEnding"),N}function N(H){return A.enter("codeFencedFence"),ge(H)?ve(A,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):V(H)}function V(H){return H===u?(A.enter("codeFencedFenceSequence"),q(H)):F(H)}function q(H){return H===u?(O++,A.consume(H),q):O>=s?(A.exit("codeFencedFenceSequence"),ge(H)?ve(A,se,"whitespace")(H):se(H)):F(H)}function se(H){return H===null||K(H)?(A.exit("codeFencedFence"),T(H)):F(H)}}}function Fh(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Di={name:"codeIndented",tokenize:kh},Ph={partial:!0,tokenize:Gh};function kh(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ve(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?a(l):K(l)?e.attempt(Ph,s,a)(l):(e.enter("codeFlowValue"),u(l))}function u(l){return l===null||K(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),u)}function a(l){return e.exit("codeIndented"),t(l)}}function Gh(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):K(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ve(e,o,"linePrefix",5)(s)}function o(s){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):K(s)?i(s):n(s)}}const Bh={name:"codeText",previous:Th,resolve:Oh,tokenize:Vh};function Oh(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Th(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Vh(e,t,n){let r=0,i,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),u(d)}function u(d){return d===96?(e.consume(d),r++,u):(e.exit("codeTextSequence"),a(d))}function a(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),a):d===96?(o=e.enter("codeTextSequence"),i=0,c(d)):K(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(d))}function l(d){return d===null||d===32||d===96||K(d)?(e.exit("codeTextData"),a(d)):(e.consume(d),l)}function c(d){return d===96?(e.consume(d),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",l(d))}}class Dh{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ln(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ln(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ln(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ln(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ln(this.left,n.reverse())}}}function Ln(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ou(e){const t={};let n=-1,r,i,o,s,u,a,l;const c=new Dh(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Rh(c,n)),n=t[n],l=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,n),u.unshift(r),c.splice(i,n-i+1,u))}}return ut(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Rh(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),u=s.events,a=[],l={};let c,d,f=-1,p=n,y=0,g=0;const I=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<u.length;)u[f][0]==="exit"&&u[f-1][0]==="enter"&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(g=f+1,I.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):I.pop(),f=I.length;f--;){const v=u.slice(I[f],I[f+1]),E=o.pop();a.push([E,E+v.length-1]),e.splice(E,2,v)}for(a.reverse(),f=-1;++f<a.length;)l[y+a[f][0]]=y+a[f][1],y+=a[f][1]-a[f][0]-1;return l}const Nh={resolve:Lh,tokenize:Xh},Mh={partial:!0,tokenize:zh};function Lh(e){return Ou(e),e}function Xh(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):K(u)?e.check(Mh,s,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function zh(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ve(e,o,"linePrefix")}function o(s){if(s===null||K(s))return n(s);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Tu(e,t,n,r,i,o,s,u,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),f):v===null||v===32||v===41||Bi(v)?n(v):(e.enter(r),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(u),f(v)):v===null||v===60||K(v)?n(v):(e.consume(v),v===92?y:p)}function y(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||Le(v))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(r),t(v)):c<l&&v===40?(e.consume(v),c++,g):v===41?(e.consume(v),c--,g):v===null||v===32||v===40||Bi(v)?n(v):(e.consume(v),v===92?I:g)}function I(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function Vu(e,t,n,r,i,o){const s=this;let u=0,a;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):K(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||K(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!ge(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),u++,d):d(p)}}function Du(e,t,n,r,i,o){let s;return u;function u(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,a):n(f)}function a(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),l(f))}function l(f){return f===s?(e.exit(o),a(s)):f===null?n(f):K(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ve(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||K(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Xn(e,t){let n;return r;function r(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ge(i)?ve(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Hh={name:"definition",tokenize:Zh},Wh={partial:!0,tokenize:jh};function Zh(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return Vu.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return Le(p)?Xn(e,l)(p):l(p)}function l(p){return Tu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Wh,d,d)(p)}function d(p){return ge(p)?ve(e,f,"whitespace")(p):f(p)}function f(p){return p===null||K(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function jh(e,t,n){return r;function r(u){return Le(u)?Xn(e,i)(u):n(u)}function i(u){return Du(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return ge(u)?ve(e,s,"whitespace")(u):s(u)}function s(u){return u===null||K(u)?t(u):n(u)}}const Jh={name:"hardBreakEscape",tokenize:Yh};function Yh(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return K(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const _h={name:"headingAtx",resolve:Uh,tokenize:Qh};function Uh(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ut(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Qh(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Le(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||K(c)?(e.exit("atxHeading"),t(c)):ge(c)?ve(e,u,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),u(c))}function l(c){return c===null||c===35||Le(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),l)}}const qh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ru=["pre","script","style","textarea"],$h={concrete:!0,name:"htmlFlow",resolveTo:tg,tokenize:ng},Kh={partial:!0,tokenize:ig},eg={partial:!0,tokenize:rg};function tg(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ng(e,t,n){const r=this;let i,o,s,u,a;return l;function l(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),d}function d(m){return m===33?(e.consume(m),f):m===47?(e.consume(m),o=!0,g):m===63?(e.consume(m),i=3,r.interrupt?t:b):at(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function f(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,u=0,y):at(m)?(e.consume(m),i=4,r.interrupt?t:b):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:b):n(m)}function y(m){const me="CDATA[";return m===me.charCodeAt(u++)?(e.consume(m),u===me.length?r.interrupt?t:V:y):n(m)}function g(m){return at(m)?(e.consume(m),s=String.fromCharCode(m),I):n(m)}function I(m){if(m===null||m===47||m===62||Le(m)){const me=m===47,ne=s.toLowerCase();return!me&&!o&&Ru.includes(ne)?(i=1,r.interrupt?t(m):V(m)):qh.includes(s.toLowerCase())?(i=6,me?(e.consume(m),v):r.interrupt?t(m):V(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?E(m):w(m))}return m===45||je(m)?(e.consume(m),s+=String.fromCharCode(m),I):n(m)}function v(m){return m===62?(e.consume(m),r.interrupt?t:V):n(m)}function E(m){return ge(m)?(e.consume(m),E):X(m)}function w(m){return m===47?(e.consume(m),X):m===58||m===95||at(m)?(e.consume(m),S):ge(m)?(e.consume(m),w):X(m)}function S(m){return m===45||m===46||m===58||m===95||je(m)?(e.consume(m),S):k(m)}function k(m){return m===61?(e.consume(m),A):ge(m)?(e.consume(m),k):w(m)}function A(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),a=m,T):ge(m)?(e.consume(m),A):F(m)}function T(m){return m===a?(e.consume(m),a=null,O):m===null||K(m)?n(m):(e.consume(m),T)}function F(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Le(m)?k(m):(e.consume(m),F)}function O(m){return m===47||m===62||ge(m)?w(m):n(m)}function X(m){return m===62?(e.consume(m),N):n(m)}function N(m){return m===null||K(m)?V(m):ge(m)?(e.consume(m),N):n(m)}function V(m){return m===45&&i===2?(e.consume(m),U):m===60&&i===1?(e.consume(m),Q):m===62&&i===4?(e.consume(m),xe):m===63&&i===3?(e.consume(m),b):m===93&&i===5?(e.consume(m),ye):K(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Kh,le,q)(m)):m===null||K(m)?(e.exit("htmlFlowData"),q(m)):(e.consume(m),V)}function q(m){return e.check(eg,se,le)(m)}function se(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),H}function H(m){return m===null||K(m)?q(m):(e.enter("htmlFlowData"),V(m))}function U(m){return m===45?(e.consume(m),b):V(m)}function Q(m){return m===47?(e.consume(m),s="",ce):V(m)}function ce(m){if(m===62){const me=s.toLowerCase();return Ru.includes(me)?(e.consume(m),xe):V(m)}return at(m)&&s.length<8?(e.consume(m),s+=String.fromCharCode(m),ce):V(m)}function ye(m){return m===93?(e.consume(m),b):V(m)}function b(m){return m===62?(e.consume(m),xe):m===45&&i===2?(e.consume(m),b):V(m)}function xe(m){return m===null||K(m)?(e.exit("htmlFlowData"),le(m)):(e.consume(m),xe)}function le(m){return e.exit("htmlFlow"),t(m)}}function rg(e,t,n){const r=this;return i;function i(s){return K(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function ig(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(vr,t,n)}}const og={name:"htmlText",tokenize:sg};function sg(e,t,n){const r=this;let i,o,s;return u;function u(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),a}function a(b){return b===33?(e.consume(b),l):b===47?(e.consume(b),k):b===63?(e.consume(b),w):at(b)?(e.consume(b),F):n(b)}function l(b){return b===45?(e.consume(b),c):b===91?(e.consume(b),o=0,y):at(b)?(e.consume(b),E):n(b)}function c(b){return b===45?(e.consume(b),p):n(b)}function d(b){return b===null?n(b):b===45?(e.consume(b),f):K(b)?(s=d,Q(b)):(e.consume(b),d)}function f(b){return b===45?(e.consume(b),p):d(b)}function p(b){return b===62?U(b):b===45?f(b):d(b)}function y(b){const xe="CDATA[";return b===xe.charCodeAt(o++)?(e.consume(b),o===xe.length?g:y):n(b)}function g(b){return b===null?n(b):b===93?(e.consume(b),I):K(b)?(s=g,Q(b)):(e.consume(b),g)}function I(b){return b===93?(e.consume(b),v):g(b)}function v(b){return b===62?U(b):b===93?(e.consume(b),v):g(b)}function E(b){return b===null||b===62?U(b):K(b)?(s=E,Q(b)):(e.consume(b),E)}function w(b){return b===null?n(b):b===63?(e.consume(b),S):K(b)?(s=w,Q(b)):(e.consume(b),w)}function S(b){return b===62?U(b):w(b)}function k(b){return at(b)?(e.consume(b),A):n(b)}function A(b){return b===45||je(b)?(e.consume(b),A):T(b)}function T(b){return K(b)?(s=T,Q(b)):ge(b)?(e.consume(b),T):U(b)}function F(b){return b===45||je(b)?(e.consume(b),F):b===47||b===62||Le(b)?O(b):n(b)}function O(b){return b===47?(e.consume(b),U):b===58||b===95||at(b)?(e.consume(b),X):K(b)?(s=O,Q(b)):ge(b)?(e.consume(b),O):U(b)}function X(b){return b===45||b===46||b===58||b===95||je(b)?(e.consume(b),X):N(b)}function N(b){return b===61?(e.consume(b),V):K(b)?(s=N,Q(b)):ge(b)?(e.consume(b),N):O(b)}function V(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,q):K(b)?(s=V,Q(b)):ge(b)?(e.consume(b),V):(e.consume(b),se)}function q(b){return b===i?(e.consume(b),i=void 0,H):b===null?n(b):K(b)?(s=q,Q(b)):(e.consume(b),q)}function se(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||Le(b)?O(b):(e.consume(b),se)}function H(b){return b===47||b===62||Le(b)?O(b):n(b)}function U(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function Q(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ce}function ce(b){return ge(b)?ve(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):ye(b)}function ye(b){return e.enter("htmlTextData"),s(b)}}const Ri={name:"labelEnd",resolveAll:cg,resolveTo:dg,tokenize:pg},ug={tokenize:fg},ag={tokenize:hg},lg={tokenize:gg};function cg(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ut(e,0,e.length,n),e}function dg(e,t){let n=e.length,r=0,i,o,s,u;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",a,t],["enter",l,t]],u=qe(u,e.slice(o+1,o+r+3)),u=qe(u,[["enter",c,t]]),u=qe(u,Ti(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),u=qe(u,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),u=qe(u,e.slice(s+1)),u=qe(u,[["exit",a,t]]),ut(e,o,e.length,u),e}function pg(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return u;function u(f){return o?o._inactive?d(f):(s=r.parser.defined.includes(ln(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),a):n(f)}function a(f){return f===40?e.attempt(ug,c,s?c:d)(f):f===91?e.attempt(ag,c,s?l:d)(f):s?c(f):d(f)}function l(f){return e.attempt(lg,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,n(f)}}function fg(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Le(d)?Xn(e,o)(d):o(d)}function o(d){return d===41?c(d):Tu(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Le(d)?Xn(e,a)(d):c(d)}function u(d){return n(d)}function a(d){return d===34||d===39||d===40?Du(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function l(d){return Le(d)?Xn(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function hg(e,t,n){const r=this;return i;function i(u){return Vu.call(r,e,o,s,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function s(u){return n(u)}}function gg(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const mg={name:"labelStartImage",resolveAll:Ri.resolveAll,tokenize:bg};function bg(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),o}function o(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):n(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const yg={name:"labelStartLink",resolveAll:Ri.resolveAll,tokenize:Ig};function Ig(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ni={name:"lineEnding",tokenize:vg};function vg(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ve(e,t,"linePrefix")}}const Cr={name:"thematicBreak",tokenize:Cg};function Cg(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,u(l)}function u(l){return l===i?(e.enter("thematicBreakSequence"),a(l)):r>=3&&(l===null||K(l))?(e.exit("thematicBreak"),t(l)):n(l)}function a(l){return l===i?(e.consume(l),r++,a):(e.exit("thematicBreakSequence"),ge(l)?ve(e,u,"whitespace")(l):u(l))}}const Xe={continuation:{tokenize:wg},exit:Fg,name:"list",tokenize:Sg},xg={partial:!0,tokenize:Pg},Ag={partial:!0,tokenize:Eg};function Sg(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return u;function u(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Oi(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Cr,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return Oi(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(vr,r.interrupt?n:c,e.attempt(xg,f,d))}function c(p){return r.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return ge(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function wg(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(vr,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ve(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!ge(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ag,t,s)(u))}function s(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,ve(e,e.attempt(Xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function Eg(e,t,n){const r=this;return ve(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function Fg(e){e.exit(this.containerState.type)}function Pg(e,t,n){const r=this;return ve(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!ge(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Nu={name:"setextUnderline",resolveTo:kg,tokenize:Gg};function kg(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Gg(e,t,n){const r=this;let i;return o;function o(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),u(l)}function u(l){return l===i?(e.consume(l),u):(e.exit("setextHeadingLineSequence"),ge(l)?ve(e,a,"lineSuffix")(l):a(l))}function a(l){return l===null||K(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const Bg={tokenize:Og};function Og(e){const t=this,n=e.attempt(vr,r,e.attempt(this.parser.constructs.flowInitial,i,ve(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nh,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Tg={resolveAll:Lu()},Vg=Mu("string"),Dg=Mu("text");function Mu(e){return{resolveAll:Lu(e==="text"?Rg:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,u);return s;function s(c){return l(c)?o(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return l(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function l(c){if(c===null)return!0;const d=i[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Lu(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Rg(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,u=0,a;for(;o--;){const l=i[o];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(l===-2)a=!0,u++;else if(l!==-1){o++;break}}if(u){const l={type:n===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const Ng=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Hh},disable:{null:[]},document:{42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:Fu},flow:{35:_h,42:Cr,45:[Nu,Cr],60:$h,61:Nu,95:Cr,96:Bu,126:Bu},flowInitial:{[-2]:Di,[-1]:Di,32:Di},insideSpan:{null:[Vi,Tg]},string:{38:ku,92:Pu},text:{[-5]:Ni,[-4]:Ni,[-3]:Ni,33:mg,38:ku,42:Vi,60:[yh,og],91:yg,92:[Jh,Pu],93:Ri,95:Vi,96:Bh}},Symbol.toStringTag,{value:"Module"}));function Mg(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],u=[];const a={attempt:T(k),check:T(A),consume:E,enter:w,exit:S,interrupt:T(A,{interrupt:!0})},l={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(l,a);return t.resolveAll&&o.push(t),l;function d(N){return s=qe(s,N),I(),s[s.length-1]!==null?[]:(F(t,0),l.events=Ti(o,l.events,l),l.events)}function f(N,V){return Xg(p(N),V)}function p(N){return Lg(s,N)}function y(){const{_bufferIndex:N,_index:V,line:q,column:se,offset:H}=r;return{_bufferIndex:N,_index:V,line:q,column:se,offset:H}}function g(N){i[N.line]=N.column,X()}function I(){let N;for(;r._index<s.length;){const V=s[r._index];if(typeof V=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<V.length;)v(V.charCodeAt(r._bufferIndex));else v(V)}}function v(N){c=c(N)}function E(N){K(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,X()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=N}function w(N,V){const q=V||{};return q.type=N,q.start=y(),l.events.push(["enter",q,l]),u.push(q),q}function S(N){const V=u.pop();return V.end=y(),l.events.push(["exit",V,l]),V}function k(N,V){F(N,V.from)}function A(N,V){V.restore()}function T(N,V){return q;function q(se,H,U){let Q,ce,ye,b;return Array.isArray(se)?le(se):"tokenize"in se?le([se]):xe(se);function xe(fe){return Pe;function Pe(L){const Z=L!==null&&fe[L],$=L!==null&&fe.null,he=[...Array.isArray(Z)?Z:Z?[Z]:[],...Array.isArray($)?$:$?[$]:[]];return le(he)(L)}}function le(fe){return Q=fe,ce=0,fe.length===0?U:m(fe[ce])}function m(fe){return Pe;function Pe(L){return b=O(),ye=fe,fe.partial||(l.currentConstruct=fe),fe.name&&l.parser.constructs.disable.null.includes(fe.name)?ne():fe.tokenize.call(V?Object.assign(Object.create(l),V):l,a,me,ne)(L)}}function me(fe){return N(ye,b),H}function ne(fe){return b.restore(),++ce<Q.length?m(Q[ce]):U}}}function F(N,V){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&ut(l.events,V,l.events.length-V,N.resolve(l.events.slice(V),l)),N.resolveTo&&(l.events=N.resolveTo(l.events,l))}function O(){const N=y(),V=l.previous,q=l.currentConstruct,se=l.events.length,H=Array.from(u);return{from:se,restore:U};function U(){r=N,l.previous=V,l.currentConstruct=q,l.events.length=se,u=H,X()}}function X(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Lg(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function Xg(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
8
- `;break}case-3:{s=`\r
9
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function zg(e){const r={constructs:rh([Ng,...(e||{}).extensions||[]]),content:i(dh),defined:[],document:i(fh),flow:i(Bg),lazy:{},string:i(Vg),text:i(Dg)};return r;function i(o){return s;function s(u){return Mg(r,o,u)}}}function Hg(e){for(;!Ou(e););return e}const Xu=/[\0\t\n\r]/g;function Wg(){let e=1,t="",n=!0,r;return i;function i(o,s,u){const a=[];let l,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Xu.lastIndex=d,l=Xu.exec(o),f=l&&l.index!==void 0?l.index:o.length,p=o.charCodeAt(f),!l){t=o.slice(d);break}if(p===10&&d===f&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),d<f&&(a.push(o.slice(d,f)),e+=f-d),p){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return u&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Zg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jg(e){return e.replace(Zg,Jg)}function Jg(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Au(n.slice(o?2:1),o?16:10)}return Gi(n)||e}const zu={}.hasOwnProperty;function Yg(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_g(n)(Hg(zg(n).document().write(Wg()(e,t,!0))))}function _g(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Dr),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(wn),blockQuote:o($),characterEscape:O,characterReference:O,codeFenced:o(he),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(he,s),codeText:o(ke,s),codeTextData:O,data:O,codeFlowValue:O,definition:o(Ye),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Qt),hardBreakEscape:o(Tr),hardBreakTrailing:o(Tr),htmlFlow:o(Vr,s),htmlFlowData:O,htmlText:o(Vr,s),htmlTextData:O,image:o(to),label:s,link:o(Dr),listItem:o(no),listItemValue:f,listOrdered:o(Rr,d),listUnordered:o(Rr),paragraph:o(ro),reference:m,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(wn),strong:o(io),thematicBreak:o(so)},exit:{atxHeading:a(),atxHeadingSequence:k,autolink:a(),autolinkEmail:Z,autolinkProtocol:L,blockQuote:a(),characterEscapeValue:X,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:fe,characterReference:Pe,codeFenced:a(I),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:X,codeIndented:a(v),codeText:a(H),codeTextData:X,data:X,definition:a(),definitionDestinationString:S,definitionLabelString:E,definitionTitleString:w,emphasis:a(),hardBreakEscape:a(V),hardBreakTrailing:a(V),htmlFlow:a(q),htmlFlowData:X,htmlText:a(se),htmlTextData:X,image:a(Q),label:ye,labelText:ce,lineEnding:N,link:a(U),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:me,resourceDestinationString:b,resourceTitleString:xe,resource:le,setextHeading:a(F),setextHeadingLineSequence:T,setextHeadingText:A,strong:a(),thematicBreak:a()}};Hu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let M={type:"root",children:[]};const ee={stack:[M],tokenStack:[],config:t,enter:u,exit:l,buffer:s,resume:c,data:n},ue=[];let ae=-1;for(;++ae<P.length;)if(P[ae][1].type==="listOrdered"||P[ae][1].type==="listUnordered")if(P[ae][0]==="enter")ue.push(ae);else{const We=ue.pop();ae=i(P,We,ae)}for(ae=-1;++ae<P.length;){const We=t[P[ae][0]];zu.call(We,P[ae][1].type)&&We[P[ae][1].type].call(Object.assign({sliceSerialize:P[ae][2].sliceSerialize},ee),P[ae][1])}if(ee.tokenStack.length>0){const We=ee.tokenStack[ee.tokenStack.length-1];(We[1]||Wu).call(ee,void 0,We[0])}for(M.position={start:St(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:St(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<t.transforms.length;)M=t.transforms[ae](M)||M;return M}function i(P,M,ee){let ue=M-1,ae=-1,We=!1,ht,rt,Ot,gt;for(;++ue<=ee;){const De=P[ue];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?ae++:ae--,gt=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(ht&&!gt&&!ae&&!Ot&&(Ot=ue),gt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gt=void 0}if(!ae&&De[0]==="enter"&&De[1].type==="listItemPrefix"||ae===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(ht){let It=ue;for(rt=void 0;It--;){const it=P[It];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;rt&&(P[rt][1].type="lineEndingBlank",We=!0),it[1].type="lineEnding",rt=It}else if(!(it[1].type==="linePrefix"||it[1].type==="blockQuotePrefix"||it[1].type==="blockQuotePrefixWhitespace"||it[1].type==="blockQuoteMarker"||it[1].type==="listItemIndent"))break}Ot&&(!rt||Ot<rt)&&(ht._spread=!0),ht.end=Object.assign({},rt?P[rt][1].start:De[1].end),P.splice(rt||ue,0,["exit",ht,De[2]]),ue++,ee++}if(De[1].type==="listItemPrefix"){const It={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};ht=It,P.splice(ue,0,["enter",It,De[2]]),ue++,ee++,Ot=void 0,gt=!0}}}return P[M][1]._spread=We,ee}function o(P,M){return ee;function ee(ue){u.call(this,P(ue),ue),M&&M.call(this,ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(P,M,ee){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([M,ee||void 0]),P.position={start:St(M.start),end:void 0}}function a(P){return M;function M(ee){P&&P.call(this,ee),l.call(this,ee)}}function l(P,M){const ee=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==P.type&&(M?M.call(this,P,ue[0]):(ue[1]||Wu).call(this,P,ue[0]));else throw new Error("Cannot close `"+P.type+"` ("+Nn({start:P.start,end:P.end})+"): it’s not open");ee.position.end=St(P.end)}function c(){return th(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(P){if(this.data.expectingFirstListItemValue){const M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function p(){const P=this.resume(),M=this.stack[this.stack.length-1];M.lang=P}function y(){const P=this.resume(),M=this.stack[this.stack.length-1];M.meta=P}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P.replace(/(\r?\n|\r)$/g,"")}function E(P){const M=this.resume(),ee=this.stack[this.stack.length-1];ee.label=M,ee.identifier=ln(this.sliceSerialize(P)).toLowerCase()}function w(){const P=this.resume(),M=this.stack[this.stack.length-1];M.title=P}function S(){const P=this.resume(),M=this.stack[this.stack.length-1];M.url=P}function k(P){const M=this.stack[this.stack.length-1];if(!M.depth){const ee=this.sliceSerialize(P).length;M.depth=ee}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function T(P){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function O(P){const ee=this.stack[this.stack.length-1].children;let ue=ee[ee.length-1];(!ue||ue.type!=="text")&&(ue=oo(),ue.position={start:St(P.start),end:void 0},ee.push(ue)),this.stack.push(ue)}function X(P){const M=this.stack.pop();M.value+=this.sliceSerialize(P),M.position.end=St(P.end)}function N(P){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=M.children[M.children.length-1];ee.position.end=St(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(O.call(this,P),X.call(this,P))}function V(){this.data.atHardBreak=!0}function q(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P}function se(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P}function H(){const P=this.resume(),M=this.stack[this.stack.length-1];M.value=P}function U(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=M,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function Q(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=M,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function ce(P){const M=this.sliceSerialize(P),ee=this.stack[this.stack.length-2];ee.label=jg(M),ee.identifier=ln(M).toLowerCase()}function ye(){const P=this.stack[this.stack.length-1],M=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const ue=P.children;ee.children=ue}else ee.alt=M}function b(){const P=this.resume(),M=this.stack[this.stack.length-1];M.url=P}function xe(){const P=this.resume(),M=this.stack[this.stack.length-1];M.title=P}function le(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function me(P){const M=this.resume(),ee=this.stack[this.stack.length-1];ee.label=M,ee.identifier=ln(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function ne(P){this.data.characterReferenceType=P.type}function fe(P){const M=this.sliceSerialize(P),ee=this.data.characterReferenceType;let ue;ee?(ue=Au(M,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=Gi(M);const ae=this.stack[this.stack.length-1];ae.value+=ue}function Pe(P){const M=this.stack.pop();M.position.end=St(P.end)}function L(P){X.call(this,P);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(P)}function Z(P){X.call(this,P);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(P)}function $(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function ke(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qt(){return{type:"emphasis",children:[]}}function wn(){return{type:"heading",depth:0,children:[]}}function Tr(){return{type:"break"}}function Vr(){return{type:"html",value:""}}function to(){return{type:"image",title:null,url:"",alt:null}}function Dr(){return{type:"link",title:null,url:"",children:[]}}function Rr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function no(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function ro(){return{type:"paragraph",children:[]}}function io(){return{type:"strong",children:[]}}function oo(){return{type:"text",value:""}}function so(){return{type:"thematicBreak"}}}function St(e){return{line:e.line,column:e.column,offset:e.offset}}function Hu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hu(e,r):Ug(e,r)}}function Ug(e,t){let n;for(n in t)if(zu.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Wu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nn({start:t.start,end:t.end})+") is still open")}function Qg(e){const t=this;t.parser=n;function n(r){return Yg(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qg(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $g(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
10
- `}]}function Kg(e,t){const n=t.value?t.value+`
11
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function em(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tm(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nm(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=cn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const l={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,l),e.applyData(t,l)}function rm(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function im(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Zu(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function om(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={src:cn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function sm(e,t){const n={src:cn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function um(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function am(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={href:cn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function lm(e,t){const n={href:cn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cm(e,t,n){const r=e.all(t),i=n?dm(n):ju(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const c=r[u];(i||u!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
12
- `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
13
- `});const l={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,l),e.applyData(t,l)}function dm(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ju(n[r])}return t}function ju(e){const t=e.spread;return t??e.children.length>1}function pm(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function fm(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hm(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function gm(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mm(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Si(t.children[1]),a=du(t.children[t.children.length-1]);u&&a&&(s.position={start:u,end:a}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function bm(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,u=s?s.length:t.children.length;let a=-1;const l=[];for(;++a<u;){const d=t.children[a],f={},p=s?s[a]:void 0;p&&(f.align=p);let y={type:"element",tagName:o,properties:f,children:[]};d&&(y.children=e.all(d),e.patch(d,y),y=e.applyData(d,y)),l.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)}function ym(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ju=9,Yu=32;function Im(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(_u(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(_u(t.slice(i),i>0,!1)),o.join("")}function _u(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Ju||o===Yu;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Ju||o===Yu;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function vm(e,t){const n={type:"text",value:Im(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Cm(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const xm={blockquote:qg,break:$g,code:Kg,delete:em,emphasis:tm,footnoteReference:nm,heading:rm,html:im,imageReference:om,image:sm,inlineCode:um,linkReference:am,link:lm,listItem:cm,list:pm,paragraph:fm,root:hm,strong:gm,table:mm,tableCell:ym,tableRow:bm,text:vm,thematicBreak:Cm,toml:xr,yaml:xr,definition:xr,footnoteDefinition:xr};function xr(){}const Uu=-1,Ar=0,Sr=1,wr=2,Mi=3,Li=4,Xi=5,zi=6,Qu=7,qu=8,$u=typeof self=="object"?self:globalThis,Am=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Ar:case Uu:return n(s,i);case Sr:{const u=n([],i);for(const a of s)u.push(r(a));return u}case wr:{const u=n({},i);for(const[a,l]of s)u[r(a)]=r(l);return u}case Mi:return n(new Date(s),i);case Li:{const{source:u,flags:a}=s;return n(new RegExp(u,a),i)}case Xi:{const u=n(new Map,i);for(const[a,l]of s)u.set(r(a),r(l));return u}case zi:{const u=n(new Set,i);for(const a of s)u.add(r(a));return u}case Qu:{const{name:u,message:a}=s;return n(new $u[u](a),i)}case qu:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new $u[o](s),i)};return r},Ku=e=>Am(new Map,e)(0),dn="",{toString:Sm}={},{keys:wm}=Object,zn=e=>{const t=typeof e;if(t!=="object"||!e)return[Ar,t];const n=Sm.call(e).slice(8,-1);switch(n){case"Array":return[Sr,dn];case"Object":return[wr,dn];case"Date":return[Mi,dn];case"RegExp":return[Li,dn];case"Map":return[Xi,dn];case"Set":return[zi,dn]}return n.includes("Array")?[Sr,n]:n.includes("Error")?[Qu,n]:[wr,n]},Er=([e,t])=>e===Ar&&(t==="function"||t==="symbol"),Em=(e,t,n,r)=>{const i=(s,u)=>{const a=r.push(s)-1;return n.set(u,a),a},o=s=>{if(n.has(s))return n.get(s);let[u,a]=zn(s);switch(u){case Ar:{let c=s;switch(a){case"bigint":u=qu,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([Uu],s)}return i([u,c],s)}case Sr:{if(a)return i([a,[...s]],s);const c=[],d=i([u,c],s);for(const f of s)c.push(o(f));return d}case wr:{if(a)switch(a){case"BigInt":return i([a,s.toString()],s);case"Boolean":case"Number":case"String":return i([a,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],d=i([u,c],s);for(const f of wm(s))(e||!Er(zn(s[f])))&&c.push([o(f),o(s[f])]);return d}case Mi:return i([u,s.toISOString()],s);case Li:{const{source:c,flags:d}=s;return i([u,{source:c,flags:d}],s)}case Xi:{const c=[],d=i([u,c],s);for(const[f,p]of s)(e||!(Er(zn(f))||Er(zn(p))))&&c.push([o(f),o(p)]);return d}case zi:{const c=[],d=i([u,c],s);for(const f of s)(e||!Er(zn(f)))&&c.push(o(f));return d}}const{message:l}=s;return i([u,{name:a,message:l}],s)};return o},ea=(e,{json:t,lossy:n}={})=>{const r=[];return Em(!(t||n),!!t,new Map,r)(e),r},Fr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ku(ea(e,t)):structuredClone(e):(e,t)=>Ku(ea(e,t));function Fm(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Pm(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function km(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Fm,r=e.options.footnoteBackLabel||Pm,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[a]);if(!l)continue;const c=e.all(l),d=String(l.identifier).toUpperCase(),f=cn(d.toLowerCase());let p=0;const y=[],g=e.footnoteCounts.get(d);for(;g!==void 0&&++p<=g;){y.length>0&&y.push({type:"text",value:" "});let E=typeof n=="string"?n:n(a,p);typeof E=="string"&&(E={type:"text",value:E}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const I=c[c.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const E=I.children[I.children.length-1];E&&E.type==="text"?E.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...y)}else c.push(...y);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(l,v),u.push(v)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Fr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
14
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
15
- `}]}}const ta=function(e){if(e==null)return Tm;if(typeof e=="function")return Pr(e);if(typeof e=="object")return Array.isArray(e)?Gm(e):Bm(e);if(typeof e=="string")return Om(e);throw new Error("Expected function, string, or object as test")};function Gm(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ta(e[n]);return Pr(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Bm(e){const t=e;return Pr(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Om(e){return Pr(t);function t(n){return n&&n.type===e}}function Pr(e){return t;function t(n,r,i){return!!(Vm(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Tm(){return!0}function Vm(e){return e!==null&&typeof e=="object"&&"type"in e}function Ny(e){return e}const na=[],Dm=!0,ra=!1,Rm="skip";function Nm(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=ta(i),s=r?-1:1;u(e,void 0,[])();function u(a,l,c){const d=a&&typeof a=="object"?a:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(a.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=na,y,g,I;if((!t||o(a,l,c[c.length-1]||void 0))&&(p=Mm(n(a,c)),p[0]===ra))return p;if("children"in a&&a.children){const v=a;if(v.children&&p[0]!==Rm)for(g=(r?v.children.length:-1)+s,I=c.concat(v);g>-1&&g<v.children.length;){const E=v.children[g];if(y=u(E,g,I)(),y[0]===ra)return y;g=typeof y[1]=="number"?y[1]:g+s}}return p}}}function Mm(e){return Array.isArray(e)?e:typeof e=="number"?[Dm,e]:e==null?na:[e]}function ia(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Nm(e,o,u,i);function u(a,l){const c=l[l.length-1],d=c?c.children.indexOf(a):void 0;return s(a,d,c)}}const Hi={}.hasOwnProperty,Lm={};function Xm(e,t){const n=t||Lm,r=new Map,i=new Map,o=new Map,s={...xm,...n.handlers},u={all:l,applyData:Hm,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:a,options:n,patch:zm,wrap:Zm};return ia(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),u;function a(c,d){const f=c.type,p=u.handlers[f];if(Hi.call(u.handlers,f)&&p)return p(u,c,d);if(u.options.passThrough&&u.options.passThrough.includes(f)){if("children"in c){const{children:g,...I}=c,v=Fr(I);return v.children=u.all(c),v}return Fr(c)}return(u.options.unknownHandler||Wm)(u,c,d)}function l(c){const d=[];if("children"in c){const f=c.children;let p=-1;for(;++p<f.length;){const y=u.one(f[p],c);if(y){if(p&&f[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=oa(y.value)),!Array.isArray(y)&&y.type==="element")){const g=y.children[0];g&&g.type==="text"&&(g.value=oa(g.value))}Array.isArray(y)?d.push(...y):d.push(y)}}}return d}}function zm(e,t){e.position&&(t.position=Bf(e))}function Hm(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Fr(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Wm(e,t){const n=t.data||{},r="value"in t&&!(Hi.call(n,"hProperties")||Hi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Zm(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
16
- `});++r<e.length;)r&&n.push({type:"text",value:`
17
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
18
- `}),n}function oa(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function sa(e,t){const n=Xm(e,t),r=n.one(e,void 0),i=km(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
19
- `},i),o}function jm(e,t){return e&&"run"in e?async function(n,r){const i=sa(n,{file:r,...t});await e.run(i,r)}:function(n,r){return sa(n,{file:r,...e||t})}}function ua(e){if(e)throw e}var kr=Object.prototype.hasOwnProperty,aa=Object.prototype.toString,la=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,da=function(t){return typeof Array.isArray=="function"?Array.isArray(t):aa.call(t)==="[object Array]"},pa=function(t){if(!t||aa.call(t)!=="[object Object]")return!1;var n=kr.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&kr.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||kr.call(t,i)},fa=function(t,n){la&&n.name==="__proto__"?la(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ha=function(t,n){if(n==="__proto__")if(kr.call(t,n)){if(ca)return ca(t,n).value}else return;return t[n]},Jm=function e(){var t,n,r,i,o,s,u=arguments[0],a=1,l=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<l;++a)if(t=arguments[a],t!=null)for(n in t)r=ha(u,n),i=ha(t,n),u!==i&&(c&&i&&(pa(i)||(o=da(i)))?(o?(o=!1,s=r&&da(r)?r:[]):s=r&&pa(r)?r:{},fa(u,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&fa(u,{name:n,newValue:i}));return u};const Wi=Ao(Jm);function Zi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ym(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...i);function u(a,...l){const c=e[++o];let d=-1;if(a){s(a);return}for(;++d<i.length;)(l[d]===null||l[d]===void 0)&&(l[d]=i[d]);i=l,c?_m(c,u)(...l):s(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function _m(e,t){let n;return r;function r(...s){const u=e.length>s.length;let a;u&&s.push(i);try{a=e.apply(this,s)}catch(l){const c=l;if(u&&n)throw c;return i(c)}u||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(s,...u){n||(n=!0,t(s,...u))}function o(s){i(null,s)}}const lt={basename:Um,dirname:Qm,extname:qm,join:$m,sep:"/"};function Um(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Qm(e){if(Hn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qm(e){Hn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),u===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function $m(...e){let t=-1,n;for(;++t<e.length;)Hn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Km(n)}function Km(e){Hn(e);const t=e.codePointAt(0)===47;let n=eb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eb(e,t){let n="",r=0,i=-1,o=0,s=-1,u,a;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else u===46&&o>-1?o++:o=-1}return n}function Hn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tb={cwd:nb};function nb(){return"/"}function ji(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rb(e){if(typeof e=="string")e=new URL(e);else if(!ji(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ib(e)}function ib(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ji=["history","path","basename","stem","extname","dirname"];class ga{constructor(t){let n;t?ji(t)?n={path:t}:typeof t=="string"||ob(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ji.length;){const o=Ji[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ji.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){_i(t,"basename"),Yi(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){ma(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(Yi(t,"extname"),ma(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ji(t)&&(t=rb(t)),_i(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){_i(t,"stem"),Yi(t,"stem"),this.path=lt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Te(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Yi(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function _i(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ma(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ob(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sb=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},ub={}.hasOwnProperty;class Ui extends sb{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ym()}copy(){const t=new Ui;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Wi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?($i("data",this.frozen),this.namespace[t]=n,this):ub.call(this.namespace,t)&&this.namespace[t]||void 0:t?($i("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Gr(t),r=this.parser||this.Parser;return Qi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Qi("process",this.parser||this.Parser),qi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const u=Gr(t),a=r.parse(u);r.run(a,u,function(c,d,f){if(c||!d||!f)return l(c);const p=d,y=r.stringify(p,f);cb(y)?f.value=y:f.result=y,l(c,f)});function l(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Qi("processSync",this.parser||this.Parser),qi("processSync",this.compiler||this.Compiler),this.process(t,i),ya("processSync","process",n),r;function i(o,s){n=!0,ua(o),r=s}}run(t,n,r){ba(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,u){const a=Gr(n);i.run(t,a,l);function l(c,d,f){const p=d||t;c?u(c):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),ya("runSync","run",r),i;function o(s,u){ua(s),i=u,r=!0}}stringify(t,n){this.freeze();const r=Gr(n),i=this.compiler||this.Compiler;return qi("stringify",i),ba(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if($i("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(l){if(typeof l=="function")a(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[c,...d]=l;a(c,d)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(l.plugins),l.settings&&(i.settings=Wi(!0,i.settings,l.settings))}function u(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){const d=l[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function a(l,c){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===l){f=d;break}if(f===-1)r.push([l,...c]);else if(c.length>0){let[p,...y]=c;const g=r[f][1];Zi(g)&&Zi(p)&&(p=Wi(!0,g,p)),r[f]=[l,p,...y]}}}}const ab=new Ui().freeze();function Qi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $i(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ba(e){if(!Zi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ya(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gr(e){return lb(e)?e:new ga(e)}function lb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cb(e){return typeof e=="string"||db(e)}function db(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ia=[],va={allowDangerousHtml:!0},fb=/^(https?|ircs?|mailto|xmpp)$/i,hb=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function gb(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,u=e.rehypePlugins||Ia,a=e.remarkPlugins||Ia,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...va}:va,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||mb,p=ab().use(Qg).use(a).use(jm,l).use(u),y=new ga;typeof r=="string"&&(y.value=r);for(const E of hb)Object.hasOwn(e,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+pb+E.id,void 0);const g=p.parse(y);let I=p.runSync(g,y);return i&&(I={type:"element",tagName:"div",properties:{className:i},children:I.type==="root"?I.children:[I]}),ia(I,v),Nf(I,{Fragment:D.Fragment,components:o,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function v(E,w,S){if(E.type==="raw"&&S&&typeof w=="number")return c?S.children.splice(w,1):S.children[w]={type:"text",value:E.value},w;if(E.type==="element"){let k;for(k in ki)if(Object.hasOwn(ki,k)&&Object.hasOwn(E.properties,k)){const A=E.properties[k],T=ki[k];(T===null||T.includes(E.tagName))&&(E.properties[k]=f(String(A||""),k,E))}}if(E.type==="element"){let k=t?!t.includes(E.tagName):s?s.includes(E.tagName):!1;if(!k&&n&&typeof w=="number"&&(k=!n(E,w,S)),k&&S&&typeof w=="number")return d&&E.children?S.children.splice(w,1,...E.children):S.children.splice(w,1),w}}}function mb(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||fb.test(e.slice(0,t))?e:""}function Ca(e){e.field||console.log("props",e);const{field:t,markdown:n}=e,{prop:r}=t,{getClassNames:i,getStyles:o,theme:s}=ze(),u={color:s.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"};return r.type==="app"?D.jsx("p",{className:i("description",e),style:o("description",u,e),children:"Credentials are encrypted."}):r.description?D.jsx("div",{className:i("description",e),style:o("description",u,e),children:D.jsx(gb,{children:n})}):null}function xa(e){const{errors:t}=e,{getProps:n,theme:r}=ze(),i={color:r.colors.danger,gridArea:"errors"};return t.length?D.jsx("ul",{...n("errors",i,e),children:t.map(o=>D.jsx("li",{...n("error",i,e),children:o},o))}):null}function Aa(e){const{text:t,field:n}=e,{id:r}=n,{getProps:i,theme:o}=ze(),s={color:o.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return D.jsx("label",{htmlFor:r,...i("label",s,e),children:t})}const Sa=e=>{const{prop:t,enabled:n,onClick:r}=e,{getProps:i,theme:o}=ze(),s={color:o.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${o.spacing.baseUnit}px ${o.spacing.baseUnit*1.5}px ${o.spacing.baseUnit}px ${o.spacing.baseUnit*2.5}px`,border:`1px solid ${o.colors.neutral30}`,borderRadius:o.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:o.spacing.baseUnit*2,textWrap:"nowrap"};return D.jsxs("button",{onClick:r,type:"button",...i("optionalFieldButton",s,e),children:[D.jsx("span",{children:n?"-":"+"}),D.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},wa=e=>{const{onChange:t}=e,{getProps:n,theme:r}=ze(),i={backgroundColor:r.colors.primary,borderRadius:r.borderRadius,border:"solid 1px",borderColor:r.colors.primary25,color:r.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return D.jsx("button",{onClick:t,type:"button",...n("loadMoreButton",i,e),children:"Load More"})},Ea={Description:Ca,Errors:xa,Label:Aa,OptionalFieldButton:Sa,Button:wa},Br=G.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:yr,unstyled:!1});function bb(){const e=G.useContext(Br)??{},t=Js(e.theme??{});function n(){return e.classNamePrefix??""}function r(u){var c;const a=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${u}`,l={...((c=e.classNames)==null?void 0:c[u])??{}};return typeof(l==null?void 0:l.container)=="function"&&(l.container=typeof(l==null?void 0:l.container)=="function"?(...d)=>{var f;return[(f=l==null?void 0:l.container)==null?void 0:f.call(l,...d),a].join(" ")}:()=>a),l}function i(u,a){var l;return{...Tn,...a??{},...((l=e==null?void 0:e.components)==null?void 0:l[u])??{}}}function o(u,a){var l;return Mp(((l=e.styles)==null?void 0:l[u])??{},a??{})}function s(u,a){return{classNamePrefix:n(),classNames:r(u),components:i(u,a==null?void 0:a.components),styles:o(u,a==null?void 0:a.styles),theme:t}}return{getClassNamePrefix:n,getClassNames:r,getComponents:i,getProps:s,getStyles:o,theme:t}}function ze(){const e=G.useContext(Br)??{},t=e.theme,n=e.unstyled?js:yr,r=typeof t=="function"?Ir(n,t(n)):Ir(n,t);function i(a,l){var f;const c=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${a.toLowerCase()}`,d=(f=e.classNames)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...l??{},theme:r};return[c,p(y)].filter(Boolean).join(" ")}return[c,d].filter(Boolean).join(" ")}function o(){return{...Ea,...(e==null?void 0:e.components)??{}}}function s(a,l,c){var f;const d=(f=e.styles)==null?void 0:f[a];if(typeof d=="function"){const p=d,y={...c??{},theme:r};return p(l,y)}return d?{...l,...d}:l}function u(a,l,c){return{className:i(a,c),style:s(a,l,c)}}return{getClassNames:i,getComponents:o,getProps:u,getStyles:s,select:bb(),theme:r}}const yb=({children:e,...t})=>D.jsx(Br.Provider,{value:t,children:e}),Ki=G.createContext(void 0),Ht=()=>{const e=G.useContext(Ki);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Fa=(e,t)=>{var i;const n=mt(),r=Mt({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>n.getAccounts(e)});return{...r,accounts:((i=r.data)==null?void 0:i.data)||[]}},Ib=e=>D.jsx(Tn.Option,{...e,children:e.data.name});function Pa({app:e}){const t=mt(),n=Ht(),{id:r,prop:i,value:o,onChange:s}=n,{getProps:u,select:a,theme:l}=ze(),c={color:l.colors.neutral60,gridArea:"control"},d={backgroundColor:l.colors.primary,borderRadius:l.borderRadius,border:"solid 1px",borderColor:l.colors.primary25,color:l.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},f={components:{Option:Ib},styles:{control:S=>({...S,gridArea:"control",boxShadow:l.boxShadow.input})}},p=a.getProps("controlAppSelect",f),y=void 0,{isLoading:g,accounts:I,refetch:v}=Fa({app:e.name_slug,oauth_app_id:y},{useQueryOpts:{enabled:!!e,suspense:!!e}}),E=async()=>{t.connectAccount({app:i.app,oauthAppId:y,onSuccess:async S=>{await v(),s({authProvisionId:S.id})},onError:()=>{}})},w=G.useMemo(()=>{let S=o;if(S!=null){for(const k of I)if(S.authProvisionId===k.id){S=k;break}}return S},[I,o]);return D.jsx("div",{...u("controlApp",c,{app:e,...n}),children:g?`Loading ${e.name} accounts...`:I.length?D.jsx(br,{instanceId:r,value:w,options:[...I,{id:"_new",name:`Connect new ${e.name} account...`}],...p,required:!0,placeholder:`Select ${e.name} account...`,isLoading:g,isClearable:!0,isSearchable:!0,getOptionLabel:S=>S.name,getOptionValue:S=>S.id,onChange:S=>{S?S.id==="_new"?E():s({authProvisionId:S.id}):s(void 0)}}):D.jsxs("button",{type:"button",...u("connectButton",d,{app:e,...n}),onClick:()=>E(),children:["Connect ",e.name]})})}function ka(){const e=Ht(),{id:t,value:n,onChange:r}=e,{getProps:i}=ze(),o={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return D.jsx("input",{id:t,type:"checkbox",...i("controlBoolean",o,e),checked:n??!1,onChange:s=>r(s.target.checked)})}function Ga(){const e=Ht(),{id:t,onChange:n,prop:r,value:i}=e,{getProps:o,theme:s}=ze(),u={color:s.colors.neutral60,display:"block",border:"1px solid",borderColor:s.colors.neutral20,padding:6,width:"100%",borderRadius:s.borderRadius,gridArea:"control",boxShadow:s.boxShadow.input};let a="off",l="text",c=d=>d;switch(r.type){case"string":break;case"integer":l="number",c=d=>d?parseInt(d):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+r.type)}return"secret"in r&&r.secret&&(l="password",a="new-password"),D.jsx("input",{id:t,type:l,name:r.name,value:i??"",onChange:d=>n(c(d.target.value)),...o("controlInput",u,e),min:"min"in r?r.min:void 0,max:"max"in r?r.max:void 0,autoComplete:a,"data-lpignore":"true","data-1p-ignore":"true",required:!r.optional})}var vb=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Ba=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),o=String(r.getOptionValue(n)).toLowerCase(),s=String(r.getOptionLabel(n)).toLowerCase();return o===i||s===i},eo={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(o){return Ba(t,o,i)})||r.some(function(o){return Ba(t,o,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Cb(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,o=e.formatCreateLabel,s=o===void 0?eo.formatCreateLabel:o,u=e.isValidNewOption,a=u===void 0?eo.isValidNewOption:u,l=e.getNewOptionData,c=l===void 0?eo.getNewOptionData:l,d=e.onCreateOption,f=e.options,p=f===void 0?[]:f,y=e.onChange,g=st(e,vb),I=g.getOptionValue,v=I===void 0?Vs:I,E=g.getOptionLabel,w=E===void 0?Ts:E,S=g.inputValue,k=g.isLoading,A=g.isMulti,T=g.value,F=g.name,O=G.useMemo(function(){return a(S,cr(T),p,{getOptionValue:v,getOptionLabel:w})?c(S,s(S)):void 0},[s,c,w,v,S,a,p,T]),X=G.useMemo(function(){return(n||!k)&&O?i==="first"?[O].concat(on(p)):[].concat(on(p),[O]):p},[n,i,k,O,p]),N=G.useCallback(function(V,q){if(q.action!=="select-option")return y(V,q);var se=Array.isArray(V)?V:[V];if(se[se.length-1]===O){if(d)d(S);else{var H=c(S,S),U={action:"create-option",name:F,option:H};y(On(A,[].concat(on(cr(T)),[H]),H),U)}return}y(V,q)},[c,S,A,F,O,d,y,T]);return Y(Y({},g),{},{options:X,onChange:N})}var xb=G.forwardRef(function(e,t){var n=Uo(e),r=Cb(n);return re.createElement(yi,_({ref:t},r))}),Ab=xb;function Or({isCreatable:e,options:t,selectProps:n,showLoadMoreButton:r,onLoadMore:i}){const o=Ht(),{id:s,prop:u,value:a,onChange:l}=o,{select:c,theme:d}=ze(),[f,p]=G.useState(t),[y,g]=G.useState(a);G.useEffect(()=>{p(t)},[t]),G.useEffect(()=>{g(a)},[a]);const I={styles:{container:F=>({...F,gridArea:"control",boxShadow:d.boxShadow.input})}},v=G.useMemo(()=>{let F=y;if(F!=null)if(Array.isArray(F)){if(typeof F[0]!="object"){const O=[];for(const X of F){let N={label:X,value:X};for(const V of f)if(V.value===X){N=V;break}O.push(N)}F=O}}else if(typeof F!="object")if((f==null?void 0:f[0])&&typeof f[0]=="object"){for(const X of f)if(X.value===y){F=X;break}}else F={label:y,value:y};else F.__lv&&(F=F.__lv);return F},[y,f]),E=({children:F,...O})=>D.jsxs(Tn.MenuList,{...O,children:[F,D.jsx("div",{className:"pt-4",children:D.jsx(wa,{onChange:i})})]}),w=c.getProps("controlSelect",I);r&&(w.components={...w.components,MenuList:E});const S=F=>{const O=q=>typeof q=="object"?q:{label:q,value:q},X=O(F);let N=X;const V=f?[X,...f]:[X];p(V),u.type.endsWith("[]")&&(Array.isArray(y)?N=[...y.map(O),X]:N=[X]),g(N),k(N)},k=F=>{if(F)if(Array.isArray(F))if(typeof F[0]=="object"&&"value"in F[0]){const O=[];for(const X of F)u.withLabel?O.push(X):O.push(X.value);l(O)}else l(F);else if(typeof F=="object"&&"value"in F)u.withLabel?l({__lv:F}):l(F.value);else throw new Error("unhandled option type");else l(void 0)},A={onCreateOption:u.remoteOptions?S:void 0},T=e?Ab:br;return D.jsx(T,{inputId:s,instanceId:s,options:f,value:v,isMulti:u.type.endsWith("[]"),isClearable:!0,required:!u.optional,...w,...n,...A,onChange:k})}function Oa({queryEnabled:e}){const t=mt(),{userId:n,component:r,configurableProps:i,configuredProps:o,dynamicProps:s,props:{disableQueryDisabling:u}}=nr(),{idx:a,prop:l}=Ht(),[c,d]=G.useState(""),[f,p]=G.useState(0),[y,g]=G.useState(!0),[I,v]=G.useState(void 0),[E,w]=G.useState({page:0,prevContext:{},data:[],values:new Set}),S={};for(let H=0;H<a;H++){const U=i[H];S[U.name]=o[U.name]}const k={userId:n,page:f,prevContext:I,componentId:r.key,propName:l.name,configuredProps:S,dynamicPropsId:s==null?void 0:s.id};l.useQuery&&(k.query=c||"");const A={...k};delete A.dynamicPropsId;const[T,F]=G.useState(),O=()=>{p(E.page),v(E.prevContext),w({...E,prevContext:{}})},{isFetching:X,refetch:N}=Mt({queryKey:["componentConfigure",A],queryFn:async()=>{F(void 0);const H=await t.componentConfigure(k),{options:U,stringOptions:Q,errors:ce}=H;if(ce!=null&&ce.length){try{F(JSON.parse(ce[0]))}catch{F({name:"Error",message:ce[0]})}return[]}let ye=[];if(U!=null&&U.length&&(ye=U),Q!=null&&Q.length){const m=[];for(const me of Q)m.push({label:me,value:me});ye=m}const b=[],xe=new Set(E.values);for(const m of ye||[]){const me=typeof m=="string"?m:m.value;xe.has(me)||(xe.add(me),b.push(m))}let le=E.data;return b.length?(le=[...E.data,...b],w({page:f+1,prevContext:H.context,data:le,values:xe})):g(!1),le},enabled:!!e}),V=()=>!X&&!T&&y,q=T?T.message:u?"Click to configure":e?void 0:"Configure props above first",se=u?!1:!e;return D.jsx(Or,{isCreatable:!0,showLoadMoreButton:V(),onLoadMore:O,options:E.data,selectProps:{isLoading:X,placeholder:q,isDisabled:se,inputValue:l.useQuery?c:void 0,onInputChange(H){l.useQuery&&(d(H),N())},onMenuOpen(){u&&!e&&N()}}})}function Ta(e){const{field:t,form:n}=e,{queryDisabledIdx:r}=n,{prop:i,idx:o}=t,s="app"in t.extra?t.extra.app:void 0;if(i.remoteOptions||i.type==="$.discord.channel")return D.jsx(Oa,{queryEnabled:r==null||r>=o});if("options"in i&&i.options){let u=i.options;return typeof u[0]!="object"&&(u=u.map(a=>({label:a,value:a}))),D.jsx(Or,{options:u,components:{IndicatorSeparator:()=>null}})}if(i.type.endsWith("[][]"))throw new Error("Unsupported property type: "+i.type);if(i.type.endsWith("[]"))return D.jsx(Or,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(i.type){case"app":return D.jsx(Pa,{app:s});case"boolean":return D.jsx(ka,{});case"string":case"integer":return D.jsx(Ga,{});default:throw new Error("Unsupported property type: "+i.type)}}function Va(e){const{form:t,field:n}=e,{prop:r}=n,{getProps:i,getComponents:o}=ze(),s={display:"grid",gridTemplateAreas:n.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:u,Description:a,Errors:l}=o(),c=[],d="app"in n.extra?n.extra.app:void 0;if(d&&!d.auth_type)return null;let f=r.label||r.name;return d&&(f=`Connect ${d.name} account`),D.jsxs("div",{...i("field",s,e),children:[D.jsx(u,{text:f,field:n,form:t}),D.jsx(Ta,{field:n,form:t}),D.jsx(a,{markdown:r.description,field:n,form:t}),D.jsx(l,{errors:c,field:n,form:t})]})}const Da=(e,t)=>{var i;const n=mt(),r=Mt({queryKey:["app",e],queryFn:()=>n.app(e),...t==null?void 0:t.useQueryOpts});return{...r,app:(i=r.data)==null?void 0:i.data}};function Ra({prop:e,idx:t}){const n=nr(),{id:r,configuredProps:i,registerField:o,setConfiguredProp:s}=n,u=e.type==="app"&&"app"in e?e.app:void 0,{app:a}=Da(u||"",{useQueryOpts:{enabled:!!u,suspense:!!u}}),c={id:`pd${r}${e.name}`,prop:e,idx:t,value:i[e.name],onChange(d){s(t,d)},extra:{app:a}};return G.useEffect(()=>o(c),[c]),D.jsx(Ki.Provider,{value:c,children:D.jsx(Va,{field:c,form:n})})}class Na extends G.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function Ma(e){const{form:t}=e,{propsNeedConfiguring:n,submitting:r}=t,{getProps:i,theme:o}=ze(),s=u=>{var a;return{width:"fit-content",textTransform:"capitalize",backgroundColor:u?o.colors.neutral10:o.colors.primary,color:u?o.colors.neutral40:o.colors.neutral0,padding:`${o.spacing.baseUnit*1.75}px ${o.spacing.baseUnit*16}px`,borderRadius:o.borderRadius,boxShadow:(a=o.boxShadow)==null?void 0:a.button,cursor:"pointer",fontSize:"0.875rem",opacity:r?.5:void 0,margin:"0.5rem 0 0 0"}};return D.jsx("input",{type:"submit",value:r?"Submitting...":"Submit",...i("controlSubmit",s(n.length||r),e),disabled:n.length||r})}function La(){const e=nr(),{configurableProps:t,dynamicPropsQueryIsFetching:n,isValid:r,optionalPropIsEnabled:i,optionalPropSetEnabled:o,props:s,setSubmitting:u}=e,{hideOptionalProps:a,onSubmit:l}=s,{getComponents:c,getProps:d,theme:f}=ze(),{OptionalFieldButton:p}=c(),y={display:"flex",flexDirection:"column",gap:"1.5rem"},g={display:"flex",flexWrap:"wrap",gap:"0.375rem"},I={fontWeight:600,textTransform:"capitalize",color:f.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},v=async S=>{if(l&&(S.preventDefault(),r)){u(!0);try{await l(e)}finally{u(!1)}}},E=[],w=[];for(let S=0;S<t.length;S++){const k=t[S];if(!k.hidden&&!Gn.includes(k.type)){if(k.optional){const A=i(k);if(w.push([k,A]),!A)continue}E.push([k,S])}}return D.jsx(Na,{fallback:S=>D.jsxs("p",{style:{color:"red"},children:["Error: ",S&&typeof S=="object"&&"message"in S&&typeof S.message=="string"?S.message:"Unknown"]}),children:D.jsx(G.Suspense,{fallback:D.jsx("p",{children:"Loading form..."}),children:D.jsxs("form",{...d("componentForm",y,s),onSubmit:v,children:[E.map(([S,k])=>S.type==="alert"?D.jsx(xo,{prop:S},S.name):D.jsx(Ra,{prop:S,idx:k},S.name)),n&&D.jsx("p",{children:"Loading dynamic props..."}),!a&&w.length?D.jsxs("div",{children:[D.jsx("div",{...d("heading",I,s),children:"Optional Props"}),D.jsx("div",{...d("optionalFields",g,s),children:w.map(([S,k])=>D.jsx(p,{prop:S,enabled:k,onClick:()=>o(S,!k)},S.name))})]}):null,l&&D.jsx(Ma,{form:e})]})})})}function Xa(e){return D.jsx(jo,{props:e,children:D.jsx(La,{})})}const za=({key:e},t)=>{var i;const n=mt(),r=Mt({queryKey:["component",e],queryFn:()=>n.component({key:e}),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...r,component:(i=r.data)==null?void 0:i.data}};function Sb(e){const{isLoading:t,error:n,component:r}=za({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?D.jsx("p",{children:"Loading..."}):n?D.jsxs("p",{children:["Error: ",n.message]}):r?D.jsx(Xa,{component:r,...e}):D.jsx("p",{children:"Component not found"})}function wb(){const e=Ht(),{id:t,onChange:n,value:r}=e,{getProps:i,theme:o}=ze(),s={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:o.boxShadow.input};let u=r;return typeof u=="object"&&(u=JSON.stringify(u)),D.jsx("textarea",{id:t,value:u,onChange:a=>n(a.target.value),...i("controlAny",s,e)})}const Ha=e=>{var r;const t=mt(),n=Mt({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...n,apps:(r=n.data)==null?void 0:r.data}};function Eb({value:e,onChange:t}){const[n,r]=G.useState(""),i=G.useId(),{isLoading:o,apps:s}=Ha({q:n}),{Option:u}=Tn;return D.jsx(br,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:a=>D.jsx(u,{...a,children:D.jsxs("div",{style:{display:"flex",gap:10},children:[D.jsx("img",{src:`https://pipedream.com/s.v0/${a.data.id}/logo/48`,style:{height:24,width:24},alt:a.data.name}),D.jsx("span",{style:{whiteSpace:"nowrap"},children:a.data.name})]})}),IndicatorSeparator:()=>null},options:s||[],getOptionLabel:a=>a.name||a.name_slug,getOptionValue:a=>a.name_slug,value:e,onChange:a=>t==null?void 0:t(a||void 0),onInputChange:a=>r(a),isLoading:o})}const Wa=e=>{var r;const t=mt(),n=Mt({queryKey:["components",e],queryFn:()=>t.components(e)});return{...n,components:((r=n.data)==null?void 0:r.data)||[]}};function Fb({app:e,componentType:t,value:n,onChange:r}){const i=G.useId(),{isLoading:o,components:s}=Wa({app:e==null?void 0:e.name_slug,componentType:t});return D.jsx(br,{instanceId:i,className:"react-select-container text-sm",classNamePrefix:"react-select",options:s,getOptionLabel:u=>u.name||u.key,getOptionValue:u=>u.key,value:n,onChange:u=>r==null?void 0:r(u||void 0),isLoading:o,components:{IndicatorSeparator:()=>null}})}z.Alert=xo,z.ComponentForm=Xa,z.ComponentFormContainer=Sb,z.Control=Ta,z.ControlAny=wb,z.ControlApp=Pa,z.ControlBoolean=ka,z.ControlInput=Ga,z.ControlSelect=Or,z.ControlSubmit=Ma,z.CustomizationContext=Br,z.CustomizeProvider=yb,z.Description=Ca,z.ErrorBoundary=Na,z.Errors=xa,z.Field=Va,z.FormContext=ni,z.FormContextProvider=jo,z.FormFieldContext=Ki,z.FrontendClientProvider=Ul,z.InternalComponentForm=La,z.InternalField=Ra,z.Label=Aa,z.OptionalFieldButton=Sa,z.RemoteOptionsContainer=Oa,z.SelectApp=Eb,z.SelectComponent=Fb,z.defaultComponents=Ea,z.defaultTheme=yr,z.getReactSelectTheme=Js,z.mergeTheme=Ir,z.skippablePropTypes=Gn,z.unstyledTheme=js,z.useAccounts=Fa,z.useApp=Da,z.useApps=Ha,z.useComponent=za,z.useComponents=Wa,z.useCustomize=ze,z.useFormContext=nr,z.useFormFieldContext=Ht,z.useFrontendClient=mt,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
32
+ `]))),P0=function(t,r){var u=t.isFocused,o=t.size,l=t.theme,a=l.colors,c=l.spacing.baseUnit;return he({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:u?a.neutral60:a.neutral20,padding:c*2})},cl=function(t){var r=t.delay,u=t.offset;return ce.jsx("span",{css:ce.css({animation:"".concat(F0," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:u?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2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0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},O0=function(t){var r=t.innerProps,u=t.isRtl,o=t.size,l=o===void 0?4:o,a=Mn(t,v0);return ce.jsx("div",be({},dt(he(he({},a),{},{innerProps:r,isRtl:u,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ce.jsx(cl,{delay:0,offset:u}),ce.jsx(cl,{delay:160,offset:!0}),ce.jsx(cl,{delay:320,offset:!u}))},T0=function(t,r){var u=t.isDisabled,o=t.isFocused,l=t.theme,a=l.colors,c=l.borderRadius,f=l.spacing;return he({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:f.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:u?a.neutral5:a.neutral0,borderColor:u?a.neutral10:o?a.primary:a.neutral20,borderRadius:c,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},B0=function(t){var r=t.children,u=t.isDisabled,o=t.isFocused,l=t.innerRef,a=t.innerProps,c=t.menuIsOpen;return ce.jsx("div",be({ref:l},dt(t,"control",{control:!0,"control--is-disabled":u,"control--is-focused":o,"control--menu-is-open":c}),a,{"aria-disabled":u||void 0}),r)},_0=B0,G0=["data"],R0=function(t,r){var u=t.theme.spacing;return r?{}:{paddingBottom:u.baseUnit*2,paddingTop:u.baseUnit*2}},k0=function(t){var r=t.children,u=t.cx,o=t.getStyles,l=t.getClassNames,a=t.Heading,c=t.headingProps,f=t.innerProps,h=t.label,p=t.theme,g=t.selectProps;return ce.jsx("div",be({},dt(t,"group",{group:!0}),f),ce.jsx(a,be({},c,{selectProps:g,theme:p,getStyles:o,getClassNames:l,cx:u}),h),ce.jsx("div",null,r))},L0=function(t,r){var u=t.theme,o=u.colors,l=u.spacing;return he({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:l.baseUnit*3,paddingRight:l.baseUnit*3,textTransform:"uppercase"})},D0=function(t){var r=Cf(t);r.data;var u=Mn(r,G0);return ce.jsx("div",be({},dt(t,"groupHeading",{"group-heading":!0}),u))},M0=k0,N0=["innerRef","isDisabled","isHidden","inputClassName"],V0=function(t,r){var u=t.isDisabled,o=t.value,l=t.theme,a=l.spacing,c=l.colors;return he(he({visibility:u?"hidden":"visible",transform:o?"translateZ(0)":""},W0),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:c.neutral80})},Gf={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},W0={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":he({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Gf)},X0=function(t){return he({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Gf)},H0=function(t){var r=t.cx,u=t.value,o=Cf(t),l=o.innerRef,a=o.isDisabled,c=o.isHidden,f=o.inputClassName,h=Mn(o,N0);return ce.jsx("div",be({},dt(t,"input",{"input-container":!0}),{"data-value":u||""}),ce.jsx("input",be({className:r({input:!0},f),ref:l,style:X0(c),disabled:a},h)))},z0=H0,Z0=function(t,r){var u=t.theme,o=u.spacing,l=u.borderRadius,a=u.colors;return he({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:l/2,margin:o.baseUnit/2})},Y0=function(t,r){var u=t.theme,o=u.borderRadius,l=u.colors,a=t.cropWithEllipsis;return he({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:l.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},J0=function(t,r){var u=t.theme,o=u.spacing,l=u.borderRadius,a=u.colors,c=t.isFocused;return he({alignItems:"center",display:"flex"},r?{}:{borderRadius:l/2,backgroundColor:c?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Rf=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",u,r)},U0=Rf,j0=Rf;function Q0(e){var t=e.children,r=e.innerProps;return ce.jsx("div",be({role:"button"},r),t||ce.jsx(al,{size:14}))}var q0=function(t){var r=t.children,u=t.components,o=t.data,l=t.innerProps,a=t.isDisabled,c=t.removeProps,f=t.selectProps,h=u.Container,p=u.Label,g=u.Remove;return ce.jsx(h,{data:o,innerProps:he(he({},dt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),l),selectProps:f},ce.jsx(p,{data:o,innerProps:he({},dt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:f},r),ce.jsx(g,{data:o,innerProps:he(he({},dt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},c),selectProps:f}))},$0=q0,K0=function(t,r){var u=t.isDisabled,o=t.isFocused,l=t.isSelected,a=t.theme,c=a.spacing,f=a.colors;return he({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:l?f.primary:o?f.primary25:"transparent",color:u?f.neutral20:l?f.neutral0:"inherit",padding:"".concat(c.baseUnit*2,"px ").concat(c.baseUnit*3,"px"),":active":{backgroundColor:u?void 0:l?f.primary:f.primary50}})},ev=function(t){var r=t.children,u=t.isDisabled,o=t.isFocused,l=t.isSelected,a=t.innerRef,c=t.innerProps;return ce.jsx("div",be({},dt(t,"option",{option:!0,"option--is-disabled":u,"option--is-focused":o,"option--is-selected":l}),{ref:a,"aria-disabled":u},c),r)},tv=ev,nv=function(t,r){var u=t.theme,o=u.spacing,l=u.colors;return he({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:l.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},rv=function(t){var r=t.children,u=t.innerProps;return ce.jsx("div",be({},dt(t,"placeholder",{placeholder:!0}),u),r)},iv=rv,uv=function(t,r){var u=t.isDisabled,o=t.theme,l=o.spacing,a=o.colors;return he({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:u?a.neutral40:a.neutral80,marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2})},ov=function(t){var r=t.children,u=t.isDisabled,o=t.innerProps;return ce.jsx("div",be({},dt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":u}),o),r)},sv=ov,au={ClearIndicator:w0,Control:_0,DropdownIndicator:x0,DownChevron:Bf,CrossIcon:al,Group:M0,GroupHeading:D0,IndicatorsContainer:m0,IndicatorSeparator:E0,Input:z0,LoadingIndicator:O0,Menu:n0,MenuList:i0,MenuPortal:c0,LoadingMessage:l0,NoOptionsMessage:s0,MultiValue:$0,MultiValueContainer:U0,MultiValueLabel:j0,MultiValueRemove:Q0,Option:tv,Placeholder:iv,SelectContainer:d0,SingleValue:sv,ValueContainer:p0},lv=function(t){return he(he({},au),t.components)},kf=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function av(e,t){return!!(e===t||kf(e)&&kf(t))}function cv(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!av(e[r],t[r]))return!1;return!0}function fv(e,t){t===void 0&&(t=cv);var r=null;function u(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var a=e.apply(this,o);return r={lastResult:a,lastArgs:o,lastThis:this},a}return u.clear=function(){r=null},u}function dv(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var hv=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:dv},pv=function(t){return ce.jsx("span",be({css:hv},t))},Lf=pv,gv={guidance:function(t){var r=t.isSearchable,u=t.isMulti,o=t.tabSelectsValue,l=t.context,a=t.isInitialFocus;switch(l){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(u?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,u=t.label,o=u===void 0?"":u,l=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(l.length>1?"s":""," ").concat(l.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,u=t.focused,o=t.options,l=t.label,a=l===void 0?"":l,c=t.selectValue,f=t.isDisabled,h=t.isSelected,p=t.isAppleDevice,g=function(A,F){return A&&A.length?"".concat(A.indexOf(F)+1," of ").concat(A.length):""};if(r==="value"&&c)return"value ".concat(a," focused, ").concat(g(c,u),".");if(r==="menu"&&p){var I=f?" disabled":"",b="".concat(h?" selected":"").concat(I);return"".concat(a).concat(b,", ").concat(g(o,u),".")}return""},onFilter:function(t){var r=t.inputValue,u=t.resultsMessage;return"".concat(u).concat(r?" for search term "+r:"",".")}},mv=function(t){var r=t.ariaSelection,u=t.focusedOption,o=t.focusedValue,l=t.focusableOptions,a=t.isFocused,c=t.selectValue,f=t.selectProps,h=t.id,p=t.isAppleDevice,g=f.ariaLiveMessages,I=f.getOptionLabel,b=f.inputValue,E=f.isMulti,A=f.isOptionDisabled,F=f.isSearchable,P=f.menuIsOpen,D=f.options,k=f.screenReaderStatus,L=f.tabSelectsValue,V=f.isLoading,R=f["aria-label"],J=f["aria-live"],N=Z.useMemo(function(){return he(he({},gv),g||{})},[g]),j=Z.useMemo(function(){var ie="";if(r&&N.onChange){var ge=r.option,de=r.options,Se=r.removedValue,qe=r.removedValues,S=r.value,He=function(ee){return Array.isArray(ee)?null:ee},Le=Se||ge||He(S),w=Le?I(Le):"",Je=de||qe||void 0,me=Je?Je.map(I):[],De=he({isDisabled:Le&&A(Le,c),label:w,labels:me},r);ie=N.onChange(De)}return ie},[r,N,A,c,I]),ne=Z.useMemo(function(){var ie="",ge=u||o,de=!!(u&&c&&c.includes(u));if(ge&&N.onFocus){var Se={focused:ge,label:I(ge),isDisabled:A(ge,c),isSelected:de,options:l,context:ge===u?"menu":"value",selectValue:c,isAppleDevice:p};ie=N.onFocus(Se)}return ie},[u,o,I,A,N,l,c,p]),$=Z.useMemo(function(){var ie="";if(P&&D.length&&!V&&N.onFilter){var ge=k({count:l.length});ie=N.onFilter({inputValue:b,resultsMessage:ge})}return ie},[l,b,P,N,D,k,V]),Q=(r==null?void 0:r.action)==="initial-input-focus",ve=Z.useMemo(function(){var ie="";if(N.guidance){var ge=o?"value":P?"menu":"input";ie=N.guidance({"aria-label":R,context:ge,isDisabled:u&&A(u,c),isMulti:E,isSearchable:F,tabSelectsValue:L,isInitialFocus:Q})}return ie},[R,u,o,E,A,F,P,N,c,L,Q]),Be=ce.jsx(Z.Fragment,null,ce.jsx("span",{id:"aria-selection"},j),ce.jsx("span",{id:"aria-focused"},ne),ce.jsx("span",{id:"aria-results"},$),ce.jsx("span",{id:"aria-guidance"},ve));return ce.jsx(Z.Fragment,null,ce.jsx(Lf,{id:h},Q&&Be),ce.jsx(Lf,{"aria-live":J,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!Q&&Be))},bv=mv,fl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],vv=new RegExp("["+fl.map(function(e){return e.letters}).join("")+"]","g"),Df={},dl=0;dl<fl.length;dl++)for(var hl=fl[dl],pl=0;pl<hl.letters.length;pl++)Df[hl.letters[pl]]=hl.base;var Mf=function(t){return t.replace(vv,function(r){return Df[r]})},yv=fv(Mf),Nf=function(t){return t.replace(/^\s+|\s+$/g,"")},Iv=function(t){return"".concat(t.label," ").concat(t.value)},Cv=function(t){return function(r,u){if(r.data.__isNew__)return!0;var o=he({ignoreCase:!0,ignoreAccents:!0,stringify:Iv,trim:!0,matchFrom:"any"},t),l=o.ignoreCase,a=o.ignoreAccents,c=o.stringify,f=o.trim,h=o.matchFrom,p=f?Nf(u):u,g=f?Nf(c(r)):c(r);return l&&(p=p.toLowerCase(),g=g.toLowerCase()),a&&(p=yv(p),g=Mf(g)),h==="start"?g.substr(0,p.length)===p:g.indexOf(p)>-1}},xv=["innerRef"];function Av(e){var t=e.innerRef,r=Mn(e,xv),u=Ub(r,"onExited","in","enter","exit","appear");return ce.jsx("input",be({ref:t},u,{css:ce.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbX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GFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var wv=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Sv(e){var t=e.isEnabled,r=e.onBottomArrive,u=e.onBottomLeave,o=e.onTopArrive,l=e.onTopLeave,a=Z.useRef(!1),c=Z.useRef(!1),f=Z.useRef(0),h=Z.useRef(null),p=Z.useCallback(function(F,P){if(h.current!==null){var D=h.current,k=D.scrollTop,L=D.scrollHeight,V=D.clientHeight,R=h.current,J=P>0,N=L-V-k,j=!1;N>P&&a.current&&(u&&u(F),a.current=!1),J&&c.current&&(l&&l(F),c.current=!1),J&&P>N?(r&&!a.current&&r(F),R.scrollTop=L,j=!0,a.current=!0):!J&&-P>k&&(o&&!c.current&&o(F),R.scrollTop=0,j=!0,c.current=!0),j&&wv(F)}},[r,u,o,l]),g=Z.useCallback(function(F){p(F,F.deltaY)},[p]),I=Z.useCallback(function(F){f.current=F.changedTouches[0].clientY},[]),b=Z.useCallback(function(F){var P=f.current-F.changedTouches[0].clientY;p(F,P)},[p]),E=Z.useCallback(function(F){if(F){var P=Zb?{passive:!1}:!1;F.addEventListener("wheel",g,P),F.addEventListener("touchstart",I,P),F.addEventListener("touchmove",b,P)}},[b,I,g]),A=Z.useCallback(function(F){F&&(F.removeEventListener("wheel",g,!1),F.removeEventListener("touchstart",I,!1),F.removeEventListener("touchmove",b,!1))},[b,I,g]);return Z.useEffect(function(){if(t){var F=h.current;return E(F),function(){A(F)}}},[t,E,A]),function(F){h.current=F}}var Vf=["boxSizing","height","overflow","paddingRight","position"],Wf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Xf(e){e.cancelable&&e.preventDefault()}function Hf(e){e.stopPropagation()}function zf(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Zf(){return"ontouchstart"in window||navigator.maxTouchPoints}var Yf=!!(typeof window<"u"&&window.document&&window.document.createElement),cu=0,pi={capture:!1,passive:!1};function Ev(e){var t=e.isEnabled,r=e.accountForScrollbars,u=r===void 0?!0:r,o=Z.useRef({}),l=Z.useRef(null),a=Z.useCallback(function(f){if(Yf){var h=document.body,p=h&&h.style;if(u&&Vf.forEach(function(E){var A=p&&p[E];o.current[E]=A}),u&&cu<1){var g=parseInt(o.current.paddingRight,10)||0,I=document.body?document.body.clientWidth:0,b=window.innerWidth-I+g||0;Object.keys(Wf).forEach(function(E){var A=Wf[E];p&&(p[E]=A)}),p&&(p.paddingRight="".concat(b,"px"))}h&&Zf()&&(h.addEventListener("touchmove",Xf,pi),f&&(f.addEventListener("touchstart",zf,pi),f.addEventListener("touchmove",Hf,pi))),cu+=1}},[u]),c=Z.useCallback(function(f){if(Yf){var h=document.body,p=h&&h.style;cu=Math.max(cu-1,0),u&&cu<1&&Vf.forEach(function(g){var I=o.current[g];p&&(p[g]=I)}),h&&Zf()&&(h.removeEventListener("touchmove",Xf,pi),f&&(f.removeEventListener("touchstart",zf,pi),f.removeEventListener("touchmove",Hf,pi)))}},[u]);return Z.useEffect(function(){if(t){var f=l.current;return a(f),function(){c(f)}}},[t,a,c]),function(f){l.current=f}}function Fv(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Pv=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Ov=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV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GxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Fv};function Tv(e){var t=e.children,r=e.lockEnabled,u=e.captureEnabled,o=u===void 0?!0:u,l=e.onBottomArrive,a=e.onBottomLeave,c=e.onTopArrive,f=e.onTopLeave,h=Sv({isEnabled:o,onBottomArrive:l,onBottomLeave:a,onTopArrive:c,onTopLeave:f}),p=Ev({isEnabled:r}),g=function(b){h(b),p(b)};return ce.jsx(Z.Fragment,null,r&&ce.jsx("div",{onClick:Pv,css:Ov}),t(g))}function Bv(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _v=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Bv},Gv=function(t){var r=t.name,u=t.onFocus;return ce.jsx("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:u,css:_v,value:"",onChange:function(){}})},Rv=Gv;function gl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function kv(){return gl(/^iPhone/i)}function Jf(){return gl(/^Mac/i)}function Lv(){return gl(/^iPad/i)||Jf()&&navigator.maxTouchPoints>1}function Dv(){return kv()||Lv()}function Mv(){return Jf()||Dv()}var Nv=function(t){return t.label},Uf=function(t){return t.label},jf=function(t){return t.value},Vv=function(t){return!!t.isDisabled},Wv={clearIndicator:A0,container:f0,control:T0,dropdownIndicator:C0,group:R0,groupHeading:L0,indicatorsContainer:g0,indicatorSeparator:S0,input:V0,loadingIndicator:P0,loadingMessage:o0,menu:Kb,menuList:r0,menuPortal:a0,multiValue:Z0,multiValueLabel:Y0,multiValueRemove:J0,noOptionsMessage:u0,option:K0,placeholder:nv,singleValue:uv,valueContainer:h0};function Xv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=he({},e);return Object.keys(t).forEach(function(u){var o=u;e[o]?r[o]=function(l,a){return t[o](e[o](l,a),a)}:r[o]=t[o]}),r}var Hv={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},zv=4,Qf=4,Zv=38,Yv=Qf*2,Jv={baseUnit:Qf,controlHeight:Zv,menuGutter:Yv},fu={borderRadius:zv,colors:Hv,spacing:Jv},Uv={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wf(),captureMenuScroll:!wf(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Cv(),formatGroupLabel:Nv,getOptionLabel:Uf,getOptionValue:jf,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Vv,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Hb(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function qf(e,t,r,u){var o=nd(e,t,r),l=rd(e,t,r),a=td(e,t),c=mo(e,t);return{type:"option",data:t,isDisabled:o,isSelected:l,label:a,value:c,index:u}}function go(e,t){return e.options.map(function(r,u){if("options"in r){var o=r.options.map(function(a,c){return qf(e,a,t,c)}).filter(function(a){return ed(e,a)});return o.length>0?{type:"group",data:r,options:o,index:u}:void 0}var l=qf(e,r,t,u);return ed(e,l)?l:void 0}).filter(Yb)}function $f(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,hi(r.options.map(function(u){return u.data}))):t.push(r.data),t},[])}function Kf(e,t){return e.reduce(function(r,u){return u.type==="group"?r.push.apply(r,hi(u.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(u.index,"-").concat(o.index)}}))):r.push({data:u.data,id:"".concat(t,"-").concat(u.index)}),r},[])}function jv(e,t){return $f(go(e,t))}function ed(e,t){var r=e.inputValue,u=r===void 0?"":r,o=t.data,l=t.isSelected,a=t.label,c=t.value;return(!ud(e)||!l)&&id(e,{label:a,value:c,data:o},u)}function Qv(e,t){var r=e.focusedValue,u=e.selectValue,o=u.indexOf(r);if(o>-1){var l=t.indexOf(r);if(l>-1)return r;if(o<t.length)return t[o]}return null}function qv(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var ml=function(t,r){var u,o=(u=t.find(function(l){return l.data===r}))===null||u===void 0?void 0:u.id;return o||null},td=function(t,r){return t.getOptionLabel(r)},mo=function(t,r){return t.getOptionValue(r)};function nd(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function rd(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var u=mo(e,t);return r.some(function(o){return mo(e,o)===u})}function id(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var ud=function(t){var r=t.hideSelectedOptions,u=t.isMulti;return r===void 0?u:r},$v=1,bl=function(e){gb(r,e);var t=vb(r);function r(u){var o;if(hb(this,r),o=t.call(this,u),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=Mv(),o.controlRef=null,o.getControlRef=function(f){o.controlRef=f},o.focusedOptionRef=null,o.getFocusedOptionRef=function(f){o.focusedOptionRef=f},o.menuListRef=null,o.getMenuListRef=function(f){o.menuListRef=f},o.inputRef=null,o.getInputRef=function(f){o.inputRef=f},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(f,h){var p=o.props,g=p.onChange,I=p.name;h.name=I,o.ariaOnChange(f,h),g(f,h)},o.setValue=function(f,h,p){var g=o.props,I=g.closeMenuOnSelect,b=g.isMulti,E=g.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:E}),I&&(o.setState({inputIsHiddenAfterUpdate:!b}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(f,{action:h,option:p})},o.selectOption=function(f){var h=o.props,p=h.blurInputOnSelect,g=h.isMulti,I=h.name,b=o.state.selectValue,E=g&&o.isOptionSelected(f,b),A=o.isOptionDisabled(f,b);if(E){var F=o.getOptionValue(f);o.setValue(b.filter(function(P){return o.getOptionValue(P)!==F}),"deselect-option",f)}else if(!A)g?o.setValue([].concat(hi(b),[f]),"select-option",f):o.setValue(f,"select-option");else{o.ariaOnChange(f,{action:"select-option",option:f,name:I});return}p&&o.blurInput()},o.removeValue=function(f){var h=o.props.isMulti,p=o.state.selectValue,g=o.getOptionValue(f),I=p.filter(function(E){return o.getOptionValue(E)!==g}),b=lu(h,I,I[0]||null);o.onChange(b,{action:"remove-value",removedValue:f}),o.focusInput()},o.clearValue=function(){var f=o.state.selectValue;o.onChange(lu(o.props.isMulti,[],null),{action:"clear",removedValues:f})},o.popValue=function(){var f=o.props.isMulti,h=o.state.selectValue,p=h[h.length-1],g=h.slice(0,h.length-1),I=lu(f,g,g[0]||null);p&&o.onChange(I,{action:"pop-value",removedValue:p})},o.getFocusedOptionId=function(f){return ml(o.state.focusableOptionsWithIds,f)},o.getFocusableOptionsWithIds=function(){return Kf(go(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return Mb.apply(void 0,[o.props.classNamePrefix].concat(h))},o.getOptionLabel=function(f){return td(o.props,f)},o.getOptionValue=function(f){return mo(o.props,f)},o.getStyles=function(f,h){var p=o.props.unstyled,g=Wv[f](h,p);g.boxSizing="border-box";var I=o.props.styles[f];return I?I(g,h):g},o.getClassNames=function(f,h){var p,g;return(p=(g=o.props.classNames)[f])===null||p===void 0?void 0:p.call(g,h)},o.getElementId=function(f){return"".concat(o.state.instancePrefix,"-").concat(f)},o.getComponents=function(){return lv(o.props)},o.buildCategorizedOptions=function(){return go(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return $f(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(f,h){o.setState({ariaSelection:he({value:f},h)})},o.onMenuMouseDown=function(f){f.button===0&&(f.stopPropagation(),f.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(f){o.blockOptionHover=!1},o.onControlMouseDown=function(f){if(!f.defaultPrevented){var h=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&o.onMenuClose():h&&o.openMenu("first"):(h&&(o.openAfterFocus=!0),o.focusInput()),f.target.tagName!=="INPUT"&&f.target.tagName!=="TEXTAREA"&&f.preventDefault()}},o.onDropdownIndicatorMouseDown=function(f){if(!(f&&f.type==="mousedown"&&f.button!==0)&&!o.props.isDisabled){var h=o.props,p=h.isMulti,g=h.menuIsOpen;o.focusInput(),g?(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()):o.openMenu("first"),f.preventDefault()}},o.onClearIndicatorMouseDown=function(f){f&&f.type==="mousedown"&&f.button!==0||(o.clearValue(),f.preventDefault(),o.openAfterFocus=!1,f.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(f){typeof o.props.closeMenuOnScroll=="boolean"?f.target instanceof HTMLElement&&co(f.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(f)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(f){var h=f.touches,p=h&&h.item(0);p&&(o.initialTouchX=p.clientX,o.initialTouchY=p.clientY,o.userIsDragging=!1)},o.onTouchMove=function(f){var h=f.touches,p=h&&h.item(0);if(p){var g=Math.abs(p.clientX-o.initialTouchX),I=Math.abs(p.clientY-o.initialTouchY),b=5;o.userIsDragging=g>b||I>b}},o.onTouchEnd=function(f){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(f.target)&&o.menuListRef&&!o.menuListRef.contains(f.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(f){o.userIsDragging||o.onControlMouseDown(f)},o.onClearIndicatorTouchEnd=function(f){o.userIsDragging||o.onClearIndicatorMouseDown(f)},o.onDropdownIndicatorTouchEnd=function(f){o.userIsDragging||o.onDropdownIndicatorMouseDown(f)},o.handleInputChange=function(f){var h=o.props.inputValue,p=f.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(p,{action:"input-change",prevInputValue:h}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(f){o.props.onFocus&&o.props.onFocus(f),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(f){var h=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(f),o.onInputChange("",{action:"input-blur",prevInputValue:h}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(f){if(!(o.blockOptionHover||o.state.focusedOption===f)){var h=o.getFocusableOptions(),p=h.indexOf(f);o.setState({focusedOption:f,focusedOptionId:p>-1?o.getFocusedOptionId(f):null})}},o.shouldHideSelectedOptions=function(){return ud(o.props)},o.onValueInputFocus=function(f){f.preventDefault(),f.stopPropagation(),o.focus()},o.onKeyDown=function(f){var h=o.props,p=h.isMulti,g=h.backspaceRemovesValue,I=h.escapeClearsValue,b=h.inputValue,E=h.isClearable,A=h.isDisabled,F=h.menuIsOpen,P=h.onKeyDown,D=h.tabSelectsValue,k=h.openMenuOnFocus,L=o.state,V=L.focusedOption,R=L.focusedValue,J=L.selectValue;if(!A&&!(typeof P=="function"&&(P(f),f.defaultPrevented))){switch(o.blockOptionHover=!0,f.key){case"ArrowLeft":if(!p||b)return;o.focusValue("previous");break;case"ArrowRight":if(!p||b)return;o.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(R)o.removeValue(R);else{if(!g)return;p?o.popValue():E&&o.clearValue()}break;case"Tab":if(o.isComposing||f.shiftKey||!F||!D||!V||k&&o.isOptionSelected(V,J))return;o.selectOption(V);break;case"Enter":if(f.keyCode===229)break;if(F){if(!V||o.isComposing)return;o.selectOption(V);break}return;case"Escape":F?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:b}),o.onMenuClose()):E&&I&&o.clearValue();break;case" ":if(b)return;if(!F){o.openMenu("first");break}if(!V)return;o.selectOption(V);break;case"ArrowUp":F?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":F?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!F)return;o.focusOption("pageup");break;case"PageDown":if(!F)return;o.focusOption("pagedown");break;case"Home":if(!F)return;o.focusOption("first");break;case"End":if(!F)return;o.focusOption("last");break;default:return}f.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++$v),o.state.selectValue=ao(u.value),u.menuIsOpen&&o.state.selectValue.length){var l=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),c=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=l,o.state.focusedOption=a[c],o.state.focusedOptionId=ml(l,a[c])}return o}return pb(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Af(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var l=this.props,a=l.isDisabled,c=l.menuIsOpen,f=this.state.isFocused;(f&&!a&&o.isDisabled||f&&c&&!o.menuIsOpen)&&this.focusInput(),f&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!f&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Af(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,l){this.props.onInputChange(o,l)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var l=this,a=this.state,c=a.selectValue,f=a.isFocused,h=this.buildFocusableOptions(),p=o==="first"?0:h.length-1;if(!this.props.isMulti){var g=h.indexOf(c[0]);g>-1&&(p=g)}this.scrollToFocusedOptionOnUpdate=!(f&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[p],focusedOptionId:this.getFocusedOptionId(h[p])},function(){return l.onMenuOpen()})}},{key:"focusValue",value:function(o){var l=this.state,a=l.selectValue,c=l.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var f=a.indexOf(c);c||(f=-1);var h=a.length-1,p=-1;if(a.length){switch(o){case"previous":f===0?p=0:f===-1?p=h:p=f-1;break;case"next":f>-1&&f<h&&(p=f+1);break}this.setState({inputIsHidden:p!==-1,focusedValue:a[p]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",l=this.props.pageSize,a=this.state.focusedOption,c=this.getFocusableOptions();if(c.length){var f=0,h=c.indexOf(a);a||(h=-1),o==="up"?f=h>0?h-1:c.length-1:o==="down"?f=(h+1)%c.length:o==="pageup"?(f=h-l,f<0&&(f=0)):o==="pagedown"?(f=h+l,f>c.length-1&&(f=c.length-1)):o==="last"&&(f=c.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:c[f],focusedValue:null,focusedOptionId:this.getFocusedOptionId(c[f])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(fu):he(he({},fu),this.props.theme):fu}},{key:"getCommonProps",value:function(){var o=this.clearValue,l=this.cx,a=this.getStyles,c=this.getClassNames,f=this.getValue,h=this.selectOption,p=this.setValue,g=this.props,I=g.isMulti,b=g.isRtl,E=g.options,A=this.hasValue();return{clearValue:o,cx:l,getStyles:a,getClassNames:c,getValue:f,hasValue:A,isMulti:I,isRtl:b,options:E,selectOption:h,selectProps:g,setValue:p,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,l=o.isClearable,a=o.isMulti;return l===void 0?a:l}},{key:"isOptionDisabled",value:function(o,l){return nd(this.props,o,l)}},{key:"isOptionSelected",value:function(o,l){return rd(this.props,o,l)}},{key:"filterOption",value:function(o,l){return id(this.props,o,l)}},{key:"formatOptionLabel",value:function(o,l){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,c=this.state.selectValue;return this.props.formatOptionLabel(o,{context:l,inputValue:a,selectValue:c})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,l=o.isDisabled,a=o.isSearchable,c=o.inputId,f=o.inputValue,h=o.tabIndex,p=o.form,g=o.menuIsOpen,I=o.required,b=this.getComponents(),E=b.Input,A=this.state,F=A.inputIsHidden,P=A.ariaSelection,D=this.commonProps,k=c||this.getElementId("input"),L=he(he(he({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":I,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(P==null?void 0:P.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Fe.createElement(E,be({},D,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:k,innerRef:this.getInputRef,isDisabled:l,isHidden:F,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:p,type:"text",value:f},L)):Fe.createElement(Av,be({id:k,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lo,onFocus:this.onInputFocus,disabled:l,tabIndex:h,inputMode:"none",form:p,value:""},L))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,l=this.getComponents(),a=l.MultiValue,c=l.MultiValueContainer,f=l.MultiValueLabel,h=l.MultiValueRemove,p=l.SingleValue,g=l.Placeholder,I=this.commonProps,b=this.props,E=b.controlShouldRenderValue,A=b.isDisabled,F=b.isMulti,P=b.inputValue,D=b.placeholder,k=this.state,L=k.selectValue,V=k.focusedValue,R=k.isFocused;if(!this.hasValue()||!E)return P?null:Fe.createElement(g,be({},I,{key:"placeholder",isDisabled:A,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),D);if(F)return L.map(function(N,j){var ne=N===V,$="".concat(o.getOptionLabel(N),"-").concat(o.getOptionValue(N));return Fe.createElement(a,be({},I,{components:{Container:c,Label:f,Remove:h},isFocused:ne,isDisabled:A,key:$,index:j,removeProps:{onClick:function(){return o.removeValue(N)},onTouchEnd:function(){return o.removeValue(N)},onMouseDown:function(ve){ve.preventDefault()}},data:N}),o.formatOptionLabel(N,"value"))});if(P)return null;var J=L[0];return Fe.createElement(p,be({},I,{data:J,isDisabled:A}),this.formatOptionLabel(J,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),l=o.ClearIndicator,a=this.commonProps,c=this.props,f=c.isDisabled,h=c.isLoading,p=this.state.isFocused;if(!this.isClearable()||!l||f||!this.hasValue()||h)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Fe.createElement(l,be({},a,{innerProps:g,isFocused:p}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),l=o.LoadingIndicator,a=this.commonProps,c=this.props,f=c.isDisabled,h=c.isLoading,p=this.state.isFocused;if(!l||!h)return null;var g={"aria-hidden":"true"};return Fe.createElement(l,be({},a,{innerProps:g,isDisabled:f,isFocused:p}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),l=o.DropdownIndicator,a=o.IndicatorSeparator;if(!l||!a)return null;var c=this.commonProps,f=this.props.isDisabled,h=this.state.isFocused;return Fe.createElement(a,be({},c,{isDisabled:f,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),l=o.DropdownIndicator;if(!l)return null;var a=this.commonProps,c=this.props.isDisabled,f=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Fe.createElement(l,be({},a,{innerProps:h,isDisabled:c,isFocused:f}))}},{key:"renderMenu",value:function(){var o=this,l=this.getComponents(),a=l.Group,c=l.GroupHeading,f=l.Menu,h=l.MenuList,p=l.MenuPortal,g=l.LoadingMessage,I=l.NoOptionsMessage,b=l.Option,E=this.commonProps,A=this.state.focusedOption,F=this.props,P=F.captureMenuScroll,D=F.inputValue,k=F.isLoading,L=F.loadingMessage,V=F.minMenuHeight,R=F.maxMenuHeight,J=F.menuIsOpen,N=F.menuPlacement,j=F.menuPosition,ne=F.menuPortalTarget,$=F.menuShouldBlockScroll,Q=F.menuShouldScrollIntoView,ve=F.noOptionsMessage,Be=F.onMenuScrollToTop,ie=F.onMenuScrollToBottom;if(!J)return null;var ge=function(w,Je){var me=w.type,De=w.data,yt=w.isDisabled,ee=w.isSelected,oe=w.label,ye=w.value,Me=A===De,ct=yt?void 0:function(){return o.onOptionHover(De)},Gt=yt?void 0:function(){return o.selectOption(De)},At="".concat(o.getElementId("option"),"-").concat(Je),vn={id:At,onClick:Gt,onMouseMove:ct,onMouseOver:ct,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:ee};return Fe.createElement(b,be({},E,{innerProps:vn,data:De,isDisabled:yt,isSelected:ee,key:At,label:oe,type:me,value:ye,isFocused:Me,innerRef:Me?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(w.data,"menu"))},de;if(this.hasOptions())de=this.getCategorizedOptions().map(function(Le){if(Le.type==="group"){var w=Le.data,Je=Le.options,me=Le.index,De="".concat(o.getElementId("group"),"-").concat(me),yt="".concat(De,"-heading");return Fe.createElement(a,be({},E,{key:De,data:w,options:Je,Heading:c,headingProps:{id:yt,data:Le.data},label:o.formatGroupLabel(Le.data)}),Le.options.map(function(ee){return ge(ee,"".concat(me,"-").concat(ee.index))}))}else if(Le.type==="option")return ge(Le,"".concat(Le.index))});else if(k){var Se=L({inputValue:D});if(Se===null)return null;de=Fe.createElement(g,E,Se)}else{var qe=ve({inputValue:D});if(qe===null)return null;de=Fe.createElement(I,E,qe)}var S={minMenuHeight:V,maxMenuHeight:R,menuPlacement:N,menuPosition:j,menuShouldScrollIntoView:Q},He=Fe.createElement(e0,be({},E,S),function(Le){var w=Le.ref,Je=Le.placerProps,me=Je.placement,De=Je.maxHeight;return Fe.createElement(f,be({},E,S,{innerRef:w,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:k,placement:me}),Fe.createElement(Tv,{captureEnabled:P,onTopArrive:Be,onBottomArrive:ie,lockEnabled:$},function(yt){return Fe.createElement(h,be({},E,{innerRef:function(oe){o.getMenuListRef(oe),yt(oe)},innerProps:{role:"listbox","aria-multiselectable":E.isMulti,id:o.getElementId("listbox")},isLoading:k,maxHeight:De,focusedOption:A}),de)}))});return ne||j==="fixed"?Fe.createElement(p,be({},E,{appendTo:ne,controlElement:this.controlRef,menuPlacement:N,menuPosition:j}),He):He}},{key:"renderFormField",value:function(){var o=this,l=this.props,a=l.delimiter,c=l.isDisabled,f=l.isMulti,h=l.name,p=l.required,g=this.state.selectValue;if(p&&!this.hasValue()&&!c)return Fe.createElement(Rv,{name:h,onFocus:this.onValueInputFocus});if(!(!h||c))if(f)if(a){var I=g.map(function(A){return o.getOptionValue(A)}).join(a);return Fe.createElement("input",{name:h,type:"hidden",value:I})}else{var b=g.length>0?g.map(function(A,F){return Fe.createElement("input",{key:"i-".concat(F),name:h,type:"hidden",value:o.getOptionValue(A)})}):Fe.createElement("input",{name:h,type:"hidden",value:""});return Fe.createElement("div",null,b)}else{var E=g[0]?this.getOptionValue(g[0]):"";return Fe.createElement("input",{name:h,type:"hidden",value:E})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,l=this.state,a=l.ariaSelection,c=l.focusedOption,f=l.focusedValue,h=l.isFocused,p=l.selectValue,g=this.getFocusableOptions();return Fe.createElement(bv,be({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:c,focusedValue:f,isFocused:h,selectValue:p,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),l=o.Control,a=o.IndicatorsContainer,c=o.SelectContainer,f=o.ValueContainer,h=this.props,p=h.className,g=h.id,I=h.isDisabled,b=h.menuIsOpen,E=this.state.isFocused,A=this.commonProps=this.getCommonProps();return Fe.createElement(c,be({},A,{className:p,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:I,isFocused:E}),this.renderLiveRegion(),Fe.createElement(l,be({},A,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:I,isFocused:E,menuIsOpen:b}),Fe.createElement(f,be({},A,{isDisabled:I}),this.renderPlaceholderOrValue(),this.renderInput()),Fe.createElement(a,be({},A,{isDisabled:I}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,l){var a=l.prevProps,c=l.clearFocusValueOnUpdate,f=l.inputIsHiddenAfterUpdate,h=l.ariaSelection,p=l.isFocused,g=l.prevWasFocused,I=l.instancePrefix,b=o.options,E=o.value,A=o.menuIsOpen,F=o.inputValue,P=o.isMulti,D=ao(E),k={};if(a&&(E!==a.value||b!==a.options||A!==a.menuIsOpen||F!==a.inputValue)){var L=A?jv(o,D):[],V=A?Kf(go(o,D),"".concat(I,"-option")):[],R=c?Qv(l,D):null,J=qv(l,L),N=ml(V,J);k={selectValue:D,focusedOption:J,focusedOptionId:N,focusableOptionsWithIds:V,focusedValue:R,clearFocusValueOnUpdate:!1}}var j=f!=null&&o!==a?{inputIsHidden:f,inputIsHiddenAfterUpdate:void 0}:{},ne=h,$=p&&g;return p&&!$&&(ne={value:lu(P,D,D[0]||null),options:D,action:"initial-input-focus"},$=!g),(h==null?void 0:h.action)==="initial-input-focus"&&(ne=null),he(he(he({},k),j),{},{prevProps:o,ariaSelection:ne,prevWasFocused:$})}}]),r}(Z.Component);bl.defaultProps=Uv;var Kv=Z.forwardRef(function(e,t){var r=cf(e);return Fe.createElement(bl,be({ref:t},r))}),bo=Kv;const ey=fu,vo={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},boxShadow:{button:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px",card:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",dropdown:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",input:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},spacing:{baseUnit:4,controlHeight:32,menuGutter:8}},od={colors:{},spacing:{baseUnit:4,controlHeight:32,menuGutter:8},boxShadow:{button:"none",input:"none",card:"none",dropdown:"none"}};function sd(e){if(!e)return fu;const t=typeof e=="function"?e(vo):e,{colors:r,spacing:u,borderRadius:o}=yo(ey,t);return{borderRadius:o,colors:r,spacing:u}}function yo(e,...t){const r={borderRadius:e.borderRadius,colors:{...e.colors},spacing:{...e.spacing},boxShadow:{...e.boxShadow}};for(const u of t)u&&(r.borderRadius=u.borderRadius??r.borderRadius,Object.assign(r.boxShadow,u.boxShadow),Object.assign(r.colors,u.colors),Object.assign(r.spacing,u.spacing));return r}function cP(){}function fP(){}function ty(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const ny=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ry=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iy={};function ld(e,t){return(iy.jsx?ry:ny).test(e)}const uy=/[ \t\n\f\r]/g;function oy(e){return typeof e=="object"?e.type==="text"?ad(e.value):!1:ad(e)}function ad(e){return e.replace(uy,"")===""}class du{constructor(t,r,u){this.property=t,this.normal=r,u&&(this.space=u)}}du.prototype.property={},du.prototype.normal={},du.prototype.space=null;function cd(e,t){const r={},u={};let o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(u,e[o].normal);return new du(r,u,t)}function vl(e){return e.toLowerCase()}class gn{constructor(t,r){this.property=t,this.attribute=r}}gn.prototype.space=null,gn.prototype.boolean=!1,gn.prototype.booleanish=!1,gn.prototype.overloadedBoolean=!1,gn.prototype.number=!1,gn.prototype.commaSeparated=!1,gn.prototype.spaceSeparated=!1,gn.prototype.commaOrSpaceSeparated=!1,gn.prototype.mustUseProperty=!1,gn.prototype.defined=!1;let sy=0;const Te=Wr(),vt=Wr(),fd=Wr(),K=Wr(),ut=Wr(),gi=Wr(),nn=Wr();function Wr(){return 2**++sy}const yl=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:vt,commaOrSpaceSeparated:nn,commaSeparated:gi,number:K,overloadedBoolean:fd,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),Il=Object.keys(yl);class Cl extends gn{constructor(t,r,u,o){let l=-1;if(super(t,r),dd(this,"space",o),typeof u=="number")for(;++l<Il.length;){const a=Il[l];dd(this,Il[l],(u&yl[a])===yl[a])}}}Cl.prototype.defined=!0;function dd(e,t,r){r&&(e[t]=r)}const ly={}.hasOwnProperty;function mi(e){const t={},r={};let u;for(u in e.properties)if(ly.call(e.properties,u)){const o=e.properties[u],l=new Cl(u,e.transform(e.attributes||{},u),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(u)&&(l.mustUseProperty=!0),t[u]=l,r[vl(u)]=u,r[vl(l.attribute)]=u}return new du(t,r,e.space)}const hd=mi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),pd=mi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function gd(e,t){return t in e?e[t]:t}function md(e,t){return gd(e,t.toLowerCase())}const bd=mi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:md,properties:{xmlns:null,xmlnsXLink:null}}),vd=mi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:vt,ariaAutoComplete:null,ariaBusy:vt,ariaChecked:vt,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:vt,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:vt,ariaFlowTo:ut,ariaGrabbed:vt,ariaHasPopup:null,ariaHidden:vt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:K,ariaLive:null,ariaModal:vt,ariaMultiLine:vt,ariaMultiSelectable:vt,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:vt,ariaReadOnly:vt,ariaRelevant:null,ariaRequired:vt,ariaRoleDescription:ut,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:vt,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null}}),ay=mi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:md,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gi,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:ut,autoFocus:Te,autoPlay:Te,blocking:ut,capture:null,charSet:null,checked:Te,cite:null,className:ut,cols:K,colSpan:null,content:null,contentEditable:vt,controls:Te,controlsList:ut,coords:K|gi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:fd,draggable:vt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:ut,height:K,hidden:Te,high:K,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:ut,itemRef:ut,itemScope:Te,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:K,pattern:null,ping:ut,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:ut,required:Te,reversed:Te,rows:K,rowSpan:K,sandbox:ut,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:vt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:vt,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:vt,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:K,security:null,unselectable:null}}),cy=mi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:gd,properties:{about:nn,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:ut,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:gi,g2:gi,glyphName:gi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),fy=/^data[-\w.:]+$/i,yd=/-[a-z]/g,dy=/[A-Z]/g;function hy(e,t){const r=vl(t);let u=t,o=gn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&fy.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(yd,gy);u="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!yd.test(l)){let a=l.replace(dy,py);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=Cl}return new o(u,t)}function py(e){return"-"+e.toLowerCase()}function gy(e){return e.charAt(1).toUpperCase()}const my={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},by=cd([pd,hd,bd,vd,ay],"html"),xl=cd([pd,hd,bd,vd,cy],"svg");function vy(e){return e.join(" ").trim()}var Id={},Cd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yy=/\n/g,Iy=/^\s*/,Cy=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xy=/^:\s*/,Ay=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wy=/^[;\s]*/,Sy=/^\s+|\s+$/g,Ey=`
33
+ `,xd="/",Ad="*",Xr="",Fy="comment",Py="declaration",Oy=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,u=1;function o(E){var A=E.match(yy);A&&(r+=A.length);var F=E.lastIndexOf(Ey);u=~F?E.length-F:u+E.length}function l(){var E={line:r,column:u};return function(A){return A.position=new a(E),h(),A}}function a(E){this.start=E,this.end={line:r,column:u},this.source=t.source}a.prototype.content=e;function c(E){var A=new Error(t.source+":"+r+":"+u+": "+E);if(A.reason=E,A.filename=t.source,A.line=r,A.column=u,A.source=e,!t.silent)throw A}function f(E){var A=E.exec(e);if(A){var F=A[0];return o(F),e=e.slice(F.length),A}}function h(){f(Iy)}function p(E){var A;for(E=E||[];A=g();)A!==!1&&E.push(A);return E}function g(){var E=l();if(!(xd!=e.charAt(0)||Ad!=e.charAt(1))){for(var A=2;Xr!=e.charAt(A)&&(Ad!=e.charAt(A)||xd!=e.charAt(A+1));)++A;if(A+=2,Xr===e.charAt(A-1))return c("End of comment missing");var F=e.slice(2,A-2);return u+=2,o(F),e=e.slice(A),u+=2,E({type:Fy,comment:F})}}function I(){var E=l(),A=f(Cy);if(A){if(g(),!f(xy))return c("property missing ':'");var F=f(Ay),P=E({type:Py,property:wd(A[0].replace(Cd,Xr)),value:F?wd(F[0].replace(Cd,Xr)):Xr});return f(wy),P}}function b(){var E=[];p(E);for(var A;A=I();)A!==!1&&(E.push(A),p(E));return E}return h(),b()};function wd(e){return e?e.replace(Sy,Xr):Xr}var Ty=On&&On.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Id,"__esModule",{value:!0});var Sd=Id.default=_y,By=Ty(Oy);function _y(e,t){var r=null;if(!e||typeof e!="string")return r;var u=(0,By.default)(e),o=typeof t=="function";return u.forEach(function(l){if(l.type==="declaration"){var a=l.property,c=l.value;o?t(a,c,l):c&&(r=r||{},r[a]=c)}}),r}const Gy=Sd.default||Sd,Ed=Fd("end"),Al=Fd("start");function Fd(e){return t;function t(r){const u=r&&r.position&&r.position[e]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function Ry(e){const t=Al(e),r=Ed(e);if(t&&r)return{start:t,end:r}}function hu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pd(e.position):"start"in e||"end"in e?Pd(e):"line"in e||"column"in e?wl(e):""}function wl(e){return Od(e&&e.line)+":"+Od(e&&e.column)}function Pd(e){return wl(e&&e.start)+"-"+wl(e&&e.end)}function Od(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",l={},a=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?o=t:!l.cause&&t&&(a=!0,o=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof u=="string"){const f=u.indexOf(":");f===-1?l.ruleId=u:(l.source=u.slice(0,f),l.ruleId=u.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=c?c.line:void 0,this.name=hu(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}Bt.prototype.file="",Bt.prototype.name="",Bt.prototype.reason="",Bt.prototype.message="",Bt.prototype.stack="",Bt.prototype.column=void 0,Bt.prototype.line=void 0,Bt.prototype.ancestors=void 0,Bt.prototype.cause=void 0,Bt.prototype.fatal=void 0,Bt.prototype.place=void 0,Bt.prototype.ruleId=void 0,Bt.prototype.source=void 0;const Sl={}.hasOwnProperty,ky=new Map,Ly=/[A-Z]/g,Dy=/-([a-z])/g,My=new Set(["table","tbody","thead","tfoot","tr"]),Ny=new Set(["td","th"]),Td="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Vy(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let u;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=Uy(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=Jy(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:u,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?xl:by,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Bd(o,e,void 0);return l&&typeof l!="string"?l:o.create(e,o.Fragment,{children:l||void 0},void 0)}function Bd(e,t,r){if(t.type==="element")return Wy(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Xy(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zy(e,t,r);if(t.type==="mdxjsEsm")return Hy(e,t);if(t.type==="root")return Zy(e,t,r);if(t.type==="text")return Yy(e,t)}function Wy(e,t,r){const u=e.schema;let o=u;t.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=xl,e.schema=o),e.ancestors.push(t);const l=Gd(e,t.tagName,!1),a=jy(e,t);let c=Fl(e,t);return My.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!oy(f):!0})),_d(e,a,l,t),El(a,c),e.ancestors.pop(),e.schema=u,e.create(t,l,a,r)}function Xy(e,t){if(t.data&&t.data.estree&&e.evaluater){const u=t.data.estree.body[0];return u.type,e.evaluater.evaluateExpression(u.expression)}pu(e,t.position)}function Hy(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pu(e,t.position)}function zy(e,t,r){const u=e.schema;let o=u;t.name==="svg"&&u.space==="html"&&(o=xl,e.schema=o),e.ancestors.push(t);const l=t.name===null?e.Fragment:Gd(e,t.name,!0),a=Qy(e,t),c=Fl(e,t);return _d(e,a,l,t),El(a,c),e.ancestors.pop(),e.schema=u,e.create(t,l,a,r)}function Zy(e,t,r){const u={};return El(u,Fl(e,t)),e.create(t,e.Fragment,u,r)}function Yy(e,t){return t.value}function _d(e,t,r,u){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=u)}function El(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Jy(e,t,r){return u;function u(o,l,a,c){const h=Array.isArray(a.children)?r:t;return c?h(l,a,c):h(l,a)}}function Uy(e,t){return r;function r(u,o,l,a){const c=Array.isArray(l.children),f=Al(u);return t(o,l,a,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function jy(e,t){const r={};let u,o;for(o in t.properties)if(o!=="children"&&Sl.call(t.properties,o)){const l=qy(e,o,t.properties[o]);if(l){const[a,c]=l;e.tableCellAlignToStyle&&a==="align"&&typeof c=="string"&&Ny.has(t.tagName)?u=c:r[a]=c}}if(u){const l=r.style||(r.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function Qy(e,t){const r={};for(const u of t.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&e.evaluater){const l=u.data.estree.body[0];l.type;const a=l.expression;a.type;const c=a.properties[0];c.type,Object.assign(r,e.evaluater.evaluateExpression(c.argument))}else pu(e,t.position);else{const o=u.name;let l;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&e.evaluater){const c=u.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else pu(e,t.position);else l=u.value===null?!0:u.value;r[o]=l}return r}function Fl(e,t){const r=[];let u=-1;const o=e.passKeys?new Map:ky;for(;++u<t.children.length;){const l=t.children[u];let a;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=o.get(f)||0;a=f+"-"+h,o.set(f,h+1)}}const c=Bd(e,l,a);c!==void 0&&r.push(c)}return r}function qy(e,t,r){const u=hy(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?ty(r):vy(r)),u.property==="style"){let o=typeof r=="object"?r:$y(e,String(r));return e.stylePropertyNameCase==="css"&&(o=Ky(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&u.space?my[u.property]||u.property:u.attribute,r]}}function $y(e,t){const r={};try{Gy(t,u)}catch(o){if(!e.ignoreInvalidStyle){const l=o,a=new Bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Td+"#cannot-parse-style-attribute",a}}return r;function u(o,l){let a=o;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(Dy,tI)),r[a]=l}}function Gd(e,t,r){let u;if(!r)u={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let l=-1,a;for(;++l<o.length;){const c=ld(o[l])?{type:"Identifier",name:o[l]}:{type:"Literal",value:o[l]};a=a?{type:"MemberExpression",object:a,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}u=a}else u=ld(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(u.type==="Literal"){const o=u.value;return Sl.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(u);pu(e)}function pu(e,t){const r=new Bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Td+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Ky(e){const t={};let r;for(r in e)Sl.call(e,r)&&(t[eI(r)]=e[r]);return t}function eI(e){let t=e.replace(Ly,nI);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function tI(e,t){return t.toUpperCase()}function nI(e){return"-"+e.toLowerCase()}const Pl={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},rI={};function iI(e,t){const r=rI,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Rd(e,u,o)}function Rd(e,t,r){if(uI(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return kd(e.children,t,r)}return Array.isArray(e)?kd(e,t,r):""}function kd(e,t,r){const u=[];let o=-1;for(;++o<e.length;)u[o]=Rd(e[o],t,r);return u.join("")}function uI(e){return!!(e&&typeof e=="object")}const Ld=document.createElement("i");function Ol(e){const t="&"+e+";";Ld.innerHTML=t;const r=Ld.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Nn(e,t,r,u){const o=e.length;let l=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,u.length<1e4)a=Array.from(u),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);l<u.length;)a=u.slice(l,l+1e4),a.unshift(t,0),e.splice(...a),l+=1e4,t+=1e4}function mn(e,t){return e.length>0?(Nn(e,e.length,0,t),e):t}const Dd={}.hasOwnProperty;function oI(e){const t={};let r=-1;for(;++r<e.length;)sI(t,e[r]);return t}function sI(e,t){let r;for(r in t){const o=(Dd.call(e,r)?e[r]:void 0)||(e[r]={}),l=t[r];let a;if(l)for(a in l){Dd.call(o,a)||(o[a]=[]);const c=l[a];lI(o[a],Array.isArray(c)?c:c?[c]:[])}}}function lI(e,t){let r=-1;const u=[];for(;++r<t.length;)(t[r].add==="after"?e:u).push(t[r]);Nn(e,0,0,u)}function Md(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function bi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vn=br(/[A-Za-z]/),rn=br(/[\dA-Za-z]/),aI=br(/[#-'*+\--9=?A-Z^-~]/);function Tl(e){return e!==null&&(e<32||e===127)}const Bl=br(/\d/),cI=br(/[\dA-Fa-f]/),fI=br(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function zt(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const dI=br(new RegExp("\\p{P}|\\p{S}","u")),hI=br(/\s/);function br(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function vi(e){const t=[];let r=-1,u=0,o=0;for(;++r<e.length;){const l=e.charCodeAt(r);let a="";if(l===37&&rn(e.charCodeAt(r+1))&&rn(e.charCodeAt(r+2)))o=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(r+1);l<56320&&c>56319&&c<57344?(a=String.fromCharCode(l,c),o=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(u,r),encodeURIComponent(a)),u=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(u)}function ot(e,t,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(f){return Ue(f)?(e.enter(r),c(f)):t(f)}function c(f){return Ue(f)&&l++<o?(e.consume(f),c):(e.exit(r),t(f))}}const pI={tokenize:gI};function gI(e){const t=e.attempt(this.parser.constructs.contentInitial,u,o);let r;return t;function u(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ot(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),l(c)}function l(c){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,a(c)}function a(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ae(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),a)}}const mI={tokenize:bI},Nd={tokenize:vI};function bI(e){const t=this,r=[];let u=0,o,l,a;return c;function c(k){if(u<r.length){const L=r[u];return t.containerState=L[1],e.attempt(L[0].continuation,f,h)(k)}return h(k)}function f(k){if(u++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&D();const L=t.events.length;let V=L,R;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){R=t.events[V][1].end;break}P(u);let J=L;for(;J<t.events.length;)t.events[J][1].end={...R},J++;return Nn(t.events,V+1,0,t.events.slice(L)),t.events.length=J,h(k)}return c(k)}function h(k){if(u===r.length){if(!o)return I(k);if(o.currentConstruct&&o.currentConstruct.concrete)return E(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Nd,p,g)(k)}function p(k){return o&&D(),P(u),I(k)}function g(k){return t.parser.lazy[t.now().line]=u!==r.length,a=t.now().offset,E(k)}function I(k){return t.containerState={},e.attempt(Nd,b,E)(k)}function b(k){return u++,r.push([t.currentConstruct,t.containerState]),I(k)}function E(k){if(k===null){o&&D(),P(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:l}),A(k)}function A(k){if(k===null){F(e.exit("chunkFlow"),!0),P(0),e.consume(k);return}return Ae(k)?(e.consume(k),F(e.exit("chunkFlow")),u=0,t.interrupt=void 0,c):(e.consume(k),A)}function F(k,L){const V=t.sliceStream(k);if(L&&V.push(null),k.previous=l,l&&(l.next=k),l=k,o.defineSkip(k.start),o.write(V),t.parser.lazy[k.start.line]){let R=o.events.length;for(;R--;)if(o.events[R][1].start.offset<a&&(!o.events[R][1].end||o.events[R][1].end.offset>a))return;const J=t.events.length;let N=J,j,ne;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(j){ne=t.events[N][1].end;break}j=!0}for(P(u),R=J;R<t.events.length;)t.events[R][1].end={...ne},R++;Nn(t.events,N+1,0,t.events.slice(J)),t.events.length=R}}function P(k){let L=r.length;for(;L-- >k;){const V=r[L];t.containerState=V[1],V[0].exit.call(t,e)}r.length=k}function D(){o.write([null]),l=void 0,o=void 0,t.containerState._closeFlow=void 0}}function vI(e,t,r){return ot(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vd(e){if(e===null||zt(e)||hI(e))return 1;if(dI(e))return 2}function _l(e,t,r){const u=[];let o=-1;for(;++o<e.length;){const l=e[o].resolveAll;l&&!u.includes(l)&&(t=l(t,r),u.push(l))}return t}const Gl={name:"attention",resolveAll:yI,tokenize:II};function yI(e,t){let r=-1,u,o,l,a,c,f,h,p;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(u=r;u--;)if(e[u][0]==="exit"&&e[u][1].type==="attentionSequence"&&e[u][1]._open&&t.sliceSerialize(e[u][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[u][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[u][1].end.offset-e[u][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[u][1].end.offset-e[u][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[u][1].end},I={...e[r][1].start};Wd(g,-f),Wd(I,f),a={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[u][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:I},l={type:f>1?"strongText":"emphasisText",start:{...e[u][1].end},end:{...e[r][1].start}},o={type:f>1?"strong":"emphasis",start:{...a.start},end:{...c.end}},e[u][1].end={...a.start},e[r][1].start={...c.end},h=[],e[u][1].end.offset-e[u][1].start.offset&&(h=mn(h,[["enter",e[u][1],t],["exit",e[u][1],t]])),h=mn(h,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",l,t]]),h=mn(h,_l(t.parser.constructs.insideSpan.null,e.slice(u+1,r),t)),h=mn(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,h=mn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,Nn(e,u-1,r-u+3,h),r=u+h.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function II(e,t){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=Vd(u);let l;return a;function a(f){return l=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===l)return e.consume(f),c;const h=e.exit("attentionSequence"),p=Vd(f),g=!p||p===2&&o||r.includes(f),I=!o||o===2&&p||r.includes(u);return h._open=!!(l===42?g:g&&(o||!I)),h._close=!!(l===42?I:I&&(p||!g)),t(f)}}function Wd(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const CI={name:"autolink",tokenize:xI};function xI(e,t,r){let u=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return Vn(b)?(e.consume(b),a):b===64?r(b):h(b)}function a(b){return b===43||b===45||b===46||rn(b)?(u=1,c(b)):h(b)}function c(b){return b===58?(e.consume(b),u=0,f):(b===43||b===45||b===46||rn(b))&&u++<32?(e.consume(b),c):(u=0,h(b))}function f(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Tl(b)?r(b):(e.consume(b),f)}function h(b){return b===64?(e.consume(b),p):aI(b)?(e.consume(b),h):r(b)}function p(b){return rn(b)?g(b):r(b)}function g(b){return b===46?(e.consume(b),u=0,p):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):I(b)}function I(b){if((b===45||rn(b))&&u++<63){const E=b===45?I:g;return e.consume(b),E}return r(b)}}const Io={partial:!0,tokenize:AI};function AI(e,t,r){return u;function u(l){return Ue(l)?ot(e,o,"linePrefix")(l):o(l)}function o(l){return l===null||Ae(l)?t(l):r(l)}}const Xd={continuation:{tokenize:SI},exit:EI,name:"blockQuote",tokenize:wI};function wI(e,t,r){const u=this;return o;function o(a){if(a===62){const c=u.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return r(a)}function l(a){return Ue(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function SI(e,t,r){const u=this;return o;function o(a){return Ue(a)?ot(e,l,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Xd,t,r)(a)}}function EI(e){e.exit("blockQuote")}const Hd={name:"characterEscape",tokenize:FI};function FI(e,t,r){return u;function u(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),o}function o(l){return fI(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(l)}}const zd={name:"characterReference",tokenize:PI};function PI(e,t,r){const u=this;let o=0,l,a;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,a=rn,p(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=cI,p):(e.enter("characterReferenceValue"),l=7,a=Bl,p(g))}function p(g){if(g===59&&o){const I=e.exit("characterReferenceValue");return a===rn&&!Ol(u.sliceSerialize(I))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(g)&&o++<l?(e.consume(g),p):r(g)}}const Zd={partial:!0,tokenize:TI},Yd={concrete:!0,name:"codeFenced",tokenize:OI};function OI(e,t,r){const u=this,o={partial:!0,tokenize:V};let l=0,a=0,c;return f;function f(R){return h(R)}function h(R){const J=u.events[u.events.length-1];return l=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,c=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(R)}function p(R){return R===c?(a++,e.consume(R),p):a<3?r(R):(e.exit("codeFencedFenceSequence"),Ue(R)?ot(e,g,"whitespace")(R):g(R))}function g(R){return R===null||Ae(R)?(e.exit("codeFencedFence"),u.interrupt?t(R):e.check(Zd,A,L)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),I(R))}function I(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):Ue(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ot(e,b,"whitespace")(R)):R===96&&R===c?r(R):(e.consume(R),I)}function b(R){return R===null||Ae(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(R))}function E(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===c?r(R):(e.consume(R),E)}function A(R){return e.attempt(o,L,F)(R)}function F(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),P}function P(R){return l>0&&Ue(R)?ot(e,D,"linePrefix",l+1)(R):D(R)}function D(R){return R===null||Ae(R)?e.check(Zd,A,L)(R):(e.enter("codeFlowValue"),k(R))}function k(R){return R===null||Ae(R)?(e.exit("codeFlowValue"),D(R)):(e.consume(R),k)}function L(R){return e.exit("codeFenced"),t(R)}function V(R,J,N){let j=0;return ne;function ne(ie){return R.enter("lineEnding"),R.consume(ie),R.exit("lineEnding"),$}function $(ie){return R.enter("codeFencedFence"),Ue(ie)?ot(R,Q,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):Q(ie)}function Q(ie){return ie===c?(R.enter("codeFencedFenceSequence"),ve(ie)):N(ie)}function ve(ie){return ie===c?(j++,R.consume(ie),ve):j>=a?(R.exit("codeFencedFenceSequence"),Ue(ie)?ot(R,Be,"whitespace")(ie):Be(ie)):N(ie)}function Be(ie){return ie===null||Ae(ie)?(R.exit("codeFencedFence"),J(ie)):N(ie)}}}function TI(e,t,r){const u=this;return o;function o(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return u.parser.lazy[u.now().line]?r(a):t(a)}}const Rl={name:"codeIndented",tokenize:_I},BI={partial:!0,tokenize:GI};function _I(e,t,r){const u=this;return o;function o(h){return e.enter("codeIndented"),ot(e,l,"linePrefix",5)(h)}function l(h){const p=u.events[u.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(h):r(h)}function a(h){return h===null?f(h):Ae(h)?e.attempt(BI,a,f)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ae(h)?(e.exit("codeFlowValue"),a(h)):(e.consume(h),c)}function f(h){return e.exit("codeIndented"),t(h)}}function GI(e,t,r){const u=this;return o;function o(a){return u.parser.lazy[u.now().line]?r(a):Ae(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ot(e,l,"linePrefix",5)(a)}function l(a){const c=u.events[u.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):Ae(a)?o(a):r(a)}}const RI={name:"codeText",previous:LI,resolve:kI,tokenize:DI};function kI(e){let t=e.length-4,r=3,u,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(u=r;++u<t;)if(e[u][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(u=r-1,t++;++u<=t;)o===void 0?u!==t&&e[u][1].type!=="lineEnding"&&(o=u):(u===t||e[u][1].type==="lineEnding")&&(e[o][1].type="codeTextData",u!==o+2&&(e[o][1].end=e[u-1][1].end,e.splice(o+2,u-o-2),t-=u-o-2,u=o+2),o=void 0);return e}function LI(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DI(e,t,r){let u=0,o,l;return a;function a(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),u++,c):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(l=e.enter("codeTextSequence"),o=0,p(g)):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||Ae(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function p(g){return g===96?(e.consume(g),o++,p):o===u?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",h(g))}}class MI{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(t,u):t>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(t,r,u){const o=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&gu(this.left,u),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),gu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),gu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);gu(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);gu(this.left,r.reverse())}}}function gu(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Jd(e){const t={};let r=-1,u,o,l,a,c,f,h;const p=new MI(e);for(;++r<p.length;){for(;r in t;)r=t[r];if(u=p.get(r),r&&u[1].type==="chunkFlow"&&p.get(r-1)[1].type==="listItemPrefix"&&(f=u[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(u[0]==="enter")u[1].contentType&&(Object.assign(t,NI(p,r)),r=t[r],h=!0);else if(u[1]._container){for(l=r,o=void 0;l--&&(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(o&&(p.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=l);o&&(u[1].end={...p.get(o)[1].start},c=p.slice(o,r),c.unshift(u),p.splice(o,r-o+1,c))}}return Nn(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function NI(e,t){const r=e.get(t)[1],u=e.get(t)[2];let o=t-1;const l=[],a=r._tokenizer||u.parser[r.contentType](r.start),c=a.events,f=[],h={};let p,g,I=-1,b=r,E=0,A=0;const F=[A];for(;b;){for(;e.get(++o)[1]!==b;);l.push(o),b._tokenizer||(p=u.sliceStream(b),b.next||p.push(null),g&&a.defineSkip(b.start),b._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),b._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),g=b,b=b.next}for(b=r;++I<c.length;)c[I][0]==="exit"&&c[I-1][0]==="enter"&&c[I][1].type===c[I-1][1].type&&c[I][1].start.line!==c[I][1].end.line&&(A=I+1,F.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(a.events=[],b?(b._tokenizer=void 0,b.previous=void 0):F.pop(),I=F.length;I--;){const P=c.slice(F[I],F[I+1]),D=l.pop();f.push([D,D+P.length-1]),e.splice(D,2,P)}for(f.reverse(),I=-1;++I<f.length;)h[E+f[I][0]]=E+f[I][1],E+=f[I][1]-f[I][0]-1;return h}const VI={resolve:XI,tokenize:HI},WI={partial:!0,tokenize:zI};function XI(e){return Jd(e),e}function HI(e,t){let r;return u;function u(c){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?l(c):Ae(c)?e.check(WI,a,l)(c):(e.consume(c),o)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function a(c){return e.consume(c),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function zI(e,t,r){const u=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ot(e,l,"linePrefix")}function l(a){if(a===null||Ae(a))return r(a);const c=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(a):e.interrupt(u.parser.constructs.flow,r,t)(a)}}function Ud(e,t,r,u,o,l,a,c,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(P){return P===60?(e.enter(u),e.enter(o),e.enter(l),e.consume(P),e.exit(l),I):P===null||P===32||P===41||Tl(P)?r(P):(e.enter(u),e.enter(a),e.enter(c),e.enter("chunkString",{contentType:"string"}),A(P))}function I(P){return P===62?(e.enter(l),e.consume(P),e.exit(l),e.exit(o),e.exit(u),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),b(P))}function b(P){return P===62?(e.exit("chunkString"),e.exit(c),I(P)):P===null||P===60||Ae(P)?r(P):(e.consume(P),P===92?E:b)}function E(P){return P===60||P===62||P===92?(e.consume(P),b):b(P)}function A(P){return!p&&(P===null||P===41||zt(P))?(e.exit("chunkString"),e.exit(c),e.exit(a),e.exit(u),t(P)):p<h&&P===40?(e.consume(P),p++,A):P===41?(e.consume(P),p--,A):P===null||P===32||P===40||Tl(P)?r(P):(e.consume(P),P===92?F:A)}function F(P){return P===40||P===41||P===92?(e.consume(P),A):A(P)}}function jd(e,t,r,u,o,l){const a=this;let c=0,f;return h;function h(b){return e.enter(u),e.enter(o),e.consume(b),e.exit(o),e.enter(l),p}function p(b){return c>999||b===null||b===91||b===93&&!f||b===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?r(b):b===93?(e.exit(l),e.enter(o),e.consume(b),e.exit(o),e.exit(u),t):Ae(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||b===91||b===93||Ae(b)||c++>999?(e.exit("chunkString"),p(b)):(e.consume(b),f||(f=!Ue(b)),b===92?I:g)}function I(b){return b===91||b===92||b===93?(e.consume(b),c++,g):g(b)}}function Qd(e,t,r,u,o,l){let a;return c;function c(I){return I===34||I===39||I===40?(e.enter(u),e.enter(o),e.consume(I),e.exit(o),a=I===40?41:I,f):r(I)}function f(I){return I===a?(e.enter(o),e.consume(I),e.exit(o),e.exit(u),t):(e.enter(l),h(I))}function h(I){return I===a?(e.exit(l),f(a)):I===null?r(I):Ae(I)?(e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ot(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===a||I===null||Ae(I)?(e.exit("chunkString"),h(I)):(e.consume(I),I===92?g:p)}function g(I){return I===a||I===92?(e.consume(I),p):p(I)}}function mu(e,t){let r;return u;function u(o){return Ae(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,u):Ue(o)?ot(e,u,r?"linePrefix":"lineSuffix")(o):t(o)}}const ZI={name:"definition",tokenize:JI},YI={partial:!0,tokenize:UI};function JI(e,t,r){const u=this;let o;return l;function l(b){return e.enter("definition"),a(b)}function a(b){return jd.call(u,e,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function c(b){return o=bi(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),f):r(b)}function f(b){return zt(b)?mu(e,h)(b):h(b)}function h(b){return Ud(e,p,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function p(b){return e.attempt(YI,g,g)(b)}function g(b){return Ue(b)?ot(e,I,"whitespace")(b):I(b)}function I(b){return b===null||Ae(b)?(e.exit("definition"),u.parser.defined.push(o),t(b)):r(b)}}function UI(e,t,r){return u;function u(c){return zt(c)?mu(e,o)(c):r(c)}function o(c){return Qd(e,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Ue(c)?ot(e,a,"whitespace")(c):a(c)}function a(c){return c===null||Ae(c)?t(c):r(c)}}const jI={name:"hardBreakEscape",tokenize:QI};function QI(e,t,r){return u;function u(l){return e.enter("hardBreakEscape"),e.consume(l),o}function o(l){return Ae(l)?(e.exit("hardBreakEscape"),t(l)):r(l)}}const qI={name:"headingAtx",resolve:$I,tokenize:KI};function $I(e,t){let r=e.length-2,u=3,o,l;return e[u][1].type==="whitespace"&&(u+=2),r-2>u&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&e[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:e[u][1].start,end:e[r][1].end},l={type:"chunkText",start:e[u][1].start,end:e[r][1].end,contentType:"text"},Nn(e,u,r-u+1,[["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t]])),e}function KI(e,t,r){let u=0;return o;function o(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&u++<6?(e.consume(p),a):p===null||zt(p)?(e.exit("atxHeadingSequence"),c(p)):r(p)}function c(p){return p===35?(e.enter("atxHeadingSequence"),f(p)):p===null||Ae(p)?(e.exit("atxHeading"),t(p)):Ue(p)?ot(e,c,"whitespace")(p):(e.enter("atxHeadingText"),h(p))}function f(p){return p===35?(e.consume(p),f):(e.exit("atxHeadingSequence"),c(p))}function h(p){return p===null||p===35||zt(p)?(e.exit("atxHeadingText"),c(p)):(e.consume(p),h)}}const e1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qd=["pre","script","style","textarea"],t1={concrete:!0,name:"htmlFlow",resolveTo:i1,tokenize:u1},n1={partial:!0,tokenize:s1},r1={partial:!0,tokenize:o1};function i1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function u1(e,t,r){const u=this;let o,l,a,c,f;return h;function h(w){return p(w)}function p(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),g}function g(w){return w===33?(e.consume(w),I):w===47?(e.consume(w),l=!0,A):w===63?(e.consume(w),o=3,u.interrupt?t:S):Vn(w)?(e.consume(w),a=String.fromCharCode(w),F):r(w)}function I(w){return w===45?(e.consume(w),o=2,b):w===91?(e.consume(w),o=5,c=0,E):Vn(w)?(e.consume(w),o=4,u.interrupt?t:S):r(w)}function b(w){return w===45?(e.consume(w),u.interrupt?t:S):r(w)}function E(w){const Je="CDATA[";return w===Je.charCodeAt(c++)?(e.consume(w),c===Je.length?u.interrupt?t:Q:E):r(w)}function A(w){return Vn(w)?(e.consume(w),a=String.fromCharCode(w),F):r(w)}function F(w){if(w===null||w===47||w===62||zt(w)){const Je=w===47,me=a.toLowerCase();return!Je&&!l&&qd.includes(me)?(o=1,u.interrupt?t(w):Q(w)):e1.includes(a.toLowerCase())?(o=6,Je?(e.consume(w),P):u.interrupt?t(w):Q(w)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(w):l?D(w):k(w))}return w===45||rn(w)?(e.consume(w),a+=String.fromCharCode(w),F):r(w)}function P(w){return w===62?(e.consume(w),u.interrupt?t:Q):r(w)}function D(w){return Ue(w)?(e.consume(w),D):ne(w)}function k(w){return w===47?(e.consume(w),ne):w===58||w===95||Vn(w)?(e.consume(w),L):Ue(w)?(e.consume(w),k):ne(w)}function L(w){return w===45||w===46||w===58||w===95||rn(w)?(e.consume(w),L):V(w)}function V(w){return w===61?(e.consume(w),R):Ue(w)?(e.consume(w),V):k(w)}function R(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),f=w,J):Ue(w)?(e.consume(w),R):N(w)}function J(w){return w===f?(e.consume(w),f=null,j):w===null||Ae(w)?r(w):(e.consume(w),J)}function N(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||zt(w)?V(w):(e.consume(w),N)}function j(w){return w===47||w===62||Ue(w)?k(w):r(w)}function ne(w){return w===62?(e.consume(w),$):r(w)}function $(w){return w===null||Ae(w)?Q(w):Ue(w)?(e.consume(w),$):r(w)}function Q(w){return w===45&&o===2?(e.consume(w),ge):w===60&&o===1?(e.consume(w),de):w===62&&o===4?(e.consume(w),He):w===63&&o===3?(e.consume(w),S):w===93&&o===5?(e.consume(w),qe):Ae(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(n1,Le,ve)(w)):w===null||Ae(w)?(e.exit("htmlFlowData"),ve(w)):(e.consume(w),Q)}function ve(w){return e.check(r1,Be,Le)(w)}function Be(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),ie}function ie(w){return w===null||Ae(w)?ve(w):(e.enter("htmlFlowData"),Q(w))}function ge(w){return w===45?(e.consume(w),S):Q(w)}function de(w){return w===47?(e.consume(w),a="",Se):Q(w)}function Se(w){if(w===62){const Je=a.toLowerCase();return qd.includes(Je)?(e.consume(w),He):Q(w)}return Vn(w)&&a.length<8?(e.consume(w),a+=String.fromCharCode(w),Se):Q(w)}function qe(w){return w===93?(e.consume(w),S):Q(w)}function S(w){return w===62?(e.consume(w),He):w===45&&o===2?(e.consume(w),S):Q(w)}function He(w){return w===null||Ae(w)?(e.exit("htmlFlowData"),Le(w)):(e.consume(w),He)}function Le(w){return e.exit("htmlFlow"),t(w)}}function o1(e,t,r){const u=this;return o;function o(a){return Ae(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):r(a)}function l(a){return u.parser.lazy[u.now().line]?r(a):t(a)}}function s1(e,t,r){return u;function u(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Io,t,r)}}const l1={name:"htmlText",tokenize:a1};function a1(e,t,r){const u=this;let o,l,a;return c;function c(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),h):S===47?(e.consume(S),V):S===63?(e.consume(S),k):Vn(S)?(e.consume(S),N):r(S)}function h(S){return S===45?(e.consume(S),p):S===91?(e.consume(S),l=0,E):Vn(S)?(e.consume(S),D):r(S)}function p(S){return S===45?(e.consume(S),b):r(S)}function g(S){return S===null?r(S):S===45?(e.consume(S),I):Ae(S)?(a=g,de(S)):(e.consume(S),g)}function I(S){return S===45?(e.consume(S),b):g(S)}function b(S){return S===62?ge(S):S===45?I(S):g(S)}function E(S){const He="CDATA[";return S===He.charCodeAt(l++)?(e.consume(S),l===He.length?A:E):r(S)}function A(S){return S===null?r(S):S===93?(e.consume(S),F):Ae(S)?(a=A,de(S)):(e.consume(S),A)}function F(S){return S===93?(e.consume(S),P):A(S)}function P(S){return S===62?ge(S):S===93?(e.consume(S),P):A(S)}function D(S){return S===null||S===62?ge(S):Ae(S)?(a=D,de(S)):(e.consume(S),D)}function k(S){return S===null?r(S):S===63?(e.consume(S),L):Ae(S)?(a=k,de(S)):(e.consume(S),k)}function L(S){return S===62?ge(S):k(S)}function V(S){return Vn(S)?(e.consume(S),R):r(S)}function R(S){return S===45||rn(S)?(e.consume(S),R):J(S)}function J(S){return Ae(S)?(a=J,de(S)):Ue(S)?(e.consume(S),J):ge(S)}function N(S){return S===45||rn(S)?(e.consume(S),N):S===47||S===62||zt(S)?j(S):r(S)}function j(S){return S===47?(e.consume(S),ge):S===58||S===95||Vn(S)?(e.consume(S),ne):Ae(S)?(a=j,de(S)):Ue(S)?(e.consume(S),j):ge(S)}function ne(S){return S===45||S===46||S===58||S===95||rn(S)?(e.consume(S),ne):$(S)}function $(S){return S===61?(e.consume(S),Q):Ae(S)?(a=$,de(S)):Ue(S)?(e.consume(S),$):j(S)}function Q(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),o=S,ve):Ae(S)?(a=Q,de(S)):Ue(S)?(e.consume(S),Q):(e.consume(S),Be)}function ve(S){return S===o?(e.consume(S),o=void 0,ie):S===null?r(S):Ae(S)?(a=ve,de(S)):(e.consume(S),ve)}function Be(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||zt(S)?j(S):(e.consume(S),Be)}function ie(S){return S===47||S===62||zt(S)?j(S):r(S)}function ge(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):r(S)}function de(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),Se}function Se(S){return Ue(S)?ot(e,qe,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):qe(S)}function qe(S){return e.enter("htmlTextData"),a(S)}}const kl={name:"labelEnd",resolveAll:h1,resolveTo:p1,tokenize:g1},c1={tokenize:m1},f1={tokenize:b1},d1={tokenize:v1};function h1(e){let t=-1;const r=[];for(;++t<e.length;){const u=e[t][1];if(r.push(e[t]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",t+=o}}return e.length!==r.length&&Nn(e,0,e.length,r),e}function p1(e,t){let r=e.length,u=0,o,l,a,c;for(;r--;)if(o=e[r][1],l){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(l=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(a=r);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+u+2][1].end},end:{...e[a-2][1].start}};return c=[["enter",f,t],["enter",h,t]],c=mn(c,e.slice(l+1,l+u+3)),c=mn(c,[["enter",p,t]]),c=mn(c,_l(t.parser.constructs.insideSpan.null,e.slice(l+u+4,a-3),t)),c=mn(c,[["exit",p,t],e[a-2],e[a-1],["exit",h,t]]),c=mn(c,e.slice(a+1)),c=mn(c,[["exit",f,t]]),Nn(e,l,e.length,c),e}function g1(e,t,r){const u=this;let o=u.events.length,l,a;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){l=u.events[o][1];break}return c;function c(I){return l?l._inactive?g(I):(a=u.parser.defined.includes(bi(u.sliceSerialize({start:l.end,end:u.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(I),e.exit("labelMarker"),e.exit("labelEnd"),f):r(I)}function f(I){return I===40?e.attempt(c1,p,a?p:g)(I):I===91?e.attempt(f1,p,a?h:g)(I):a?p(I):g(I)}function h(I){return e.attempt(d1,p,g)(I)}function p(I){return t(I)}function g(I){return l._balanced=!0,r(I)}}function m1(e,t,r){return u;function u(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return zt(g)?mu(e,l)(g):l(g)}function l(g){return g===41?p(g):Ud(e,a,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function a(g){return zt(g)?mu(e,f)(g):p(g)}function c(g){return r(g)}function f(g){return g===34||g===39||g===40?Qd(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return zt(g)?mu(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function b1(e,t,r){const u=this;return o;function o(c){return jd.call(u,e,l,a,"reference","referenceMarker","referenceString")(c)}function l(c){return u.parser.defined.includes(bi(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?t(c):r(c)}function a(c){return r(c)}}function v1(e,t,r){return u;function u(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),o}function o(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):r(l)}}const y1={name:"labelStartImage",resolveAll:kl.resolveAll,tokenize:I1};function I1(e,t,r){const u=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),a):r(c)}function a(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(c):t(c)}}const C1={name:"labelStartLink",resolveAll:kl.resolveAll,tokenize:x1};function x1(e,t,r){const u=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(a):t(a)}}const Ll={name:"lineEnding",tokenize:A1};function A1(e,t){return r;function r(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ot(e,t,"linePrefix")}}const Co={name:"thematicBreak",tokenize:w1};function w1(e,t,r){let u=0,o;return l;function l(h){return e.enter("thematicBreak"),a(h)}function a(h){return o=h,c(h)}function c(h){return h===o?(e.enter("thematicBreakSequence"),f(h)):u>=3&&(h===null||Ae(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===o?(e.consume(h),u++,f):(e.exit("thematicBreakSequence"),Ue(h)?ot(e,c,"whitespace")(h):c(h))}}const Zt={continuation:{tokenize:P1},exit:T1,name:"list",tokenize:F1},S1={partial:!0,tokenize:B1},E1={partial:!0,tokenize:O1};function F1(e,t,r){const u=this,o=u.events[u.events.length-1];let l=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return c;function c(b){const E=u.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!u.containerState.marker||b===u.containerState.marker:Bl(b)){if(u.containerState.type||(u.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Co,r,h)(b):h(b);if(!u.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(b)}return r(b)}function f(b){return Bl(b)&&++a<10?(e.consume(b),f):(!u.interrupt||a<2)&&(u.containerState.marker?b===u.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):r(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||b,e.check(Io,u.interrupt?r:p,e.attempt(S1,I,g))}function p(b){return u.containerState.initialBlankLine=!0,l++,I(b)}function g(b){return Ue(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),I):r(b)}function I(b){return u.containerState.size=l+u.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function P1(e,t,r){const u=this;return u.containerState._closeFlow=void 0,e.check(Io,o,l);function o(c){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,ot(e,t,"listItemIndent",u.containerState.size+1)(c)}function l(c){return u.containerState.furtherBlankLines||!Ue(c)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,a(c)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,e.attempt(E1,t,a)(c))}function a(c){return u.containerState._closeFlow=!0,u.interrupt=void 0,ot(e,e.attempt(Zt,t,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function O1(e,t,r){const u=this;return ot(e,o,"listItemIndent",u.containerState.size+1);function o(l){const a=u.events[u.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===u.containerState.size?t(l):r(l)}}function T1(e){e.exit(this.containerState.type)}function B1(e,t,r){const u=this;return ot(e,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(l){const a=u.events[u.events.length-1];return!Ue(l)&&a&&a[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const $d={name:"setextUnderline",resolveTo:_1,tokenize:G1};function _1(e,t){let r=e.length,u,o,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){u=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!l&&e[r][1].type==="definition"&&(l=r);const a={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(e.splice(o,0,["enter",a,t]),e.splice(l+1,0,["exit",e[u][1],t]),e[u][1].end={...e[l][1].end}):e[u][1]=a,e.push(["exit",a,t]),e}function G1(e,t,r){const u=this;let o;return l;function l(h){let p=u.events.length,g;for(;p--;)if(u.events[p][1].type!=="lineEnding"&&u.events[p][1].type!=="linePrefix"&&u.events[p][1].type!=="content"){g=u.events[p][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(e.enter("setextHeadingLine"),o=h,a(h)):r(h)}function a(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===o?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Ue(h)?ot(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ae(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const R1={tokenize:k1};function k1(e){const t=this,r=e.attempt(Io,u,e.attempt(this.parser.constructs.flowInitial,o,ot(e,e.attempt(this.parser.constructs.flow,o,e.attempt(VI,o)),"linePrefix")));return r;function u(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const L1={resolveAll:eh()},D1=Kd("string"),M1=Kd("text");function Kd(e){return{resolveAll:eh(e==="text"?N1:void 0),tokenize:t};function t(r){const u=this,o=this.parser.constructs[e],l=r.attempt(o,a,c);return a;function a(p){return h(p)?l(p):c(p)}function c(p){if(p===null){r.consume(p);return}return r.enter("data"),r.consume(p),f}function f(p){return h(p)?(r.exit("data"),l(p)):(r.consume(p),f)}function h(p){if(p===null)return!0;const g=o[p];let I=-1;if(g)for(;++I<g.length;){const b=g[I];if(!b.previous||b.previous.call(u,u.previous))return!0}return!1}}}function eh(e){return t;function t(r,u){let o=-1,l;for(;++o<=r.length;)l===void 0?r[o]&&r[o][1].type==="data"&&(l=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==l+2&&(r[l][1].end=r[o-1][1].end,r.splice(l+2,o-l-2),o=l+2),l=void 0);return e?e(r,u):r}}function N1(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const u=e[r-1][1],o=t.sliceStream(u);let l=o.length,a=-1,c=0,f;for(;l--;){const h=o[l];if(typeof h=="string"){for(a=h.length;h.charCodeAt(a-1)===32;)c++,a--;if(a)break;a=-1}else if(h===-2)f=!0,c++;else if(h!==-1){l++;break}}if(c){const h={type:r===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:u.start._bufferIndex+a,_index:u.start._index+l,line:u.end.line,column:u.end.column-c,offset:u.end.offset-c},end:{...u.end}};u.end={...h.start},u.start.offset===u.end.offset?Object.assign(u,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const V1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:ZI},disable:{null:[]},document:{42:Zt,43:Zt,45:Zt,48:Zt,49:Zt,50:Zt,51:Zt,52:Zt,53:Zt,54:Zt,55:Zt,56:Zt,57:Zt,62:Xd},flow:{35:qI,42:Co,45:[$d,Co],60:t1,61:$d,95:Co,96:Yd,126:Yd},flowInitial:{[-2]:Rl,[-1]:Rl,32:Rl},insideSpan:{null:[Gl,L1]},string:{38:zd,92:Hd},text:{[-5]:Ll,[-4]:Ll,[-3]:Ll,33:y1,38:zd,42:Gl,60:[CI,l1],91:C1,92:[jI,Hd],93:kl,95:Gl,96:RI}},Symbol.toStringTag,{value:"Module"}));function W1(e,t,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},l=[];let a=[],c=[];const f={attempt:J(V),check:J(R),consume:D,enter:k,exit:L,interrupt:J(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:A,events:[],now:E,parser:e,previous:null,sliceSerialize:I,sliceStream:b,write:g};let p=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function g($){return a=mn(a,$),F(),a[a.length-1]!==null?[]:(N(t,0),h.events=_l(l,h.events,h),h.events)}function I($,Q){return H1(b($),Q)}function b($){return X1(a,$)}function E(){const{_bufferIndex:$,_index:Q,line:ve,column:Be,offset:ie}=u;return{_bufferIndex:$,_index:Q,line:ve,column:Be,offset:ie}}function A($){o[$.line]=$.column,ne()}function F(){let $;for(;u._index<a.length;){const Q=a[u._index];if(typeof Q=="string")for($=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===$&&u._bufferIndex<Q.length;)P(Q.charCodeAt(u._bufferIndex));else P(Q)}}function P($){p=p($)}function D($){Ae($)?(u.line++,u.column=1,u.offset+=$===-3?2:1,ne()):$!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===a[u._index].length&&(u._bufferIndex=-1,u._index++)),h.previous=$}function k($,Q){const ve=Q||{};return ve.type=$,ve.start=E(),h.events.push(["enter",ve,h]),c.push(ve),ve}function L($){const Q=c.pop();return Q.end=E(),h.events.push(["exit",Q,h]),Q}function V($,Q){N($,Q.from)}function R($,Q){Q.restore()}function J($,Q){return ve;function ve(Be,ie,ge){let de,Se,qe,S;return Array.isArray(Be)?Le(Be):"tokenize"in Be?Le([Be]):He(Be);function He(De){return yt;function yt(ee){const oe=ee!==null&&De[ee],ye=ee!==null&&De.null,Me=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return Le(Me)(ee)}}function Le(De){return de=De,Se=0,De.length===0?ge:w(De[Se])}function w(De){return yt;function yt(ee){return S=j(),qe=De,De.partial||(h.currentConstruct=De),De.name&&h.parser.constructs.disable.null.includes(De.name)?me():De.tokenize.call(Q?Object.assign(Object.create(h),Q):h,f,Je,me)(ee)}}function Je(De){return $(qe,S),ie}function me(De){return S.restore(),++Se<de.length?w(de[Se]):ge}}}function N($,Q){$.resolveAll&&!l.includes($)&&l.push($),$.resolve&&Nn(h.events,Q,h.events.length-Q,$.resolve(h.events.slice(Q),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function j(){const $=E(),Q=h.previous,ve=h.currentConstruct,Be=h.events.length,ie=Array.from(c);return{from:Be,restore:ge};function ge(){u=$,h.previous=Q,h.currentConstruct=ve,h.events.length=Be,c=ie,ne()}}function ne(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function X1(e,t){const r=t.start._index,u=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;let a;if(r===o)a=[e[r].slice(u,l)];else{if(a=e.slice(r,o),u>-1){const c=a[0];typeof c=="string"?a[0]=c.slice(u):a.shift()}l>0&&a.push(e[o].slice(0,l))}return a}function H1(e,t){let r=-1;const u=[];let o;for(;++r<e.length;){const l=e[r];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
34
+ `;break}case-3:{a=`\r
35
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(l)}o=l===-2,u.push(a)}return u.join("")}function z1(e){const u={constructs:oI([V1,...(e||{}).extensions||[]]),content:o(pI),defined:[],document:o(mI),flow:o(R1),lazy:{},string:o(D1),text:o(M1)};return u;function o(l){return a;function a(c){return W1(u,l,c)}}}function Z1(e){for(;!Jd(e););return e}const th=/[\0\t\n\r]/g;function Y1(){let e=1,t="",r=!0,u;return o;function o(l,a,c){const f=[];let h,p,g,I,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),g=0,t="",r&&(l.charCodeAt(0)===65279&&g++,r=void 0);g<l.length;){if(th.lastIndex=g,h=th.exec(l),I=h&&h.index!==void 0?h.index:l.length,b=l.charCodeAt(I),!h){t=l.slice(g);break}if(b===10&&g===I&&u)f.push(-3),u=void 0;else switch(u&&(f.push(-5),u=void 0),g<I&&(f.push(l.slice(g,I)),e+=I-g),b){case 0:{f.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,f.push(-2);e++<p;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:u=!0,e=1}g=I+1}return c&&(u&&f.push(-5),t&&f.push(t),f.push(null)),f}}const J1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function U1(e){return e.replace(J1,j1)}function j1(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),l=o===120||o===88;return Md(r.slice(l?2:1),l?16:10)}return Ol(r)||e}const nh={}.hasOwnProperty;function Q1(e,t,r){return typeof t!="string"&&(r=t,t=void 0),q1(r)(Z1(z1(r).document().write(Y1()(e,t,!0))))}function q1(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ki),autolinkProtocol:j,autolinkEmail:j,atxHeading:l(vn),blockQuote:l(ye),characterEscape:j,characterReference:j,codeFenced:l(Me),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Me,a),codeText:l(ct,a),codeTextData:j,data:j,codeFlowValue:j,definition:l(Gt),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(At),hardBreakEscape:l(Gi),hardBreakTrailing:l(Gi),htmlFlow:l(Ut,a),htmlFlowData:j,htmlText:l(Ut,a),htmlTextData:j,image:l(Ri),label:a,link:l(ki),listItem:l(Mt),listItemValue:I,listOrdered:l(Yn,g),listUnordered:l(Yn),paragraph:l(tr),reference:w,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(vn),strong:l(Er),thematicBreak:l(nr)},exit:{atxHeading:f(),atxHeadingSequence:V,autolink:f(),autolinkEmail:oe,autolinkProtocol:ee,blockQuote:f(),characterEscapeValue:ne,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:De,characterReference:yt,codeFenced:f(F),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:E,codeFlowValue:ne,codeIndented:f(P),codeText:f(ie),codeTextData:ne,data:ne,definition:f(),definitionDestinationString:L,definitionLabelString:D,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(Q),hardBreakTrailing:f(Q),htmlFlow:f(ve),htmlFlowData:ne,htmlText:f(Be),htmlTextData:ne,image:f(de),label:qe,labelText:Se,lineEnding:$,link:f(ge),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Je,resourceDestinationString:S,resourceTitleString:He,resource:Le,setextHeading:f(N),setextHeadingLineSequence:J,setextHeadingText:R,strong:f(),thematicBreak:f()}};rh(t,(e||{}).mdastExtensions||[]);const r={};return u;function u(X){let te={type:"root",children:[]};const pe={stack:[te],tokenStack:[],config:t,enter:c,exit:h,buffer:a,resume:p,data:r},_e=[];let Ge=-1;for(;++Ge<X.length;)if(X[Ge][1].type==="listOrdered"||X[Ge][1].type==="listUnordered")if(X[Ge][0]==="enter")_e.push(Ge);else{const Et=_e.pop();Ge=o(X,Et,Ge)}for(Ge=-1;++Ge<X.length;){const Et=t[X[Ge][0]];nh.call(Et,X[Ge][1].type)&&Et[X[Ge][1].type].call(Object.assign({sliceSerialize:X[Ge][2].sliceSerialize},pe),X[Ge][1])}if(pe.tokenStack.length>0){const Et=pe.tokenStack[pe.tokenStack.length-1];(Et[1]||ih).call(pe,void 0,Et[0])}for(te.position={start:vr(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:vr(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<t.transforms.length;)te=t.transforms[Ge](te)||te;return te}function o(X,te,pe){let _e=te-1,Ge=-1,Et=!1,jt,Nt,yn,Qt;for(;++_e<=pe;){const It=X[_e];switch(It[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{It[0]==="enter"?Ge++:Ge--,Qt=void 0;break}case"lineEndingBlank":{It[0]==="enter"&&(jt&&!Qt&&!Ge&&!yn&&(yn=_e),Qt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qt=void 0}if(!Ge&&It[0]==="enter"&&It[1].type==="listItemPrefix"||Ge===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(jt){let on=_e;for(Nt=void 0;on--;){const sn=X[on];if(sn[1].type==="lineEnding"||sn[1].type==="lineEndingBlank"){if(sn[0]==="exit")continue;Nt&&(X[Nt][1].type="lineEndingBlank",Et=!0),sn[1].type="lineEnding",Nt=on}else if(!(sn[1].type==="linePrefix"||sn[1].type==="blockQuotePrefix"||sn[1].type==="blockQuotePrefixWhitespace"||sn[1].type==="blockQuoteMarker"||sn[1].type==="listItemIndent"))break}yn&&(!Nt||yn<Nt)&&(jt._spread=!0),jt.end=Object.assign({},Nt?X[Nt][1].start:It[1].end),X.splice(Nt||_e,0,["exit",jt,It[2]]),_e++,pe++}if(It[1].type==="listItemPrefix"){const on={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0};jt=on,X.splice(_e,0,["enter",on,It[2]]),_e++,pe++,yn=void 0,Qt=!0}}}return X[te][1]._spread=Et,pe}function l(X,te){return pe;function pe(_e){c.call(this,X(_e),_e),te&&te.call(this,_e)}}function a(){this.stack.push({type:"fragment",children:[]})}function c(X,te,pe){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([te,pe||void 0]),X.position={start:vr(te.start),end:void 0}}function f(X){return te;function te(pe){X&&X.call(this,pe),h.call(this,pe)}}function h(X,te){const pe=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==X.type&&(te?te.call(this,X,_e[0]):(_e[1]||ih).call(this,X,_e[0]));else throw new Error("Cannot close `"+X.type+"` ("+hu({start:X.start,end:X.end})+"): it’s not open");pe.position.end=vr(X.end)}function p(){return iI(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function I(X){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function b(){const X=this.resume(),te=this.stack[this.stack.length-1];te.lang=X}function E(){const X=this.resume(),te=this.stack[this.stack.length-1];te.meta=X}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X.replace(/(\r?\n|\r)$/g,"")}function D(X){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.label=te,pe.identifier=bi(this.sliceSerialize(X)).toLowerCase()}function k(){const X=this.resume(),te=this.stack[this.stack.length-1];te.title=X}function L(){const X=this.resume(),te=this.stack[this.stack.length-1];te.url=X}function V(X){const te=this.stack[this.stack.length-1];if(!te.depth){const pe=this.sliceSerialize(X).length;te.depth=pe}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function J(X){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function j(X){const pe=this.stack[this.stack.length-1].children;let _e=pe[pe.length-1];(!_e||_e.type!=="text")&&(_e=Au(),_e.position={start:vr(X.start),end:void 0},pe.push(_e)),this.stack.push(_e)}function ne(X){const te=this.stack.pop();te.value+=this.sliceSerialize(X),te.position.end=vr(X.end)}function $(X){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=te.children[te.children.length-1];pe.position.end=vr(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(te.type)&&(j.call(this,X),ne.call(this,X))}function Q(){this.data.atHardBreak=!0}function ve(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function Be(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function ie(){const X=this.resume(),te=this.stack[this.stack.length-1];te.value=X}function ge(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=te,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function de(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=te,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Se(X){const te=this.sliceSerialize(X),pe=this.stack[this.stack.length-2];pe.label=U1(te),pe.identifier=bi(te).toLowerCase()}function qe(){const X=this.stack[this.stack.length-1],te=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const _e=X.children;pe.children=_e}else pe.alt=te}function S(){const X=this.resume(),te=this.stack[this.stack.length-1];te.url=X}function He(){const X=this.resume(),te=this.stack[this.stack.length-1];te.title=X}function Le(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function Je(X){const te=this.resume(),pe=this.stack[this.stack.length-1];pe.label=te,pe.identifier=bi(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function me(X){this.data.characterReferenceType=X.type}function De(X){const te=this.sliceSerialize(X),pe=this.data.characterReferenceType;let _e;pe?(_e=Md(te,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Ol(te);const Ge=this.stack[this.stack.length-1];Ge.value+=_e}function yt(X){const te=this.stack.pop();te.position.end=vr(X.end)}function ee(X){ne.call(this,X);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(X)}function oe(X){ne.call(this,X);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(X)}function ye(){return{type:"blockquote",children:[]}}function Me(){return{type:"code",lang:null,meta:null,value:""}}function ct(){return{type:"inlineCode",value:""}}function Gt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function At(){return{type:"emphasis",children:[]}}function vn(){return{type:"heading",depth:0,children:[]}}function Gi(){return{type:"break"}}function Ut(){return{type:"html",value:""}}function Ri(){return{type:"image",title:null,url:"",alt:null}}function ki(){return{type:"link",title:null,url:"",children:[]}}function Yn(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Mt(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function tr(){return{type:"paragraph",children:[]}}function Er(){return{type:"strong",children:[]}}function Au(){return{type:"text",value:""}}function nr(){return{type:"thematicBreak"}}}function vr(e){return{line:e.line,column:e.column,offset:e.offset}}function rh(e,t){let r=-1;for(;++r<t.length;){const u=t[r];Array.isArray(u)?rh(e,u):$1(e,u)}}function $1(e,t){let r;for(r in t)if(nh.call(t,r))switch(r){case"canContainEols":{const u=t[r];u&&e[r].push(...u);break}case"transforms":{const u=t[r];u&&e[r].push(...u);break}case"enter":case"exit":{const u=t[r];u&&Object.assign(e[r],u);break}}}function ih(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+hu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+hu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+hu({start:t.start,end:t.end})+") is still open")}function K1(e){const t=this;t.parser=r;function r(u){return Q1(u,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function eC(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function tC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
36
+ `}]}function nC(e,t){const r=t.value?t.value+`
37
+ `:"",u={};t.lang&&(u.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function rC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function iC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function uC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",u=String(t.identifier).toUpperCase(),o=vi(u.toLowerCase()),l=e.footnoteOrder.indexOf(u);let a,c=e.footnoteCounts.get(u);c===void 0?(c=0,e.footnoteOrder.push(u),a=e.footnoteOrder.length):a=l+1,c+=1,e.footnoteCounts.set(u,c);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function oC(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function uh(e,t){const r=t.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+u}];const o=e.all(t),l=o[0];l&&l.type==="text"?l.value="["+l.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&a.type==="text"?a.value+=u:o.push({type:"text",value:u}),o}function lC(e,t){const r=String(t.identifier).toUpperCase(),u=e.definitionById.get(r);if(!u)return uh(e,t);const o={src:vi(u.url||""),alt:t.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const l={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,l),e.applyData(t,l)}function aC(e,t){const r={src:vi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const u={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,u),e.applyData(t,u)}function cC(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,u),e.applyData(t,u)}function fC(e,t){const r=String(t.identifier).toUpperCase(),u=e.definitionById.get(r);if(!u)return uh(e,t);const o={href:vi(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const l={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function dC(e,t){const r={href:vi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const u={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function hC(e,t,r){const u=e.all(t),o=r?pC(r):oh(t),l={},a=[];if(typeof t.checked=="boolean"){const p=u[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<u.length;){const p=u[c];(o||c!==0||p.type!=="element"||p.tagName!=="p")&&a.push({type:"text",value:`
38
+ `}),p.type==="element"&&p.tagName==="p"&&!o?a.push(...p.children):a.push(p)}const f=u[u.length-1];f&&(o||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
39
+ `});const h={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,h),e.applyData(t,h)}function pC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let u=-1;for(;!t&&++u<r.length;)t=oh(r[u])}return t}function oh(e){const t=e.spread;return t??e.children.length>1}function gC(e,t){const r={},u=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<u.length;){const a=u[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(u,!0)};return e.patch(t,l),e.applyData(t,l)}function mC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function vC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yC(e,t){const r=e.all(t),u=r.shift(),o=[];if(u){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([u],!0)};e.patch(t.children[0],a),o.push(a)}if(r.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},c=Al(t.children[1]),f=Ed(t.children[t.children.length-1]);c&&f&&(a.position={start:c,end:f}),o.push(a)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)}function IC(e,t,r){const u=r?r.children:void 0,l=(u?u.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,c=a?a.length:t.children.length;let f=-1;const h=[];for(;++f<c;){const g=t.children[f],I={},b=a?a[f]:void 0;b&&(I.align=b);let E={type:"element",tagName:l,properties:I,children:[]};g&&(E.children=e.all(g),e.patch(g,E),E=e.applyData(g,E)),h.push(E)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,p),e.applyData(t,p)}function CC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const sh=9,lh=32;function xC(e){const t=String(e),r=/\r?\n|\r/g;let u=r.exec(t),o=0;const l=[];for(;u;)l.push(ah(t.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(t);return l.push(ah(t.slice(o),o>0,!1)),l.join("")}function ah(e,t,r){let u=0,o=e.length;if(t){let l=e.codePointAt(u);for(;l===sh||l===lh;)u++,l=e.codePointAt(u)}if(r){let l=e.codePointAt(o-1);for(;l===sh||l===lh;)o--,l=e.codePointAt(o-1)}return o>u?e.slice(u,o):""}function AC(e,t){const r={type:"text",value:xC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function wC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const SC={blockquote:eC,break:tC,code:nC,delete:rC,emphasis:iC,footnoteReference:uC,heading:oC,html:sC,imageReference:lC,image:aC,inlineCode:cC,linkReference:fC,link:dC,listItem:hC,list:gC,paragraph:mC,root:bC,strong:vC,table:yC,tableCell:CC,tableRow:IC,text:AC,thematicBreak:wC,toml:xo,yaml:xo,definition:xo,footnoteDefinition:xo};function xo(){}const ch=-1,Ao=0,wo=1,So=2,Dl=3,Ml=4,Nl=5,Vl=6,fh=7,dh=8,hh=typeof self=="object"?self:globalThis,EC=(e,t)=>{const r=(o,l)=>(e.set(l,o),o),u=o=>{if(e.has(o))return e.get(o);const[l,a]=t[o];switch(l){case Ao:case ch:return r(a,o);case wo:{const c=r([],o);for(const f of a)c.push(u(f));return c}case So:{const c=r({},o);for(const[f,h]of a)c[u(f)]=u(h);return c}case Dl:return r(new Date(a),o);case Ml:{const{source:c,flags:f}=a;return r(new RegExp(c,f),o)}case Nl:{const c=r(new Map,o);for(const[f,h]of a)c.set(u(f),u(h));return c}case Vl:{const c=r(new Set,o);for(const f of a)c.add(u(f));return c}case fh:{const{name:c,message:f}=a;return r(new hh[c](f),o)}case dh:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o)}return r(new hh[l](a),o)};return u},ph=e=>EC(new Map,e)(0),yi="",{toString:FC}={},{keys:PC}=Object,bu=e=>{const t=typeof e;if(t!=="object"||!e)return[Ao,t];const r=FC.call(e).slice(8,-1);switch(r){case"Array":return[wo,yi];case"Object":return[So,yi];case"Date":return[Dl,yi];case"RegExp":return[Ml,yi];case"Map":return[Nl,yi];case"Set":return[Vl,yi]}return r.includes("Array")?[wo,r]:r.includes("Error")?[fh,r]:[So,r]},Eo=([e,t])=>e===Ao&&(t==="function"||t==="symbol"),OC=(e,t,r,u)=>{const o=(a,c)=>{const f=u.push(a)-1;return r.set(c,f),f},l=a=>{if(r.has(a))return r.get(a);let[c,f]=bu(a);switch(c){case Ao:{let p=a;switch(f){case"bigint":c=dh,p=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);p=null;break;case"undefined":return o([ch],a)}return o([c,p],a)}case wo:{if(f)return o([f,[...a]],a);const p=[],g=o([c,p],a);for(const I of a)p.push(l(I));return g}case So:{if(f)switch(f){case"BigInt":return o([f,a.toString()],a);case"Boolean":case"Number":case"String":return o([f,a.valueOf()],a)}if(t&&"toJSON"in a)return l(a.toJSON());const p=[],g=o([c,p],a);for(const I of PC(a))(e||!Eo(bu(a[I])))&&p.push([l(I),l(a[I])]);return g}case Dl:return o([c,a.toISOString()],a);case Ml:{const{source:p,flags:g}=a;return o([c,{source:p,flags:g}],a)}case Nl:{const p=[],g=o([c,p],a);for(const[I,b]of a)(e||!(Eo(bu(I))||Eo(bu(b))))&&p.push([l(I),l(b)]);return g}case Vl:{const p=[],g=o([c,p],a);for(const I of a)(e||!Eo(bu(I)))&&p.push(l(I));return g}}const{message:h}=a;return o([c,{name:f,message:h}],a)};return l},gh=(e,{json:t,lossy:r}={})=>{const u=[];return OC(!(t||r),!!t,new Map,u)(e),u},Fo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ph(gh(e,t)):structuredClone(e):(e,t)=>ph(gh(e,t));function TC(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function BC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _C(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||TC,u=e.options.footnoteBackLabel||BC,o=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const p=e.all(h),g=String(h.identifier).toUpperCase(),I=vi(g.toLowerCase());let b=0;const E=[],A=e.footnoteCounts.get(g);for(;A!==void 0&&++b<=A;){E.length>0&&E.push({type:"text",value:" "});let D=typeof r=="string"?r:r(f,b);typeof D=="string"&&(D={type:"text",value:D}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+I+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(f,b),className:["data-footnote-backref"]},children:Array.isArray(D)?D:[D]})}const F=p[p.length-1];if(F&&F.type==="element"&&F.tagName==="p"){const D=F.children[F.children.length-1];D&&D.type==="text"?D.value+=" ":F.children.push({type:"text",value:" "}),F.children.push(...E)}else p.push(...E);const P={type:"element",tagName:"li",properties:{id:t+"fn-"+I},children:e.wrap(p,!0)};e.patch(h,P),c.push(P)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Fo(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
40
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
41
+ `}]}}const mh=function(e){if(e==null)return LC;if(typeof e=="function")return Po(e);if(typeof e=="object")return Array.isArray(e)?GC(e):RC(e);if(typeof e=="string")return kC(e);throw new Error("Expected function, string, or object as test")};function GC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=mh(e[r]);return Po(u);function u(...o){let l=-1;for(;++l<t.length;)if(t[l].apply(this,o))return!0;return!1}}function RC(e){const t=e;return Po(r);function r(u){const o=u;let l;for(l in e)if(o[l]!==t[l])return!1;return!0}}function kC(e){return Po(t);function t(r){return r&&r.type===e}}function Po(e){return t;function t(r,u,o){return!!(DC(r)&&e.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function LC(){return!0}function DC(e){return e!==null&&typeof e=="object"&&"type"in e}function CP(e){return e}const bh=[],MC=!0,vh=!1,NC="skip";function VC(e,t,r,u){let o;typeof t=="function"&&typeof r!="function"?(u=r,r=t):o=t;const l=mh(o),a=u?-1:1;c(e,void 0,[])();function c(f,h,p){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const b=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(I,"name",{value:"node ("+(f.type+(b?"<"+b+">":""))+")"})}return I;function I(){let b=bh,E,A,F;if((!t||l(f,h,p[p.length-1]||void 0))&&(b=WC(r(f,p)),b[0]===vh))return b;if("children"in f&&f.children){const P=f;if(P.children&&b[0]!==NC)for(A=(u?P.children.length:-1)+a,F=p.concat(P);A>-1&&A<P.children.length;){const D=P.children[A];if(E=c(D,A,F)(),E[0]===vh)return E;A=typeof E[1]=="number"?E[1]:A+a}}return b}}}function WC(e){return Array.isArray(e)?e:typeof e=="number"?[MC,e]:e==null?bh:[e]}function yh(e,t,r,u){let o,l,a;typeof t=="function"&&typeof r!="function"?(l=void 0,a=t,o=r):(l=t,a=r,o=u),VC(e,l,c,o);function c(f,h){const p=h[h.length-1],g=p?p.children.indexOf(f):void 0;return a(f,g,p)}}const Wl={}.hasOwnProperty,XC={};function HC(e,t){const r=t||XC,u=new Map,o=new Map,l=new Map,a={...SC,...r.handlers},c={all:h,applyData:ZC,definitionById:u,footnoteById:o,footnoteCounts:l,footnoteOrder:[],handlers:a,one:f,options:r,patch:zC,wrap:JC};return yh(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?u:o,I=String(p.identifier).toUpperCase();g.has(I)||g.set(I,p)}}),c;function f(p,g){const I=p.type,b=c.handlers[I];if(Wl.call(c.handlers,I)&&b)return b(c,p,g);if(c.options.passThrough&&c.options.passThrough.includes(I)){if("children"in p){const{children:A,...F}=p,P=Fo(F);return P.children=c.all(p),P}return Fo(p)}return(c.options.unknownHandler||YC)(c,p,g)}function h(p){const g=[];if("children"in p){const I=p.children;let b=-1;for(;++b<I.length;){const E=c.one(I[b],p);if(E){if(b&&I[b-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Ih(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=Ih(A.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function zC(e,t){e.position&&(t.position=Ry(e))}function ZC(e,t){let r=t;if(e&&e.data){const u=e.data.hName,o=e.data.hChildren,l=e.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const a="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:a}}r.type==="element"&&l&&Object.assign(r.properties,Fo(l)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function YC(e,t){const r=t.data||{},u="value"in t&&!(Wl.call(r,"hProperties")||Wl.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function JC(e,t){const r=[];let u=-1;for(t&&r.push({type:"text",value:`
42
+ `});++u<e.length;)u&&r.push({type:"text",value:`
43
+ `}),r.push(e[u]);return t&&e.length>0&&r.push({type:"text",value:`
44
+ `}),r}function Ih(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Ch(e,t){const r=HC(e,t),u=r.one(e,void 0),o=_C(r),l=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&l.children.push({type:"text",value:`
45
+ `},o),l}function UC(e,t){return e&&"run"in e?async function(r,u){const o=Ch(r,{file:u,...t});await e.run(o,u)}:function(r,u){return Ch(r,{file:u,...e||t})}}function xh(e){if(e)throw e}var Oo=Object.prototype.hasOwnProperty,Ah=Object.prototype.toString,wh=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Eh=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Ah.call(t)==="[object Array]"},Fh=function(t){if(!t||Ah.call(t)!=="[object Object]")return!1;var r=Oo.call(t,"constructor"),u=t.constructor&&t.constructor.prototype&&Oo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!u)return!1;var o;for(o in t);return typeof o>"u"||Oo.call(t,o)},Ph=function(t,r){wh&&r.name==="__proto__"?wh(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},Oh=function(t,r){if(r==="__proto__")if(Oo.call(t,r)){if(Sh)return Sh(t,r).value}else return;return t[r]},jC=function e(){var t,r,u,o,l,a,c=arguments[0],f=1,h=arguments.length,p=!1;for(typeof c=="boolean"&&(p=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<h;++f)if(t=arguments[f],t!=null)for(r in t)u=Oh(c,r),o=Oh(t,r),c!==o&&(p&&o&&(Fh(o)||(l=Eh(o)))?(l?(l=!1,a=u&&Eh(u)?u:[]):a=u&&Fh(u)?u:{},Ph(c,{name:r,newValue:e(p,a,o)})):typeof o<"u"&&Ph(c,{name:r,newValue:o}));return c};const Xl=Hs(jC);function Hl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function QC(){const e=[],t={run:r,use:u};return t;function r(...o){let l=-1;const a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...o);function c(f,...h){const p=e[++l];let g=-1;if(f){a(f);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,p?qC(p,c)(...h):a(null,...h)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function qC(e,t){let r;return u;function u(...a){const c=e.length>a.length;let f;c&&a.push(o);try{f=e.apply(this,a)}catch(h){const p=h;if(c&&r)throw p;return o(p)}c||(f&&f.then&&typeof f.then=="function"?f.then(l,o):f instanceof Error?o(f):l(f))}function o(a,...c){r||(r=!0,t(a,...c))}function l(a){o(null,a)}}const Wn={basename:$C,dirname:KC,extname:ex,join:tx,sep:"/"};function $C(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vu(e);let r=0,u=-1,o=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(l){r=o+1;break}}else u<0&&(l=!0,u=o+1);return u<0?"":e.slice(r,u)}if(t===e)return"";let a=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(l){r=o+1;break}}else a<0&&(l=!0,a=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(u=o):(c=-1,u=a));return r===u?u=a:u<0&&(u=e.length),e.slice(r,u)}function KC(e){if(vu(e),e.length===0)return".";let t=-1,r=e.length,u;for(;--r;)if(e.codePointAt(r)===47){if(u){t=r;break}}else u||(u=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ex(e){vu(e);let t=e.length,r=-1,u=0,o=-1,l=0,a;for(;t--;){const c=e.codePointAt(t);if(c===47){if(a){u=t+1;break}continue}r<0&&(a=!0,r=t+1),c===46?o<0?o=t:l!==1&&(l=1):o>-1&&(l=-1)}return o<0||r<0||l===0||l===1&&o===r-1&&o===u+1?"":e.slice(o,r)}function tx(...e){let t=-1,r;for(;++t<e.length;)vu(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":nx(r)}function nx(e){vu(e);const t=e.codePointAt(0)===47;let r=rx(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function rx(e,t){let r="",u=0,o=-1,l=0,a=-1,c,f;for(;++a<=e.length;){if(a<e.length)c=e.codePointAt(a);else{if(c===47)break;c=47}if(c===47){if(!(o===a-1||l===1))if(o!==a-1&&l===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",u=0):(r=r.slice(0,f),u=r.length-1-r.lastIndexOf("/")),o=a,l=0;continue}}else if(r.length>0){r="",u=0,o=a,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),u=a-o-1;o=a,l=0}else c===46&&l>-1?l++:l=-1}return r}function vu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ix={cwd:ux};function ux(){return"/"}function zl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ox(e){if(typeof e=="string")e=new URL(e);else if(!zl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return sx(e)}function sx(e){if(e.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const u=t.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Zl=["history","path","basename","stem","extname","dirname"];class Th{constructor(t){let r;t?zl(t)?r={path:t}:typeof t=="string"||lx(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":ix.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Zl.length;){const l=Zl[u];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let o;for(o in r)Zl.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Wn.basename(this.path):void 0}set basename(t){Jl(t,"basename"),Yl(t,"basename"),this.path=Wn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Wn.dirname(this.path):void 0}set dirname(t){Bh(this.basename,"dirname"),this.path=Wn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Wn.extname(this.path):void 0}set extname(t){if(Yl(t,"extname"),Bh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){zl(t)&&(t=ox(t)),Jl(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Wn.basename(this.path,this.extname):void 0}set stem(t){Jl(t,"stem"),Yl(t,"stem"),this.path=Wn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,u){const o=this.message(t,r,u);throw o.fatal=!0,o}info(t,r,u){const o=this.message(t,r,u);return o.fatal=void 0,o}message(t,r,u){const o=new Bt(t,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Yl(e,t){if(e&&e.includes(Wn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Wn.sep+"`")}function Jl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Bh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function lx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ax=function(e){const u=this.constructor.prototype,o=u[e],l=function(){return o.apply(l,arguments)};return Object.setPrototypeOf(l,u),l},cx={}.hasOwnProperty;class Ul extends ax{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=QC()}copy(){const t=new Ul;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];t.use(...u)}return t.data(Xl(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(ql("data",this.frozen),this.namespace[t]=r,this):cx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ql("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(t,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=To(t),u=this.parser||this.Parser;return jl("parse",u),u(String(r),r)}process(t,r){const u=this;return this.freeze(),jl("process",this.parser||this.Parser),Ql("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(l,a){const c=To(t),f=u.parse(c);u.run(f,c,function(p,g,I){if(p||!g||!I)return h(p);const b=g,E=u.stringify(b,I);hx(E)?I.value=E:I.result=E,h(p,I)});function h(p,g){p||!g?a(p):l?l(g):r(void 0,g)}}}processSync(t){let r=!1,u;return this.freeze(),jl("processSync",this.parser||this.Parser),Ql("processSync",this.compiler||this.Compiler),this.process(t,o),Gh("processSync","process",r),u;function o(l,a){r=!0,xh(l),u=a}}run(t,r,u){_h(t),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?l(void 0,u):new Promise(l);function l(a,c){const f=To(r);o.run(t,f,h);function h(p,g,I){const b=g||t;p?c(p):a?a(b):u(void 0,b,I)}}}runSync(t,r){let u=!1,o;return this.run(t,r,l),Gh("runSync","run",u),o;function l(a,c){xh(a),o=c,u=!0}}stringify(t,r){this.freeze();const u=To(r),o=this.compiler||this.Compiler;return Ql("stringify",o),_h(t),o(t,u)}use(t,...r){const u=this.attachers,o=this.namespace;if(ql("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?c(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else a(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function a(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(h.plugins),h.settings&&(o.settings=Xl(!0,o.settings,h.settings))}function c(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];l(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,I=-1;for(;++g<u.length;)if(u[g][0]===h){I=g;break}if(I===-1)u.push([h,...p]);else if(p.length>0){let[b,...E]=p;const A=u[I][1];Hl(A)&&Hl(b)&&(b=Xl(!0,A,b)),u[I]=[h,b,...E]}}}}const fx=new Ul().freeze();function jl(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ql(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ql(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _h(e){if(!Hl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Gh(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function To(e){return dx(e)?e:new Th(e)}function dx(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hx(e){return typeof e=="string"||px(e)}function px(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rh=[],kh={allowDangerousHtml:!0},mx=/^(https?|ircs?|mailto|xmpp)$/i,bx=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function vx(e){const t=e.allowedElements,r=e.allowElement,u=e.children||"",o=e.className,l=e.components,a=e.disallowedElements,c=e.rehypePlugins||Rh,f=e.remarkPlugins||Rh,h=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kh}:kh,p=e.skipHtml,g=e.unwrapDisallowed,I=e.urlTransform||yx,b=fx().use(K1).use(f).use(UC,h).use(c),E=new Th;typeof u=="string"&&(E.value=u);for(const D of bx)Object.hasOwn(e,D.from)&&(""+D.from+(D.to?"use `"+D.to+"` instead":"remove it")+gx+D.id,void 0);const A=b.parse(E);let F=b.runSync(A,E);return o&&(F={type:"element",tagName:"div",properties:{className:o},children:F.type==="root"?F.children:[F]}),yh(F,P),Vy(F,{Fragment:q.Fragment,components:l,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function P(D,k,L){if(D.type==="raw"&&L&&typeof k=="number")return p?L.children.splice(k,1):L.children[k]={type:"text",value:D.value},k;if(D.type==="element"){let V;for(V in Pl)if(Object.hasOwn(Pl,V)&&Object.hasOwn(D.properties,V)){const R=D.properties[V],J=Pl[V];(J===null||J.includes(D.tagName))&&(D.properties[V]=I(String(R||""),V,D))}}if(D.type==="element"){let V=t?!t.includes(D.tagName):a?a.includes(D.tagName):!1;if(!V&&r&&typeof k=="number"&&(V=!r(D,k,L)),V&&L&&typeof k=="number")return g&&D.children?L.children.splice(k,1,...D.children):L.children.splice(k,1),k}}}function yx(e){const t=e.indexOf(":"),r=e.indexOf("?"),u=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||r>-1&&t>r||u>-1&&t>u||mx.test(e.slice(0,t))?e:""}function Lh(e){e.field||console.log("props",e);const{field:t,markdown:r}=e,{prop:u}=t,{getClassNames:o,getStyles:l,theme:a}=Yt(),c={color:a.colors.neutral50,fontWeight:400,fontSize:"0.75rem",gridArea:"description",textWrap:"balance",lineHeight:"1.5"};return u.type==="app"?q.jsx("p",{className:o("description",e),style:l("description",c,e),children:"Credentials are encrypted."}):u.description?q.jsx("div",{className:o("description",e),style:l("description",c,e),children:q.jsx(vx,{children:r})}):null}function Dh(e){const{errors:t}=e,{getProps:r,theme:u}=Yt(),o={color:u.colors.danger,gridArea:"errors"};return t.length?q.jsx("ul",{...r("errors",o,e),children:t.map(l=>q.jsx("li",{...r("error",o,e),children:l},l))}):null}function Mh(e){const{text:t,field:r}=e,{id:u}=r,{getProps:o,theme:l}=Yt(),a={color:l.colors.neutral90,fontWeight:450,gridArea:"label",lineHeight:"1.5"};return q.jsx("label",{htmlFor:u,...o("label",a,e),children:t})}const Nh=e=>{const{prop:t,enabled:r,onClick:u}=e,{getProps:o,theme:l}=Yt(),a={color:l.colors.neutral60,display:"inline-flex",alignItems:"center",padding:`${l.spacing.baseUnit}px ${l.spacing.baseUnit*1.5}px ${l.spacing.baseUnit}px ${l.spacing.baseUnit*2.5}px`,border:`1px solid ${l.colors.neutral30}`,borderRadius:l.borderRadius,cursor:"pointer",fontSize:"0.8125rem",fontWeight:450,gap:l.spacing.baseUnit*2,textWrap:"nowrap"};return q.jsxs("button",{onClick:u,type:"button",...o("optionalFieldButton",a,e),children:[q.jsx("span",{children:r?"-":"+"}),q.jsx("span",{style:{marginRight:8},children:t.label||t.name})]})},Vh=e=>{const{onChange:t}=e,{getProps:r,theme:u}=Yt(),o={backgroundColor:u.colors.primary,borderRadius:u.borderRadius,border:"solid 1px",borderColor:u.colors.primary25,color:u.colors.primary25,padding:"0.5rem",fontSize:"0.8125rem",fontWeight:"450",gridArea:"control",cursor:"pointer",width:"100%"};return q.jsx("button",{onClick:t,type:"button",...r("loadMoreButton",o,e),children:"Load More"})},Wh={Description:Lh,Errors:Dh,Label:Mh,OptionalFieldButton:Nh,Button:Vh},Bo=Z.createContext({classNames:{},classNamePrefix:"",components:{},styles:{},theme:vo,unstyled:!1});function Ix(){const e=Z.useContext(Bo)??{},t=sd(e.theme??{});function r(){return e.classNamePrefix??""}function u(c){var p;const f=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${c}`,h={...((p=e.classNames)==null?void 0:p[c])??{}};return typeof(h==null?void 0:h.container)=="function"&&(h.container=typeof(h==null?void 0:h.container)=="function"?(...g)=>{var I;return[(I=h==null?void 0:h.container)==null?void 0:I.call(h,...g),f].join(" ")}:()=>f),h}function o(c,f){var h;return{...au,...f??{},...((h=e==null?void 0:e.components)==null?void 0:h[c])??{}}}function l(c,f){var h;return Xv(((h=e.styles)==null?void 0:h[c])??{},f??{})}function a(c,f){return{classNamePrefix:r(),classNames:u(c),components:o(c,f==null?void 0:f.components),styles:l(c,f==null?void 0:f.styles),theme:t}}return{getClassNamePrefix:r,getClassNames:u,getComponents:o,getProps:a,getStyles:l,theme:t}}function Yt(){const e=Z.useContext(Bo)??{},t=e.theme,r=e.unstyled?od:vo,u=typeof t=="function"?yo(r,t(r)):yo(r,t);function o(f,h){var I;const p=`${(e==null?void 0:e.classNamePrefix)??"pd-"}${f.toLowerCase()}`,g=(I=e.classNames)==null?void 0:I[f];if(typeof g=="function"){const b=g,E={...h??{},theme:u};return[p,b(E)].filter(Boolean).join(" ")}return[p,g].filter(Boolean).join(" ")}function l(){return{...Wh,...(e==null?void 0:e.components)??{}}}function a(f,h,p){var I;const g=(I=e.styles)==null?void 0:I[f];if(typeof g=="function"){const b=g,E={...p??{},theme:u};return b(h,E)}return g?{...h,...g}:h}function c(f,h,p){return{className:o(f,p),style:a(f,h,p)}}return{getClassNames:o,getComponents:l,getProps:c,getStyles:a,select:Ix(),theme:u}}const Cx=({children:e,...t})=>q.jsx(Bo.Provider,{value:t,children:e}),$l=Z.createContext(void 0),Hr=()=>{const e=Z.useContext($l);if(!e)throw new Error("Must be used inside FormFieldContext.Provider");return e},Xh=(e,t)=>{var o;const r=$n(),u=Nr({...t==null?void 0:t.useQueryOpts,queryKey:["accounts",e],queryFn:()=>r.getAccounts(e)});return{...u,accounts:((o=u.data)==null?void 0:o.data)||[]}},xx=e=>q.jsx(au.Option,{...e,children:e.data.name});function Hh({app:e}){const t=$n(),r=Hr(),{id:u,prop:o,value:l,onChange:a}=r,{getProps:c,select:f,theme:h}=Yt(),p={color:h.colors.neutral60,gridArea:"control"},g={backgroundColor:h.colors.primary,borderRadius:h.borderRadius,border:"solid 1px",borderColor:h.colors.primary25,color:h.colors.primary25,padding:"0.25rem 0.5rem",gridArea:"control"},I={components:{Option:xx},styles:{control:L=>({...L,gridArea:"control",boxShadow:h.boxShadow.input})}},b=f.getProps("controlAppSelect",I),E=void 0,{isLoading:A,accounts:F,refetch:P}=Xh({app:e.name_slug,oauth_app_id:E},{useQueryOpts:{enabled:!!e,suspense:!!e}}),D=async()=>{t.connectAccount({app:o.app,oauthAppId:E,onSuccess:async L=>{await P(),a({authProvisionId:L.id})},onError:()=>{}})},k=Z.useMemo(()=>{let L=l;if(L!=null){for(const V of F)if(L.authProvisionId===V.id){L=V;break}}return L},[F,l]);return q.jsx("div",{...c("controlApp",p,{app:e,...r}),children:A?`Loading ${e.name} accounts...`:F.length?q.jsx(bo,{instanceId:u,value:k,options:[...F,{id:"_new",name:`Connect new ${e.name} account...`}],...b,required:!0,placeholder:`Select ${e.name} account...`,isLoading:A,isClearable:!0,isSearchable:!0,getOptionLabel:L=>L.name,getOptionValue:L=>L.id,onChange:L=>{L?L.id==="_new"?D():a({authProvisionId:L.id}):a(void 0)}}):q.jsxs("button",{type:"button",...c("connectButton",g,{app:e,...r}),onClick:()=>D(),children:["Connect ",e.name]})})}function zh(){const e=Hr(),{id:t,value:r,onChange:u}=e,{getProps:o}=Yt(),l={width:"16px",height:"16px",gridArea:"control",margin:"0 0.5rem 0 0"};return q.jsx("input",{id:t,type:"checkbox",...o("controlBoolean",l,e),checked:r??!1,onChange:a=>u(a.target.checked)})}function Zh(){const e=Hr(),{id:t,onChange:r,prop:u,value:o}=e,{getProps:l,theme:a}=Yt(),c={color:a.colors.neutral60,display:"block",border:"1px solid",borderColor:a.colors.neutral20,padding:6,width:"100%",borderRadius:a.borderRadius,gridArea:"control",boxShadow:a.boxShadow.input};let f="off",h="text",p=g=>g;switch(u.type){case"string":break;case"integer":h="number",p=g=>g?parseInt(g):void 0;break;default:throw new Error("unexpected prop.type for ControlInput: "+u.type)}return"secret"in u&&u.secret&&(h="password",f="new-password"),q.jsx("input",{id:t,type:h,name:u.name,value:o??"",onChange:g=>r(p(g.target.value)),...l("controlInput",c,e),min:"min"in u?u.min:void 0,max:"max"in u?u.max:void 0,autoComplete:f,"data-lpignore":"true","data-1p-ignore":"true",required:!u.optional})}var Ax=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Yh=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),l=String(u.getOptionValue(r)).toLowerCase(),a=String(u.getOptionLabel(r)).toLowerCase();return l===o||a===o},Kl={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,u,o){return!(!t||r.some(function(l){return Yh(t,l,o)})||u.some(function(l){return Yh(t,l,o)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function wx(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,u=e.createOptionPosition,o=u===void 0?"last":u,l=e.formatCreateLabel,a=l===void 0?Kl.formatCreateLabel:l,c=e.isValidNewOption,f=c===void 0?Kl.isValidNewOption:c,h=e.getNewOptionData,p=h===void 0?Kl.getNewOptionData:h,g=e.onCreateOption,I=e.options,b=I===void 0?[]:I,E=e.onChange,A=Mn(e,Ax),F=A.getOptionValue,P=F===void 0?jf:F,D=A.getOptionLabel,k=D===void 0?Uf:D,L=A.inputValue,V=A.isLoading,R=A.isMulti,J=A.value,N=A.name,j=Z.useMemo(function(){return f(L,ao(J),b,{getOptionValue:P,getOptionLabel:k})?p(L,a(L)):void 0},[a,p,k,P,L,f,b,J]),ne=Z.useMemo(function(){return(r||!V)&&j?o==="first"?[j].concat(hi(b)):[].concat(hi(b),[j]):b},[r,o,V,j,b]),$=Z.useCallback(function(Q,ve){if(ve.action!=="select-option")return E(Q,ve);var Be=Array.isArray(Q)?Q:[Q];if(Be[Be.length-1]===j){if(g)g(L);else{var ie=p(L,L),ge={action:"create-option",name:N,option:ie};E(lu(R,[].concat(hi(ao(J)),[ie]),ie),ge)}return}E(Q,ve)},[p,L,R,N,j,g,E,J]);return he(he({},A),{},{options:ne,onChange:$})}var Sx=Z.forwardRef(function(e,t){var r=cf(e),u=wx(r);return Fe.createElement(bl,be({ref:t},u))}),Ex=Sx;function _o({isCreatable:e,options:t,selectProps:r,showLoadMoreButton:u,onLoadMore:o}){const l=Hr(),{id:a,prop:c,value:f,onChange:h}=l,{select:p,theme:g}=Yt(),[I,b]=Z.useState(t),[E,A]=Z.useState(f);Z.useEffect(()=>{b(t)},[t]),Z.useEffect(()=>{A(f)},[f]);const F={styles:{container:N=>({...N,gridArea:"control",boxShadow:g.boxShadow.input})}},P=Z.useMemo(()=>{let N=E;if(N!=null)if(Array.isArray(N)){if(typeof N[0]!="object"){const j=[];for(const ne of N){let $={label:ne,value:ne};for(const Q of I)if(Q.value===ne){$=Q;break}j.push($)}N=j}}else if(typeof N!="object")if((I==null?void 0:I[0])&&typeof I[0]=="object"){for(const ne of I)if(ne.value===E){N=ne;break}}else N={label:E,value:E};else N.__lv&&(N=N.__lv);return N},[E,I]),D=({children:N,...j})=>q.jsxs(au.MenuList,{...j,children:[N,q.jsx("div",{className:"pt-4",children:q.jsx(Vh,{onChange:o})})]}),k=p.getProps("controlSelect",F);u&&(k.components={...k.components,MenuList:D});const L=N=>{const j=ve=>typeof ve=="object"?ve:{label:ve,value:ve},ne=j(N);let $=ne;const Q=I?[ne,...I]:[ne];b(Q),c.type.endsWith("[]")&&(Array.isArray(E)?$=[...E.map(j),ne]:$=[ne]),A($),V($)},V=N=>{if(N)if(Array.isArray(N))typeof N[0]=="object"&&"value"in N[0]?h({__lv:N}):h(N);else if(typeof N=="object"&&"value"in N)h({__lv:N});else throw new Error("unhandled option type");else h(void 0)},R={onCreateOption:c.remoteOptions?L:void 0},J=e?Ex:bo;return q.jsx(J,{inputId:a,instanceId:a,options:I,value:P,isMulti:c.type.endsWith("[]"),isClearable:!0,required:!c.optional,...k,...r,...R,onChange:V})}function Jh({queryEnabled:e}){const t=$n(),{userId:r,component:u,configurableProps:o,configuredProps:l,dynamicProps:a,props:{disableQueryDisabling:c}}=to(),{idx:f,prop:h}=Hr(),[p,g]=Z.useState(""),[I,b]=Z.useState(0),[E,A]=Z.useState(!0),[F,P]=Z.useState(void 0),[D,k]=Z.useState({page:0,prevContext:{},data:[],values:new Set}),L={};for(let ie=0;ie<f;ie++){const ge=o[ie];L[ge.name]=l[ge.name]}const V={userId:r,page:I,prevContext:F,componentId:u.key,propName:h.name,configuredProps:L,dynamicPropsId:a==null?void 0:a.id};h.useQuery&&(V.query=p||"");const R={...V};delete R.dynamicPropsId;const[J,N]=Z.useState(),j=()=>{b(D.page),P(D.prevContext),k({...D,prevContext:{}})},{isFetching:ne,refetch:$}=Nr({queryKey:["componentConfigure",R],queryFn:async()=>{N(void 0);const ie=await t.componentConfigure(V),{options:ge,stringOptions:de,errors:Se}=ie;if(Se!=null&&Se.length){try{N(JSON.parse(Se[0]))}catch{N({name:"Error",message:Se[0]})}return[]}let qe=[];if(ge!=null&&ge.length&&(qe=ge),de!=null&&de.length){const w=[];for(const Je of de)w.push({label:Je,value:Je});qe=w}const S=[],He=new Set(D.values);for(const w of qe||[]){const Je=typeof w=="string"?w:w.value;He.has(Je)||(He.add(Je),S.push(w))}let Le=D.data;return S.length?(Le=[...D.data,...S],k({page:I+1,prevContext:ie.context,data:Le,values:He})):A(!1),Le},enabled:!!e}),Q=()=>!ne&&!J&&E,ve=J?J.message:c?"Click to configure":e?void 0:"Configure props above first",Be=c?!1:!e;return q.jsx(_o,{isCreatable:!0,showLoadMoreButton:Q(),onLoadMore:j,options:D.data,selectProps:{isLoading:ne,placeholder:ve,isDisabled:Be,inputValue:h.useQuery?p:void 0,onInputChange(ie){h.useQuery&&(g(ie),$())},onMenuOpen(){c&&!e&&$()}}})}function Uh(e){const{field:t,form:r}=e,{queryDisabledIdx:u}=r,{prop:o,idx:l}=t,a="app"in t.extra?t.extra.app:void 0;if(o.remoteOptions||o.type==="$.discord.channel")return q.jsx(Jh,{queryEnabled:u==null||u>=l});if("options"in o&&o.options){let c=o.options;return typeof c[0]!="object"&&(c=c.map(f=>({label:f,value:f}))),q.jsx(_o,{options:c,components:{IndicatorSeparator:()=>null}})}if(o.type.endsWith("[][]"))throw new Error("Unsupported property type: "+o.type);if(o.type.endsWith("[]"))return q.jsx(_o,{isCreatable:!0,options:[],components:{IndicatorSeparator:()=>null}});switch(o.type){case"app":return q.jsx(Hh,{app:a});case"boolean":return q.jsx(zh,{});case"string":case"integer":return q.jsx(Zh,{});default:throw new Error("Unsupported property type: "+o.type)}}function jh(e){const{form:t,field:r}=e,{prop:u}=r,{getProps:o,getComponents:l}=Yt(),a={display:"grid",gridTemplateAreas:r.prop.type=="boolean"?'"control label" "description description" "error error"':'"label label" "control control" "description description" "error error"',gridTemplateColumns:"min-content auto",gap:"0.25rem 0",alignItems:"center",fontSize:"0.875rem"},{Label:c,Description:f,Errors:h}=l(),p=[],g="app"in r.extra?r.extra.app:void 0;if(g&&!g.auth_type)return null;let I=u.label||u.name;return g&&(I=`Connect ${g.name} account`),q.jsxs("div",{...o("field",a,e),children:[q.jsx(c,{text:I,field:r,form:t}),q.jsx(Uh,{field:r,form:t}),q.jsx(f,{markdown:u.description,field:r,form:t}),q.jsx(h,{errors:p,field:r,form:t})]})}const Qh=(e,t)=>{var o;const r=$n(),u=Nr({queryKey:["app",e],queryFn:()=>r.app(e),...t==null?void 0:t.useQueryOpts});return{...u,app:(o=u.data)==null?void 0:o.data}};function qh({prop:e,idx:t}){const r=to(),{id:u,configuredProps:o,registerField:l,setConfiguredProp:a}=r,c=e.type==="app"&&"app"in e?e.app:void 0,{app:f}=Qh(c||"",{useQueryOpts:{enabled:!!c,suspense:!!c}}),p={id:`pd${u}${e.name}`,prop:e,idx:t,value:o[e.name],onChange(g){a(t,g)},extra:{app:f}};return Z.useEffect(()=>l(p),[p]),q.jsx($l.Provider,{value:p,children:q.jsx(jh,{field:p,form:r})})}class $h extends Z.Component{constructor(){super(...arguments),this.state={err:void 0}}static getDerivedStateFromError(t){return{err:t}}render(){const{err:t}=this.state;return t?this.props.fallback(t):this.props.children}}function Kh(e){const{form:t}=e,{propsNeedConfiguring:r,submitting:u}=t,{getProps:o,theme:l}=Yt(),a=c=>{var f;return{width:"fit-content",textTransform:"capitalize",backgroundColor:c?l.colors.neutral10:l.colors.primary,color:c?l.colors.neutral40:l.colors.neutral0,padding:`${l.spacing.baseUnit*1.75}px ${l.spacing.baseUnit*16}px`,borderRadius:l.borderRadius,boxShadow:(f=l.boxShadow)==null?void 0:f.button,cursor:"pointer",fontSize:"0.875rem",opacity:u?.5:void 0,margin:"0.5rem 0 0 0"}};return q.jsx("input",{type:"submit",value:u?"Submitting...":"Submit",...o("controlSubmit",a(r.length||u),e),disabled:r.length||u})}function ep(){const e=to(),{configurableProps:t,dynamicPropsQueryIsFetching:r,isValid:u,optionalPropIsEnabled:o,optionalPropSetEnabled:l,props:a,setSubmitting:c}=e,{hideOptionalProps:f,onSubmit:h}=a,{getComponents:p,getProps:g,theme:I}=Yt(),{OptionalFieldButton:b}=p(),E={display:"flex",flexDirection:"column",gap:"1.5rem"},A={display:"flex",flexWrap:"wrap",gap:"0.375rem"},F={fontWeight:600,textTransform:"capitalize",color:I.colors.neutral60,fontSize:"0.875rem",lineHeight:"1.375",margin:"0 0 0.5rem 0"},P=async L=>{if(h&&(L.preventDefault(),u)){c(!0);try{await h(e)}finally{c(!1)}}},D=[],k=[];for(let L=0;L<t.length;L++){const V=t[L];if(!V.hidden&&!ou.includes(V.type)){if(V.optional){const R=o(V);if(k.push([V,R]),!R)continue}D.push([V,L])}}return q.jsx($h,{fallback:L=>q.jsxs("p",{style:{color:"red"},children:["Error: ",L&&typeof L=="object"&&"message"in L&&typeof L.message=="string"?L.message:"Unknown"]}),children:q.jsx(Z.Suspense,{fallback:q.jsx("p",{children:"Loading form..."}),children:q.jsxs("form",{...g("componentForm",E,a),onSubmit:P,children:[D.map(([L,V])=>L.type==="alert"?q.jsx(Dc,{prop:L},L.name):q.jsx(qh,{prop:L,idx:V},L.name)),r&&q.jsx("p",{children:"Loading dynamic props..."}),!f&&k.length?q.jsxs("div",{children:[q.jsx("div",{...g("heading",F,a),children:"Optional Props"}),q.jsx("div",{...g("optionalFields",A,a),children:k.map(([L,V])=>q.jsx(b,{prop:L,enabled:V,onClick:()=>l(L,!V)},L.name))})]}):null,h&&q.jsx(Kh,{form:e})]})})})}function tp(e){return q.jsx(of,{props:e,children:q.jsx(ep,{})})}const np=({key:e},t)=>{var o;const r=$n(),u=Nr({queryKey:["component",e],queryFn:()=>r.component({key:e}),enabled:!!e,...t==null?void 0:t.useQueryOpts});return{...u,component:(o=u.data)==null?void 0:o.data}};function Fx(e){const{isLoading:t,error:r,component:u}=np({key:e.componentKey});if(!e.componentKey)throw new Error("componentKey required");return t?q.jsx("p",{children:"Loading..."}):r?q.jsxs("p",{children:["Error: ",r.message]}):u?q.jsx(tp,{component:u,...e}):q.jsx("p",{children:"Component not found"})}function Px(){const e=Hr(),{id:t,onChange:r,value:u}=e,{getProps:o,theme:l}=Yt(),a={display:"block",gridArea:"control",width:"100%",fontSize:"0.875rem",boxShadow:l.boxShadow.input};let c=u;return typeof c=="object"&&(c=JSON.stringify(c)),q.jsx("textarea",{id:t,value:c,onChange:f=>r(f.target.value),...o("controlAny",a,e)})}const rp=e=>{var u;const t=$n(),r=Nr({queryKey:["apps",e],queryFn:()=>t.apps(e)});return{...r,apps:(u=r.data)==null?void 0:u.data}};function Ox({value:e,onChange:t}){const[r,u]=Z.useState(""),o=Z.useId(),{isLoading:l,apps:a}=rp({q:r}),{Option:c}=au;return q.jsx(bo,{instanceId:o,className:"react-select-container text-sm",classNamePrefix:"react-select",components:{Option:f=>q.jsx(c,{...f,children:q.jsxs("div",{style:{display:"flex",gap:10},children:[q.jsx("img",{src:`https://pipedream.com/s.v0/${f.data.id}/logo/48`,style:{height:24,width:24},alt:f.data.name}),q.jsx("span",{style:{whiteSpace:"nowrap"},children:f.data.name})]})}),IndicatorSeparator:()=>null},options:a||[],getOptionLabel:f=>f.name||f.name_slug,getOptionValue:f=>f.name_slug,value:e,onChange:f=>t==null?void 0:t(f||void 0),onInputChange:f=>u(f),isLoading:l})}const ip=e=>{var u;const t=$n(),r=Nr({queryKey:["components",e],queryFn:()=>t.components(e)});return{...r,components:((u=r.data)==null?void 0:u.data)||[]}};function Tx({app:e,componentType:t,value:r,onChange:u}){const o=Z.useId(),{isLoading:l,components:a}=ip({app:e==null?void 0:e.name_slug,componentType:t});return q.jsx(bo,{instanceId:o,className:"react-select-container text-sm",classNamePrefix:"react-select",options:a,getOptionLabel:c=>c.name||c.key,getOptionValue:c=>c.key,value:r,onChange:c=>u==null?void 0:u(c||void 0),isLoading:l,components:{IndicatorSeparator:()=>null}})}ue.Alert=Dc,ue.ComponentForm=tp,ue.ComponentFormContainer=Fx,ue.Control=Uh,ue.ControlAny=Px,ue.ControlApp=Hh,ue.ControlBoolean=zh,ue.ControlInput=Zh,ue.ControlSelect=_o,ue.ControlSubmit=Kh,ue.CustomizationContext=Bo,ue.CustomizeProvider=Cx,ue.Description=Lh,ue.ErrorBoundary=$h,ue.Errors=Dh,ue.Field=jh,ue.FormContext=tl,ue.FormContextProvider=of,ue.FormFieldContext=$l,ue.FrontendClientProvider=qm,ue.InternalComponentForm=ep,ue.InternalField=qh,ue.Label=Mh,ue.OptionalFieldButton=Nh,ue.RemoteOptionsContainer=Jh,ue.SelectApp=Ox,ue.SelectComponent=Tx,ue.defaultComponents=Wh,ue.defaultTheme=vo,ue.getReactSelectTheme=sd,ue.mergeTheme=yo,ue.skippablePropTypes=ou,ue.unstyledTheme=od,ue.useAccounts=Xh,ue.useApp=Qh,ue.useApps=rp,ue.useComponent=np,ue.useComponents=ip,ue.useCustomize=Yt,ue.useFormContext=to,ue.useFormFieldContext=Hr,ue.useFrontendClient=$n,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});